Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st. We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here. Need help or have questions? Drop us a line at [email protected]
Created on 12-22-201607:26 PM - edited 08-17-201907:04 AM
Business Need: Build Tool Notifications + Fun
SonicPi is an open source, multiple platform live music synthesizer tool for building music via coding. It's a pretty neat environment and runs on a Mac, RPi, Windows machine or Linux machine. I found a command-line tool that can trigger SonicPi to play your code. I have wired up a dataflow from NiFi to SonicPi, so I can trigger music on demand. My thought is I will tie this into Jenkins and play different songs depending on what's going on. Such as Test Failures, Build Complete, Build Broken, New Deployment, based on various steps in the SDLC.
Note: The machine this running on will need Ruby, Gem, Apache NiFi, Sonic Pi and a sound card.
Step 1:
To trigger Sonic Pi, you must install Sonic Pi Cli, via gem install sonic-pi-cli.
Step 2:
Run the SonicPI software and have it up and running. As you can see it's a pretty awesome environment, somewhere between a nice IDE and a music tracker.
Step 3: ExecuteStreamCommand This calls the command line tool to trigger Sonic Pi.