Euclidean Rhythm Generator

I built an Euclidean rhythm generator.

First, I implemented the algorithm. After some visual exploration, I created the generator proper in JavaScript, using the Web Audio API.
It plays percussive sine waves. It also features

  • Url-based setup. The rhythms (beats, pulses, offset, note) and interval are specified as a query param.
  • Time interval. Instead of playing stacked rhythms against a global tempo, treat them as subdivisions of a time interval.
  • Offsets can be added to rhythms.
  • iframe mode. See The examples below

Here are some rhythms. Most are inspired by eastern music

5/8 (2 pulses over 5 beats)

/projects/euclidean-sequencer?interval=1&lanes=5_2_0_C6&view=iframe

7/8 (3 pulses over 7 beats)

/projects/euclidean-sequencer?interval=1.5&lanes=7_3_0_C6&view=iframe

9/8 (4 pulses over 9 beats)

/projects/euclidean-sequencer?interval=1.5&lanes=9_4_0_C6&view=iframe

Two versions of the same rhythm, one with offset

/projects/euclidean-sequencer?interval=1.5&lanes=7_3_0_C6,7_3_1_G6&view=iframe

Stacked with different subdivisions

/projects/euclidean-sequencer?interval=1.5&lanes=7_3_0_C6,5_2_1_G6,9_4_0_C7&view=iframe

Future

  • Euclidean Rhythms for note intervals
  • Add some chance into the mix

Published by pgk

Person

%d bloggers like this: