←

Online synthesized piano and pitch experiment

Sound is not enabled yetEnables sound the first time you play or click the button; practice silently after failure.

Single octave · Twelve equal temperament

Play, see and understand each note.

—No activity sound yet
octave 4

Activity sound

No activity sound yet

How to calculate pitch

Using scientific pitch notation and twelve equal temperaments. MIDI 69 is A4; every MIDI increase of 12 doubles the frequency. Double precision calculations are used internally, and the page displays three decimal places.

f = A4 × 2^((midi − 69) / 12)

Synth Boundary

Sounds are generated from browser oscillators and gain envelopes, no external sampling is used. Short attack and release are used to soften sudden changes, but cannot promise zero latency or absolutely no pops on all devices.

Default verifiable case

Sound nameMIDIHz
A469440.000
C460261.626

The default A4 is 440Hz. When the page is loaded, only verifiable cases are displayed and no sounds are automatically produced; changing A4 will recalculate subsequent sounds according to the same formula.

How to use and verify

Choose from octaves 2 to 6, waveforms like sine waves, A4 reference pitch and volume, then play with your mouse, touch or keyboard. After the key is pressed, the page displays the note name, MIDI number, frequency and whether it is audible; stopping all will only clear the part, and resetting will restore the default settings and clear the events.

  • Computer keys are mapped to A/W/S/E/D/F/T/G/Y/H/U/J; the keys will not be accidentally touched when the input box, selection box, button or setting pop-up layer gets focus.
  • Browsers often require that audio be created or restored after a user click, touch, or keypress; the page does not play automatically.
  • All sound, frequency calculations and event recording are done locally in the current browser, and no performance content is uploaded.

Scope and limitations

Browser, device performance, system sample rate, wired or Bluetooth output all affect latency and listening experience. This page does not simulate real piano samples, is not used for professional tuning, aural judgment, and does not cover microtonal, historical tuning, or alternative temperaments.

Playing with a computer keyboard

The home row A S D F G H J plays the white keys C D E F G A B, and W E T Y U above it play the black keys C♯ D♯ F♯ G♯ A♯. Use the octave buttons to move between octaves 2 and 6. For example, the opening of Twinkle Twinkle Little Star is A A G G H H G (C C G G A A G).

Frequently asked questions

Why is there no sound when I press a key?

Browsers only start audio after a click, touch or key press, so the page never plays automatically. Click Enable sound first and check that the volume slider is not at 0% and the device is not muted. If it is still silent, click to redetect sound; note names, frequencies and key highlights keep working without audio.

How is each note's frequency calculated?

It uses twelve-tone equal temperament: f = A4 × 2^((MIDI − 69) / 12). A4 defaults to 440 Hz (MIDI 69), and the frequency doubles every 12 semitones, so A5 = 880 Hz and middle C (C4, MIDI 60) is about 261.626 Hz.

Can I set A4 to 432 Hz or 442 Hz?

Yes. The A4 reference pitch can be set anywhere from 432 to 446 Hz; many orchestras tune to 442 Hz. After you change it, every note you play is recalculated with the same formula.

Can I use it as a tuner?

You can use it as a reference pitch to tune by ear, but it does not analyze microphone input or show how far your instrument is off. Browsers, devices and Bluetooth headphones can add latency, so use wired headphones or speakers for rhythm-critical playing.

Online synthesized piano and pitch experiment

You can also play using a computer keyboard by clicking or touching the keys. The first operation will try to enable Web Audio; if the sound is not available, the note name, MIDI number, frequency and event will still be displayed.

settings