quantizeMeasure¶
- maelzel.scoring.quant.quantizeMeasure(events, timesig, quarterTempo, profile)[source]¶
Quantize notes in a given measure
- Parameters:
events (
list
[Notation
]) – the events inide the measure. The offset is relative to the beginning of the measure. Offset and duration are in quarterLengths, i.e. they are not dependent on tempo. The tempo is used as a hint to find a suitable quantizationtimesig (
TimeSignature
) – the time signature of the measure: a tuple (num, den)quarterTempo (
Fraction
) – the tempo of the measure using a quarter note as refernceprofile (
QuantizationProfile
) – the quantization preset. Leave it unset to use the default preset.
- Return type:
- Returns:
a QuantizedMeasure