Class: TimeSignature

music21.meter. TimeSignature

new TimeSignature(meterString)

A MUCH simpler version of the music21p TimeSignature object.

Parameters:
Name Type Description
meterString string

a string ("4/4", "3/8" etc.) to initialize the TimeSignature.

Properties:
Name Type Argument Default Description
numerator Int <optional>
4
denominator Int <optional>
4
beatGroups Array.<Array.<Int>>

groupings of beats; inner arrays are numerator, denominator

ratioString string

a string like "4/4"

barDuration music21.duration.Duration

a Duration object representing the expressed total length of the TimeSignature.

Source:

Methods

<static> TimeSignature#computeBeatGroups() → {Array.<Array.<Int>>}

Compute the Beat Group according to this time signature.

Source:
Returns:

a list of numerator and denominators, find a list of beat groups.

Type
Array.<Array.<Int>>

<static> TimeSignature#vexflowBeatGroups(Vex) → {Array.<Vex.Flow.Fraction>}

Compute the Beat Group according to this time signature for VexFlow. For beaming.

Parameters:
Name Type Description
Vex Vex

a reference to the Vex object

Source:
Returns:

a list of numerator and denominator groups, for VexFlow

Type
Array.<Vex.Flow.Fraction>
Music21j, Copyright © 2013-2018 Michael Scott Cuthbert and cuthbertLab.
Documentation generated by JSDoc 3.5.5 on Wed Jul 4th 2018 using the DocStrap template.