1. Home
  2. Audio & video tools
  3. Virtual Piano

Virtual Piano

Pick out a melody, find a note or practise chords on an on-screen keyboard that also answers to your computer keys.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use Virtual Piano

  1. Click or tap the keys, or use the computer keyboard.
  2. Choose a sound, volume and octave.
  3. Press Sample to hear a short tune.

Features

  • Two octaves plus one key with the mouse, touch or keyboard
  • Several keys at once and glissando by dragging
  • Four built-in sounds
  • Release time and sustain
  • Octave shift and note names

Supported formats

Input

  • Typed settings

You get

  • Sound

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Virtual Piano is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • The sound is a simple synthesiser, not a sampled piano.
  • How many keys can sound together on the computer keyboard depends on the keyboard.

Guide

Playing a piano keyboard in the browser: computer-key mapping, sounds and sustain

A piano is the easiest way to see how music is arranged, and you do not need one: the keys of a laptop are enough to play a tune. This page draws a keyboard that responds to a mouse, a finger or a computer keyboard. You can use it to find a melody by ear, to check a note before singing it, to show a child where middle C is, or for a quick idea when no instrument is nearby.

Playing

Click or tap a key, or drag across several keys for a glissando. With the computer keyboard, the bottom row Z, X, C, V, B, N, M and comma plays the white notes starting from the lowest key, and S, D, G, H and J play the black notes between them. The top row Q, W, E, R, T, Y, U and I plays the white notes of the next octave up, with the number keys 2, 3, 5, 6 and 7 as the black keys. Each key shows its letter, and every C is labelled with its octave if the names option is on.

A worked example

Leave the octave at 3, so Z plays C3, and press Sample. The page plays a 14-note melody, 0.38 seconds apart, whose notes are C, C, G, G, A, A, G, F, F, E, E, D, D, C, which is the first line of the well-known nursery tune, moving through the keys. To play it yourself, press the keys in that order. Press Octave up and the same melody sounds an octave higher, from C4, and the keys light up as they are played.

Sounds

Soft uses a triangle wave, which is mellow and close to a flute. Pure is a sine wave, with a single frequency. Chiptune is a square wave, hollow and reedy as in old computer games. Bright is a sawtooth, the fullest and buzziest. Each note is one oscillator; the page does not play recordings of a real piano, so it is for finding notes and tunes more than for performing.

Release and sustain

Release sets how long a note fades after the key is let go, from 0.05 to 2 seconds. A short release is clean and detached; a long one blurs notes together, rather like a pedal. The sustain option keeps notes ringing for about a second after release, so you can play slow chords with a light touch. Volume starts at 40 percent, and the slider is squared internally so the lower half is gentle.

Edge cases

Browsers need a first click or key press before they allow sound. Holding down more keys than your keyboard can report is blocked by the hardware, and the result varies by model. The octave buttons stop at 0 and 6, and the lowest key shown depends on the octave. Keys with Ctrl, Alt or the system key held down are ignored so shortcuts keep working, and typing in a field does not play notes.

Limits

There is no recording, no velocity or touch sensitivity, and no MIDI-keyboard input. The sound is a simple synthesizer. Nothing leaves your device.

Checked against the current version of the Virtual Piano on .

Frequently asked questions

Why do some notes stop when I press several keys?

Many keyboards can only report a limited number of keys held at once, and some key combinations are blocked by the hardware. This is called ghosting. Try different keys for the chord, or use a touch screen, which has no such limit.

Can I play with a MIDI keyboard?

This page plays from the screen and the computer keyboard only. To hear the notes of a MIDI file, use the MIDI file player, which reads the file and plays its notes with a built-in synthesizer.

Which computer keys play which notes?

The bottom row (Z, X, C, V, B, N, M, comma) plays white keys from the lowest note, with S, D, G, H and J for black keys. The top row (Q to I) does the same an octave higher, with the number keys for black keys.

Is it a sampled piano?

No. Each note is made by an oscillator in your browser, so it sounds like a synthesiser rather than a recording of a grand piano.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.