euclidSeq

Euclidean Rhythm Sequencer (rhythm). https://en.wikipedia.org/wiki/Euclidean_rhythm
Author: Jérôme Burlando
License: BSD
Github: gao/seq/euclidSeq.axo

Inlets

bool32.rising trig

Outlets

bool32.pulse bang

Parameters

int32 first hit index in measure (euclidean sequencer)

int32 length of the measure (euclidean sequencer)

int32 number of hits in the measure (euclidean sequencer)

Declaration
uint8_t ntrig;
uint8_t counter;
int32_t o;
Init
ntrig = 0;
counter = 0;
o = 0;
Control Rate
o = 0;
if (inlet_trig > 0 && !ntrig) {
  ntrig = 1;
  o = ((((counter++ + param_rotation) * param_hits) % param_length) <
       param_hits);
}
if (!(inlet_trig > 0))
  ntrig = 0;
outlet_trig = o;

Privacy

© 2024 Zrna Research