Rockband Drumkit midi driver for linux with cymbal support. Driver midi per batteria rockband con supporto per i piatti.

•February 12, 2012 • 12 Comments

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”

Sourceforge Project Page

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.

Music production on linux: Guitar and Behringer UCG102. Produzione Musicale con il pinguino:registrazione della chitarra elettrica. Part 1:

•March 27, 2008 • 6 Comments

Italiano: (English version at bottom of page)

Tanto per cominciare “SI PUO’ FARE!!!”. Io al momento ho solo un interesse molto limitato alla cosa, voglio solo applicare effetti in tempo reale alla chitarra registrare quello che suono e magari mixarci sopra qualcosa più avanti (quando ho capito come si fa). Tenete presente che Io Non Sono Un Guru (INSUG) e questa non si sogna di essere una guida (se vedete qualche vaccata siete pregati di segnalarmelo), ma solo la trascrizione di quelle che sono le mie esperienze da profano nella registrazione, il mixaggio e la produzione musicale usando software libero (o quasi se riesco provo a usare anche i pluggin vst).

Il primo problema da superare è quello della cattura del segnale della chitarra. Le schede audio da riproduzione integrate e non, sono fatte per produrre suoni più o meno fedelmente per film, musica o tutt’al più videogiochi, la parte adibita alla registrazione di segnali esterni è a malapena sufficiente per recuperare l’audio da un vecchio vinile o per fare un karaocchio un po’ scadente!

Il secondo problema è che il segnale che esce dalla chitarra è ad alta impedenza, mentre i minijack delle schede audio sia per il line in che per il microfono sono a media/bassa impedenza. Questa differenza provoca una perdita delle tonalità medie e alte dello strumento risultando in un suono piatto e smorto, per una breve spiegazione ed esempi con tanto di file audio andate qui. Per risolvere questo problema bisogna utilizzare un pre-amplificatore (come una pedaliera multi-effetto con uscita cuffia o addirittura presa usb) o una periferica apposita come il Behringer guitar link UCG102, il Line6 toneport gx o l’ M-audio fasttrack.

Continue reading ‘Music production on linux: Guitar and Behringer UCG102. Produzione Musicale con il pinguino:registrazione della chitarra elettrica. Part 1:’

Lacie Ethernet Disk Mini (Linux, Ubuntu): EDmini_LogOn

•August 21, 2007 • 7 Comments

English

If you have one of these toys and have difficulty accessing it via USB since an operating system update (ubuntu dapper to edgy did it for me and feisty did not fix it), this is how I got it to work again.

First off it won’t even start if you don’t follow the instructions I found on this French page of which I have copy/pasted the basic instructions:

Continue reading ‘Lacie Ethernet Disk Mini (Linux, Ubuntu): EDmini_LogOn’

Ubuntu, stability and house-keeping. Instabilità e bug-tracking: il pessimo stato di ubuntu.

•July 1, 2007 • Leave a Comment

Italiano

Non capisco cosa impedisca ai maintainers di ubuntu dapper drake di propagare patch di bachi ben noti e già risolti dai tempi di edgy eft a quella che dovrebbe essere la loro distribuzione con supporto tecnico a lunga scadenza, ma che razza di supporto è? Per fare un esempio c’è un baco in F-spot che non visualizza le foto rotate in portrait all’ acquisizione, che è stata ampliamente risolta, perché non renderla disponibile? Neanche un backport … non capisco … Da canto suo la feisty ha i suoi bei problemi, uno per tutti il nuovo, leggero ed apprezzabile sistema di indicizzazione di meta-dati tracker fa a pugni con l’ancora più apprezzabile barra multifunzionale deskbar-applet, Evolution da strani segni di squilibrio (continua a chedere le password di account di posta che conosce finche non gli dai annulla, invia e ricevi e poi va come se niente fosse).

Mi chiedo che fine ha fatto l’attenzione con cui si pacchettizzano i programmi e le librerie e soprattutto poi come le si mantengono. Che fine ha fatto il “tanti occhi=pochi bug” dov’è finita la leggendaria stabilità e sicurezza … Forse che con l’introduzione di eccessiva complessità nei sistemi non ci siano più le risorse umane per stargli dietro? Non lo so ma non mi piace.

P.s. se qualcuno e riuscito a far funzionare il sofware di collegamento usb del Lacie ethernet disk mini sotto fiesty sono tutto orecchi così upgrado la dapper sul portatile.

English

I’m an ubuntu user and before that I was a debian sid user and before that … ok you get it. I moved from sid to ubuntu when I started writing a program in python using wxpython libraries as a gui toolkit and sid threw in an API change like a spanner in my machinery and everything went pair shaped. I was not pleased matter of fact I was fuming, but I only had myself to blame as I was using an unstable branch to begin with. I moved on to Ubuntu because it froze APIs for predictable time-frames, had some nice sane presets for desktop use and it saved considerable time in customization for desktop use, plus it was debian, with a few bells and whistles. All was well breezy, was everything I expected from a desktop enhanced debian distro, sure it had it’s issues (cups for one), but there were very few distros that got it right at the time anyway.

Continue reading ‘Ubuntu, stability and house-keeping. Instabilità e bug-tracking: il pessimo stato di ubuntu.’

Terrorismo, leggi ad personam e consequenze … Who needs terrorism when you’ve got politicians …

•May 31, 2007 • Leave a Comment

Italian

Sono stati dichiarati colpevoli e prosciolti per prescrizione dei terroristi, ma quello che è più grave è che mi sento circondato da un boato di silenzio attorno alla notizia. E possibile che non ci sia alcun organo d’informazione con medio seguito che gridi allo scandalo, punti il dito e s’indigni? Neanche Beppe Grillo?

Beh almeno il silenzio e bipartisan, come l’uso della ex cirielli che li dichiara non più perseguibili anche se colpevoli …

Giuro che se sento parlare di assoluzioni m’incazzo come una iena!

Sono depresso forse ce li meritiamo i terroristi …

English

Proven terrorists were allowed to walk free today. They used a law written by our ex premier to keep him and his cronies out of jail as well as a significant amount of other members of the rich and powerful club.

Well the good news is that this being a democracy everyone is held to the same laws, the bad is well … we let terrorists roam our country unpunished …

On the main stream news the silence is deafening! 

Simon Says: Consoles, Terminals and Command Prompts. La riga di comando: Mai uscire senza!

•May 12, 2007 • Leave a Comment

English

I was reading yet another Linux distribution review where a well meaning self elected computer usability expert blurted something along the lines of the trite “As long as there is need for a command prompt, it will remain relegated to the experts” and all that jazz…

Then it suddenly hit me: what would happen if they suddenly removed all trace of the command prompt from Linux (obviously giving gui substitutes)?

To any techies and other *nix users: stop hyperventilating it’s all ok it was just a gedanken experiment, please start breathing again. Now to anyone used to Macs and Microsoft Osses (just how does one spell that?) the idea of using one is just laughable (I still maintain you havn’t lived in geekland until you’ve run start run cmd and raught spectacular havoc on a windows PC). But to any sysadmin, used to managing multiple servers text based, or even an advanced/expert *nix workstation desktop user, being deprived of the command prompt is akin to being dragged kicking and screaming out of the drivers seat of sports car plonked in the passenger seat gagged, with your hands bound firmly behind your back and given only a driver speaking a foreign language and smiling dumbly at you to drive the car.

I have to admit that not diving head first into an epic cavalcade on the power, beauty and glory of what can be achieved in textland is an heroic display of restraint on my part. Don’t get me wrong I’m in no way a super dooper shell script whizzbang leet man, but I fend for myself pretty well in prompt land and occasionally write my own little scripts when I find I’m victim to some new tedious daily IT housekeeping routine. Now if I were stuck without it, I’d be using half a gazillion graphical tools simultaneously to get my normal routine done while they eat all my memory and slow me down forcing me to jump from one to the other like a rabbit in a polygamous mating frenzy on speed. Kind of like the physical sensation of having my upper arms tied to my body when working with only one desktop instead of many, only worse.

So ok, sure I would never expect my mother to jump into a command prompt and edit a configuration file with vim. But then I wouldn’t even expect her to set up her internet connection, mail client or whatever else in windows or on a Mac. All I would expect her to do is use the darn things once I (or whatever other paid expertise for those with no astrogeeks in the bloodline) have configured it for her.

What I’m trying so misguidedly to convey here is that the command line is no mideval torture instrument to be unleashed on new and unsuspecting users, but rather, it is a blessing in plain clothes for all those people who have to do real technical tasks or deal with setting up these machines for those who can’t. So instead of treating it like some kind of necessary evil it would be appreciated if all those wet behind the ears, unlicensed review wielders and self professed usability experts and possibly even the more seasoned folks that actually do know what they’re talking about would please loose the command prompt-present=only for supergeeks argumentation, it just doesn’t stand.

Italiano

L’altro giorno leggevo un altro di quelle inutili recensioni su una qualche distro GNU/Linux dove se ne pontificavano i nuovi passi in avanti per quanto riguarda interfacce, installazione, usabilità … insomma le solite per poi finire ancora una volta sul ancor più trito cliché che recita più o meno nelle sue innumerevoli declinazioni :”Linux non è ancora pronto per mia nonna con il parkinson e la demenza senile perché richiede ancora l’uso della riga di comando per alcune operazioni.”

Continue reading ‘Simon Says: Consoles, Terminals and Command Prompts. La riga di comando: Mai uscire senza!’

Backup!

•April 17, 2007 • Leave a Comment

English

Ok, so I’ve just about finished setting up a high availability fileserving cluster with automatic backups, I’ve finished menacing my lusers with a LART to make sure they make regular backups… I go sit at my desk start taking a look at my research, pick up the pieces where I left them before having to find someones lost password or miss-deleted files (no, sysadmins cannot pull destroyed and overwritten data out of thin air, even if some claim the contrary for bragging purposes) to make a long story short: Bang, fizzle, pffft! Yes, that was indeed my hard-drive … And yes I hear you, of course I have a backup … well … er sort of … I mean, come on october is pretty recent init?

AAAAAAAAAAAAAAAAAaaaaaaaaaaaaaaaaaaaaaarrrrrrrgh!

Fortunately I’m a lucky bastard and the screwed sectors were few and far between, I managed to regain most of my data … But boy have I learned a lesson through sheer terror …

On the bright side it gave a fantastic excuse to install ubuntu GNU/Linux fiesty fawn on the machine and I shall be telling you all about it and my new strategy for automated backups shortly on this space.

Italiano

Dunque, come dire ho appena finito di “tirare a lucido” una bella coppia di serverini ridondati in alta affidabilità con sistemi di backup a prova di armageddon, ho svolto il quotidiano dovere di strigliamento dei miei utonti con particolare attenzione posta sull’utilità, no anzi sul dovere improrogabile che ciascuno ha di fare backup periodici numerosi e completi. Continue reading ‘Backup!’

 
Follow

Get every new post delivered to your Inbox.