One thing that I found missing compared to the X32 is the ability to record 2 channels directly to a usb stick. Therefore I thought about possible ways to work around this missing feature. In the end I settled on a Raspberry Pi 3 which is running the audio player distribution moode audio and is connected via USB to the XR18. With a small bash script it is possible to create an automatic recorder that will record mp3 files whenever audio is playing on the XR18.
Let’s start with some pointers on setting up the XR18 for moode audio and recording. Make sure to send the Main LR bus on USB1 and USB2. So go to In/Out, select USB Sends and select Main LR for USB1 and USB2. You can choose any mode you like but I prefer Pre EQ. My Main LR EQ is always trimmed for the room. So I don’t want to have this EQ on the recording. The Pre EQ setting will achieve just that and has the added benefit that changes to the master volume will also not be reflected on the recording. The screen will look like this:
USB return channels 1 and 2 also need to be mapped to XR18 channels. I usually map them to Aux L/R and FX4 L/R. I only need 3 send FX, so my FX4 is configured as an insert effect and therefore does not need return channels. By mapping the USB return to FX4 L/R, I free up the Aux Stereo Channel for other uses. This is what my USB Returns mapping looks like:
In moode audio you just need to enable USB audio output and you will be able to play audio through your XR18 without any other configuration changes.
Now we are all set for working on the recording side. The following steps can be done on a plain Raspbian distribution or on moode audio or most probably any other Debian based Rapsberry Pi distribution.
First we need to install required software packages. So log in to your Raspberry via SSH and run this command:
Now create a new shell script named
/home/pi with the following contents:
Please change the path in
FILENAME to the location where you want the recordings to be stored. I am using a USB stick named FILES that is automatically mounted during bootup by moode audio under the path
/media/FILES. On this stick the recordings should be stored in the directory
The XR18 will identify itself to the operating system with the string
X18XR18. If you are using another device, you need to identify the string that the other device reports by running
aplay -l. The X32 for example can be accessed by the name
The recording is done in an endless loop with the current timestamp as the filename by running the
rec utility. It is configured to start recording once a signal with at least 2% volume is present and it will automatically stop 3 minutes after the signal level has dropped below 2%. Additionally the gain is reduced by 9dB to prevent possible clipping when running the XR18 output hot. Recording format is mp3 with a bitrate of 256kBit.
rec utility exit with an error code (for example if the XR18 is not found), then the script will terminate. In all other cases it will delete the created file if it has not recorded anything (detected by checking the file size), sleep for 30 seconds and then start the recording again.
Make the script executable by running:
Now you only need to run this script automatically after booting up the Raspberry PI. Do this by appending the following line to the file
From now on, you just need to connect your Raspberry Pi via USB to the XR18 and it will both serve as an audio player and a recorder that will start recording whenever a signal is detected on the Main LR output of the XR18.
Update March, 5: Multitrack Recording
It is also possible to use the
rec utility for multitrack recording. It is possible to record all 18 inputs of the XR18 in a single multichannel WAV file. But there are some caveats you need to be aware of:
- Silence detection does not work in multitrack mode. So you need a way to start and stop the recording manually.
- Multitrack files tend to get very big, so your recording target (USB stick) needs to be formatted with a file system, that supports large files. I had no problems with exFAT formatted USB sticks.
- Your USB stick should be able to consistently write at least 2MB per second. I had some good results with a SanDisk Ultra Fit 64GB USB3 stick.
Here is the command line to record 18 tracks 24bit WAV files: