Algorithmic Rhythm Lab

Euclidean rhythm generator.

Spread hits evenly with the Euclidean algorithm or generate a reproducible random rhythm. Adjust the steps, hits, and rotation, then hear the pattern, share it, or export a MIDI clip for your sequencer.

E(3, 8)
Pattern presets
8
3
0
110 BPM

Ready to play E(3, 8).

StepsCycle
Density38%
RotationClockwise

× · · × · · × ·

Three hits are spread as evenly as possible across eight steps.

How to use the Euclidean sequencer

  1. Choose the total number of steps in the cycle.
  2. Choose how many hits should occur.
  3. Rotate the result to change where the phrase begins.
  4. Set the tempo and whether each step is an eighth or sixteenth note.
  5. Play the result, share the URL, or export it as MIDI.

Rotation changes the starting point without changing the gaps between hits. This is useful when the spacing feels right but the downbeat does not.

What is a Euclidean rhythm?

A Euclidean rhythm distributes hits across a fixed number of steps so the gaps are as even as possible. If the spacing cannot be perfectly equal, the pattern alternates between the two closest gap sizes.

The label E(3, 8) means three hits distributed across eight steps. This page displays hits first inside the mathematical label, while the controls use the more familiar sequencer order: steps, then hits.

Use the polyrhythm generator when you want two simultaneous pulse streams instead of one distributed step pattern. Read the algorithmic music guide to compare both systems and add constrained probability to your workflow.

Can I generate a random rhythm?

Choose Seeded random rhythm when you want exact control over the cycle length and number of hits without even spacing. The generator places that many hits at random positions, while the seed keeps the result reproducible.

The New random pattern button changes only the seed, so your steps, density, tempo, and rotation stay intact. Because the seed is stored in the URL, anyone opening a shared link hears the same rhythm, and the MIDI export preserves the same step pattern.

Patterns worth trying

E(3, 8)Three hits across eight steps. Sparse, stable, and easy to phrase.
E(5, 12)Five hits across twelve steps. A useful uneven cycle for melodic percussion.
E(5, 16)Five hits across sixteen steps. Spacious enough for layered accents.
E(7, 16)Seven hits across sixteen steps. Denser but still clearly distributed.
Rotate 1–3Move the same spacing against a different downbeat.
Layer patternsExport two MIDI clips with different hit counts and compare their composite rhythm.