X
  • April 21, 2012

Wanted: A Music Sheet Component in JavaFX!

Geertjan Wielenga
Product Manager

There's a small xylophone sample in the JavaFX samples category in NetBeans IDE. When you run it, you see this:

When you click on the xylophone, javafx.scene.media.AudioClip is used to play a WAV file, a different file for each bar in the xylophone. That's nice. But this is better:

So, when you click on the xylophone, a new note is added to the currently selected music sheet, which means I've integrated the JavaFX xylophone sample as a new module in the JFugue Music NotePad:

Note: A modular architecture is really useful when you're tempted to use a new technology in production code. If, for whatever reason, the new technology doesn't end up delivering what you'd like or fails to be all that you'd hoped for, just exclude the module where you've encapsulated the new feature that makes use of that new technology. In a standard monolithic application, you'd have your implementation of a new technology so intertwined in your code that removing it would typically mean a big rewrite of the surrounding code. And that risk should logically prevent early adoption in production code of new technologies, such as JavaFX 2.0, meaning that a modular architecture is an enabler of early adoption of JavaFX 2.0 and all other new technologies.

Also, since I'm using the JFugue API, javafx.scene.media.AudioClip is now not being used at all anymore. I wonder what benefits that class has over the JFugue API. Special music effects, maybe?

But just imagine how great it would be if the music sheet itself would also be written in JavaFX? That would open the application up to a whole range of special effects and animations when notes are added to the music sheet. Does anyone know (or want to create) a music sheet in JavaFX? If a financial incentive would be needed to drive the creation of such a component, I would personally be very happy to shell out several dollars for it (since this feature would raise this application to a whole new level where Sibelius and other commercial music composer applications are found), so long as the code that is created would be open sourced and freely available for the whole world to use without any strings attached of any kind.

Join the discussion

Comments ( 2 )
  • javafx4you Saturday, April 21, 2012

    Awesome! I would also shell a few $


  • surikov Monday, April 23, 2012

    Does anyone know (or want to create) a music sheet in JavaFX?

    --

    See

    http://www.youtube.com/watch?v=4Jrb5sVxkKo

    this is JavaFX loop editor


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha
Oracle

Integrated Cloud Applications & Platform Services