Geertjan's Blog

  • April 16, 2006

Music NotePad (Part 1)

Geertjan Wielenga
Product Manager
I'm making a standalone rich-client application, instead of a NetBeans module. Makes more sense and is more fun—plus, NetBeans provides user interface support for just about everything, it even creates the application's executable for me. Here's how things look now (notice that most menus and all toolbars have been removed and that the small X on the top right-hand corner of the tab is also gone, because there's no need to ever close it):

The drag and drop functionality works (with an occasional odd weirdness, that I'm trying to solve). Whenever a note is dropped, the appropriate note and duration are produced (although, it's a bit tricky, because the Y value that marks the end of one note is very close to the Y value that starts the next note). The latter needs some fixing but is just a matter of repetition, no further investigation needed there.

The biggest gap in functionality is that, right now, you can't play the whole piece, i.e., all the dropped notes together. How I'm going to solve that is by having another topcomponent, below the palette, containing a text area, where a dropped note will output its related music string. All music strings together can then be played, by using the music notes in the text area, exactly as done in my initial implementation (described here).

Also, I'm going to add another section to the palette—for instruments! There'll be a handful of icons for basic instruments (not the 200 or so that the JFugue API supports) that can then be dragged before the notes that they will influence.

And why is it called "Music NotePad"? Well, it's supposed to make you think of "NotePad", which provides an absolutely minimal text editor. Don't want to raise anyone's hopes that this is going to be more than the absolutely bare bones implementation of JFugue API!

(Thanks to Talley Mulligan for fixing the icons so that their backgrounds aren't white.)

Join the discussion

Comments ( 4 )
  • Javier Molina Monday, April 17, 2006
    How did you remove the tab's close button?
  • Geertjan Monday, April 17, 2006
    Hi Javier, add this to the "default_options" in the config file (the config file of your application, either NetBeans IDE or your own, or both, depending where you want the close buttons to be removed):

  • Scott Hudson Monday, April 17, 2006
    Don't know if you've seen the functionality in http://www.finalemusic.com/,
    but it seems your app is very similar...
  • Geertjan Tuesday, April 18, 2006
    Hi Scott, no I hadn't seen that. I tried to find if they have a drag-and-drop music sheet like mine, but couldn't find it. If there's something out there that does have a drag-and-drop music sheet, I'd be very interested in looking at it to see what choices they've made in their user interface.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.