External API driven sequence with Sonic Pi

This is just a little PoC I wanted to test; I thought it would be fun to adapt music with data coming from internet in realtime.
So I wrote a minimal Ruby program running a REST API client to connect to coindesk.com public API; it reads, among other values, the US Dollar float rate.
It then pass the current value and the previous one via OSC to SonicPI, which on its side reads values and use those in different part on the song to alter sample parameters like cutoff and random seed to influence arpeggio metric.
So this groove is basically adapting to USD float rate in realtime :slight_smile:
Here’s link to video if you want to check this out :wink:
API Driven Groove Concept with SonicPI - YouTube
Suggestions and improvements are more than welcome !!