Rhythm¶
This module provides objects and methods that define and deal with time events.
The submodule is divided in:
Key: A tonic and mode (additionally it can have a chord progresison as attribute)
Chord Progression: A list of chords
Chord: List of 2 intervals (triad chords), 3 intervals (7ths), etc.
Interval: List of 2 notes.
Timing¶
Defines and contains helper functions to deal with Time Signatures, time events, etc.
|
This Enum contains the default values for timing parameters. |
|
This Enum contains Note durations in fractions of the whole note. |
|
This function calculates the miliseconds that correspond to one tick. |
|
This function converts the time signature str to a tuple of 2 values: numerator and denominator. |
|
This function calculates the ticks that correspond to one beat and bar. |
|
This function calculates the miliseconds that correspond to one note. |
|
This method returns the grid (vertical lines) for quantizing notes of a determined number of measures given by total_bars. |
|
Quantizer¶
Quantizes symbolic music as it is done in Logic Pro by following the steps described in:
[1] https://www.fransabsil.nl/archpdf/advquant.pdf
|
Basic quantizer arguments. |
|
|
|
This function quantizes a musa object given a grid. |
|
Extract the grid array in ticks from a subdivision |
|
Find de array component value closest to a given value [3, 6, 9, 12] 5 --> 6 |