[JW Lua] Fundamental question: How to retrieve entry be ENTNUM

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Tue Sep 22 09:12:48 CEST 2015


Thomas,

I just forgot to hook up __FCNoteEntryCollection::FindENTNUM() to JW 
Lua. I've fixed that now, and I'm aiming to get a new JW Lua beta out 
this week.


Best regards,

Jari Williamsson


On 2015-09-01 12:43, Thomas Weber wrote:
> Dear experts,
>
> my first attempt at retrieving a NoteEntry of which I know the ENTNUM (as well as measure and staff) was as follows:
>
>
>      local cellEntries = finale.FCNoteEntryCell(measure, staff)
>      cellEntries:Load()
>      local entry = cellEntries:FindENTNUM(entnum)
>
>
> However, the FindENTNUM member doesn't seem to be exposed to Lua.  I searched the PDK documentation for anything else that would give me an FCNoteEntry from an ENTNUM but didn't see anything.
>
> My alternative is:
>
>
>      local cellEntries = finale.FCNoteEntryCell(measure, staff)
>      cellEntries:Load()
>      local entry
>      for e in each(cellEntries) do
>          if e.ENTNUM == entnum then
>              entry = e
>              break
>          end
>      end
>
>
> This works, but I feel there must be a more proper way of doing it that I'm missing.  Can anybody enlighten me?
>
> Viele Grüße
> Thomas Weber
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>






More information about the JWLua mailing list