Konami playstation keyboard-- usable for midi??

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Konami playstation keyboard-- usable for midi??

Post by briandc »

ssj71 wrote: :? I don't know why that would be, especially when it was working before.
The only changes I made from master are listed here:
https://github.com/rbdrum2midi/rbdrum2m ... bb83c94e9c

I guess if you still have the old copy you were using we can go back to that, Just do this change to make the buffer bigger: https://github.com/rbdrum2midi/rbdrum2m ... e8121f3L15

recompile and try again. (there will be a lot of this)
I changed the line as you suggested. Still nothing. I even tried with a new download into another directory, but all of them say to run as root. But running as root *still* doesn't run the exec.



brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
ssj71
Established Member
Posts: 1294
Joined: Tue Sep 25, 2012 6:36 pm
Has thanked: 1 time

Re: Konami playstation keyboard-- usable for midi??

Post by ssj71 »

briandc wrote:Still nothing.
:( Well I'm a bit stuck then. You can try the master branch to see if that changes it. It seems like maybe something in your computer configuration has changed. I'll see if I can get some time to play with the devices I have to make sure I haven't totally broken it.
_ssj71

music: https://soundcloud.com/ssj71
My plugins are Infamous! http://ssj71.github.io/infamousPlugins
I just want to get back to making music!
User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Konami playstation keyboard-- usable for midi??

Post by briandc »

ssj71 wrote: :( Well I'm a bit stuck then. You can try the master branch to see if that changes it. It seems like maybe something in your computer configuration has changed. I'll see if I can get some time to play with the devices I have to make sure I haven't totally broken it.
I was kind of thinking the same thing (about a configuration change). I did everything the same as before, so something somewhere is different.
If you have any ideas I'm more than happy to continue this "adventure." It seemed like you were very close to solving it!

In the meantime I'll do some searching at linuxaudio. The problem is that, in these kinds of situations, I always have a question or doubt that comes along that I'm not clear about how to solve. I'm still quite an "out-of-the-box" type of person. Sometimes things are simple to solve (like when you told me to change the line in the midi.h file), but all it takes is a lack of mention of "where" to put a file or similar, and I get off track.

Don't know if that makes sense or not. Sometimes I think these things could be resolved much quicker over the phone. But for whatever reason, that doesn't seem to be the norm anymore these days. So things take a longer time than they should. Imo, anyway.


brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Konami playstation keyboard-- usable for midi??

Post by briandc »

@ssj71: Here's something that, from the ReadMe, seems it might work: LSMI

Any thoughts?

brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
CrocoDuck
Established Member
Posts: 1133
Joined: Sat May 05, 2012 6:12 pm
Been thanked: 17 times

Re: Konami playstation keyboard-- usable for midi??

Post by CrocoDuck »

briandc wrote:@ssj71: Here's something that, from the ReadMe, seems it might work: LSMI

Any thoughts?

brian
It isn't very clear what that package can do or not do, and the fact that it was last modified in 2003 makes me think it is a dead project.

Your system appears to be able to automatically recognize the device as a gamepad. I suggest to look whether it also works then. If it works, you can translate gamepad events to MIDI with a few utilities.

https://wiki.archlinux.org/index.php/Ga ... figuration
you should be able to find a new device: /dev/input/js0 and a file ending with -event-joystick in /dev/input/by-id directory. You can simply cat those devices to see if the joystick works - move the stick around, press all the buttons - you should see mojibake printed when you move the sticks or press buttons.
ubuntuuser
Established Member
Posts: 315
Joined: Mon Jan 02, 2017 9:46 am
Has thanked: 1 time
Been thanked: 5 times

Re: Konami playstation keyboard-- usable for midi??

Post by ubuntuuser »

ssj71 wrote:if its not too much trouble try with the -dbg and -v options.

Its odd because it looks like its starting then gets a bad USB transfer by the look of it.

EDIT: Did it work at all when you pressed keys or just immediately crash? This is where it may get difficult to troubleshoot through the forums. :\
The irq transfer status 6? 1 error happens with the XBox version of the Guitar Hero drums as well.

The PS2/3 version of the Guitar Hero drums is ok.
ubuntuuser
Established Member
Posts: 315
Joined: Mon Jan 02, 2017 9:46 am
Has thanked: 1 time
Been thanked: 5 times

Re: Konami playstation keyboard-- usable for midi??

Post by ubuntuuser »

ssj71 wrote:Ok, after a little research I think maybe the buffer was too small. I've added the changes we figured out to a new branch called kbmania. Can you check that out and try? You shouldn't need to change anything, just pull, build, run.
I changed
INTR_LENGTH 27

to

INTR_LENGTH 256

and now the XBox wireless Guitar Hero drums work.

I also changed the device id of the PS3 GH kit line to

devh = libusb_open_device_with_vid_pid(NULL, 0x045e, 0x0291) for my generic xbox receiver dongle.
User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Konami playstation keyboard-- usable for midi??

Post by briandc »

ubuntuuser wrote:
ssj71 wrote:Ok, after a little research I think maybe the buffer was too small. I've added the changes we figured out to a new branch called kbmania. Can you check that out and try? You shouldn't need to change anything, just pull, build, run.
I changed
INTR_LENGTH 27

to

INTR_LENGTH 256

and now the XBox wireless Guitar Hero drums work.

I also changed the device id of the PS3 GH kit line to

devh = libusb_open_device_with_vid_pid(NULL, 0x045e, 0x0291) for my generic xbox receiver dongle.
How did you avoid not having to open rbdrum2midi as root? Did you do a "sudo make install" or just "make install?"


brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
ubuntuuser
Established Member
Posts: 315
Joined: Mon Jan 02, 2017 9:46 am
Has thanked: 1 time
Been thanked: 5 times

Re: Konami playstation keyboard-- usable for midi??

Post by ubuntuuser »

briandc wrote:
ubuntuuser wrote:
ssj71 wrote:Ok, after a little research I think maybe the buffer was too small. I've added the changes we figured out to a new branch called kbmania. Can you check that out and try? You shouldn't need to change anything, just pull, build, run.
I changed
INTR_LENGTH 27

to

INTR_LENGTH 256

and now the XBox wireless Guitar Hero drums work.

I also changed the device id of the PS3 GH kit line to

devh = libusb_open_device_with_vid_pid(NULL, 0x045e, 0x0291) for my generic xbox receiver dongle.
How did you avoid not having to open rbdrum2midi as root? Did you do a "sudo make install" or just "make install?"


brian
I've been doing a sudo make install and then running it with sudo rbdrum2midi in it's own terminal window.

What I've been trying to do is to get the Guitar Hero XBox drums midi out to appear as midi in on a Linux Reaper track.

If I use a2jmidi, then the rbdrum2midi midi out can be connected to Linux Reapers midi in in the QJackCtl connect window and it works ok for recording the Guitar Hero drums into a Linux Reaper track..

I've got 2 versions of the Guitar Hero drums, an XBox version and a PS3 version and the PS3 version works fine with rbdrum2midi but the XBox version had/has some problems and increasing the INTR_LENGTH stopped the irq transfer status 6? 1 crashing problem.
ssj71
Established Member
Posts: 1294
Joined: Tue Sep 25, 2012 6:36 pm
Has thanked: 1 time

Re: Konami playstation keyboard-- usable for midi??

Post by ssj71 »

ubuntuuser wrote: increasing the INTR_LENGTH
Thanks for the report. I I suspected this was Brian's problem, but I didn't know other devices were being effected by it. It seems however Brian also has some other issue with the udev rule, forcing him to run as root.

Brian, just as a sanity check, can you paste the output of lsusb and cat /etc/udev/rules.d/90-drumkit.rules ?
We can do some troubleshooting running it as root, but in the end we have to figure this out for you to really use it I think.
_ssj71

music: https://soundcloud.com/ssj71
My plugins are Infamous! http://ssj71.github.io/infamousPlugins
I just want to get back to making music!
User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Konami playstation keyboard-- usable for midi??

Post by briandc »

ssj71 wrote: Brian, just as a sanity check, can you paste the output of lsusb and cat /etc/udev/rules.d/90-drumkit.rules ?
We can do some troubleshooting running it as root, but in the end we have to figure this out for you to really use it I think.
Sure.
For lsusb I get:

Code: Select all

brian@brian-F9E:~$ lsusb
Bus 002 Device 005: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader
Bus 002 Device 003: ID 174f:8a31 Syntek 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 0b05:1712 ASUSTek Computer, Inc. BT-183 Bluetooth 2.0+EDR adapter
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 08bb:2902 Texas Instruments PCM2902 Audio Codec
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 0507:0010 Hosiden Corp. 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
where the controller is "Hosiden Corp."

and for cat /etc/udev/rules.d/90-drumkit.rules :

Code: Select all

SUBSYSTEM=="usb", ATTR{idVendor}=="12ba", ATTR{idProduct}=="0210", GROUP="audio", MODE="0664"
SUBSYSTEM=="usb", ATTR{idVendor}=="12ba", ATTR{idProduct}=="0120", GROUP="audio", MODE="0664"
SUBSYSTEM=="usb", ATTR{idVendor}=="1bad", ATTR{idProduct}=="0003", GROUP="audio", MODE="0664"
SUBSYSTEM=="usb", ATTR{idVendor}=="1bad", ATTR{idProduct}=="0005", GROUP="audio", MODE="0664"
SUBSYSTEM=="usb", ATTR{idVendor}=="0507", ATTR{idProduct}=="0010", GROUP="audio", MODE="0664"
Hth!

brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
ssj71
Established Member
Posts: 1294
Joined: Tue Sep 25, 2012 6:36 pm
Has thanked: 1 time

Re: Konami playstation keyboard-- usable for midi??

Post by ssj71 »

briandc wrote: Hth!
it does, just by eliminating some possible causes. You are a member of the audio group right (use the command "groups")?

I'm really stuck on why that udev rule isn't working. :(
_ssj71

music: https://soundcloud.com/ssj71
My plugins are Infamous! http://ssj71.github.io/infamousPlugins
I just want to get back to making music!
User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Konami playstation keyboard-- usable for midi??

Post by briandc »

ssj71 wrote: it does, just by eliminating some possible causes. You are a member of the audio group right (use the command "groups")?

I'm really stuck on why that udev rule isn't working. :(
Yes, I'm in the audio group too.

Perhaps I could try on another pc. In order for me to get set up on the other pc, what do I need to know first? (eg. dependencies, zip vs. git version to install, etc)

Till now, I have been using Ubuntu Studio (32-bit). On this second trial, I will be using Librazik-2 (64-bit).


brian

PS. Thank you for your continued interest on this! :)
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
ssj71
Established Member
Posts: 1294
Joined: Tue Sep 25, 2012 6:36 pm
Has thanked: 1 time

Re: Konami playstation keyboard-- usable for midi??

Post by ssj71 »

briandc wrote:PS. Thank you for your continued interest on this! :)
Thank you for sticking it through! I want it to work, but its not playing nicely with us! :|

I really think if we just get it connecting again it will go a long way. I'd recommend you do a git clone, then 'git checkout kbmania' and just follow the readme. Don't forget to update the udev rule with the usb ID of the keyboard. Once we're connecting and running in debug mode it shouldn't be too terrible to figure out what the messages look like and we can add the midi mapping.
_ssj71

music: https://soundcloud.com/ssj71
My plugins are Infamous! http://ssj71.github.io/infamousPlugins
I just want to get back to making music!
User avatar
briandc
Established Member
Posts: 1442
Joined: Sun Apr 29, 2012 3:17 pm
Location: Italy
Has thanked: 58 times
Been thanked: 28 times
Contact:

Re: Konami playstation keyboard-- usable for midi??

Post by briandc »

ssj71 wrote:
briandc wrote:PS. Thank you for your continued interest on this! :)
Thank you for sticking it through! I want it to work, but its not playing nicely with us! :|

I really think if we just get it connecting again it will go a long way. I'd recommend you do a git clone, then 'git checkout kbmania' and just follow the readme. Don't forget to update the udev rule with the usb ID of the keyboard. Once we're connecting and running in debug mode it shouldn't be too terrible to figure out what the messages look like and we can add the midi mapping.
I haven't ignored your message. I'm just away from the computer for a few days but when I get things set-up I'll update! :)

brian
Have your PC your way: use linux!
My sound synthesis biome: http://www.linuxsynths.com
Post Reply