# bananenkeyboard Resistive touch sensors to sound by touching the probes or things connected to them. # Install * Raspberry Pi OS Lite * Release date: January 28th 2022 * System: 32-bit * Kernel version: 5.10 * Debian version: 11 (bullseye) Remember to activate "ssh" before booting first (touch "/boot/ssh" on the MicroSD-card) After login (ssh) proceed with these steps: 1. `sudo apt update` 2. `sudo apt upgrade` 3. `sudo apt -y install git python3-pip libsdl2-mixer-2.0-0 usbmount screen` 4. `git clone https://repos.ctdo.de/interfisch/bananenkeyboard/` 5. `pip3 install pyserial pygame` 6. `sudo sh -c 'echo "\n[all]\nenable_uart=1\n" >>/boot/config.txt'` 7. `sudo mkdir /etc/systemd/system/systemd-udevd.service.d` 8. `sudo sh -c 'echo "[Service]\nPrivateMounts=no" >/etc/systemd/system/systemd-udevd.service.d/00-my-custom-mountflags.conf'` 9. `chmod u+x ~/bananenkeyboard/Pi/s.py` 10. `sudo sh -c 'cp /home/pi/bananenkeyboard/piconfig/rc.local /etc/rc.local'` 11. `sudo chmod u+x /etc/rc.local` 12. `chmod u+x ~/bananenkeyboard/piconfig/readonly.sh` 13. `~/bananenkeyboard/piconfig/readonly.sh` Start with `cd ~/bananenkeyboard/Pi` `python3 ./s.py` By copying the rc.local (step 10), the script will be started in a `screen` after reboot # Convert and remove silence from samples: `for file in *.mp3; do ffmpeg -i ${file} -af silenceremove=1:0:-30dB ${file/mp3/wav} -y; done` An open source for samples is for example: https://philharmonia.co.uk/resources/sound-samples/ # TODO * Connect USB stick with samples which should override the default samples * `ALSA lib pcm.c:8545:(snd_pcm_recover) underrun occurred`. Especially if using mp3s?