Note: on the current code, only length, pulse, offset and probability are set while other parameters are set to their default value.
a rhythm can be created with additonal parameters. For example we can set the algorithm index like so:
EuclideanRhythm(8, 4, 0, 100, algo_index = 1)
Other parameters value:
prescaler_index can take the following values with default value of 0:
0: 1
1: 2
2: 3
3: 4
4: 8
5: 16
gate_length_mscan take the gate length value from 10 to 250ms, default 10ms
randomize_gate_length can be set to True or False, set randomization on output gate length, default False
algo_indexcan take the following values, default value of 0:
1.5.0_pre
Describe the bug or feature enhancement Create the first presets and initial rhythm displayed when the module boot.
A rhythm can be created with the
EuclideanRhythm
class with the following constructor:def __init__(self, beats, pulses, offset, pulses_probability, prescaler_index=0, gate_length_ms=T_GATE_ON_MS, randomize_gate_length=False, algo_index=0):
The current code to create the preset and initial rhythm is:
Note: on the current code, only length, pulse, offset and probability are set while other parameters are set to their default value. a rhythm can be created with additonal parameters. For example we can set the algorithm index like so:
EuclideanRhythm(8, 4, 0, 100, algo_index = 1)
Other parameters value:
prescaler_index
can take the following values with default value of 0:gate_length_ms
can take the gate length value from 10 to 250ms, default 10msrandomize_gate_length
can be set to True or False, set randomization on output gate length, default Falsealgo_index
can take the following values, default value of 0: