[JW Lua] Calculate exact horizontal note position (in EPV/cm)
Jan Angermüller
jan at angermueller.com
Tue Sep 9 22:01:13 CEST 2014
Hi Bart,
have you looked into FCEntryMetrics ? That may help you.
FCCellMetrics only handles the measure metrics,
note entry metrics are handled by FCEntryMetrics.
Jan
Am 09.09.2014 21:48, schrieb Bart Visser:
> Hi Jari,
>
> For a project I'm working on, I need to align every first note of a system. If a measure contains rests before the note, they need to be moved so the first note can be exactly aligned with the other notes/systems.
>
> I've been juggling a little with the FCCellMetrics-class to figure out the exact (horizontal) position of a note/rest. By reading the FCCellMetrics.MusicStartPos-property, I can figure out the exact position of the first note-entry of a measure (which might be a rest). But I haven't been able to figure out the exact positions of the other note-entries of a measure.
>
> Would you have the time to give a very short example on how to get those values (matching NoteEntry-postions with FCCellMetrics-values)?
>
> I than can adjust the FCNoteEntry.ManualPos-properties to align the first note (not rest) of every system.
>
> Thanks for your help.
>
>
> Bart Visser
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
More information about the JWLua
mailing list