[JW Lua] Setting Independent Key Sig to true still not working ?

Jan Angermüller jan at angermueller.com
Thu Mar 3 16:25:05 CET 2016


Jari,

there have been some mails and updates to JW Lua about independent key 
signatures in the last year, but the basic bug from more than one year 
ago (see mail, code snippet and video below) seems to still exist: it's 
not possible to change a staff to "IndependentKeySig=true".
Although Independent Elements->Key Sigs in the Staff dialog is checked 
after running the script, the staff doesn't behave as "independent". 
Every key change - manually in the dialog or through JW lua - is always 
applied to the full score.

It would great if you could have a look at it again for the next beta. 
Probably it's only a flag that's missing somewhere.

Best,
Jan

Am 29.01.2015 um 16:18 schrieb Jan Angermüller:
> Jari,
>
> if I create a new staff with JW Lua and set IndependentKeySig=true,
> then the created staff will have the option "Independent Elements -> 
> Key Signature" selected,
> BUT when I change the key in some measures on this staff it will 
> affect the whole score,
> not this staff only as it should.
> If I de-select the option in the staff settings, click on ok, go back 
> to the staff settings and re-select it,
> it will then work fine, if I change the key signature somewhere on 
> that staff.
>
> It seems to me that although the option "Independent Elements -> Key 
> Signature" is visually selected in the staff settings after running 
> the script, there must be a second flag beside 
> FCStaff.IndependentKeySig that needs to be set for the independent key 
> signature to work. I tested it with Finale 2014d / Windows 7 / JW Lua 
> v0.29.
>
> Below is the code to create the independent key signature staff.
> Here is also a screencam video to demonstrate the above behaviour:
> http://youtu.be/R3yCVG3Jc_U
>
> All the best,
> Jan
>
>
>   local staffID = finale.FCStaves.Append()
>   if staffID then
>     local staff=finale.FCStaff()
>     staff:Load(staffID)
>     staff.IndependentKeySig=true
>     staff:Save()
>   end
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>





More information about the JWLua mailing list