One of the coolest additions that Sonic Pi 3 brings is the ability to send and receive OSC messages. This is much more versatile that midi and enables sonic pi to communicate with a wide range of other devices and programs. In this example a take an old friend Frere Jaqeus, and play it as a four part round, but send informations via OSC messages to a processing sketch, which uses the information ot ocntrol the position, size and colour of four circles, each one of which responds to a separate part of the round.
you can see a video of the project below
The code for the project is available here