Attach Objects To Next Note.nw
A support incident with the TremoloSingle.ms object type led to the attached user tool. This user tool can be run in Clip or File Text modes. When run in file mode, it returns file text.
This tool attaches all instances of the designated user object type to the target note that follows it, skipping any rests or bar lines that separate the object from its target note. This has been designed to work with TremoloSingle.ms objects, but would work for other objects that specifically target notes, and not rests or bar lines.
In version 2.75a, you can install this tool directly from Tools, User Tools, Download by entering its name at the prompt:
Attach Objects To Next Note.nw
Example
Given this input:
!NoteWorthyComposerClip(2.75,Single)
|User|TremoloSingle.ms|Pos:-3.5|Beams:2|Offset:0|Play:Y
|Rest|Dur:4th
|User|TremoloSingle.ms|Pos:-3.5|Beams:2|Offset:0|Play:Y
|Bar
|Rest|Dur:4th
|Note|Dur:4th|Pos:3
!NoteWorthyComposerClip-End
the tool will produce this result:
!NoteWorthyComposerClip(2.75,Single)
|Rest|Dur:4th
|Bar
|Rest|Dur:4th
|User|TremoloSingle.ms|Pos:-3.5|Beams:2|Offset:0|Play:Y
|Note|Dur:4th|Pos:3
!NoteWorthyComposerClip-End