my finished device so I don’t need a display and keyboard
connected. Using SSH allows me to log in from my
computer, and control and/or modify the SamplerBox
code remotely. To use SSH, you first need to change the
I have set up the SamplerBox software so it runs
automatically on power-up. To make changes to the
software, you must stop the instance that is running, make
your changes, and then restart SamplerBox.
Wi-Fi credentials to enable connecting to your Wi-Fi
network. After logging into your RaspPi, run this command
to begin editing:
To stop SamplerBox, you must find its process ID
using the following command:
ex. ssh email@example.com
ps -ef | grep samplerbox
sudo nano /etc/network/interfaces
You should then see something like:
Find the following lines in the file:
Change them to the SSID (your Wi-Fi network’s name)
and password for your Wi-Fi network. When you are
finished, hit Control X and follow the prompts for saving
your changes. Next, reboot using this command:
root 104 1 0 15:02 ?
00:00:00 /bin/sh /home/pi/SamplerBox/samplerbox.sh
root 106 104 6 15:02 ?
00:00:09 python /home/pi/SamplerBox/samplerbox.py
pi 917 900 0 15:05 pts/0
00:00:00 grep —color=auto samplerbox
The process ID is the number in the second column
or (in this case) 104. Next, you must kill that process
sudo kill -9 104
Towards the end of the reboot process, you should
now see a line on the display that indicates the IP address
assigned to your Raspberry Pi.
You can now edit the SamplerBox Python code using
the nano editor by typing:
Using an SSH client on your computer, you can now
attempt to SSH into your Pi using a command similar to
After you’re done making your changes, start
SamplerBox again using this command:
Many versions of the open source SamplerBox code are available on the Internet, including but not limited to:
Author Website Contact Addresses
Joseph Ernest www.samplerbox.org twitter: @JosephErnest mail: firstname.lastname@example.org
Alex MacRae https://github.com/alexmacrae/SamplerBox mail: email@example.com
Hans Hommersom http://homspace.xs4all.nl/homspace/samplerbox/index.html
Sample sets are available from the following locations:
Free SamplerBox sample sets www.samplerbox.org/instruments
A free mellotron sample set www.leisureland.us/audio/MellotronSamples/MellotronSamples.htm
Commercial vintage keyboard sample sets www.vintagekeyboardsounds.com
A video of a SamplerBox device using mellotron flute sounds playing the intro to Strawberry Fields is available at
I did a short demo song using my newly built Samplerbox mellotron device. The tune is a cover of a Sting song
and is available at www.craigandheather.net/mp3/Fragile.mp3.
There are two tracks of mellotrons in this tune: mellotron flutes and a mellotron combined choir.
Thanks to Paul and Judith for help with the demo song.
September 2017 31