Electronic Drum Kit in Linux
A demonstration of an electronic drum kit in Linux using Addictive Drums and the XBox 360 Rock Band Portable Drum Kit.
I wrote these instructions after a fresh install of Ubuntu 10.10...
- sudo apt-get install dssi-vst
- sudo apt-get install jackd qjackctl
- enable real time
- sudo dpkg-reconfigure -p high jackd2 (this step and step #4 may be optional for you, I had to execute these commands to get jack to work properly)
- sudo dpkg-reconfigure -p high jackd
- ulimit -r -l
- verify real time priority is '95'
- verify max locked memory is 'unlimited'
- if 'ulimit' doesn't match above values, restart computer
- open wine configuration
- switch to the 'audio' tab and verify test sound works
- close wine configuration
- use wine to install Addictive Drums
- open jack, start jack (verify no errors occured)
- open wine configuration
- switch to 'audio' tab and verify jack makes ALSA connection
- launch addictive drums
- e.g. vsthost ~/.wine/drive_c/Program\ Files/VST\ Plugins/Addictive\ Drums.dll
- press 'play' to make sure sound works
- close addictive drums
- stop jack
- install rosegarden
- install vmpk
- open rosegarden
- open vmpk
- in rosegarden, make sure available outputs is set to 'addictive drums' in 'manage midi devices'
- in vmpk
- go to 'edit -> connections'
- input: rosegarden:1
- output: rosegarden: 0
- switch 'base octave' to '2' (this brings the bass drum to keyboard press 'Z'
- go to 'edit -> connections'
- sudo apt-get install joystick
- plug in usb controller
- open a terminal, full screen
- e.g. jstest /dev/input/js0
- make sure each joystick button works
- un plug joystick
- install qjoypad
- plugin joystick
- run qjoypad
- press some joystick buttons to make sure qjoypad is responding
- map joystick keys to desired keystrokes in vmpk
Rock Out
- fresh restart of computer
- unplug usb joystick
- open jack
- start jack
- open wine & switch to 'audio' tab and verify jack makes 'ALSA connection'
- open Addictive Drums
- open rosegarden
- open vmpk
- plug in usb
- launch qjoypad, then load your layout
- highlight vmpk window
- rock out!
Conclusion
All in all not too shabby of a setup... the 'bass pedal' doesn't provide any rebound so have fun with that...
The response time somewhere along the chain of events is lagging just a little. It seems like the lag is coming from the cheap pads on the 'xbox 360 rock band portable drum kit'... however it could be 'qjoypad'... I shall keep investigating and will update this article.
Thanks to th0rgal for his old school video which demonstrated Linux, Addictive Drums & RoseGarden.
Thanks to xamox for helping me better understand how 'Jack' & 'Wine' work together on Linux.