[JW Lua] FCNoteEntry:MakeRest() resets FCNoteEntry.NoteDetailFlag ... revisited
Jan Angermüller
jan at angermueller.com
Sat Nov 25 23:45:09 CET 2017
Jari,
I just noticed that calling FCNoteEntry:MakeRest() also resets the
FCNoteEntry.ArticulationFlag.
Workaround is the same as for NoteDetailFlag (see original mail below):
first store flag temporarily, then restore.
local tempartflag=noteentry.ArticulationFlag--temporarily save the
original flag
noteentry:MakeRest()
noteentry.ArticulationFlag=tempartflag--restore original flag
Best,
Jan
Am 27.12.2016 um 18:00 schrieb Jan Angermüller:
> Jari,
>
> calling FCNoteEntry:MakeRest() resets the FCNoteEntry.NoteDetailFlag.
>
> The NoteDetailFlag is for example set if the note/rest was changed in
> size.
> Calling MakeRest() makes the rest use the original size again by
> unchecking the flag.
> But the changed size is still stored "somewhere in background", so the
> following workaround seems to fix the problem - though I am not sure
> if it is really safe and doesn't mess up the document:
>
> local tempnotedetailflag=noteentry.NoteDetailFlag --temporarily save
> the original flag
> noteentry:MakeRest()
> noteentry.NoteDetailFlag=tempnotedetailflag --restore original flag
>
> Best,
> Jan
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20171125/5f512d49/attachment.htm>
More information about the JWLua
mailing list