hitjam.io

How to connect a MIDI keyboard to a computer

Plug the keyboard into the computer with a USB cable, open a page that listens for MIDI, allow it when the browser asks, and play. Most keyboards need no driver.

Check it is sending notes

Step 1: the cable

Nearly every keyboard made in the last fifteen years uses a USB cable, usually USB-B (the square printer-style plug) on the keyboard end. Plug it straight into the computer if you can; hubs sometimes starve keyboards of power. Older keyboards with the round 5-pin MIDI sockets need a small USB-to-MIDI interface.

Step 2: power and drivers

Switch the keyboard on. Most are class-compliant, which means Mac and Windows recognise them without installing anything. A few larger keyboards ship with a driver on the maker's site; if the keyboard does not show up anywhere, that is the first thing to check.

Step 3: allow it in the browser

Open the MIDI keyboard test page in Chrome, Edge or Firefox and press Enable MIDI. The browser shows a small prompt asking to allow MIDI for this site. Choose Allow. The page then lists your keyboard by name, and every key you press appears with its velocity.

Only one program at a time

On Windows especially, a keyboard can be held by one program. If your music software is open, the browser may see nothing. Close the other program, unplug and replug, and reload the page.

Questions people ask

Do I need an audio interface?
No. MIDI is just messages; the computer makes the sound. An audio interface only matters if you want better speakers or lower latency for recording.
Can I connect a MIDI keyboard to a phone or tablet?
Sometimes, with a USB adapter, but Safari has no Web MIDI, so on an iPhone or iPad the browser route does not work. On Android, Chrome does.
Why does the browser ask for permission?
Because a page could otherwise read every key you press on a connected device. The prompt shows once per site; you can change it later in the site settings.

Check it is sending notes