Rhythm & meter editor

Keep the pulse. Move the rhythm.

Build a short pattern on a steady pulse. Change the grouping, subdivisions and accents without losing your place.

Enable JavaScript for interactive controls and synthesized sound. Default model: 4 beats per bar × 4 cells per beat · 96 beats/min. One cell every 156 ms. Two bars last 5.00 s. Simple click on selected cells; pulse clicks are unchanged. Hit components: 260.0 Hz. Every hit keeps the same 55 ms duration and envelope, with nominal pre-envelope RMS 0.1344. These are short additive timbre studies, not sampled instruments or full physical models.

Default model values
OnsetSoundCell
0 mspulse1
0 mshit1
625 mspulse5
625 mshit5
1250 mspulse9
1250 mshit9
1875 mspulse13
1875 mshit13
2500 mspulse1
2500 mshit1
3125 mspulse5
3125 mshit5
3750 mspulse9
3750 mshit9
4375 mspulse13
4375 mshit13

Listen with a purpose

Try this.

First play only the steady pulse. Switch hits to the cells halfway between pulses. Then try three subdivisions per beat while keeping the tempo unchanged.

What is happening?

The high click marks each beat, with a stronger downbeat; the selected hit sound follows your pattern. Each cell is 60 ÷ tempo ÷ subdivisions seconds long. Two bars are scheduled against the audio clock, so events are not timed by screen animation. The light marks the currently sounding cell.

The model & its limits

A fixed grid in selected meter groupings. It does not model swing, expressive timing or every rhythmic tradition. A pattern can suggest syncopation, but context and accent matter. Changing controls restarts the two-bar example. The hit instrument changes only the additive mode recipe; pulse clicks and event times stay unchanged. Every hit has the same 55 ms duration and envelope, including the bell-like sound, which intentionally has no long tail. Hit spectra share a nominal RMS policy with a peak bound; equal RMS need not sound equally loud. Denser patterns have more total energy.

The interactive model synthesizes sound locally. Audio begins only after you press a listening button. Stop ends every scheduled voice; leaving or hiding the page stops audio. The numerical table remains useful without listening.

Static waveforms and component spectra are calculated from the current model. During playback, the waveform (except calculated swell, envelope and sampling illustrations) and spectrum come from the same browser audio signal. FFT bins have finite resolution; bars in the static view represent exact model components. A/B uses the same master volume; perceptual loudness is not calibrated.

How real instruments use this

Sources & further reading

These sources support the explanations and model assumptions. Recording credits are listed in the listening panels and the source register.

  1. Web Audio API 1.1 — Editor’s Draft ↗W3C Web Audio Working Group · 2026-11-06 (work in progress)
  2. Web Audio API best practices ↗MDN contributors / Mozilla · Undated
  3. Simple meter and time signatures ↗Mark Gotham, Chelsey Hamm and Kris Shaffer / Open Music Theory · 2023 edition
  4. Other aspects of notation ↗Mark Gotham and Chelsey Hamm / Open Music Theory · 2023 edition
  5. Notating rhythm ↗Mark Gotham, Chelsey Hamm and Bryn Hughes / Open Music Theory · 2023 edition
  6. Other rhythmic essentials ↗Mark Gotham, Chelsey Hamm and Bryn Hughes / Open Music Theory · 2023 edition
  7. Envelopes ↗Chris Donahue / Carnegie Mellon University · 2026
  8. Compound meter and time signatures ↗Mark Gotham and Chelsey Hamm / Open Music Theory · 2023 edition
Full source and rights register ↗