[JW Lua] FCChorusSyllables sample code

Jan Angermüller jan at angermueller.com
Fri Sep 25 16:47:59 CEST 2015


Hi Jari,

I noticed that the class browser probably holds a wrong sample code 2 
for FCChorusSyllables (same for Verse and Section):

This is the current code:
for noteentry in eachentry(finenv.Region()) do
     local chorussyllables = finale.FCChorusSyllables()
     chorussyllables:LoadAll()
     for cs in each(chorussyllables) do
         -- Do something with 'cs' (of the 'FCChorusSyllable' class) here
     end
end

But the initialization requires an FCNoteEntry, so probably it was meant 
to be:

for noteentry in eachentry(finenv.Region()) do
     local chorussyllables = finale.FCChorusSyllables(*noteentry*)
     chorussyllables:LoadAll()
     for cs in each(chorussyllables) do
         -- Do something with 'cs' (of the 'FCChorusSyllable' class) here
     end
end

BTW, FCChorusSyllables (and Verse/Section) are not yet available in the 
online documentation, but seem to already work fine in JW Lua.

Best,
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20150925/e831cafc/attachment-0002.html>


More information about the JWLua mailing list