[JW Lua] Create a note in an empty bar

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Tue Oct 29 14:52:07 CET 2013


On 2013-10-29 14:24, Charles O. Lawrence wrote:

> this procedure seems to append a middle C to the end of the cell.  If
> repeated more than the number of beats in the measure, the appended notes
> overfill the measure even if check for extra notes is on.  Can overfilling
> be avoided?

The check for overfill options are Finale UI things for specific tools 
only. You can use FCNoteEntryCell:CalcLayerDuration() and verify it 
against FCCell:CalcDuration().

> How do you specify an actual pitch of the note other than middle C?

By accessing a FCNote object in the entry. There's a Wiki example for 
single note pitch that you could look at (for setting the note with a 
string):
http://jwmusic.nu/jwplugins/wiki/doku.php?id=jwlua:quickscripts#single_pitch

> How can you enter a chord?

By adding new notes (FCNoteEntry:AddNewNote() should work) and browsing 
the FCNote objects.


Best regards,

Jari Williamsson






More information about the JWLua mailing list