Virtual Piano with Computer Keyboard, Octaves and Melody Recorder

A one-octave piano you play with the mouse, touch or computer keys, with octave buttons, four sounds and a simple recorder.

Use the tool

Why this tool exists

Press A S D F G H J K for the white keys and W E T Y U for the black keys, or click and tap the keys. Octave buttons move the range up and down, and you can pick a triangle, sine, square or sawtooth sound.

Every key is a real button with a name such as C4, so it can also be used with a keyboard and screen reader. The recorder keeps the notes you play and plays them back in time. The sounds are synthesised with the Web Audio API in equal temperament, A4 = 440 Hz. Recordings are not saved when you leave the page.

How to use it

  1. Press the computer keys or click the piano keys.
  2. Use Octave down and Octave up to change range.
  3. Press Record, play, press Stop, then Play back.
  4. Choose another sound if you like.

Frequently asked questions

Which keys play which notes?

A to K are the white keys C to C, W E T Y U the black keys.

Can I save a recording?

No, it lasts only while the page is open.

Why no sound?

Check that your device volume is on; some browsers need a first click.

Is it touch friendly?

Yes.