Samplerbox Command Line
Instructions for Samplerbox using Raspberry Pi 3B+ and Pimoroni Audio Pirate LineOut
Aug 19, 2021 Glenn Meader glenn@chromakinetics.com
Extensive, detailed information on the latest Samplerbox development is at: https://homspace.nl/samplerbox/ That website may be down. Here's a local copy of most of that webiste.
Debugging and Customizing Samplerbox
To access the command line in the Samplerbox, open a cmd or terminal window on your computer and type this command:
ssh pi@192.168.1.25
(of course, use the correct IP address for your SamplerBox.)
user is: pi (not root)
It will ask you for a password, which is: sbox
You will then see the Linux command prompt and you can then type in Linux commands.
Some commands
- samplerbox runs the samplerbox software, remember to first kill the samplerbox process that is automatically started upon boot
- python midimon.py runs the midi monitor program that displays received MIDI commands
- sysinfo shows:
- core system info
- usb topology
- mount points of BLK devices
- audio devices
- midi devices
- ro makes all SD partitions read-only
- rw makes all SD partitions read-write remember to adjust the date when making changes!
- devel go into development mode:
- stops the automatically started samplerbox
- makes all SD partitions read-write
- prints the date and a message to check & adjust
Lots of details are on this page: https://homspace.nl/samplerbox/SBbuild.htm That website may be down. Here's a local copy
Additional Info
Directory structure
- Sampler box now runs from /home/samplerbox When you logon, you start in this directory
- all samplerbox logic is in (linked-to) directories in here. This means it's much more straightforward to run on another system
- The config subdir points to /boot/samplerbox
- As /boot is owned by root, editing requires "sudo" (see docs)
- The samples subdir points to the internal samples partition
- midimon.py is now part of the logic, so also in here
- The mount point of the usb sample stick is changed to /media/usb0/ - this mountpoint now defined in the configuration.txt
- The pi user directory is /home/pi This is used for the systems scripts:
- autohotspot.sh script controlling the wifi adapter setup: client or access point
- startstats.sh script to analyse the boot time affecting services
- midimon.sh hex dump of midi input in case midimon.py is not ok/sufficient this can only run with samplerbox stopped
- several scripts needed for the extra commands (see below) these extra commands are aliases in .bashrc in this directory
Getting apt to work
If you need to load additional software into the Samplerbox, you will use the apt command. It might not work, because it can't find the software you wnat to install.Paste the following lines at the end of /etc/hosts file
93.93.128.193 mirrordirector.raspbian.org
93.93.128.191 archive.raspbian.org
add dns-nameservers 8.8.8.8
to /etc/network/interfacesHere is the command to install the software needed to make USB MIDI devices from M-Audio work:
apt-get install midisport-firmware # for M-Audio USB MIDI interfaces