Update: Remove drums from song with the VST DrumExtract!
SamplerBox is an open-source DIY audio sampler project based on RaspberryPi.
Website: www.samplerbox.org
SamplerBox works with the RaspberryPi's built-in soundcard, but it is recommended to use a USB DAC (PCM2704 USB DAC for less than 10€ on eBay is fine) for better sound quality.
You can use a ready-to-use ISO image from the Releases page or do a manual install:
-
Start with a standard RaspiOS intsall. The following steps have been tested with 2021-05-07-raspios-buster-armhf-lite.zip.
-
Install the required dependencies (Python-related packages and audio libraries - the current version requires at least Python 3.7):
sudo apt update sudo apt -y install git python3-pip python3-smbus python3-numpy libportaudio2 sudo apt -y install raspberrypi-kernel # quite long to install, do it only if necessary, it solves a "no sound before 25 second on boot" problem sudo pip3 install cython rtmidi-python cffi sounddevice pyserial
-
Download SamplerBox and build it with:
git clone https://github.com/josephernest/SamplerBox.git cd SamplerBox sudo python3 setup.py build_ext --inplace
-
Reboot the Pi, and run the soft with:
sudo python3 samplerbox.py
Play some notes on the connected MIDI keyboard, you'll hear some sound!
-
(Optional) Modify
config.py
if you want to change root directory for sample-sets, default soundcard, etc.
See the FAQ on https://www.samplerbox.org.
A few remarks:
- the current version works on Pi 2, 3, 4 (re-tested on Pi2 & Pi4 on 2022-08-09)
- the current version also works on Windows if all the required modules are installed
- MIDI via GPIO/serial should be re-tested with the current version, see josephernest#49
- 7-segment display confirmed working as of 2022-08-09, see requirement
The ready-to-use ISO images available on www.samplerbox.org are built with the help of a script that can be found in isoimage/maker.sh
.
Author : Joseph Ernest (twitter: @JosephErnest, mail: contact@samplerbox.org)
I am available for Python, Data science, ML, Automation consulting. Please contact me on https://afewthingz.com for freelancing requests.
Do you want to support the development of my open-source projects? Please contact me!
I am currently sponsored by CodeSigningStore.com. Thank you to them for providing a DigiCert Code Signing Certificate and supporting open source software.