Keys synthesised by WebAudio
Two octaves of keys respond to mouse or computer keyboard, with sound synthesised live rather than sampled. Timbre offers soft triangle, pure sine, electronic square and bright sawtooth, plus a volume slider, with play-sample and sample buttons. The shapes differ in harmonics: triangle approaches a soft piano, sine is clean but overtone-poor, square leans electronic, and sawtooth is bright and edgy. Synthesis costs nothing and responds instantly, though it lacks the mechanical noise and resonance of real keys.
Steps
- Play the sample scale first to confirm sound works.
- Choose soft triangle for the closest piano feel.
- Set volume moderate, since chords add up quickly.
- Hold a key with the mouse, noting sound stops only on release.
- Learn the key mapping, then play with the keyboard for chords.
- Refresh to reset, since performances are not saved.
Synthesis and playing feel
Each note combines an oscillator with an envelope shaping attack and decay; piano attacks are quick with longer decay, so envelopes approximate that. Harmonics differ by shape: triangle falls off on odd harmonics quickly and sounds soft, sine holds one frequency like a whistle, square emphasises odd harmonics with an electronic edge, and sawtooth carries both odd and even for brightness. Stacked chords sum amplitude and overload when phases align, so keep headroom. Keyboard mappings usually span two letter rows with slight variation between implementations. Touchscreens lack physical keys, and multi-touch limits how many notes sound at once.
Common mistakes
Full volume on chords until the sound clips. Expecting pedals and resonance. Releasing the mouse slowly so notes trail. Missing notes from an unfamiliar mapping. Exceeding multi-touch limits so some notes vanish. And treating synthetic tone as production backing.
Where a web piano falls short
Real timbre and expression need sampled instruments with MIDI hardware. Recording and export are generally unavailable. Tuning follows equal temperament and is not a measurement reference. And practice needs tactile feedback that a web page cannot give.