Hi,
2011/1/28 Hyun-ki Chung <[email protected]>:
> I have two single sources: station id and promotion and want to play them
> sequentially, so I wrote a command line such as below.
>
> station_and_promotion = sequence(merge=true,[stationID, promotion])
>
> But, only promotion is played out without station id. Did I miss anything?
> Please advise me.
It could be that stationID is not ready yet when the sequence starts
playing so it jumps to its second source.
Note that a sequence only moves forward, and will loop on tracks of
its last child.
You probably want to insert a station_and_promotion between tracks of
other sources in which case your approach is not quite right: you need
to create a new sequence each time, which can be achieved using
transitions.
For example:
s = playlist(...)
def insert(before,after)
sequence([before,
sequence(merge=true,[stationID,promo,fail()]),
after])
end
s = cross(inhibit=10.,insert,s)
Here the insert() function is called for each new track. It keeps
playing the old track (before) then inserts the id and promo as a
single track: it plays one from stationID, then one from promo
(merging) then jumps to the last item which fails to produce anything.
At this point the outermost sequence jumps to after, which is the new
track.
Without the inhibit parameter the crossing transition would fire
during the first transition if the jingles are over 2 seconds. An
alternative to using inhibit would be to merge everything:
switch(merge=true,[before,stationID,promo,after]) but then you loose
track limits (although metadata is still there).
There are variations using switching instead of crossing, but I think
this one is the simplest. In any case you have to use a transition to
create a new sequence if you want to merge those two tracks in one.
I hope that you can adapt or extend that idea to solve your problem.
Cheers,
--
David
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users