Gear · Beginner · 4 min read
How to Connect a MIDI Keyboard to a Computer, Phone or Tablet
Connect a digital piano or MIDI keyboard by USB, MIDI 5-pin or Bluetooth to Windows, Mac, Android or iPad, use it in the browser with Web MIDI, and fix common problems.
Connecting your keyboard unlocks learning apps, recording, notation software and real-time feedback. On EasyChording the AI Piano Teacher uses it to check every note, measure your timing and read how hard you press each key.
Step 1: Find the right port on your keyboard
| Port on the keyboard | What you need |
|---|---|
| USB-B ("USB to host", square-ish) | USB-B to USB-A cable, or USB-B to USB-C for newer laptops and Android phones |
| USB-C | USB-C to USB-C (or to USB-A) cable |
| MIDI OUT / MIDI IN (round 5-pin DIN) | a USB-MIDI interface cable; connect the keyboard's MIDI OUT to the interface's IN |
| Bluetooth MIDI (in the manual or settings) | nothing; pair from the app or system settings |
Note that a "USB to device" port (USB-A on the keyboard) is for USB sticks, not for connecting to a computer.
Step 2: Connect to your device
Windows and macOS: plug in the cable and switch on the keyboard. Class-compliant keyboards appear automatically; a few older models need a driver from the manufacturer's website.
Android: use a USB-C (or OTG adapter) cable. Chrome on Android supports Web MIDI.
iPad and iPhone: connect with Apple's USB-C or Lightning-to-USB adapter. Apps that support MIDI work, but iOS browsers don't support Web MIDI, so browser-based tools like the AI Piano Teacher can't read the keyboard there (use the on-screen keys or microphone instead).
Bluetooth MIDI: on macOS, pair in Audio MIDI Setup (Window → Show MIDI Studio → Bluetooth). On Windows and Android, the app or browser connects to the paired device; check your keyboard's manual for the exact steps.
Step 3: Use it in your browser (Web MIDI)
- Open the AI Piano Teacher in Chrome, Edge or Opera (or Firefox, which asks for permission first).
- Press Connect MIDI keyboard and allow MIDI access when the browser asks.
- Play a key. The keyboard on screen lights up, and the status shows your device's name.
- Optional: choose your keyboard under Sound to hear lessons through its own speakers (MIDI output).
Web MIDI requires a secure connection (HTTPS), which EasyChording uses. Nothing is sent from your keyboard to our servers: the browser processes the notes locally.
Troubleshooting
| Problem | Try this |
|---|---|
| Keyboard not listed | Switch the keyboard on before opening the page; try another USB port and cable (some cables are charge-only); reload the page. |
| Browser didn't ask for permission | Check the site permissions (lock icon in the address bar) and allow MIDI devices. |
| Works in one app only | On Windows, some drivers allow only one program at a time; close other music apps. |
| Notes sound twice | Your keyboard and the app both make sound. Turn down the app's sound, or turn on "Local Off" on the keyboard if you use the computer's sounds. |
| Timing feels late (Bluetooth) | Bluetooth adds latency. Use USB for practice, or raise Latency compensation in the Piano Teacher's settings (often 30–80 ms). |
| Velocity seems uneven | Check the keyboard's touch setting ("normal" is usually best for practice). |
What MIDI does (and doesn't) send
MIDI sends events, not sound: which key, when it was pressed and released, how hard (velocity, 1–127), pedal movements and controller changes. That's why MIDI recordings are tiny, can be edited note by note, and can be played back with any sound. The AI Piano Teacher can save your takes as standard .mid files.
Frequently asked questions
Do I need a driver for my MIDI keyboard?
Usually not. Most keyboards made in the last decade are USB class-compliant and work immediately on Windows, macOS, ChromeOS, Linux and Android. Very old models may need a driver from the manufacturer.
Can I use Bluetooth MIDI for practice?
Yes, but Bluetooth adds a little delay. For timing-sensitive practice and scoring, a USB cable is more accurate. If you use Bluetooth, adjust the latency compensation setting.
Why doesn't Web MIDI work on my iPhone or iPad?
Apple's mobile browsers all use the Safari engine, which doesn't support Web MIDI. Use a computer or Android device with Chrome or Edge, or use dedicated iOS apps that support MIDI.
What is the difference between MIDI and audio?
Audio is the sound itself, a recording of the waveform. MIDI is a set of instructions (which notes, when, how hard) that any instrument or app can turn into sound.