quantizePart¶
- maelzel.scoring.quant.quantizePart(part, struct, quantprofile, fillStructure=False)[source]¶
Quantizes a sequence of non-overlapping events (a “part”)
Quantize to the score structure defined in
struct, according to the strategies defined inpreset- Parameters:
part (
UnquantizedPart) – the events to quantize. Event within a part should not overlapstruct (
ScoreStruct) – the ScoreStruct to usefillStructure – if True and struct is not endless, the generated UnquantizedPart will have as many measures as are defined in the struct. Otherwisem only as many measures as needed to hold the given events will be created
quantprofile (
QuantizationProfile) – the QuantizationProfile used
- Return type:
- Returns:
a QuantizedPart