Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Using a keyboard/piano sustain pedal with MAME?  (Read 3859 times)

0 Members and 1 Guest are viewing this topic.

shponglefan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1600
  • Last login:December 15, 2022, 07:22:35 am
  • Correct horse battery staple
Using a keyboard/piano sustain pedal with MAME?
« on: September 21, 2012, 12:47:41 pm »
Anyone tried this?  I have a Yamaha sustain pedal I don't use, so I was thinking of trying to rig it up for use with MAME.  I figured rigging up a 1/4" input jack would make for easy swapping in/out.

I was also wondering if expression/control pedals might also be used...
« Last Edit: September 21, 2012, 12:52:35 pm by shponglefan »

eds1275

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2165
  • Last login:July 21, 2025, 05:34:15 pm
  • Rock and Roll!
Re: Using a keyboard/piano sustain pedal with MAME?
« Reply #1 on: September 21, 2012, 02:22:36 pm »
Yeah it's basically a pushbutton. I have thought about the same thing.

An expression pedal would also work, you'd just need to connect it to an analogue input and configure it. Maybe put a stiff spring under the expression pedal to push it back up; instant gas pedal.

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Using a keyboard/piano sustain pedal with MAME?
« Reply #2 on: September 22, 2012, 07:12:46 pm »
There might be a 1/2" to usb adapter of some kind, but I can't find it.
-Banned-

molton

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 73
  • Last login:April 05, 2018, 10:46:57 pm
Re: Using a keyboard/piano sustain pedal with MAME?
« Reply #3 on: September 23, 2012, 11:17:12 am »
There's no such thing but you can make one, I use a rockband drum kit pedal on my computer, i had the encoder board of an x-arcade lying around from when i replaced it with an i-pac for my arcade machine.  It uses an 1/8th inch plug but works basically the same as a sustain pedal.  I got one of those project enclosure plastic boxes from Radioshack and threw the encoder board as well as the led indicator light, program switch, and an extra button to trigger the program mode.  The x-arcade is programmable, but you have to have the program mode selection switch available as the default mode 1 is not programmable, and you need a button or switch of some kind to change it from the default mode 1 to the program you specify every time it is powered up, and the light is there like it is on the original x-arcade to help with the actual programming, done by connecting a ps/2 keyboard to that ps/2 female connector hanging out of the enclosure.



I imagine the cheapest, simplest keyboard encoder available, or possibly one of them game controller encoders will meet your needs for one input
« Last Edit: September 23, 2012, 11:26:29 am by molton »

shponglefan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1600
  • Last login:December 15, 2022, 07:22:35 am
  • Correct horse battery staple
Re: Using a keyboard/piano sustain pedal with MAME?
« Reply #4 on: September 28, 2012, 05:00:20 pm »
*bump*

Just tried this today.  I use a female 1/4" to 1/4" male TRS cable and cut the male end off to get the wires.  I wired up the ground and +5V wires to an IPAC2.  Then I plugged in the sustain pedal... and the key was stuck "on".

Turns out the Yamaha FC-5 pedal is an always on switch, unless you press it.  Only then is the contact broken.  I assume other sustain pedals must work in the same way?

Fortunately, someone else had made a video on how to reverse this: .  After doing that, it now works the way I want.
« Last Edit: September 28, 2012, 05:02:38 pm by shponglefan »

eds1275

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2165
  • Last login:July 21, 2025, 05:34:15 pm
  • Rock and Roll!
Re: Using a keyboard/piano sustain pedal with MAME?
« Reply #5 on: September 29, 2012, 11:22:01 am »
Different companies use different pedal types, and they are usually reversible on the keyboard. For example, my Korg Triton is always off by default, but you can change that by going deeeeeeeeeep into the menus.

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Using a keyboard/piano sustain pedal with MAME?
« Reply #6 on: October 01, 2012, 12:31:49 am »
Different companies use different pedal types, and they are usually reversible on the keyboard. For example, my Korg Triton is always off by default, but you can change that by going deeeeeeeeeep into the menus.

On a Korg. Roland is easier.

I wouldn't really bother with a momentary switch pedal for such games. It's way easier to just use a button on the panel, and not really any different except your foot ain't on it.
-Banned-

eds1275

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2165
  • Last login:July 21, 2025, 05:34:15 pm
  • Rock and Roll!
Re: Using a keyboard/piano sustain pedal with MAME?
« Reply #7 on: October 01, 2012, 04:37:13 pm »
No what I meant was different pedal companies wire them differently. I don't think I have a single Korg-branded pedal. I have a roland, an Apex, a Peavey and a yamaha pedal and they aren't all the same - some are nc some are no.

Well Fed Games

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1884
  • Last login:January 07, 2025, 04:42:47 pm
  • Delicious!
Re: Using a keyboard/piano sustain pedal with MAME?
« Reply #8 on: October 01, 2012, 07:24:31 pm »
Now I am curious if a wah or volume pedal housing could be used as a pedal controller...
Completed projects: Pac bartop (Plug & Play), 30th Anniversary Pac cab (MAME), Point Blank (PS1), Centipede (arcade hardware- light restore), VS. Super Mario Bros (arcade hardware- light restore) Tetris Cocktail (SNES), Arcade Classics upright (60-in-1, then MAME), Multi-Raiden (arcade hardware). Pac Man vs.(Gamecube),

Working on: Pinball Re-theme, Homebrew arcade arena shooter