MIDI Practice Lab

How to Connect a MIDI Keyboard to Your Browser (and Fix a Silent One)

Most keyboards made in the last fifteen years can talk to a web page over USB with no driver. You plug the keyboard in, allow MIDI access once, and every key you press reaches the page with a timestamp. This guide walks through that, then through the problems that stop it working.

What you need

  • A keyboard with a USB port that carries MIDI (usually USB-B, the square one, or USB-C). If it only has round 5-pin MIDI OUT sockets, you need a USB-MIDI interface cable.
  • A data USB cable. Many USB-C and micro-USB cables only carry power; they're the most common reason a keyboard never shows up.
  • Chrome, Edge or Firefox on Windows, macOS, Linux or ChromeOS, or Chrome on Android with a USB-OTG adapter.

Connect it in five steps

  1. Plug the keyboard into the computer and switch it on. You can do this before or after opening the page; the player notices keyboards plugged in later.
  2. Open the MIDI player and press Connect MIDI keyboard.
  3. Allow MIDI access when the browser asks. Chrome and Edge show a permission prompt; Firefox asks you to add a small "site permission add-on" the first time.
  4. Your keyboard's name appears next to the button. Press a key: the matching key on screen lights up.
  5. Tick I play this part next to the track you want to learn, pick Wait for me or Score my timing, and press play.

Which browsers work

BrowserMIDI keyboardNotes
Chrome, Edge, Brave, Opera (desktop)YesPermission once per site
Chrome on AndroidYesNeeds a USB-OTG adapter
Firefox (desktop, version 108 or later)YesAdds a site permission add-on the first time
Firefox on AndroidNoUse Chrome on Android instead
Safari on MacNoUse the computer keys or the keys on screen
iPhone and iPadUsually noMost iOS browsers run on Safari's engine

When a browser has no MIDI support, the player says so and you can still practice: the computer keys A W S E D F T G Y H U J K play one octave from C (Z and X move the octave), and the keys on screen work with a mouse or a finger.

The keyboard's name never appears

  • Try another cable. A charge-only cable powers the keyboard but carries no data.
  • Plug straight into the computer instead of a USB hub or a monitor's USB port.
  • Some keyboards have a USB mode setting (MIDI, audio, or storage). Choose MIDI or the default.
  • Look at the left end of the address bar: if MIDI access was blocked once, the browser remembers. Open the site settings, set MIDI devices to Allow, and reload.

The name appears but nothing happens

  • On Windows, the older MIDI system lets only one program open a device. If a DAW or another browser tab has the keyboard open, close it and reload the page.
  • Check that the keys you press are inside the part you're practicing; wrong keys count as wrong notes, they don't move the music on.
  • The player listens on every MIDI channel, so the keyboard's channel setting doesn't matter.

You hear every note twice

Your keyboard plays its own sound and the player plays one too. Either turn the keyboard's volume down or untick Sound the keys I play and listen to the keyboard. Unticking it is better if you have a good-sounding digital piano.

Your timing scores are always late

The player compares when you pressed a key with when you heard the note. It corrects for the delay it can see, but not for delay added after the computer:

  • Bluetooth headphones and speakers add roughly 100 to 300 ms. Use wired headphones or the computer's speakers for scored practice.
  • A TV or projector over HDMI can add its own delay; turn on its game mode if it has one.
  • If every note shows as late by about the same amount, it's latency, not you. Check the white marks in the piano roll: a steady gap means delay, a scattered pattern means timing.

Bluetooth MIDI keyboards

Wireless MIDI works when the operating system has paired the keyboard as a MIDI device. On a Mac, pair it in Audio MIDI Setup (Window → Show MIDI Studio → Bluetooth), then open the page. Wireless MIDI adds a few milliseconds of jitter, which is fine for Wait mode and usually fine for scoring.

What the player doesn't do

  • It only listens. It doesn't send notes, lights or sounds back to your keyboard.
  • The sustain pedal doesn't affect your score; only key presses count.
  • Nothing about your keyboard or your playing leaves the browser. The practice log stays on your device until you export it.

Ready? Open the MIDI player or start with the four-bar rhythm loop, which is a quick way to check that your keyboard, sound and timing all behave.

MIDI Practice Lab

Play a MIDI file, loop the hard bars and practice your part with a keyboard. Nothing is uploaded.

Open the player

Questions

Do I need a driver for a USB MIDI keyboard?
Almost never. USB keyboards use the class-compliant USB-MIDI standard, which Windows, macOS, Linux, ChromeOS and Android support without a driver.
Can I use a keyboard with only 5-pin MIDI sockets?
Yes, with a USB-MIDI interface. Connect the keyboard's MIDI OUT to the interface's MIDI IN, and plug the interface into the computer.
Why does Firefox ask me to install an add-on?
Firefox grants MIDI access through a small site permission add-on that it generates for the site. It only gives that one site permission to use MIDI devices.