Vexflow: bad dots position (Y) for rest note

Created on 29 Mar 2018  路  6Comments  路  Source: 0xfe/vexflow

pls refer to the following test:

https://jsfiddle.net/47mxtjsf/

vexflow dot line for rest note is differenct from {finale, museScore}:
image

b346a917125ab4b57bd5eaa28e3dd8de07818fbe fix #288 but ignore
Vex.Flow.durationToGlyph.duration_codes[*].type.r.dot_shiftY (https://github.com/0xfe/vexflow/blob/e107adf1b7c4512b4ec73d46b0e607332b5535b8/src/tables.js#L744) values(applied to Dot at https://github.com/0xfe/vexflow/blob/58aafbf34c6a63908e82692302ad2c2ea2a00b57/src/stavenote.js#L810)

bug

All 6 comments

Thanks -- I think this is a straightforward fix, but will look into it when I get a chance.

The Finale behavior may be a font issue; in my version of F25 the dot is perfectly centered, which is I believe the right behavior.

@mscuthbert san
agree with you. my environment is {Kousaku, finale25, windows10}.

I think the problem is as follows :

  • with this display pitch:

    • vexflow: dot is on a staff line: NG

    • finale, museScore: dot is between staff lines: OK

I've tracked the problem down to the format method in Dot.js, where regardless of what dot_shiftY had been set to, it is overwritten: https://github.com/0xfe/vexflow/blob/d8763b9cb030c94208cd45a38b878d4efc6e40e1/src/dot.js#L75

@0xfe do you still want to take this one, or should I go after it? (It'll take me a bit to dig into what the code around this is doing...)

@gristow Thanks for tracking it down. I'm unfortunately too swamped to look at it right now, however will eventually get to it if no one else does first.

No worries, @0xfe. It turned out to be a one character fix.

Was this page helpful?
0 / 5 - 0 ratings