[JW Lua] Create a note in an empty bar

Charles O. Lawrence charlesolawrence at bellsouth.net
Tue Oct 29 15:02:24 CET 2013


Jari

I know you are busy with 2014 testing, but,

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?

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

[EDIT] How do you specify on which beat to place the note?

How can you enter a chord?

Anxiously awaiting for the release of 2014,
Charles




-----Original Message-----
From: JWLua [mailto:jwlua-bounces at jwmusic.nu] On Behalf Of Jari Williamsson
Sent: Monday, October 28, 2013 10:37 AM
To: The JW Lua script plug-in.
Subject: Re: [JW Lua] Create a note in an empty bar

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


_______________________________________________
JWLua mailing list
JWLua at jwmusic.nu
http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu





More information about the JWLua mailing list