Play a colourful on-screen piano with touch, mouse or keyboard, in four instrument sounds, or follow the lit-up keys to learn four traditional tunes.
Choose a tune
Tunes played to the end: 0 of 4
Press this note
-
Note 0 of 0
Tap, click or slide a finger across the keys. On a keyboard, the row Z S X D C V G B H N J M plays the lower octave and the row Q 2 W 3 E R 5 T 6 Y 7 U I the upper one (the letters are printed on the keys). Arrow keys move between keys and Enter or Space plays one. Each note letter has its own colour and its letter is always written on the key. Sound starts off, so press the Sound button first. In Play along, a key lights up with an arrow above it: press it to move to the next note. A wrong key costs nothing.
Every note is a number from 0 to 127 and each step up is one semitone. The pitch is 440 Hz times 2 to the power of (note minus 69) over 12, so the A above middle C is 440 Hz and every octave doubles the frequency.
An instrument is a few sine, triangle or sawtooth waves stacked at fixed multiples of the note, plus a loudness curve: how fast it rises, how it settles while you hold the key and how it fades when you let go. A bell is inharmonic (its overtones sit at 2.76 and 5.4 times the pitch), which is what makes it sound like metal. At most 10 notes sound at once.
As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.
Press the Sound button first. Sound starts off, so the keys only light up until you turn it on. Then tap, click or slide a finger across the keys. In free play, sliding across keys plays each one in turn, and you can press several keys at once with several fingers.
Every note letter has its own colour: C is rose, D orange, E amber, F green, G teal, A sky and B violet. The letter is always written on the key as well, so colour is never the only clue. A black key takes the colour of the white key just below it.
On a keyboard, two rows of letters follow the shape of a piano. The row Z S X D C V G B H N J M plays the lower octave, and the row Q 2 W 3 E R 5 T 6 Y 7 U I plays the upper one. The letters are printed on the keys, so you do not have to remember them. The arrow keys move between keys and Enter or Space plays the key you are on. Typed keys only work after you have clicked or tapped inside the game, so they never take over the rest of the page.
Pick a tune and a key lights up with an arrow above it, and the big letter in the box tells you its name. Press that key and the next one lights up. There is no timer. A wrong key costs nothing: the tune waits until you find the right one, and the message just tells you what you pressed and what comes next. Hear it plays the tune for you with the keys lighting up, Start again goes back to the first note, and finishing a tune plays a small celebration. The page remembers which of the four tunes you have finished.
| Tune | Notes |
|---|---|
| Ode to Joy | 30 |
| Twinkle Twinkle | 42 |
| Mary Had a Little Lamb | 26 |
| Frere Jacques | 32 |
All four are traditional melodies in the public domain, and each uses only the white keys. The keyboard shown in this mode is trimmed to fit the tune, so it is never wider than nine white keys.
A note is a number. Middle C is 60, and every step up is one semitone. The pitch is 440 Hz multiplied by 2 to the power of (note minus 69) divided by 12. So the A above middle C is exactly 440 Hz, and each octave doubles the frequency. The tests check this against a second table built by repeated multiplication, for all 128 notes.
An instrument is a recipe, not a recording:
Every recipe has a loudness curve (a rise time, a settling time, a held level and a fade-out time), and the tests check that each number is inside a safe range and that the loudest case cannot pass full level before the master volume.
The page draws keys from two white-key ends, for example middle C up to the C two octaves higher: 25 keys, 15 white and 10 black. A black key sits on the line between the white keys either side of it, and the tests check that there is none between E and F or between B and C. The same window decides what the computer keys play: each of the 25 letters is one semitone, counted from the lowest C at or below the window.
Progress is two numbers: which note comes next, and how many keys were pressed that were not it. A press either matches the next note exactly, so the tune moves on, or it does not, so nothing changes. The same pitch in a different octave counts as a different key. The tests walk through each tune with the right notes and check that it ends on exactly the last one, and then press random keys and compare against a simple reference model.
Nothing is uploaded and there is no account. Only the number of finished tunes is kept on your device. Everything runs locally in your browser.
For informational purposes only. Not financial, medical, or legal advice. You are solely responsible for how you use these tools.