Versione Italiana segue quella inglese.
English:
So you’re a rockband fanatic and own one of those nice new rockband pro-drumkits with the added bonus of three cymbal pads. Suppose you’re also a free software user, like tinkering and are wondering whether you can use your new toy as an e-drumkit for midi recording purposes. Well guess what you can!
Now when I started my endeavor to get this working I came across a few solutions, the easiest was rerouting joystick input to keyboard and using those in hydrogen, but that was not midi and didn’t have velocity. I eventually found a program here, this worked very well, but unfortunately did not support cymbals for the newer pro-drumkits and had a note mapping that was useless with Hydrogen. So I figured that seeing as I talked the talk of free-software it was high time to walk the walk! I pulled out my trusty C manual and started cursing and banging my head against the wall. Eventually, more due to the original author leaving his testing code in the source than to my hacking expertise (ok so I hadn’t written a line of C in over 10 years), I cracked it.
You can find the products of my labor on this sourceforge page. You’ll find both a standard tar.gz source package and a .deb. Instructions for compilation are in the readme file.
Usage:
Plug your wireless ps3 dongle in and type rbdrum2midi in a terminal (you may have to do this as root if you haven’t set up proper usb device privileges). This will create an ALSA midiport, start the jack audio server and Hydrogen,
in the connection window under the alsa tab connect “129:PS3 Joystick Client” to Hydrogen.
the midi channels are mapped as follows
kick pedal 1: midi note 36
kick pedal 2: midi note 42
red pad : midi note 37
yellow pad: midi note 38
yellow Cymbal: midi note 41
blue pad: midi note 39
blue Cymbal: midi note 43
green pad: midi note 40
green Cymbal: midi note 45
This corresponds to the setup for the Hydrogen YamahaVintageKit.
Enjoy!!!
P.s. to fix the permissions problems create a file called 90-PS3-drumkit.rules in /etc/udev/rules.d/ containing:
SUBSYSTEM==”usb”, ATTR{idVendor}==”12ba”, ATTR{idProduct}==”0210″, GROUP=”audio”, MODE=”0664″
and make sure your user is a member of group “audio”
Italiano:
Siete dei fieri possessori di strumenti di plastica per giochi ritmici, magari di una di quelle batterie per rockband 3 e vi chiede se fosse possibile usarle come delle vere e proprie batterie midi. Beh me lo chiedevo anch’io!
Per windows esistono delle ottime soluzioni ma se siete degli utilizzatori del pinguino, le soluzioni sono meno ovvie. Ne ho provate parecchie da quelle più semplici che constavano nel deviare il segnale joystick alla tastiere lette dalle tastiere midi virtuali e da hydrogen (ottima batteria elettronica open source), altre soluzioni per quanto buone avevano comunque dei limiti, o non registravano la forza d’impatto o comunque gli mancava il supporto dei piatti. Ho finalmente trovato questo programma a cui mancava solo il supporto dei piatti e una mappatura delle note midi che potesse essere utile in hydrogen. Beh … nonostante siano più di dieci anni che non scrivo una linea di codice in C ho ripescato il mio fido (e polveroserrimo) manuale e mi ci sono messo di buzzo buono. Parecchie craniate e improperi dopo, ne sono emerso vincitore! E non contento ho affrontato pure autotools e checkinstall per pacchettizare il programma in un targ.gz con il codice sorgente e un .deb pronto da installare che ho messo in in questa pagina sourceforge. Le istruzioni di compilazione e di utilizzo sono nel file README.
Utilizzo:
Attaccate il trasmettitore wireless usb della batteria al PC (funziona per certo quella per PS3, forse quella della Wii, per l’xbox credo serva un’adattatore), da terminale digitate:
rbdrum2midi
Questo creerà una porta midi con ALSA, fate partire il server jack con qjackctl, fate partire hydrogen e nella finestra delle connessioni selezionate il tab alsa e connettete la porta “129:PS3 Joystick Client” in uscita a hydrogen in ingresso.
La mappatura midi e configurata così:
kick pedal 1: midi note 36
kick pedal 2: midi note 42
red pad : midi note 37
yellow pad: midi note 38
yellow Cymbal: midi note 41
blue pad: midi note 39
blue Cymbal: midi note 43
green pad: midi note 40
green Cymbal: midi note 45
Che è configurata per adattarsi al meglio alla batteria hydrogen YamahaVintageKit.
Divertitetevi!!!
Ps. Se avete problemi di permessi usb, create un file chiamato 90-PS3-drumkit.rules in /etc/udev/rules.d/ contenente la riga seguente:
SUBSYSTEM==”usb”, ATTR{idVendor}==”12ba”, ATTR{idProduct}==”0210″, GROUP=”audio”, MODE=”0664″
Controllate che il vostro utente sia membro del gruppo audio e fate ripartire udev:
sudo services udev reload
Dovreste essere a posto.
