The accompanying two files play a visual display in VisorLive driven by Sonic Pi. The VisorMusicBoxFinal.rb file is loaded as a project file into visor version 0.4.0 www.visor.live A midi connection is established between the two (I used the iac driver on a Mac). The mapping file used was LaunchControlXL.json (supplied in the midi folder with visor.live) The sound output of Sonic Pi is linked to the input of visor.live I normally use Rogue Amoeba's LoopBack utility, but it I have also tested the project using the free soundflower utility. NB if you do use this you must disable loopback if you have that installed as well.
https://github.com/mattingalls/Soundflower/releases/tag/2.0b2 1.Install Soundflower.
2.Go to Audio MIDI Setup