Clever Quest Lab ← Labs

Music Sequencer

Draw a melody, a bass line, chords and drums on a step grid, then press Play.

Sound is off – press Play to hear the song.

Click a cell to add a note, click a note to remove it, drag to paint or erase. Keyboard: arrow keys move the cursor, Space or Enter adds or removes a note, Shift + ← / → changes its length, P plays or stops, 1–4 switch tracks.Tap a cell to add a note, tap a note to remove it, drag to paint or erase. To move the grid, drag the bar numbers sideways or the note names up and down.

2 steps (1/8)

Tracks and sounds

Scale

Demo songs

Loading a demo replaces the song in the grid. Undo brings your song back.

Export and share

Your song is saved in this browser automatically. Nothing is uploaded: the share link carries the whole song inside the address.

How to use it

Press Play. A short demo song loops until you press Stop. The grid is a piano roll: time runs from left to right in steps, and each row is one pitch, with higher notes in higher rows. The song has four tracks – Melody, Bass, Chords and Drums – and you edit one at a time. Choose it with the track buttons, then click or tap a cell to place a note; click the note again to remove it. Notes of the other tracks show through as pale blocks, and the strip above the grid shows the whole song.

Controls

How it works

A sequencer does not record sound. It stores a list of notes – which pitch, at which step, for how long – and plays that list in a loop. One step here is a sixteenth note: four steps make a beat and sixteen make a bar of 4/4 time. The tempo, in beats per minute (BPM), sets the length of a step:

step length = 60 / (BPM × 4) seconds

At 120 BPM a step lasts 0.125 s and a bar 2 s. Swing delays every second sixteenth step, the second and fourth of each beat, by the chosen percentage of a step; the other steps stay put. At 33 % each pair of sixteenths is split about 2 to 1, the rolling feel of a shuffle.

Ordinary timers can run late, so a short loop looks about a tenth of a second ahead and hands the coming notes to the audio clock of the browser, which starts them precisely.

An octave has twelve pitches a semitone apart. A scale is a choice of some of them, counted from a starting note called the key. A major scale takes seven, with gaps of 2, 2, 1, 2, 2, 2 and 1 semitones; natural minor uses 2, 1, 2, 2, 1, 2, 2. Pentatonic scales keep five notes, the blues scale adds one note to the minor pentatonic, and Dorian is natural minor with a raised sixth. With the scale lock on, the grid offers only rows that belong to the scale, so whatever you click fits the rest of the song. The frequency of each row follows equal temperament:

f = 440 × 2(n − 69) / 12 Hz

where n is the note number and 69 is the A above middle C.

No recordings are used. Melody, bass and chords come from oscillators with simple wave shapes (sine, square, sawtooth, triangle), a low-pass filter and an envelope that shapes the attack and the fade. Drums are short sine sweeps and bursts of filtered noise.

Export renders the song with the same sound code, faster than real time, and saves a 16-bit mono WAV file at 44.1 kHz with a 0.8 s tail so the last notes can fade. The share link packs the whole song into the address: three bytes per melody, bass or chord note and 48 for the drums. Nothing is stored on a server.

Things to try

Frequently asked questions

Why is there no sound?

Browsers allow sound only after you press something, so nothing plays until you press Play. If it is still silent, check the Volume slider, the Mute and Solo buttons and the volume of your device.

Why can the bass play only one note at a time?

The Bass track is monophonic, like most bass lines: a new note cuts off the previous one. Melody and Chords are polyphonic, so several notes can sound together.

What happens to my notes when I change the key or the scale?

They stay where they are. Notes that no longer belong to the scale appear on shaded rows, and Fit notes to scale moves each one to the nearest note of the scale.

Can I use the exported music?

Yes, a song you write here is yours. The demo “Ode to Joy” is a melody by Ludwig van Beethoven from 1824, long in the public domain; the other two demos were written for this page.

More free games and simulators