← Back to the harmonium

Laptop Harmonium: Play With Your Keyboard

Your laptop already has a harmonium keyboard on it. Here is the complete map, every shortcut, and the one hardware limit that will trip you up.

Open it and start playing →
What you need
A laptop and a browser. Nothing to install.
Range on keys
Two full octaves, C3 to B4
White keys
Bottom row and top letter row
Black keys
The row directly above each white row
Works on
Mac, Windows, Linux, Chromebook
Cost
Free, no account

A laptop harmonium is not a compromise the way a phone harmonium is. You get two full octaves under your fingers, physical key travel, and the ability to hold several notes down — which is most of what the instrument actually asks for. What you do not get is a bellows under your left hand, and one hardware quirk covered further down will occasionally eat a note out of your chords.

This page is the reference for playing on a computer keyboard specifically: the map, the shortcuts, the platform differences, and the limits. If you want the musical side — which key is which note in sargam, how to read song notation — that is on the harmonium notes chart.

Thirty-second start

  1. Open the harmonium. Click once anywhere on the page — browsers block audio until you interact, so nothing will sound before that first click.
  2. Press R T Y U I O P in order. That is a full scale in the middle octave — Sa through Ni.
  3. Hold Space while you play. Notes now ring on after you release, like a sustain pedal.
  4. Press Alt+D for the drone. Everything you play now has a tonal centre to sit against, which is how the instrument is meant to be heard.

That is genuinely all the setup there is. Everything below is refinement.

The full laptop key map

Two octaves are mapped to the keyboard. The bottom letter row is the lower octave, the top letter row is the middle octave, and in each case the row immediately above carries that octave's black keys — the same visual relationship as a real keyboard, rotated onto QWERTY.

Lower octave — black keys (C♯3 D♯3 · F♯3 G♯3 A♯3) S D · G H J
Lower octave — white keys (C3 D3 E3 F3 G3 A3 B3) Z X C V B N M
Middle octave — black keys (C♯4 D♯4 · F♯4 G♯4 A♯4) 5 6 · 8 9 0
Middle octave — white keys (C4 D4 E4 F4 G4 A4 B4) R T Y U I O P

Notice that the middle octave starts on R rather than Q. That is deliberate. Starting at the left edge of the row would put your hand in a cramped position at the corner of the keyboard; starting on R lets the right hand rest naturally over the middle of the keyboard the way it would over the middle of a real one.

The gaps in the black-key rows are also real. There is no black key between E and F, or between B and C, so F and K in the lower octave and 7 and - in the middle are deliberately unmapped. If you have ever wondered why a piano's black keys come in a group of two and a group of three, that is the same fact showing up here.

The alias keys

Two octaves laid across two rows creates one awkward problem: the join. The top of the lower octave and the bottom of the middle octave are physically far apart on a QWERTY keyboard, so a phrase crossing the boundary makes you jump your hand. A second set of keys covers the same notes from a closer position:

Alias keysWhat they reachWhy
1 Q 2 W 3 E Upper half of the lower octave (F♯3 to B3) Reach low notes without leaving the top-row hand position
, . / L ; Lower half of the middle octave (C4 to E4) Reach middle notes without leaving the bottom-row hand position

These are additive, not replacements. Q and M both sound G3 — the on-screen key lights up either way. Most players settle into using one hand position and its aliases rather than moving between rows, and the crossover phrases stop being a problem within a few sessions.

Every keyboard shortcut

KeysDoes
SpaceSustain — notes keep ringing after release
Alt+DToggle the drone
Alt+ Volume up and down
Alt+ Transpose — shifts pitch, key names stay put
Alt+[ ]Shift the whole map an octave
Alt+RFocus the reverb slider
Alt+ZStart or stop recording
Alt+SCopy a share link
Alt+FFullscreen
Alt+KShow the key map overlay
Alt+TLight or dark theme
EscStop all sounding notes

Two of these matter more than the rest for laptop playing specifically. Alt+[ and ] shift the octave, which is how you reach the parts of the instrument the two mapped octaves do not cover — your fingers stay in the same position and the whole keyboard moves underneath them. And Esc is the escape hatch for the rollover problem below: if a note gets stuck on because its key-up event never arrived, Esc silences everything.

Why chords sometimes drop a note

This is the one genuine limitation of playing a harmonium on a laptop, and it is worth understanding because it looks like a software bug and is not.

Underneath the keys of most laptops is a membrane matrix — a grid of rows and columns, where a keypress bridges one row to one column. It is cheap, thin and reliable for typing. What it cannot always do is report several simultaneous presses unambiguously. Press three or four keys at once and certain combinations become indistinguishable from other combinations, so the keyboard controller simply declines to report some of them.

This is called key rollover, and typical laptop keyboards manage two or three simultaneous keys plus modifiers. Mechanical keyboards and better laptops implement n-key rollover and report every key independently.

The practical symptom: two-note intervals are reliable everywhere, three-note chords are usually fine, and four-note chords drop a note on many machines — often the same note every time, because the blocking depends on the physical matrix layout rather than on which note is musically least important.

There is no software fix. The dropped key never reaches the browser at all, so nothing on the page can know it happened. What you can do:

Playing a harmonium on a Mac

A Mac needs no different setup — open the page and the letter keys play. Three differences worth knowing:

Anyone who has gone looking for a harmonium app for macOS and found the options thin will recognise the appeal here: the browser version needs no download, no signing, no compatibility check against the current macOS release, and it does not stop working after an OS update.

Windows, Linux and Chromebooks

All behave the same as each other. Alt is Alt. Chrome, Edge and Firefox all work; on Chromebooks the browser version is effectively the only way to run a harmonium at all, which is precisely what it is for.

One Windows-specific irritation: Alt on its own activates the menu bar in some browsers, so an Alt shortcut can occasionally steal focus. If a shortcut seems to do nothing, click once on the harmonium to return focus to the page and try again.

When to stop using the laptop keyboard

The laptop map is designed to make the instrument playable immediately, not to be the best possible input. Two signs you have outgrown it: you are regularly hitting the rollover ceiling, or you want dynamics — a laptop key has no velocity, so every note comes out at the same strength.

Both are solved by plugging in a USB or Bluetooth MIDI keyboard, which is detected automatically with no configuration and does respond to velocity. The laptop keys keep working alongside it; nothing needs switching off.

Your first exercises on the laptop keys

The fastest way to stop thinking about the mapping is to drill a handful of shapes until your fingers stop consulting the chart. These four take about ten minutes total and cover most of what you need.

1. The plain scale, both directions

Up: R T Y U I O P. Down: the same keys backwards. Slowly, one note per second, with the drone on. You are not learning notes here so much as learning that seven adjacent keys are seven adjacent white notes — which is the whole trick of the top-row mapping.

2. Sa and Pa, back and forth

R then I, repeatedly. These are the two notes with no variant forms, the two the drone plays, and the two everything else is measured against. Getting the distance between them into your hand — four keys apart — gives you a reference point you will use constantly.

3. The black keys

5 6 8 9 0 in order. Note the gap where 7 would be: there is no black key between E and F. This gap is the thing that makes the number row readable at a glance once you have internalised it, exactly as the two-and-three grouping does on a physical keyboard.

4. Crossing the octave join

Play N M , . — A3, B3, C4, D4. Four consecutive notes crossing from the lower octave to the middle one without your hand leaving the bottom rows, using the alias keys. Then the same passage the awkward way, N M R T, to feel the difference the aliases make.

Playing ragas on the laptop map

Because the middle octave sits on one row, a raga's ascending line becomes a short, memorable key sequence. With Sa set to C — the default — here are four ragas as literal keystrokes.

RagaSwaras ascendingKeys
Bhupali Sa Re Ga Pa Dha R T Y I O
Yaman Sa Re Ga Ma Pa Dha Ni R T Y 8 I O P
Bhairav Sa re Ga Ma Pa dha Ni R 5 Y U I 9 P
Malkauns Sa ga Ma dha ni R 6 U 9 0

Bhupali and Yaman are the two to start with. Bhupali uses five white keys in a row-and-a-bit and has no altered notes at all, so nothing can sound wrong. Yaman differs from the plain scale by exactly one key — 8 instead of U — which makes it the clearest possible demonstration of what a single altered swara does to the character of a scale. Play the plain scale, then play Yaman, and the difference is unmistakable on one key.

Turning on a raga preset in the player dims every key outside the selected raga. On a laptop that is more useful than it sounds: you can improvise freely across the top row knowing that the lit keys are all in-scale, without memorising anything.

Common problems

Nothing plays at all

Click once on the page first. Every browser blocks audio until the user has interacted with the page, so the very first keypress after loading often produces silence. This is a browser policy, not a setting you can change.

Letters are typing into something instead of playing

Focus is somewhere else — usually a search field, a dropdown, or another tab's element that kept focus. Click on an empty part of the harmonium and the keys will respond again.

A note is stuck on

Press Esc. This usually happens when a key-up event is lost, most often after switching windows mid-note or when the rollover limit swallows a release. Esc silences everything currently sounding.

A shortcut does nothing

On Windows, Alt can activate the browser's menu bar and steal the keystroke. Click on the harmonium and try again. On a Mac, check you are using Option rather than Command.

The sound crackles or stutters

Audio is generated in real time, so a laptop under heavy load can starve it. Closing other tabs — especially anything playing video — usually resolves it. Battery-saver modes on laptops also throttle background audio processing on some machines.

Laptop keys, touchscreen or MIDI?

Laptop keysTouchscreenMIDI keyboard
SetupNoneNonePlug in
Notes at once2–3 typicalLimited by fingersUnlimited
VelocityNoNoYes
Range without shiftingTwo octavesWhat fits the screenWhole instrument
Best forLearning, practice, quick ideasTrying it outActual performance

The honest summary: laptop keys are the right input for learning the instrument and for practising melodic lines, which is the majority of what a harmonium is used for. They stop being enough at the point where you want chords or dynamics, and that is the point to plug something in.

Common questions

Can I play a harmonium on a laptop keyboard?

Yes. The letter and number keys are mapped to notes, so a laptop keyboard works as a two-octave harmonium keyboard with nothing to install. The bottom row plays the lower octave and the top letter row plays the middle octave, with the row above each one covering the black keys.

Do I need to install an app or emulator?

No. It runs in the browser on any modern laptop — Mac, Windows, Linux or Chromebook. There is no download, no plugin and no account. You can optionally add it to your dock or home screen as a progressive web app, but that is a shortcut, not an installation.

Why do some notes not sound when I press several keys at once?

Most laptop keyboards have limited key rollover. The membrane matrix underneath can only report a small number of simultaneous presses, typically two or three plus modifiers, and anything beyond that is silently dropped. This is a hardware limit in the keyboard, not a fault in the software, and it is why chords of four or more notes often lose one.

How do I play a harmonium on a Mac?

Exactly the same way — open the page and use the letter keys. The one difference is that every shortcut written as Alt uses the Option key on a Mac. Mac laptop keyboards tend to have better key rollover than budget Windows machines, so chords are usually more reliable.

Can I change the octave the laptop keys play?

Yes. Alt with the square bracket keys shifts the whole mapping up or down an octave, so the same finger positions reach a different part of the instrument. Alt with the left and right arrows transposes instead, moving the pitch without changing which key is which note name.

Where to go next