[JW Lua] Create a note in an empty bar

Dave Foster fozder at me.com
Fri Nov 1 10:50:12 CET 2013


Hi Jari,

Thanks for this - simple, of course, when you know how! In due course, I think it would be useful to us developers if you were able put a few more simple tasks like this on your "QuickScripts" page, which are extremely useful in finding your feet in the language!

Cheers,

Dave

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20131101/5afc15e0/attachment-0002.html>


More information about the JWLua mailing list