Yes, if it has a USB-to-Host or USB-MIDI socket — most current keyboards do. That connection sends notes to software; hearing the keyboard’s own sounds through the computer needs an audio connection as well.
Check the socket
- USB-to-Host or USB-MIDI (usually a square USB-B port): connects to a computer.
- USB-to-Device (a flat USB-A port on the keyboard): for memory sticks, not computers.
- 5-pin MIDI In/Out: older connection; needs a MIDI-to-USB cable such as the GREATLINK or LEKATO LUM-03.
What USB-MIDI gives you
Notes and controls into software: virtual instruments, recording programs, notation and learning apps. The Casio CDP-S160 lists driver-free USB-MIDI for Mac, PC, iOS and Android; the Roland FP-10 has MIDI/USB MIDI and Bluetooth; the Alesis Recital Play has USB-MIDI.
Recording the keyboard’s own sound
USB-MIDI usually carries no audio. To record the piano sound built into the keyboard, connect its headphone or line output to an audio interface, such as the Behringer UMC22 or Focusrite Scarlett Solo.
The cable
Most keyboards use USB-B, so a USB-A-to-B cable such as the PWR+ 6 ft — or USB-C-to-B for newer laptops.
This is what keeps a keyboard useful after it stops being your main instrument: it becomes a controller for software.
The questions players ask
What is the difference between USB-MIDI and audio?
MIDI carries note data, so software on the computer makes the sound. Audio carries the sound the keyboard itself produces. Some instruments send both over one USB cable; many send only MIDI.
Do I need drivers to connect a keyboard?
Usually not. Most keyboards are class compliant and appear as a MIDI device without installing anything; the Casio CDP-S160 lists driver-free USB-MIDI.
What if my keyboard only has 5-pin MIDI ports?
Use a MIDI-to-USB cable such as the GREATLINK or LEKATO LUM-03.
Which cable do I need?
Most keyboards use a USB-B socket, so a USB-A-to-B cable like the PWR+ 6 ft cable, or a USB-C-to-B cable for newer laptops.
Last reviewed November 8, 2026