@tspro/web-music-score
    Preparing search index...

    Class RhythmProps

    Rhythm props class.

    Index

    Properties

    dotCount: number

    Dot count.

    flagCount: number

    Flag count.

    hasStem: boolean

    Has note stem.

    isSolidNoteHead: boolean

    Is note head solid (black)?

    noteLength: NoteLength

    Note length.

    noteSize: number

    Note size (whole=1, half=2, quarter=4, ...).

    ticks: number

    Number of ticks.

    tupletRatio?: TupletRatio

    Tuplet ratio.

    Methods

    • Get string presentation of rhythm props.

      Returns string

      • String presentation.
    • Compare duration equality of rhythm props.

      Parameters

      Returns boolean

      • true: a === b, false: a !== b (duration comparisons)
    • Get rhythm props with given arguments.

      Parameters

      • noteLength:
            | "1n"
            | "1t"
            | "1."
            | "1.."
            | "1..."
            | "1...."
            | "1....."
            | "1......"
            | "2n"
            | "2t"
            | "2."
            | "2.."
            | "2..."
            | "2...."
            | "2....."
            | "4n"
            | "4t"
            | "4."
            | "4.."
            | "4..."
            | "4...."
            | "8n"
            | "8t"
            | "8."
            | "8.."
            | "8..."
            | "16n"
            | "16t"
            | "16."
            | "16.."
            | "32n"
            | "32t"
            | "32."
            | "64n"
            | "64t"
            | NoteLength

        Note length.

      • OptionaldotCount: number

        Dot count.

      • OptionaltupletRatio: TupletRatio

        Tuplet ratio.

      Returns RhythmProps

      • Rhythm props.