[jmsl] Rest toggle - cool!

jmsl at music.columbia.edu jmsl at music.columbia.edu
Thu Mar 19 01:57:08 EDT 2009


Hi Nick,

I was poking around with the newish release of JMSL and discovered the  
RestToggleTransform.  It works great (on chords too!), but I'm unclear  
as to how it's working.

 From what I can tell, the pitch data is being changed, but how is the  
old pitch data being stored?  Even if I go off and transform some  
other notes, I can still come back and switch around the old notes.

The notes don't have a userBean added to them, and the dns changes the  
pitch data to 0. to make rests.  Making changes to the note, such as  
changing duration or inserting notes in front of it (or adding  
intervals) doesn't prevent it from working.

The only thing that makes it forget its pitch is if you change a note  
to a rest, copy the rest, and paste it.  Then the rest is restored as  
middle C (as would happen with notes that were initially entered as  
rests).

In any case, I was just curious how you did this and wondering if I  
was missing something obvious.  It's definitely a great addition to  
the JMSL toolkit!

thanks,
Peter McCulloch


More information about the jmsl mailing list