[JW Lua] Calculate exact horizontal note position (in EPV/cm)
Bart Visser
bartvisser at me.com
Wed Sep 10 10:51:53 CEST 2014
Hi Jan,
Thanks for pointing me to this one. I think I the FCEntryMetrics.StemLeftPosition-property is the one I was looking for. I'll keep on juggling :-)
Thanks,
Bart
Op 9 sep. 2014, om 22:01 heeft Jan Angermüller <jan at angermueller.com> het volgende geschreven:
> 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
>>
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
More information about the JWLua
mailing list