[JW Lua] Create a note in an empty bar

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Mon Oct 28 15:37:24 CET 2013


On 2013-10-28 15:07, Dave Foster wrote:

> Could you do me a favour and post a sample script showing how to
> create a note in an empty bar - I'm going in circles here trying
> to figure out cells, FCNoteEntryCells and what to load / save etc.!


-- cell: measure 1, staff id 1
notecell = finale.FCNoteEntryCell(1, 1)
notecell:Load()
-- Append to layer 1, add 1 entry
entry = notecell:AppendEntriesInLayer(1, 1)
entry.Duration = finale.QUARTER_NOTE
entry.Legality = true   -- Must be set
entry:MakeNote()
notecell:Save()


Best regards,

Jari Williamsson





More information about the JWLua mailing list