# # #Step2: # # uname -r #make a note of this - you’ll need 4.1.17 or 4.1.18 sudo raspi-config #optional - expands the drive space on the sd card sudo mkdir ~/downloads #optional - makes a directory to keep your downloads handy sudo mkdir ~/music #optional - makes a directory to put your tunes, brah sudo reboot sudo apt-get update #Step2.5 sudo apt-get install alsa-base alsa-utils alsa-tools libasound2-plugins sudo apt-get install ecasound sudo apt-get install ladspa-sdk #Mount your USB drive somewhere handy sudo mkdir /media/usbstick #only needed if your music is on a USB stick sudo mount -t vfat /dev/sda1 /media/usbstick/ #you’ll need to do this after each reboot, we’ll make it auto load later # # #Step3 # # wget https://github.com/jrubinstein/raspiDSP/blob/master/jruby-8-channel-kernel.tar.gz ~/downloads cd ~/downloads tar -xvzf jruby-8-channel-kernel.tar.gz #make a note of the kernels here: ls /lib/modules/ sudo rm -r /lib/modules/4.1.17-v7+/kernel/sound/ #kernel version “4.1.17-v7+” must match your kernel version!! sudo rm -r /lib/modules/4.1.17+/kernel/sound/ #kernel version “4.1.17+” must match your kernel version!! replace this if that doesn't sudo cp -r ~/downloads/jruby-8-channel-kernel/sound/ /lib/modules/4.1.17+/kernel/ sudo cp -r ~/downloads/jruby-8-channel-kernel/sound/sound/ /lib/modules/4.1.17+/kernel/ sudo reboot # # #Step4 # # wget http://faculty.tru.ca/rtaylor/rt-plugins/chan_labels_6.wav ~/downloads cd ~/downloads aplay -L #play a sound file you just downloaded ecasound -z:mixmode,sum -a:all -tl -i home/pi/downloads/chan_labels_6.wav -a:woofer -efl:300 -efl:300 -chorder:1,0,0,0,0,0,0,1 -a:woofer -f:16,8,44100 -o:alsahw,0,0 -z:nodb -b:2048 #play a sound on a different channel ecasound -z:mixmode,sum -a:all -tl -i home/pi/downloads/chan_labels_6.wav -a:woofer -efl:300 -efl:300 -chorder:1,0,0,0,0,0,1,0 -a:woofer -f:16,8,44100 -o:alsahw,0,0 -z:nodb -b:2048 #alternative: use speaker test to loop white noise to the different channels speaker-test -c 8 -r 48000 -D hw:0,0 # # #Step5 # # #play some music using ecasound #use your own sound file ecasound -z:mixmode,sum \ -a:all -i /media/usbstick/04\ -\ South\ Side\ of\ the\ Sky.flac \ -a:woofer -efl:300 -efl:300 -chorder:1,2,0,0,0,0,0,0 \ -a:mid -efl:2500 -efl:2500 -efh:300 -efh:300 -chorder:0,0,1,2,0,0,0,0 \ -a:tweeter -efh:2500 -efh:2500 -chorder:0,0,0,0,0,0,1,2\ -a:woofer,mid,tweeter -f:16,8,44100 -o:alsahw,0,0 -z:nodb -b:2048 # # #Step6 # # sudo apt-get install cmt #computer music toolkit sudo apt-get install swh-plugins #steve harris plugins wget http://faculty.tru.ca/rtaylor/rt-plugins/index.html ~/downloads #richard taylors plugins for xovers wget http://audio.claub.net/software/LADSPA/ACD-plugins-v1.03.tar ~/downloads cd ~/downloads tar -xvf ACD-plugins-v1.03.tar cd ACD-plugins-v1.03 sudo nano MAKEFILE # now go edit the install directory from "/usr/local/lib/ladspa/" to "/usr/lib/ladspa/" make sudo make install tar xfz rt-plugins-0.0.4.tar.gz cd rt-plugins-0.0.4 cd build sudo nano MAKEFILE # now go edit the install directory from "/usr/local/lib/ladspa/" to "/usr/lib/ladspa/" cmake sudo make install #get the modded ~/.asoundrc file wget https://github.com/jrubinstein/raspiDSP/blob/master/alsa%20configuration%20asoundrc-experimental2.cpp ~/dowloads sudo nano ~/.asoundrc #paste in the contents of the asoundrc file you downloaded from me, save and exit alsactl kill rescan #tells alsa to reread the conf file speaker-test -c2 -D default #just two channels this time because we are now chopping up the sound into h/m/l for left and right channels # # #Step10 # # sudo mv ~/.asoundrc ~/.asoundrc-1 #make a quick backup sudo mv ~/.asoundrc /etc/asound.conf #move to asound.conf to enable for all users alsactl kill rescan