Virtual Piano — Reference Notes for Singers

Sampled virtual piano in the browser: mouse or touch on keys, optional two-zone computer-keyboard performance with sustain, per-hand octaves, visible-range scroll, and up to ten chord sets you can edit, save, and fire together—saved in this browser’s local storage (mb-piano-prefs) so your layout and chord sets return on the next visit. No MIDI plug-in; use alongside the pitch analyzer when you want to see intonation.

Use the piano keyboard to find your starting note before singing

Tap or key a pitch, internalize it, then sing — useful for cold starts, audition excerpts, and checking entrances against a stable reference.

How to check your vocal range with a virtual piano

Shift the visible octave range and per-hand octaves, then play upward or downward until you find comfortable lows and highs on a steady vowel; note letter names to track range over time.

Reference tones for pitch matching practice

Hold a reference tone, match on “ah” or “ee”, or outline intervals with two-hand typing patterns; chord sets can spell arpeggiated or block voicings when you program them.

Octave: 2-6
b
C2-C3
g
n
C4-C5
h
Chords
C2
D2
E2
F2
G2
A2
B2
C3
D3
E3
F3
G3
A3
B3
C4
D4
E4
F4
G4
A4
B4
C5
D5
E5
F5
G5
A5
B5
C6
C#2
D#2
F#2
G#2
A#2
C#3
D#3
F#3
G#3
A#3
C#4
D#4
F#4
G#4
A#4
C#5
D#5
F#5
G#5
A#5

How to Use the Virtual Piano

Each key plays a preloaded sample for that pitch. The layout splits into a left-hand zone (lower keyboard row) and a right-hand zone (upper row on QWERTY): each zone maps 13 consecutive semitones from a configurable starting pitch class, with its own base octave. The strip of visible keys on screen is controlled separately (start octave + arrow buttons, or Q / ] on the keyboard). Sustain keeps notes ringing like a damper pedal; blur, focus loss, tab hide, or mouse leaving the window resets stuck keys. Visible range, per-hand octaves, start notes, and all ten chord sets persist in localStorage under mb-piano-prefs for this site origin and load again when you reopen the page.

Mouse and touch

  • Click or tap white and black keys to play and release. Touch targets follow the on-screen keyboard; landscape on tablets usually shows more keys.
  • When keyboard mode is ON, keys that have a computer-letter mapping show a small label on the key cap.

Computer keyboard mode (⌨)

  • Turn ON with the on-screen “⌨ ON” button or press the apostrophe key ' — even while OFF, ' alone toggles input so you are never locked out.
  • While ON, most letter/number keys are captured (preventDefault) so the page does not scroll; Ctrl / Alt / Meta combinations and F-keys are left for the browser.
  • Escape stops every held note and clears stuck states after alt-tab or missed key-up events.

Octaves and range

  • ◀ ▶ (octave control): move the visible key window by one octave (same as Q one octave down, ] one octave up on the keyboard). Bounds are clamped so the window stays in a playable range.
  • - and _ : shift the left-hand base octave down (−) or up (+ on US layout, Shift + hyphen). = and + : shift the right-hand base octave down or up ( + is often Shift + = ).
  • b / g : transpose the left-hand key row mapping down or up by one semitone (which PC letter maps to C, etc.). n / h : same for the right-hand row. The same shifts are available with the ◀ ▶ arrow buttons next to each hand’s range readout (works even when ⌨ is OFF).

Sustain

  • Hold Space while keyboard mode is ON, or click Sustain, to latch notes until you release Space or turn sustain off again.

Chord slots (10 savable chords)

The control panel has two modes — Play and Edit — shown as a two-tab switch at the top. A short live hint below the tabs tells you exactly what a tap will do next, so you can use chords without reading this page first.

  • Play mode (default) — hold one of the 10 chord buttons (or keys 1–9 and 0) to play every saved note at once, release to stop. Hold Sustain to keep the chord ringing after release.
  • Edit mode — tap Edit (or press ` ), pick a chord slot to edit it, then tap piano keys to add or remove notes. A badge on each slot shows how many notes it holds; empty slots are dashed. Press Clear N to empty the selected slot, Clear all (or ~ ) to empty every slot.
  • Chord slots are numbered 1 through 10, and map to keys 1–9 and 0 in both modes — so “3” on the keyboard always means chord slot 3. In Edit mode those keys select a slot instead of playing it.
  • Beginners can ignore chord slots and just play single notes on the keyboard.

Shortcut reference

The tables list the key string reported by the browser (QWERTY). Layouts such as AZERTY will differ.

Global & layout
KeyAction
'Toggle computer-keyboard input (works even when ⌨ is OFF).
EscReset all held keys and internal key states.
SpaceSustain: press to latch on (if off), release to turn off (when on).
qMove the visible keyboard window one octave lower (same idea as the left arrow control).
]Move the visible keyboard window one octave higher (same as the right arrow control).
-Left-hand zone: base octave down one.
_Left-hand zone: base octave up one (Shift + hyphen on US QWERTY).
=Right-hand zone: base octave down one.
+Right-hand zone: base octave up one (Shift + = on US QWERTY).
bLeft-hand mapping: rotate start note down one semitone.
gLeft-hand mapping: rotate start note up one semitone.
nRight-hand mapping: rotate start note down one semitone.
hRight-hand mapping: rotate start note up one semitone.
`Toggle between Play and Edit mode (same as the two-tab switch at the top of the control panel).
~Clear every chord slot (same as the Clear all button). Often Shift + ` on US QWERTY.
1 - 9Hold to play chord slot 1 through 9; release to stop. In Edit mode, selects that slot for editing instead of playing.
0Hold to play chord slot 10; release to stop. In Edit mode, selects slot 10.
Default note mapping (⌨ ON, both hands start on C)
KeyHandPitch class (default)
zLeftC
xLeftC#
cLeftD
vLeftD#
aLeftE
sLeftF
dLeftF#
fLeftG
wLeftG#
eLeftA
rLeftA#
tLeftB
yLeftC (next octave in row)
mRightC
,RightC#
.RightD
/RightD#
jRightE
kRightF
lRightF#
;RightG
uRightG#
iRightA
oRightA#
pRightB
[RightC (next octave in row)

Absolute pitch still follows each hand’s base octave (shown next to ⌨) plus the per-key octave step inside the 13-key row. After you change start letters with b/g/n/h, the same physical keys track new pitch classes in chromatic order.

Vocal practice ideas

  • Play your first note before an acapella entrance, then sing without looking back.
  • Once a week, mark your lowest and highest comfortable pitches on comfortable vowels.
  • Alternate short references with singing a cappella to strengthen pitch memory.