scamp.quantization.QuantizedMeasure¶
-
class
scamp.quantization.
QuantizedMeasure
(start_beat, measure_length, beats, time_signature, beat_depths)¶ Bases:
tuple
Record of how a measure was quantized (named tuple).
- Parameters
start_beat – the start beat of the measure relative to the whole performance
measure_length – the start beat of the note relative to the start of the measure
beats – a list of QuantizedBeat objects
time_signature – the
TimeSignature
used for this measurebeat_depths – tuple of (length of minimum duple subdivision, list of integers representing the nestedness of each subdivision).
Inherited Methods
count
(value, /)Return number of occurrences of value.
index
(value[, start, stop])Return first index of value.
Attributes
Alias for field number 4
Alias for field number 2
Alias for field number 1
Alias for field number 0
Alias for field number 3
-
beat_depths
¶ Alias for field number 4
-
beats
¶ Alias for field number 2
-
count
(value, /)¶ Return number of occurrences of value.
-
index
(value, start=0, stop=9223372036854775807, /)¶ Return first index of value.
Raises ValueError if the value is not present.
-
measure_length
¶ Alias for field number 1
-
start_beat
¶ Alias for field number 0
-
time_signature
¶ Alias for field number 3