I'm not really sure how to use prepend. I thought it was a simple matter of s= prepend(s,other_source), but since it works on meta, it appears to need a function to determine which meta to work on.

Am I mistaken in believing that this helper function runs continuously, responding to specific metadata as it pops-into the stream? If so, it seems the function could be extended to provide intros for all manner of format changes... on the fly.  That would be desirable. Adding hourly news, with a prepended intro would be trivial. Unless I am mistaken.

On Mon, Sep 2, 2013 at 4:46 AM, Romain Beauxis <toots@rastageeks.org> wrote:
Hi,2013/8/30 Ashworth Payne <email.ashworth@gmail.com>

> Yes, I had considered it.  I just happen to be even less-capable with other scripting languages :)
> How about another, simpler approach:
> How can I precede every triggering of playlist(random,/path/to/) with single(/path/to/file.mp3).  the local bands love being in rotation and i like helping them out, but they're often out-of-genre, and listeners freak-out when their expectations aren't met.  I'd like to mitigate genre-shock with a generic intro like "Local talent, on the hour..."

Have you looked at the prepend operator? Using a track's metadata, you can build a new source that is played before that track. If you return an empty source (e.g. sequence([])) then the track is played without a prepended track.

That seems to solve some of your concerns right?


Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
Savonet-users mailing list