I tried sharing my runtime solution - but it clearly flopped. Here's the open version (FM14) ...
all $$variables are defined in the Initialize script.
It's fun, it's educational for folks interested in playing music, and, well, fun.
I hope it works for you - my sound card seems to need to "warm up" before all works well.
And, for peace of mind, I didn't build this app to access the network in any way.