[JW Lua] Staff-stuff (create, transposition, name)
Jari Williamsson
jari.williamsson at mailbox.swipnet.se
Thu Jul 3 22:25:12 CEST 2014
Bart,
Yes, this doesn't work correctly. The idea is to set the transposition
type prior to the transposition intervals, but there seems to be a
missing property for key transposition here. I'll look into this and
make sure it works properly in the next beta!
Can you please check that the script works correctly apart from that
setting? Test to set staff to another key transposition and run the
script to set your preferred transposition.
Best regards,
Jari Williamsson
On 2014-05-10 21:36, Bart Visser wrote:
> Hi Jari,
>
> Op 25 apr. 2014, om 13:26 heeft Jari Williamsson <jari.williamsson at mailbox.swipnet.se> het volgende geschreven:
>
>> The methods SetTransposeAlteration() and SetTransposeInterval() are also implemented in the next build. Would that cover what you need?
>
> Thanks for adding the methods for getting en setting the transpose interval and alteration. Somehow I'm not able to set those values. Getting them works fine. So:
>
> This does work:
>
> local staff = finale.FCStaff()
> if staff:Load(1) then
> local interval = staff:GetTransposeInterval()
> local alteration = staff:GetTransposeAlteration()
> print(interval)
> print(alteration)
> end
>
>
>
> This doesn't:
>
> -- Process single item:
> local staff = finale.FCStaff()
> if staff:Load(1) then
> staff:SetTransposeInterval(-3)
> staff:SetTransposeAlteration(2)
> staff:Save()
> end
>
> local staff = finale.FCStaff()
> if staff:Load(1) then
> staff.TransposeInterval = -3
> staff.TransposeAlteration = 2
> staff:Save()
> end
>
> Is there something I'm overlooking?
> Thanks,
>
>
> Bart
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>
More information about the JWLua
mailing list