Algorithmic rhythm geometry

Euclidean Rhythm Generator MIDI (Multi-Lane Bjorklund Rings)

Generate classic world and electronic rhythms using the Bjorklund E(k,n) algorithm across three concentric drum rings with independent step rotation, live WebAudio drums, and .mid export.

100% browser-local · zero upload · instant .mid export
Share this tool

100% browser-local WebAudio & SMF Type 1 export · zero upload · zero sign-up

Kick (36) — E(5, 16) rot 0
Rim/Snare (38) — E(3, 8) rot 2
Hi-Hat (42) — E(7, 16) rot 0

Creator Cloud

Keep the versions and extend the phrase.

Creator Cloud adds cloud history and reviewed AI MIDI edits a month. The tool you are using stays free.

  • 60 reviewed AI MIDI edits each month
  • 50 cloud projects with 100 versions each
  • Cancel anytime; the free editor stays free
See Pro Producer · $49/yr

How Bjorklund algorithm distributes drum pulses as evenly as possible

Discovered in nuclear timing accelerators and popularized in music theory by Godfried Toussaint, the Bjorklund algorithm spreads k active hits across n total steps with maximum symmetry. Connecting the active nodes on our concentric SVG rings forms striking polygons whose corners correspond to timeless Afro-Cuban, Brazilian, and techno patterns.

Layering three independent Euclidean rings with phase rotation

This Euclidean rhythm generator MIDI studio gives you three simultaneous General MIDI Channel 10 lanes—Kick (36), Rim/Snare (38), and Hi-Hat (42)—each with its own Pulses, Steps, and Rotation slider. Rotating the snare ring by two steps shifts a downbeat hit onto the backbeat instantly without altering symmetry.

Exporting 4-bar Channel 10 Euclidean grooves into any DAW

Click Download .mid to save a 4-bar Type 1 General MIDI drum file containing all three lanes, or open it directly in the EditMIDI piano roll to swap drum voices and add velocity humanization.

Famous traditional rhythms generated by Bjorklund E(k,n)

Dial these pulse and step counts into any lane to recreate foundational grooves mathematically.

Euclidean FormulaBinary Step PatternTraditional / Electronic Groove
E(3, 8)x . . x . . x .Cuban Tresillo & modern reggaeton / dancehall anchor
E(5, 8)x . x x . x x .Cuban Cinquillo & West African bell timeline
E(5, 16)x . . x . . x . . x . . x . . .Brazilian Bossa Nova necklace & minimal techno kick
E(7, 12)x . x x . x . x x . x .West African Bembe 12/8 bell pattern

Frequently asked questions

What does E(k, n) mean in Euclidean rhythm notation?

k is the number of active drum hits (pulses) and n is the total number of steps in the cycle. For example, E(5, 16) spaces five hits as evenly as possible across sixteen steps.

What does the Rotate control change?

Rotation shifts the starting step of the polygon clockwise around the ring while keeping the exact spacing between hits intact—essential for placing snares on offbeats.

Can different lanes have different step counts at the same time?

Yes. You can run a 16-step kick against an 8-step snare and a 12-step hi-hat simultaneously, creating rich polymetric grooves exported cleanly into one MIDI track.

Are exported Euclidean rhythms compatible with Ableton Drum Rack and Battery?

Yes. All three lanes write standard General MIDI Channel 10 drum notes (36 Kick, 38 Snare, 42 Closed Hi-Hat) that map straight onto Ableton, FL Studio, Logic, and hardware drum machines.