[JW Lua] Staff-stuff (create, transposition, name)
Bart Visser
bartvisser at me.com
Sat May 10 21:36:21 CEST 2014
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
More information about the JWLua
mailing list