Created by Ahmed Abderrafie

Learn Rhythm
Through Geometry

A visual learning tool for drummers and percussionists. Place beats on a circle, see the polygon they form, and understand why the world's greatest rhythms are mathematically beautiful. Inspired by Toussaint's research.

The Concept

Rhythm as Geometry

Based on Godfried Toussaint's "The Geometry of Musical Rhythm", Erhythm helps drummers and percussionists visualize rhythmic patterns as points on a circle. Each beat becomes a vertex, together forming a polygon — turning abstract timing into something you can see, understand, and learn.

Circular Representation
Time wraps around a circle. Each position is a potential beat subdivision. Active beats are highlighted vertices on this rhythmic clock.
🔷
Polygon Visualization
Connect the active beats and a polygon emerges. Regular polygons give even rhythms; irregular shapes create syncopation and groove.
📐
Euclidean Rhythms
Distribute k beats across n steps as evenly as possible using Euclid's algorithm. E(3,8) gives the Tresillo — found in Cuban Son, Afrobeat, and electronic music.
🌍
World Rhythms
From West African Kuku to Brazilian Bossa Nova, from Moroccan Gnaoua to American Jazz — the same geometric principles appear across every culture.
Euclidean Rhythms

Mathematical Beauty in Sound

These classic patterns emerge from the Euclidean algorithm — distributing beats as evenly as possible around the circle. Click any pattern to visualize it. Every drummer should know these foundational rhythms.

Features

Your Rhythm Learning Toolkit

Everything a drummer or percussionist needs to learn, create, and share rhythmic patterns.

Circle Composer
Toggle beats on a circle and hear your pattern instantly with real percussion samples. See the polygon your rhythm forms.
Multi-Track Layering
Stack kick, snare, hi-hat, congas, and more. Solo, mute, and adjust volume per track for full control.
Euclidean Rhythms
Distribute beats evenly using Euclid's algorithm. Dial in hits and rotation to explore mathematically perfect patterns.
Beat Rotation
Shift any pattern around the circle to discover new grooves from the same set of beats. One click, new feel.
Time Signatures
Compose in 2/4, 3/4, 4/4, 5/4, 6/8, 7/8, 9/8, and 12/8. Explore odd meters and polyrhythms visually.
Metronome & Count-in
Built-in metronome with visual beat indicators. Optional count-in bar to start playing on time.
Export MIDI, WAV & JSON
Export as MIDI for DAWs, high-quality WAV audio, or JSON patterns. Take your rhythms anywhere.
Music Sheet
View your rhythm as standard percussion notation on a staff. Save as PNG to study or share.
Undo / Redo
Full undo/redo history with Ctrl+Z / Ctrl+Y. Experiment freely — every change is reversible.
Auto-Save Draft
Your work is automatically saved locally. Come back later and pick up right where you left off.
AI Generator
Choose genre, energy, and complexity — let AI create rhythm patterns for you to learn from and remix.
Rhythm Library
Browse, discover, and remix published rhythms from the community. Save, publish, and share your own.

Start Learning Rhythms

Open the composer, place beats on the circle, hear the pattern, and discover the geometry hidden in every rhythm. Whether you're a beginner or a pro.

Support Erhythm Help keep this project alive