[JW Lua] IsPartOfTuplet-bug on Voice2

Jan Angermüller jan at angermueller.com
Mon Jan 22 13:23:44 CET 2018


Jari,

FCNoteEntry:IsPartOfTuplet seems to have a bug when two voices are involved.
The rests in the attached example (Fin2012 file) are on Voice 2 and each 
is connected to their eighth note above - so they are independent Voice 
2 lines.
When I call IsPartOfTuplet(), it returns true on the first 8th rest, but 
not on the second 8th rest (script below).



And do you have any news on further updates of JW Lua?

Best,
Jan

Test code:
for e in eachentry(finenv.Region()) do
     print(e.MeasurePos,e.Voice2,e:IsPartOfTuplet())
end

Running [Unnamed Script] ======>
0 false true
341 false true
341 true true
683 false true
683 true false
1024 false false
2048 false false
<======= [Unnamed Script] succeeded (Processing time: 0.000 s).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20180122/b40c1cce/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hpffikcbfhafooam.jpg
Type: image/jpeg
Size: 6022 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20180122/b40c1cce/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ispartoftupletbug.mus
Type: application/octet-stream
Size: 20977 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20180122/b40c1cce/attachment-0001.obj>


More information about the JWLua mailing list