[JW Lua] Sample script

Chris marcel.denio at gmail.com
Sat Jun 21 08:19:32 CEST 2014


Hello Charles

This is an interesting script, but sometimes Finale crash after executed.
I think it's because you delete an item in the collection that browsing.

for note in each(noteentry) do
    if DEBUG1 then print 
("Pitch",note:CalcPitchChar(),note:CalcMIDIKey()) end
    if note:CalcMIDIKey() == MIDINote then
         noteentry:DeleteNote(note)
         delCount = delCount+1
    end
end

Otherwise I tried MarkForErase but it does not work

Best regards

Chris




More information about the JWLua mailing list