[JW Lua] Hairpins
Robert Patterson
robert at robertgpatterson.com
Fri Dec 25 16:12:38 CET 2020
The endpoints used for FCSmartShapeSegment:EndpointOffsetX are EVPUs.
(Graphical units, not metric units.) However, you may be running into
issues with horizontal stretching due to the spacing. A safer approach
would probably be to update the MeasurePos to be the full duration of the
measure, *then* apply the EVPU offset.
On Fri, Dec 25, 2020 at 5:48 AM Martin Marris <mmarris at notecraft.com> wrote:
> Just a quick note that I've disabled the hairpin code for the moment.
>
> I had forgotten the obvious point that the units used for the offsets are
> duration units, not absolute units. What this means is that a brute-force
> approach that subtracts a fixed number of units from the Y offset of the
> end-point will yield a horizontal shift that depends on the time signature.
> I was just working on a piece that is in 3/8 and it was pulling back the
> endpoint far too much. (The original code was only tested on a piece that
> was in 4/4.)
>
> So the offset needs to be calculated contextually, depending on the time
> signature, which should be easy to implement. Unless one of you thinks my
> reasoning is off-base.
>
> Merry Christmas.
>
> Martin
>
>
>
> _______________________________________________
> 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/20201225/4bdfba62/attachment.htm>
More information about the JWLua
mailing list