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. |
- Source:
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. |
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 VexVex a reference to the Vex object
- Source:
Returns:
a list of numerator and denominator groups, for VexFlow
- Type
- Array.<Vex.Flow.Fraction>