Skip to content
Back to blog
Practice habits

How to connect a digital piano to a phone or iPad over MIDI

Virtu Team4 min read

A digital piano connects to a phone or tablet with a single USB cable. Plug one end into the USB TO HOST port on the piano, and connect the other end to your device’s USB-C or Lightning port using the matching cable or adapter. Virtu detects the piano automatically with nothing to configure: once Settings › Keyboard › Digital piano reads Connected, you’re ready to play.

At a glance

  • On the piano’s rear or underside panel, locate the square USB TO HOST (USB-B) port. The flat USB TO DEVICE port is only for flash drives.
  • Use a direct USB-C to USB-B cable for USB-C devices, or Apple’s Lightning to USB 3 Camera Adapter for Lightning devices.
  • If your piano only has round 5-pin MIDI DIN ports, use a MIDI-to-USB interface cable.
  • Once connected, Settings › Keyboard › Digital piano shows Connected, and pressing keys lights up the on-screen keyboard strip.

What passes between the piano and your device

What travels through the cable is MIDI performance data, not audio: a real-time log of which keys you pressed, how fast they went down, when you let them up, and how you used the pedals. Because no audio is rerouted by default, your piano’s sound still comes out of the piano’s own speakers or headphone jack, while the metronome and score playback come from your phone or tablet. To see how the app turns that data into note-by-note feedback, read How MIDI piano practice feedback works.

Two types of MIDI ports on digital pianos

  • USB TO HOST (USB-B): the bevel-cornered square port, the same shape used by printer cables, designed to connect the instrument to a computer, phone, or tablet. Some manufacturers label it USB COMPUTER. Ignore the flat rectangular USB TO DEVICE or USB MEMORY port next to it; that port is meant for USB thumb drives.
  • 5-pin MIDI (DIN): a pair of round five-pin sockets labeled MIDI IN and MIDI OUT. If your instrument only has 5-pin MIDI ports, use a MIDI-to-USB interface cable with two 5-pin plugs on one end and a USB connector on the other.

Check the port on your phone or tablet

iPhones use USB-C starting with iPhone 15, and Lightning on earlier models. iPads use either USB-C or Lightning depending on the generation, so check the charging port shape. Nearly all modern Android phones and tablets use USB-C. For a full compatibility overview, see Which devices can I use Virtu on?

Connecting, step by step

  1. Power on the piano firstSwitch the piano on before plugging in the cable. If your instrument has a menu setting for USB/MIDI output, make sure it’s enabled.
  2. Choose the right cable for your deviceFor any USB-C iPhone, iPad, or Android device, a single USB-C to USB-B cable connects directly without adapters. If you already own a standard USB-A to USB-B printer cable, simply add a compact USB-C OTG adapter on the device end.
  3. Lightning devices: use the powered camera adapterPlug your piano’s USB cable into Apple’s Lightning to USB 3 Camera Adapter, and plug your charger into the adapter’s pass-through Lightning port so both your iPhone or iPad and the USB MIDI connection receive steady power.
  4. 5-pin MIDI: cross-connect IN and OUTConnect the interface cable’s IN plug to the piano’s MIDI OUT jack, and the cable’s OUT plug to the piano’s MIDI IN jack. If the labels on the cable plugs are ambiguous and no signal comes through, swap the two 5-pin plugs.
  5. Verify the connection in VirtuPlug in the cable while Virtu is open and a MIDI connected banner appears. Check that Settings › Keyboard › Digital piano shows Connected and that playing keys illuminates the mini key strip below.

Common mistakes

Using a charge-only cable or adapter

Some inexpensive cables and adapters wire only the power pins and omit the data lines. Make sure your cable and any adapter support USB data transfer.

Plugging into USB TO DEVICE by mistake

Reaching behind the piano, it’s easy to confuse the ports. Remember that phones and tablets always connect to the square USB TO HOST port, never the flat flash-drive port.

Hearing every note doubled

If Hear your keys through Virtu is turned on while your piano’s speakers are also active, both the piano and the app will sound every note you play. To hear only Virtu’s piano sound, turn your piano’s master volume all the way down or disable Local Control in the piano’s settings, which disconnects the physical keys from the piano’s internal sound engine; to hear only your piano’s speakers, turn Hear your keys through Virtu off. See I hear every note twice for details.

Guessing instead of checking the MIDI status badge

If the app isn’t responding, look at the MIDI badge at the top of the practice screen first. No MIDI device means the device hasn’t detected a piano yet; MIDI disconnected means an active connection dropped. Check the piano’s power, cable seating, and USB/MIDI mode, then unplug and reconnect the cable. For further steps, see Virtu doesn’t respond when I play.

Virtu finds a connected piano on its own

Virtu detects and opens any connected USB MIDI piano automatically. There are no MIDI ports or channels to configure, and plugging in a cable after the app is already open works immediately.

  • The first time you enter practice, Check your piano connection walks you through Piano connection, Key signal, and Latency calibration. Once completed, you go straight to your score on future sessions.
  • The status indicator at the top of the practice screen displays Connected, No MIDI device, or MIDI disconnected. If a cable is bumped mid-session, your practice screen stays put and reconnects the instant you plug it back in.
  • Latency calibration has you tap a key along with a few metronome clicks through the speakers or wired headphones you actually practice with, ensuring notes played in time with what you hear are judged squarely on the beat.

Questions

Do I need to select my piano model in the app after plugging it in?

No. Virtu automatically discovers and opens any class-compliant MIDI keyboard connected to your device. If multiple MIDI controllers are connected at once, Virtu listens to all of them seamlessly.

Can I use a MIDI controller keyboard that has no built-in speakers?

Yes. Because Virtu evaluates your playing from MIDI messages, scoring and feedback work identically on a silent MIDI controller. To hear yourself play through your phone or tablet, turn on the Plus feature Hear your keys through Virtu to play using Virtu’s built-in piano sounds.

I’m connected with a USB cable, so why are my notes judged late?

While MIDI messages travel over USB almost instantaneously, your phone’s or tablet’s audio hardware takes a small amount of time to send the metronome click to your speakers or headphones. Run Settings › Keyboard › Latency calibration once using the speakers or wired headphones you practice with so Virtu compensates for that audio output delay. Avoid Bluetooth headphones for practice, as Bluetooth audio introduces a large, variable delay.

Plug in one cable, and Virtu finds your piano

Connect over USB with zero configuration, and Virtu checks every note you play against the score.