musicaiz.rhythm.QuantizerConfig

class musicaiz.rhythm.QuantizerConfig(delta_qr: int = 12, strength: int = 1, type_q: Optional[str] = None)[source]

Basic quantizer arguments.

Parameters
note: str

The note length of the grid.

strength: parameter between 0 and 1.

Example GRID = [0 24 48], STAR_TICKS = [3 ,21, 40] and Aq START_NEW_TICS = [(3-0)*strength, (21-24)*strength, (40-48)*strength] END_NEW_TICKS = []

delta_qr: Q_range in ticks
type_q: type of quantization

if negative: only differences between start_tick and grid > Q_r is taking into account for the quantization. If positive only differences between start_tick and grid < Q_r is taking into accounto for the quantization. If none all start_tick is quantized based on the strength (it works similar to basic quantization but adding the strength parameter)

__init__(delta_qr: int = 12, strength: int = 1, type_q: Optional[str] = None) None

Methods

__init__([delta_qr, strength, type_q])

Attributes

delta_qr

strength

type_q