Skip to content

meter does not support numbers > 9 #31

@nichtich

Description

@nichtich

Time signatures of meter are shown as "undefined" for values > 9, e.g. 12/8, 3/16...

should be solveable by changing this lines in create-element.js:

            html: `<sup>${ glyphs['timeSig' + symbol.numerator] }</sup>
                <sub>${ glyphs['timeSig' + symbol.denominator] }</sub>`,

with function:

const timeSigString = num => `${num}`.split('').map(digit => glyphs[`timeSig${digit}`]).join('')

to

            html: `<sup>${timeSigString(symbol.numerator)]}</sup>
                <sub>${timeSigString(symbol.denominator)}</sub>`,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions