Vexflow: Drum notation: glyphs inherit from keys above

Created on 2 Apr 2020  路  3Comments  路  Source: 0xfe/vexflow

When I set the bassdrum (f/4) or snare (c/5) the glyphs are inherit from the keys above.

          let notes = [
            new VF.StaveNote({ keys: ['f/4', 'g/5/x3'], duration: '8' }),
            new VF.StaveNote({ keys: ['f/5/x2'], duration: '8' }),
            new VF.StaveNote({ keys: ['c/5', 'f/5/x2'], duration: '8' }),
            new VF.StaveNote({ keys: ['f/5/x2'], duration: '16' }),
            new VF.StaveNote({ keys: ['f/4'], duration: '16' }),
            new VF.StaveNote({ keys: ['f/4', 'f/5/x2'], duration: '8' }),
            new VF.StaveNote({ keys: ['f/4', 'f/5/x2'], duration: '8' }),
            new VF.StaveNote({ keys: ['c/5', 'f/5/x2'], duration: '8' }),
            new VF.StaveNote({ keys: ['f/5/x2'], duration: '8' }),
          ];

Screenshot from 2020-04-02 20-22-06

I've found a workaround to set the glyphs explicit to /n, but don't think this should be normal behaviour.

let notes = [
            new VF.StaveNote({ keys: ['f/4/n', 'g/5/x3'], duration: '8' }),
            new VF.StaveNote({ keys: ['f/5/x2'], duration: '8' }),
            new VF.StaveNote({ keys: ['c/5/n', 'f/5/x2'], duration: '8' }),
            new VF.StaveNote({ keys: ['f/5/x2'], duration: '16' }),
            new VF.StaveNote({ keys: ['f/4/n'], duration: '16' }),
            new VF.StaveNote({ keys: ['f/4/n', 'f/5/x2'], duration: '8' }),
            new VF.StaveNote({ keys: ['f/4/n', 'f/5/x2'], duration: '8' }),
            new VF.StaveNote({ keys: ['c/5/n', 'f/5/x2'], duration: '8' }),
            new VF.StaveNote({ keys: ['f/5/x2'], duration: '8' }),
          ];

Screenshot from 2020-04-02 20-22-34

Most helpful comment

Woops, pushed.

All 3 comments

This is fixed.

Thanks again @0xfe

https://www.npmjs.com/package/vexflow the latest release 1.2.93 is not on the npm registery jet.

Woops, pushed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

erquiaga picture erquiaga  路  7Comments

amitgur picture amitgur  路  4Comments

CrystalShardz picture CrystalShardz  路  4Comments

Silverwolf90 picture Silverwolf90  路  4Comments

PCrompton picture PCrompton  路  3Comments