This is the code used in arduino in platformio : programming the bleep drum
Based on the original code from Bleep Labs : https://github.com/BleepLabs/Bleep-Drum
Using the Platformio Core CLI
pio run -e bleep
pio run -e dam
pio run -e dam2
pio run -e dam3
- Install the bleep tool with Python 3
I would suggest you create a virtual environment:
virtualenv venv --python=python3
To enter the virtual environment, just activate it:
. venv/bin/activate
Then install the bleep tool:
pip3 install .
If you plan on modifying the script, make this installation editable
pip3 install -e .
You can also make a symlink on OSX or Linux to make the bleep tool available anywhere on your system
ln -s ~/path/to/Bleep-Drum/venv/bin/bleep /usr/local/bin/bleep
- Create YAML file to specify the source of the samples, let's call it
samples.yml
firmware_size: 11658 # put firmware size without the samples here - this is used to warn you if you samples won't fit on flash
# sample_rate: 17000 # sample rate for resampling the WAV files - leave it commented to use the default
samples:
tr808: # this is the name of the environment
input_path: path/to/my/808
samples:
- file: 808-hat.wav #
normalize: no # don't normalize
sr: 15000 # resample at 15kHz
trim: 100 # trim the end by 100 samples
- 808-tom.wav # only the file name is required, just enter it as a string if you don't need to tweak other options
- 808-snare.wav
- 808-kick.wav
tr909: # without specifying an input path, it will use the location of this file as a root directory
- 909-clap.wav
- file: 909-tom.wav
trim: 134
- 909-snare.wav
- 909-kick.wav
- Run the script :
bleep make samples.yml
This will generate all header files from the specified WAV files and update platformio.ini with the new custom environments.
BLEEP_DRUM_15
├── BLEEP_DRUM_15.cpp
├── samples # custom samples are stored in this sub-folder
│ ├── samples.h # this contains the ifdef + include for custom samples
│ ├── samples_tr808.h
│ ├── samples_tr909.h
├── samples_bleep.h
├── samples_dam.h
├── samples_dam2.h
├── samples_dam3.h
└── sine.h
platformio.ini # updated with new environments
- Remind yourself of which environments are available
bleep list
- Program your samples by specifying the environment name
bleep burn tr808
April 2020:
V15
Click track – Hold shift for 4 seconds to turn on and off click while the device is playing.
Clock rate stability – The sequence could slow down if too much was happening in the old version.
Better noise mode – Greater range of distorted sounds (hold shift while turning device on)
https://bleeplabs.com/2020/04/19/limited-quantity-of-bleep-drum-available-to-ship-now/
v12
http://bleeplabs.com/store/bleep-drum-midi/
Now compatible with current versions of MIDI, bounce and pgmspace.
It is no longer necessary to edit MIDI.h
Dam Drum sounds.txt contains the samples used in the second and third Dam Drum. All that was differnt in the Dam vs Bleep drums was the sounds. http://www.stonesthrow.com/news/2013/01/dam-drum
Here's a guide for getting your own sounds into the Bleep Drum.
http://bleeplabs.com/2013/04/07/putting-your-own-samples-in-the-bleep-drum/
All work licensed under a Creative Commons Attribution-ShareAlike 3.0