[JW Lua] Lyric-syllables

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Sat Aug 9 18:38:51 CEST 2014


Bart,

Let me know if Jan's reply didn't solve it for you.


Best regards,

Jari Williamsson


On 2014-08-07 22:00, Bart Visser wrote:
> Hi,
>
> I'm able to load the syllables of the first verse/chorus/section, but not of the second, third, etc.
>
> This works as expected:
>
> local region = finenv.Region()
> for noteentry in eachentry(region) do
>      local vs = finale.FCVerseSyllable()
>      vs:SetNoteEntry(noteentry)
>      if vs:LoadFirst() then
> 	the_text = finale.FCString()
> 	vs:GetRawText(the_text)
> 	print(vs:GetItemInci())
>      end
> end
>
> This returns an error (attempt to call method 'Load' (a nil value)):
>
> local region = finenv.Region()
> for noteentry in eachentry(region) do
>      local vs = finale.FCVerseSyllable()
>      vs:SetNoteEntry(noteentry)
>      if vs:Load(1) then
> 	the_text = finale.FCString()
> 	vs:GetRawText(the_text)
> 	print(vs:GetItemInci())
>      end
> end
>
> Is there something I'm overlooking?
>
> A related question: is there a method/property that tells me the verse/chorus/section number of the syllable? There is a IsVerse() method, but I'm looking for something that tells me which verse I'm dealing with (Chorus 1, Verse 2, etc.).
>
> Thanks,
>
>
> Bart Visser
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>






More information about the JWLua mailing list