[JW Lua] FCChorusSyllables sample code

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Mon Sep 28 18:49:25 CEST 2015


Jan,

Thanks for the bug report! I'll fix both the template and documentation 
error for the upcoming update.


Best regards,

Jari Williamsson


On 2015-09-25 16:47, Jan Angermüller wrote:
> 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
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>






More information about the JWLua mailing list