Sonic Pi is a coding environment designed to create MIDI synthesized sounds as a result of entering programmatic constructs. I.e., you can make music with code! The software is cross platform, but unfortunately doesn’t support Chromebooks by default. Since Sonic Pi works by installing itself on the local machine, ChromeOS does not natively support installing applications. To work-around this limitation, read on.
Step 1 - Enable Developer Mode
First we need to enable developer mode. WARNING Enabling Developer Mode will erase your hards drive’s local data. However, since most of the benefit of running ChromeOS is using cloud hosted services, this shouldn’t be a huge issue for ChromeOS users. Read more details about enabling developer mode from this How to Geek Article. The TL;DR version is to:
- Press Esc + Refresh + Power
- Wait for Boot Screen
- Press Ctrl+d (Nothing will prompt you to press this, you’ll have to know to use this shortcut)
- Wait for 30 minutes while the Hard drive is reformatted.
The How-to geek article mentions their install took roughly 15 minutes. Mine took closer to 30 minutes. I assume the disparity between my install time and theirs is the difference in hard drive size.
If you need to revert out of Developer Mode, restart the Chromebook (Esc + Refresh + Power) and press Space at this boot screen. (as the prompt suggests)
Step 2 - Install Crouton / Linux
- Download the Crouton script here
- Open a shell (Ctrl + Alt + T)
sh ~/Downloads/crouton -t xfceto Install Xfce in a Chroot environment
sudo startxfce4to begin the xfce desktop environment
- Use keyboard shortcuts Ctrl+Alt+Shift+Back and Ctrl+Alt+Shift+Forward to toggle between ChromeOS and Xfce environments.
For more advanced features of Crouton, see the Github Repo for the Project.
Step 3 - Install Sonic Pi
Once you have your Ubuntu chroot environment, you’re ready to install SonicPi itself. From a Terminal in your Xfce environment:
sudo apt-get install software-properties-common(this installs the add-apt-repository command)
sudo add-apt-repository ppa:sonic-pi/ppa- Add the Sonic Pi PPA
sudo apt-get update
sudo apt-get install sonic-pi- (be sure to say Yes to Enabling Real-Time Audio for your user)
Assuming all the above installed successfully, you’re ready to start SonicPi and the Audio Connection Toolkit:
qjackctlin the terminal
- Click Setup
- Change the Interface: field to
cras(this doesn’t appear as an option, but just type it in)
- Click Ok to save the settings
- Click the Play button to start the Jack server
Sonic Pi should start in a new window. Type
play 60 and click the Play button to make sure you can hear the note it is playing.
If you didn’t hear anything, check your volume level, and the selected audio output device in your Chromebook menu. (i.e. make
sure you haven’t selected a bluetooth headset or other alternate output device)