Sound Design Stack Exchange is a question and answer site for sound engineers, producers, editors, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm just starting to experiment with digital audio, MIDI in particular. My electronic keyboard has a sustain pedal with what looks like a standard 1⁄4 in. connector. I know there are MIDI sustain pedals out there, but I think it would be super-cool if I could figure out a way to hook it up to my computer. How does a keyboard sustain pedal work? Would it be possible to plug it into one of my audio inputs and script something up to make the computer think it's a MIDI controller?

share|improve this question

migrated from Jan 24 '14 at 18:30

This question came from our site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation.

up vote 1 down vote accepted

The sustain pedal on a standard MIDI keyboard is simply a switch (that's why it is also called a footswitch). Some keyboards (Like my Kurzweil PC-88) have multiple footswitch jacks that can assigned to different MIDI functions, most map it directly to sustain.

Plugging the footswitch directly into your audio input won't accomplish what you want and could potentially damage the equipment.

In order to use the footswitch as a MIDI controller, you will need to plug it into the proper jack on your keyboard and attach the keyboard's MIDI jacks to your computer. Then you can use software such as MIDI-OX to remap the controller message to do what you want.

share|improve this answer
Ah, so it's not analog. That's too bad. :( – Archagon Mar 23 '12 at 17:52

You can do what you want with a joystick adapter.

Gameport pinout


You can use the pins for buttons 1-4 to attach pedals to. Then, you can use one of the many pieces of software, such as MJOY ( to map the "joystick" to MIDI functions.

share|improve this answer
That's awesome. Thanks! – Archagon Mar 26 '12 at 2:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.