[JW Lua] FCNote:GetString() doesn't return the written note chromatic transposition
jwlua at motetmusic.com
jwlua at motetmusic.com
Mon Mar 30 21:52:35 CEST 2015
With chromatic transposition, FCNote:GetString() doesn't return the
written note. In the attached, all notes sound G4 and play back
correctly. GetString() reports the proper _written_ note in staves 1, 2,
and 4, but staves 3 and 5, which are set to chromatic transposition, are
misreported. For staff 3, which is in chromatic Bb (up M. 2nd),
GetString() returns the concert pitch of G4 instead of the written pitch
A4. For staff 5, which is in chromatic F (up P. 5), GetString() returns
G5 instead of the written pitch of D5. Select all before running the
attached Lua script.
I have noticed what is probably a related problem with JW Accidental and
chromatic transposions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20150330/32f70c97/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getstring.mus
Type: application/octet-stream
Size: 37980 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20150330/32f70c97/attachment.obj>
-------------- next part --------------
for e in eachentrysaved(finenv.Region()) do
if e:IsNote() then
for note in each(e) do
local str = finale.FCString()
note:GetString(str, nil, false, true)
print(str.LuaString)
end
end
end
More information about the JWLua
mailing list