[JW Lua] Calculate exact horizontal note position (in EPV/cm)

Bart Visser bartvisser at me.com
Tue Sep 9 21:48:22 CEST 2014


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



More information about the JWLua mailing list