andresteve / pilooper

Raspberry pi + drum pad + loop station

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pi-looper!

Connection diagram

Install requirements

PureData

To install puredata: sudo apt-get install puredata. PD version used: 0.51-1.
No extensions are required.
In order to get the soundcard working and avoiding the
ALSA input error (snd_pcm_open): No such file or directory
error, you need to make sure that the USB-soundcard is the only audio device and has index 0. Disable the Pi's jack input via this file: /etc/modprobe.d/alsa-blacklist.conf and add the following line: blacklist snd_bcm2835.
Then, reconfigure the index of audio devices: /lib/modprobe.d/aliases.conf and change the index of options snd-usb-audio index=0.
Check if the only audio device is the USB-soundcard through cat /proc/asound/cards, which should give the index 0 to the soundcard.

Python

The Python code is based on Python3. sudo apt-get install python3

Auto startup

In order to launch python script and from there puredata follow the instructions below.

  1. Install Xterm: sudo apt-get install xterm
  2. If doesn't exist create those directory: mkdir /home/pi/.config/lxsession and mkdir /home/pi/.config/lxsession/LXDE-pi
  3. Edit autostart file: nano ~/.config/lxsession/LXDE-pi/autostart with these lines (path to launcher.sh file could be different):
#!/bin/bash

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
sh /home/pi/pilooper/python/launcher.sh
@xscreensaver -no-splash

About

Raspberry pi + drum pad + loop station


Languages

Language:C++ 88.2%Language:C 5.0%Language:Shell 4.8%Language:Python 2.1%