Hi all!

2011/12/23  <[email protected]>:
> Josh <[email protected]> a écrit :
>
>> hello all,
>> how can I insert say, every two songs, a station id or jingle? I do
>> have cross fade enabled, and I got told this will cores problems.
>> thanks for any help,
>> josh.
>
> Hi,
>
> Have a look to "rotate" with 1,2 argument (1 jingle for 2 songs) if
> you want to respect strictly this proportion.
> You can also use "random" for a more human effect :)
> radio = random(weights=[1,2],[ jingles, radio ])
>
> I use rotate for my radio to insert jingles between every tracks with
> crossfade enabled without problem.

Fred replied with what I would have said too :-)

Speaking of jingles, if you are using smart crossfading on top of a
source with jingles and tracks, you may want to customize the
transition function in order to avoid using fade in/fade out on
jingles: since they are short, fading can mess with them and cut parts
of it.

There is an example there:
  http://liquidsoap.fm/doc-1.0.0/radiopi.html

In the smart_crossfade function, we have added this line:

  if ma["type"] == "jingles" or mb["type"] == "jingles" then
      log("Old or new file is a jingle: sequenced transition.")
      sequence([sa, sb])
    elsif

In the above, all jingles are tagged as such using annotate as follows:
  annotate:type="jingles",..:/path/to/file.mp3

This annotate line is returned by our custom script used in
request.dynamic. If you are using a static playlist() operator to
create your jingle source, you can use its prefix parameter as
follows:
  jingles = playlist(prefix="annotate:type=\"jingles\":", ...)

Happy holidays to y'all!
Romain

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to