Cabbage Logo
Back to Cabbage Site

Quasiperiodic rythms

Starting from Euclidean rhythms defined by a number k of attacks in a bar divided into n beats, I wondered how this can be generalised to an irrational number instead of the rational k/n. As a result I came up with an implementation of Bresenham’s algorithm. This algorithm is able to produce all Euclidean rhythms and can be easily used with non-integer or even irrational attack counts. The rhythms generated in this way are ‘locally in time’ similar to Euclidean rhythms but over long times never repeat. Because of the analogy to quasicrystals I use the term ‘quasiperiodic’. I am not a musicologist, so I don’t know whether I reinvented the wheel and there is already a technical term for this kind of rhythms.

The linked zip file contains the csd, vst3 files and a subdirectory quasi containing some presets. There are some problems with the presets I am currently discussing here: presetChannel in .psts file. But they should be usuable ‘passively’; just in case you try to save new ones unexpected things may happen. In the zip file are also a couple of REAPER test and demo files and rendered mp3 files from these.

1 Like

The irrational number part is neat to puzzle through, though I’m not sure of much practical need. I guess for generating non-repeating Euclidean sequences?

Good question. I am currently trying out different applications. One is a techno live set where it provides a syncopated rhythm. But instead of the usual loops it never repeats strictly. The other is a texture layer in an ambient piece. In both cases the idea is that it may not get boring as quickly as an x-bar loop.