[jmsl] Track.getInsertionIndex() ?
jmsl at music.columbia.edu
jmsl at music.columbia.edu
Mon Dec 1 16:58:57 EST 2008
Hi Nick,
I haven't actually gotten to the adding of notes. I'm figuring I'll
use insertNote(Note note), as I'm already updating the insertion index
when I place the ScoreCanvas's cursor to the left of the desired note,
and I think both of those work fine as you described.
The reason for getting the insertionIndex for the track is in
navigational cases (e.g. nextNote, nextMeasure, nextStaff, nextTrack,
previous, etc.) where some other command has just been executed, there
is nothing selected in the score, and the cursor is not (visibly)
placed. It that case it's unclear where the cursor is/will be, and I
was thinking that the "current" position for the cursor could be the
currentMeasure, currentStaff, and the last insertionIndex for the
active track.
thanks,
Peter McCulloch
More information about the jmsl
mailing list