[JW Lua] FCTimeSignature

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Sun Aug 3 18:22:38 CEST 2014


Bart,

FCTimeSignature is hooked up in JW Lua.

Please note that the time signature (in your case) is a sub-object of 
FCMeasure. Use the FCMeasure.TimeSignature property to get the 
FCTimeSignature object for the measure. The changes to that time 
signature object will save when the FCMeasure object is saved.

The following code example would change the time signature in the first 
measure to a "2" as the top number in the time signature:

--
local m = finale.FCMeasure()
m:Load(1)
m.TimeSignature.Beats = 2
m:Save()
--

Best regards,

Jari Williamsson


On 2014-08-03 16:56, Bart Visser wrote:
> Hi,
>
> I'm trying to build a smarter version of the split measure plug-in. In the version included with Finale 2014 you have to manually input the beat where you want to split the measure. I'm trying to build the following:
>
> After you've selected a part of the measure, the script calculates the number of beats that have to move and applies the following changes:
>
> 1. Create a new measure after the current one
> 2. Move all entries (notes, chords, Lyric-syllables, etc.) to the new measure
> 3. Set the time signature of the current measure to the number of beats that are left in the measure while keeping the time signature for display the one of the surrounding measures.
> 4. Set the time signature of the new measure to the number of beats that are in the measure and setting the time signature for display to the one of surrounding measures.
>
> For this to work I need to be able to create new time signatures. Is this already possible in JW Lua? Or is FCTimeSignature not yet hooked up?
>
> 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