aigcgame

Creative & Quick Games

Virtual Piano

A small piano, not a game. The keyboard runs from C4 to F5, a little over an octave and a half: eleven white keys and seven black keys. You can click or touch a key, or use the computer keyboard — A, S, D, F, G, H, J, K, L, semicolon and quote for the whites, W, E, T, Y, U, O and P for the blacks. A volume slider starts at 0.5. Four wave shapes are offered: sine (the default), square, sawtooth and triangle. There is no recorder and no sustain pedal.

Play Virtual Piano

Who it is for. Anyone who wants a quick pitched instrument in the browser. For unpitched percussion, the Drum Pad is the sibling; for a click, there is the Metronome.

What this piano actually does

Each key starts an oscillator at the note’s frequency, with a short rise to the current volume, and holding the key keeps the note on. Releasing it fades the tone out over a tenth of a second. A key already sounding will not retrigger if you press it again, and keyboard key-repeat is ignored, so a held key is a sustained note, not a stutter.

Changing the wave shape applies to the next notes you play, not to one already held. Volume changes apply to later attacks in the same way; a note already down keeps the level it started with until you release it.

The black keys are positioned over the whites by fixed offsets. There is no scroll to a lower or higher octave, and no MIDI input.

Controls

Click or hold a key, or press the mapped computer keys. Set Volume, and pick Sine, Square, Saw or Triangle. There is no record button and no start screen.

How to use it

Learn the white-key row as a simple C major stretch from A through the quote key, then add the blacks as accidentals. If you want a click to play against, open the Metronome in another tab. If you wanted drums, the Drum Pad uses a similar left-hand cluster, but for percussion, not pitch. Do not look for a way to save a take; this piano does not record.

More in Creative & Quick Games

See all Creative & Quick Games games →

Back to the library