web-music-score - v6.4.0-pre.9
    Preparing search index...

    Class TimeSignature

    Time signature class.

    Index

    Constructors

    Properties

    beamGroupSizes: number[][] = []

    Beam groups (e.g. [[2], [2]] or [[2, 2], [2, 2]] (first try as [[4], [4]])).

    beatCount: number

    Number of beats in measure, upper value (e.g. "3" in "3/4").

    beatLength: NoteLength

    Beat length.

    beatSize: number

    Beat size of time signature, lower value (e.g. "4" in "3/4").

    measureTicks: number

    Number of ticks in measure.

    type: "n/d" | "common" | "cut" = "n/d"

    Methods

    • Test whether this time signature has given beat count and size.

      Parameters

      • beatCount: number

        Beat count.

      • beatSize: number

        Beat size.

      Returns boolean

      • Boolean whether this time signature match given beat count and size.
    • Get string representation of this time signature (e.g. "3/4").

      Returns string

      • String representation.