[jmsl] UserBeans for Track?
jmsl at music.columbia.edu
jmsl at music.columbia.edu
Sat Sep 27 15:25:25 EDT 2008
Hi Peter
I've added userbeans to Track.
You (and anyone else interested) can grab a prerelease at
http://www.algomusic.com/prerelease/
A summary of changes since the last official release is listed below (I
see you've all over these recent changes!)
Thanks
Nick
06/14/08 ScoreEditPanel now offers x, bb, 1/4#, 1/4b menu items.
Also, entering C or F with b selected spells pitch enharmonically now.
Entering E or B with # selected spells pitch enharmonically
now. Changes were made in NoteFactory. Thanks Peter McCullough
06/22/08 The following Score fields and their getters and setters,
were changed from static to local. Thanks Peter McCullough
showInstrumentNames
showTempo
showStaffNumbers
showMeasureNumbers
showSectionBrackets
showTimeSignatures
showClefs
06/29/08 Removed static Staff.set/getActiveTrackindex(). When using
GUI like ScoreFrame, active track is determined by EditManager
by get()ting its value from ScoreEditPanel. When you are
using API, use score.set/getActiveTrackNumber(), like in
jmsltestsuite.TwoTracksPerStaff
for example. This way multiple score editors can maintain
their own active track instead of setting one global static Staff field.
Note that ScoreCanvasAdapter no longer reacts to
EditStateChanged (it used to set Staff.activetrackindex). For Peter
McCullough; glad
to clean this up. Note that selecting the track in
ScoreEditPanel does NOT change the score's active track index! It simply
provides the
track index for operations managed by EditManager (ie UI
interactions)
07/12/08 BUG FIX: If a Note's UserBean cannot be instantiated when
Score is loaded (for example if the userbean class is not in the
classpath),
noteXMLLoader mistakenly added NULL to Note's user beans,
which resulted in not being able to save score any more (null pointer
exception killed the save).
Note NoteXMLLoader does not add NULL to user beans, which is
correct behavior.
IMPORTANT: saving this score will result in a score stripped
of the references to thge original user beans so be careful.
Scenario: user creates UserBeanX on one machine, creates a
score with it and saves the score. This score contains references
to UserBeanX class. Now load the score on a different
machine without UserBeanX on it, and none of these beans will load.
Save the score on this machine and there will be no
references to UserBeanX any more.
07/12/08 Feature: new NoteOrnament abstract class. Define your own
drawing ornament for a note. Add it to a note with addUserBean.
Saves and loads back with the score. NoteOrnaments are
scanned and loaded as plug-ins. Show up in Note menu of ScoreFrame.
Wrapped in notePropertiesTransform so they are un/redoable.
See jmsltestsuite.NoteOrnamentTest and
jmsltestsuite.DrippyNoteOrnament and jmsltestsuite.SquigglyNoteOrnament
To test plug-ins, compile Drippy and Squiggly and copy their
.class files to a "jmsltestsuite" subdirectory of jmsl_plugins
09/06/08 Score.setScorePainter() is now a public method (for Peter
McCullough). Warning this will probably disappear soon.
09/27/08 Track has user beans now, thanks Peter McCullough
jmsl at music.columbia.edu wrote:
> Revisiting my database code recently, and I noticed that there isn't a
> get/setUserBeans() method for track. Is there a particular reason for
> this, and is it possible to add this for Track?
>
> thanks,
> Peter McCulloch
> _______________________________________________
> jmsl mailing list
> jmsl at music.columbia.edu
> http://music.columbia.edu/mailman/listinfo/jmsl
More information about the jmsl
mailing list