1
User Tools / Re: Colouring Tools
Code: (Lua) [Select · Download]-- rg_ColorNotesMIDI.Lua ver 1.0 User Tool <http://nwsw.net/-f9310>
local map = {[0] = 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0}
local playContext = nwcPlayContext.new()
for item in nwcut.items() do
for notepos in item:AllNotePositions() do
notepos.Color = map[playContext:GetNoteMidiPitch(notepos) % 12]
end
playContext:put(item)
nwcut.writeline(item)
endCode: (nwc) [Select · Download]!NoteWorthyComposerClip(2.75,Single)
|Clef|Type:Treble
|Key|Signature:F#,C#|Tonic:D
|TimeSig|Signature:4/4
|Chord|Dur:4th|Pos:-3,1
|Chord|Dur:4th|Pos:-5,-3,1,2
|Chord|Dur:4th|Pos:-5,#-2,1,2
|Note|Dur:4th|Pos:-2
!NoteWorthyComposerClip-End
It worked. Thank you very much!