RPi-Band fuses the Pimoroni Piano HAT and Drum HAT code to a single software, which gives the possibility for playing two intruments on a single Raspberry Pi. The code in this repository is Python3, but rewriting for Python2 should be no issue.
Find more info in my tutorial
http://www.knight-of-pi.org/rpi-band-drumhat-and-pianohat-simultaneously-on-a-single-raspberry-pi/
(rpi_band_setup.jpg?raw=true "RPi-Band")
cd ~
sudo apt-get install python3-pianohat
sudo apt-get install python3-drumhat
git clone https://github.com/JoBergs/RPi-Band
Ĝives better audio; if the default PWM out shall be used, just don't perform these steps
sudo nano /etc/asound.conf
add
pcm.!default {
type hw card 0
}
ctl.!default {
type hw card 0
}
sudo nano /boot/config.txt
add
dtoverlay=hifiberry-dac
replace
dtparam=audio=on
with
#dtparam=audio=on
Opening .bashrc with
sudo nano ~/.bashrc
and add the line
python3 /home/pi/RPi-Band/rpi-band.py
cd ~/RPi-band
python3 rpi-band.py
=======
Piano HAT: https://github.com/pimoroni/Piano-HAT
Drum HAT: https://github.com/pimoroni/Drum-HAT
Drum HAT: https://github.com/JoBergs/RPi-band