[JW Lua] Sample script

Charles O. Lawrence charlesolawrence at bellsouth.net
Fri Jun 27 16:40:14 CEST 2014


Fellow scripters,

 

I have revised and enhanced my script to delete notes from a chord.  In fact
you can set it to delete notes even if they are not in a chord, and/or in
voice2, and/or hidden.  You can also choose which layers to delete from and
what MIDI octave (0-8) or any MIDI octave, the note, and the accidental.
Enharmonic spellings are not considered equivalent for the purpose of this
script.

 

I do not profess to be an efficient Lua programmer, so the algorithm may be
able to be improved.  Please advise if you think so.  Since at present,
there is not a step-wise debugger that I know of, it was very difficult and
frustrating to debug the code.  It took a long time, but I believe it to
accurate in performing its deletion tasks.

 

I found the following issues when developing this script.

*  Printing a "\n" in the Execution Output area does not work.

*  There is no horizontal scroll capability in the Execution Output area.

*  The UI does not display the proper headings for anything but Booleans.
See the attached image.

 

And where is Jari?!?!  Does anybody know?  He has not responded to this list
since 5/1/2014, almost 2 months now.  Clearly something is going on, and I
trust everything is OK with him and his.

 

Charles

 

 

 

From: JWLua [mailto:jwlua-bounces at jwmusic.nu] On Behalf Of Charles O.
Lawrence
Sent: Monday, June 16, 2014 3:24 PM
To: JWLua at jwmusic.nu
Subject: [JW Lua] Sample script

 

Fellow JWLua scripters,

 

There was a request on the MakeMusic Finale forum for a script that will
delete specific note(s) from a chord.  I put together the attached script
that will do the job.  What do you think?

 

Charles

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20140627/eac5be2e/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: delchordnote2.lua
Type: application/octet-stream
Size: 11332 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20140627/eac5be2e/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: UI.png
Type: image/png
Size: 28523 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20140627/eac5be2e/attachment.png>


More information about the JWLua mailing list