measureBeatStructure

maelzel.scorestruct.measureBeatStructure(timesig, quarterTempo, subdivisionStructure=(), beatWeightTempoThresh=52, subdivTempoThresh=96)[source]

Returns the beat structure for this measure

Parameters:
  • timesig (TimeSignature | tuple[int, int]) – the time signature

  • quarterTempo (Fraction) – the tempo of the quarter note

  • subdivisionStructure (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))

  • beatWeightTempoThresh – a beat resulting in a tempo higher than this is by default assigned a weak weight. This means that beats with a tempo slower than this are always considered strong beats, indicating that beams and syncopations across these beats should be broken

  • subdivTempoThresh – a regular subdivision of a beat resulting in a tempo lower than this can be promoted to a beat of its own. For example, with a quarterTempo of 44, a 5/8 measure would be seen as 5 beats, each of 1/8 note length. For a faster tempo, this would result in a beat of 2/8 and a ternary beat of 5/8

Returns:

F, beat duration: F, beat weight: int)

Return type:

a list of (beat offset