Sonic Pi on Chromebooks

I didn’t get round to it due to there being a lack of interest.

However, knowing there are others who wish for it, I may work on it when I can.

Also, as an update, I upgraded Debian version of the Beta Linux container and found that there is a much more recent version in the repos! It does seem to follow the same pattern of behaviour.

1 Like

OK PEOPLE ! I was defeated for the fall but I am back to give it another try --maybe for quarter 4!! I just want to say thank you everyone who has contributed ( :eyes: @ sonic_giga_pi).

I will try out that suggested route above and will let you know how it goes this weekend perhaps!!

Something I forgot to mention. The jackd command may fail a couple of times. From my experience, just running it over and over again seems to get it to work. May look more into it.

Again, not perfect, but it’s better than nothing, and, so far, seems to be the only solution.

I imagine the problem is to do with how crostini handles audio.

Ok, The best method I’ve got is this:

  1. Go to chrome://flags

  2. search for “Debian version for new Crostini containers”, and select “bullseye”

  3. Go to the settings on your chromebook then to developer options

  4. Once there, install the Linux Developer Environment

  5. Once installed, a terminal window will open. sudo apt update && sudo apt upgrade

  6. Next, type: sudo apt install jackd

  7. Once that’s done, use this command: wget http://ftp.uk.debian.org/debian/pool/main/s/sonic-pi/sonic-pi_3.2.2~repack-7_amd64.deb

  8. Then type: ./sonic-pi_3.2.2~repack-7_amd64.deb

  9. Once installed, run this command: jackd -r -d alsa -r 44100 -P It may fail with “hw:0 in use” My experience has found that after several runs of the command, it’ll eventually start.

  10. open a new tab in terminal and type: sonic-pi, and it should come up

This is certainly better than before, where an older version of sonic pi was used. I will look into compiling the latest version and seeing if I can get that to work.

Once I have time, I’ll work on creating a script that makes this process more streamlined.

2 Likes

From my Chromebook I have been successful using Chrome Remote Desktop to access Sonic Pi running on my Win10 laptop. Passes the audio through just fine and running on my home network inside my WiFi router domain, there is really no latency

Ya Mon !
I have S.P. running fine on a RPi ( Bullseye) .
I have a second RPi with ChromeOS .
The ChromeOS is much smoother for normal websurfing .
I may have an experiment : )

1 Like

For some people, it may work that way.

However, from an education stand point, I wouldn’t think that’s a viable solution

Hey you might be able to run it online on a google cloud shell, Its basically a computer on the internet you can rent. How to deploy an application to Cloud Run with Cloud Shell Editor - YouTube

I have just got a new chromebook and installed sonic-pi via apt in the Linux VM … and thanx to hint above and a small tweak Sonic Pi 3.22 runs great. But not in realtime mode.

Running Sonic Pi on my Chromebook

  1. Start Linux environment then install the program

apt-get install sonic-pi

jackd -r -d alsa -r 44100 -P

when Error - do:

	set JACK_NO_AUDIO_RESERVATION=1
	jackd -r -d alsa -r 44100 -P
  1. open new terminal Tab and let it run:

sonic-pi

? Some how I missed the realtime mode setting … Anybody knows how to change the mode jack deamon uses ? Thanx4urhelp

Hi @mkpi,

thanks for your question, although these forums are predominantly to discuss the usage of Sonic Pi. For installation/configuration issues, please could you raise an issue on GitHub: Issues · sonic-pi-net/sonic-pi · GitHub

Also, as this is a linux jack related question, you are likely to get the best response from the jack community: Community Network | JACK Audio Connection Kit

I have found this Link, which adresses my Question:

Ps: What worked on my chromebooks Linux-VM, works on Ubuntu 22.04 LTS also.

apt-get install sonic-pi

seems to work but SP dosn’t want to start! Error! So running

jackd -r -d alsa -r 44100 -P

first, solves this perfectly. ( Ubuntu 22.04 → Sonic Pi 3.2.2 )

2 Likes

I have automated this with a shell script so uh… Here you go

if ! command -v gnome-terminal &> /dev/null
then
    echo "gnome-terminal not found, installing..."
    sudo apt-get install gnome-terminal
fi
gnome-terminal -- sh -c 'jackd -r -d alsa -r 44100 -P'
sleep 1
gnome-terminal -- sh -c 'sonic-pi'
1 Like