rhythm
module reference
rhythm
module reference
Rhythm-generation and sequencing.
index
- Generate euclidean rhythms.
- Generate rhythms based on a trigger-sequence
details
- Generate euclidean rhythms.
(euclid trig! n k)
(euclid i n k)
Generates bangs according to the Euclidean algorithm.
When fed a bang! trigger, steps forward to the next step on each trigger. When fed a num~ or num! stream, outputs a bang if the corresponding step is on.
- Generate rhythms based on a trigger-sequence
(trigseq trig! s1 s2…)
(trigseq i s1 s2…)
Generates bangs according to the sequence
s1
,s2
, …Each step should be a bool~ that determines whether a bang should be emitted on that step or not.
When fed a bang! trigger, steps forward to the next step on each trigger. When fed a num~ or num! stream, outputs a bang if the corresponding step is on.