Create music using sonic-pi and google's blockly visual programming language
JavaScript HTML Erlang Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Sonic Blocks Screenshot

A Visual Programming frontend for Sonic Pi

Sonic Blocks Screenshot


For building and running from source you need to install erlang and rebar3, check the Rebar3 website for rebar3 installation instructions, if you are on debian or ubuntu:

sudo apt-get install erlang erlang-dev erlang-eunit
chmod u+x rebar3

You can put it in a folder in your $PATH or inside this repo and run all the rebar3 commands relative to the current folder (./rebar3 command).


rebar3 compile


rebar3 run


Mariano Guerra


You need to install and run Sonic Pi, for that check the Sonic Pi Website.

To start just the Sonic Pi server without the user interface you need to run the server script, on ubuntu run:


If you are running in another OS search on the sonic pi installation.

Start the sonic blocks server and open http://localhost:8080/ui/index.html in your browser.

Play with the blocks and click the Play Button

Sonic Pi can be running in another computer, for that just change the Host and Port config in the UI to the host and port where Sonic Pi is running.

Troubleshooting Jack problems on linux

If you are trying to run it on linux and have pulseaudio installed read the following resources to try o make it work:

Experimental Desktop App

Sonic Blocks Desktop Screenshot

This app is just to show how to include sonic blocks in a webview, to use it you need to install:

  • python 3
  • PyQt5 and PyQt5 WebKit
  • python-osc

On debian/ubuntu:

sudo apt install python3-pyqt5 python3-pyqt5.qtwebkit
sudo pip3 install python-osc

Then run:


Note: you don't need to run the server for this, this app will call sonic pi's backend directly using python-osc


Frontend is plain vanilla js, you can find the code at apps/sbs/priv/assets/

The backend runs on top of Cowboy, it uses the erlang_osc library to talk to Sonic Pi.

The backend is programmed in efene a language for the Erlang VM.


There's not much code that's mine, just a glue of other projects, but in case of my code the license is:

Apache Public License, see LICENSE file for details