Re: How do I make a script to effect only certain notes?
G'day Purdue
In handbell music, there are generally far more "chords" (and "rest-chords") than "notes". While globalmod can change the color of isolated notes, it cannot possibly change the color of individiual notes within chords (and rest-chords). The only attributes that NWC stores on a per-note basis within a chord are: accidental, pos (staff line), notehead, and tie.
Chords could ONLY be handled by layering - NWC in incapable of colouring individual notes within a chord.
Another problem with globalmod is that it will mark all C's (for example), even though some may be sharped or flatted (which are different bells).
I beg to differ - the POS's are different (C, C#, Cb, Cnat, Cbb and Cx) :
!NoteWorthyComposerClip(2.0,Single)
|Note|Dur:4th|Pos:-6
|Note|Dur:4th|Pos:#-6
|Note|Dur:4th|Pos:b-6
|Note|Dur:4th|Pos:n-6
|Note|Dur:4th|Pos:v-6
|Note|Dur:4th|Pos:x-6
!NoteWorthyComposerClip-End
In handbells, we don't care about the staff position, we just care about the final pitch. A person with the "C#/Db" bell will want any B##, C#, or Db highlighted, even though these are all different positions in the staff (and yes, with key changes you may have to play that bell for two different staff positions).
My scripts all use the new getNoteMidiPitch interface, to ensure they give all notes for a particular bell, and no others.
This would require multiple applications of Global Mod, but it is not impossible - the new getNoteMidiPitch interface is not in the current release version of the starter kit, only the beta version.
The original problem was for children, how complex is that music likely to be?