scamp.quantization.QuantizedBeat

class scamp.quantization.QuantizedBeat(start_beat, start_beat_in_measure, length, divisor)

Bases: tuple

Record of how a beat was quantized (named tuple)

Parameters
  • start_beat – the start beat of the note relative to the whole performance

  • start_beat_in_measure – the start beat of the note relative to the start of the measure

  • length – the length of the beat in quarter notes

  • divisor – the divisor chosen for the beat

Inherited Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

divisor

Alias for field number 3

length

Alias for field number 2

start_beat

Alias for field number 0

start_beat_in_measure

Alias for field number 1

count(value, /)

Return number of occurrences of value.

divisor

Alias for field number 3

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

length

Alias for field number 2

start_beat

Alias for field number 0

start_beat_in_measure

Alias for field number 1