Pianuvo

Beginner guide 6 of 7

How to connect a MIDI keyboard or digital piano to a computer, phone or tablet

If you have a digital piano or an electronic keyboard, you can usually connect it to a computer, phone or tablet and use it with learning apps. The app then knows exactly which keys you press and when, with no guesswork. This guide explains how that connection works, what you need to set it up, and what to check when it doesn't work first time.

What MIDI is

MIDI stands for Musical Instrument Digital Interface. It is a standard way for electronic instruments and computers to talk to each other, and it has been around since the early 1980s, so almost every digital piano and keyboard made in recent decades supports it.

The important thing to understand is that MIDI does not carry sound. It carries messages about what you play. When you press a key, the keyboard sends a short message saying which key went down and how hard you pressed it. When you let go, it sends another message saying the key came up. The pedals send messages too. The app receiving these messages can then score your playing, light up the right key on screen, or make its own piano sound.

Each key has a number. Middle C is note 60, and each key up or down, black or white, adds or subtracts one. On an 88-key piano, the lowest A is note 21 and the top C is note 108.

6062646567
MIDI note numbers count every key: middle C is 60, D is 62 and E is 64, because the black keys between them count too

Because MIDI sends only these small messages, it is fast and precise. That makes it the most reliable way for an app to follow your playing.

USB or Bluetooth

There are two common ways to connect.

USB is the simplest and most dependable. Most modern digital pianos and keyboards have a USB port that sends MIDI. Plug a cable in, and the computer usually recognises the instrument straight away without installing anything. Some older instruments need a driver from the maker's website.

Bluetooth MIDI is wireless. It is convenient, but support varies from one system and browser to another. On some systems the keyboard must be paired from a special MIDI setup screen rather than the normal Bluetooth settings, and in some combinations a browser can't see a Bluetooth MIDI keyboard at all. If your keyboard has both, use the USB cable for learning and save Bluetooth for later.

Finding the right port and cable

Look on the back or underneath your keyboard for its ports.

Then choose a cable to match the device you're connecting to:

Connect the keyboard and switch it on before you open the app. Plugging in while the app is already open usually works too, but switching on first avoids one possible problem.

Browser support for Web MIDI

Apps that run in a web browser, like Pianuvo, use a browser feature called Web MIDI. Not every browser offers it, so the browser you use matters as much as the cable.

Web MIDI also only works on secure pages (addresses starting with https), and many browsers ask for your permission the first time a site wants to use MIDI devices. Choose Allow.

If you use a Mac, the easiest fix is to install Chrome, Edge or Firefox alongside Safari and use that for practice. On an iPad, use the microphone instead: see Learning with a real piano and a microphone.

Latency: why notes might feel late

Latency is the delay between pressing a key and hearing the sound or seeing the app react. With a USB cable, MIDI itself adds almost no delay. When something feels late, the cause is usually the sound output, not the keyboard.

To check the timing, set a metronome going and play steady quarter notes along with it on one key. Each note should land right on the click.

44
A simple timing check: play one key on every click and listen for any gap between your press and the sound

Troubleshooting

If the app doesn't see your keyboard, work down this list.

  1. Is the keyboard switched on? A keyboard that is switched off does not appear as a MIDI device.
  2. Is the cable in the right port? It should be the USB to Host port, not USB to Device.
  3. Does the cable carry data? Try a different cable, and try a different USB port on the computer. Avoid unpowered USB hubs.
  4. Is another program using the keyboard? On Windows in particular, a MIDI device can often be used by only one program at a time. Close music software, other MIDI apps and any other browser tabs that might be holding it, then try again.
  5. Unplug and plug back in. Disconnect the cable, wait a few seconds, and reconnect.
  6. Reload the page. Browsers check for MIDI devices when a page asks for them. A reload makes the page ask again.
  7. Check permissions. If you blocked MIDI access by mistake, open the site settings from the icon next to the address bar and allow MIDI devices.
  8. Check the browser. If you are using Safari, or any browser on an iPhone or iPad, Web MIDI is not available.

Once connected, play a quick test: press each key from C to G and back, and check that every key registers and nothing sticks.

𝄞44
A quick connection test: play up and down from middle C and check that each key lights up in the app

Try it in Pianuvo

In a browser that supports Web MIDI, Pianuvo detects a connected MIDI keyboard automatically. Choose MIDI keyboard when the app asks how you will play, or change it later in Settings, where the keyboard's name appears once it is found. Your sustain pedal works too. If you use Bluetooth speakers, the Audio delay setting lets you line the sound up with the falling notes. Then open any piece from the song library, such as Twinkle, Twinkle, Little Star, or start the Academy.

All guides and written lessons