[JW Lua] FCNoteEntry:IsPartOfTuplet/IsStartOfTuplet hangs

Jan Angermüller jan at angermueller.com
Thu Jan 23 15:43:26 CET 2014


Charles,

are you on Mac ?
On Windows 7 the task manager can kill the Finale process,
rebooting is not required. But restarting Finale is of course.

Jan

Am 23.01.2014 15:40, schrieb Charles O. Lawrence:
> Jan,
>
> FYI, I already reported the infinite loop issue and having to restart Finale
> to get out of it.  Usually Task Manager is not able to stop the process, so
> a reboot is necessary.
>
> I have coded up a few infinite loops unintentionally myself!
>
> Your code sample actually crashed my Finale 2014a twice in a row, so I
> couldn't test it.  Don't know why!
>
> Charles
>
> -----Original Message-----
> From: JWLua [mailto:jwlua-bounces at jwmusic.nu] On Behalf Of Jan Angermüller
> Sent: Thursday, January 23, 2014 7:05 AM
> To: The JW Lua script plug-in.
> Subject: [JW Lua] FCNoteEntry:IsPartOfTuplet/IsStartOfTuplet hangs
>
> Hi Jari,
>
> FCNoteEntry:IsPartOfTuplet and FCNoteEntry:IsStartOfTuplet seem to lead to
> an infinite loop. This is the code:
>
> local region = finale.FCMusicRegion()
> region:SetCurrentSelection()
> for e in eachentrysaved(region) do
>       print("IsDotted:", e:IsDotted())
>       print("IsStartOfTuplet:", e:IsStartOfTuplet())
>       print("IsPartOfTuplet:", e:IsPartOfTuplet()) end
>
> It displays "IsDotted: false" (or true if it's dotted), and then it hangs
> (version 0.15).
>
> And as a "very low priority nice-to-have" feature:
> infinite loops can't be interrupted - like probably in this case, but I also
> produced some of my own...  Finale hangs and needs to be restarted in these
> cases. Would be great to have the possibility to interrupt the plugin in
> these cases ("Press Esc to cancel").
>
> Best,
> Jan
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>





More information about the JWLua mailing list