I’m not 100% sure what your asking? Most of what is going on is interaction with the pHat Beat, assuming your running the older Pirate Radio. Thats done via python as far as I know. And the function reference for that is here. http://docs.pimoroni.com/phatbeat/
The rest of it is hooks into VLC Radio. Its something along these lines