[JW Lua] FCCellMetrics:BottomPos/TopPos on staves with only one staff line

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Mon Aug 11 19:46:18 CEST 2014


Jan,

You're right. There is actually one more metrics value (currently 
non-implemented in JW Lua) that supposedly is giving the actual staff 
line and not the reference line. I need to rename and restructure these 
metrics for the next beta. Thanks!

Best regards,

Jari Williamsson


On 2014-08-11 18:28, Jan Angermüller wrote:
> Jari,
>
> what's the content of FCCellMetrics.BottomPos/TopPos on
> staves with just one line compared to staves with 5 lines ?
>
> When comparing between "standard 5 line"-notation
> and "1-line with full barline" I get the same TopPos,
> but different BottomPos (the 1-line BottomPos seems
> to be the middle line pos from the 5 line notation).
>
> This is not what I would expect:
> It's not quite clear to me, if TopPos/BottomPos refers to the
> actual staff lines OR to the staff metrics itself including it's
> top/bottom extensions with, for example, full barlines.
> So:
>
> In the first case, if TopPos/BottomPos were the actual positions of the
> staff lines
> I would expect to get TopPos==BottomPos in a 1-line situation,
> where TopPos[1 Line] == TopPos[5 Line] - (TopPos[5 Line] - BottomPos[5
> Line])*0.5  (i.e. the middle line)
>
> In the second case, if TopPos/BottomPos were the max top/bottom position
> of the staff
> (incl. barline heights), I would expect to have the same
> TopPos/BottomPos results
> in a "1-Line full bar" and in a "5 line standard" as the barline height
> results
> in the same overall height span.
>
> So the current results seem strange to me.
> What do you think ?
>
> Have a nice day,
> Jan
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>






More information about the JWLua mailing list