• Stars
    star
    416
  • Rank 104,068 (Top 3 %)
  • Language
    Python
  • Created over 9 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

SamplerBox is a sampler musical instrument based on RaspberryPi.

SamplerBox

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

Install

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:

  1. Start with a standard RaspiOS intsall. The following steps have been tested with 2021-05-07-raspios-buster-armhf-lite.zip.

  2. 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
    
  3. Download SamplerBox and build it with:

    git clone https://github.com/josephernest/SamplerBox.git
    cd SamplerBox
    sudo python3 setup.py build_ext --inplace
    
  4. 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!

  5. (Optional) Modify config.py if you want to change root directory for sample-sets, default soundcard, etc.

How to use it

See the FAQ on https://www.samplerbox.org.

Notes

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 #49
  • 7-segment display confirmed working as of 2022-08-09, see requirement

ISO image

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.

About

Author : Joseph Ernest (twitter: @JosephErnest, mail: [email protected])

Sponsors and consulting

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.

License

Creative Commons BY-SA 3.0

More Repositories

1

writing

Writing is a lightweight distraction-free text editor, in the browser (Markdown and LaTeX supported).
JavaScript
1,031
star
2

bigpicture.js

bigpicture.js is a Javascript library that allows infinite panning and infinite zooming in HTML pages.
JavaScript
809
star
3

Yopp

A very fast way to transfer a file from phone to computer and vice versa.
PHP
400
star
4

nfreezer

nFreezer is an encrypted-at-rest backup tool.
Python
301
star
5

talktalktalk

TalkTalkTalk is an easy-installable small chat room, with chat history.
HTML
251
star
6

Swap

Swap.js is a "HTML-over-the-wire" AJAX-navigation micro-library
PHP
232
star
7

void

Void is a blogging platform.
PHP
193
star
8

TinyAnalytics

TinyAnalytics is a lightweight analytics tool (unique visitors count, etc.)
PHP
148
star
9

AReallyBigPage

Collaborative whiteboard based on bigpicture.js
HTML
42
star
10

EasyVolcaSample

Easy upload .wav files to Korg Volca Sample!
C
25
star
11

impulseresponse.py

Get a reverb impulse response (IR) from a frequency sweep
Python
21
star
12

bloggggg

bloggggg is a blogging platform.
PHP
13
star
13

sdfgh

"sdfgh", an encrypted notepad in ~65 lines of Python. Read the code, trust it (or not), and use it (or not)!
Python
11
star
14

RaspFIP

Ecouter la radio FIP avec un Raspberry Pi (sans Γ©cran ni clavier). Une seule action Γ  faire : Power On !
9
star
15

0Doc

Documentation made simple.
JavaScript
6
star
16

rebootnow

Reboot to a specific device easily (HDD2, USB, CDROM, BIOS Setup, etc.)
Python
4
star
17

NeverForget

Easiest sticky notes app possible. Always there on Windows' deskop.
C++
3
star
18

wavfile.py

Python
2
star
19

aayi

The tiniest website analytics tool
PHP
1
star
20

ShareLinkAndPixelIt

Share external links on Facebook, but have them caught by your Facebook Pixel (useful to build retargeting audience)
PHP
1
star
21

0Doc-chip

Example of use of 0Doc for C.H.I.P.'s documentation
CSS
1
star
22

copycopypastepaste

CTRL+C some text, CTRL+C another text, then CTRL+V and CTRL+< to paste two buffers!
Visual Basic
1
star
23

textarea

https://josephernest.github.io/textarea/htmleditor.html
HTML
1
star
24

bigpicture-editor

Standalone editor based on bigpicture.js
JavaScript
1
star