measureBeatStructure¶
- maelzel.scorestruct.measureBeatStructure(timesig, quarterTempo, subdivisionStructure=None)[source]¶
Returns the beat structure for this measure
- Parameters:
timesig (
TimeSignature
) – the time signaturequarterTempo (
Union
[Fraction
,int
]) – the tempo of the quarter notesubdivisionStructure (
Optional
[tuple
[int
,tuple
[int
,...
]]]) – the subdivision structure in the form (denominator: int, subdivisions). For example a 7/8 bar divided in 3+2+2 would have a subdivision strucutre of (8, (3, 2, 2)). A 4/4 measure divided in 3/8+3/8+2/8+2/8 would be (8, (3, 3, 2, 2))
- Returns:
F, beat duration: F, beat weight: int)
- Return type:
a list of (beat offset