Re: [Savonet-users] one playlist per day

2009-01-27 Thread David Baelde
Hi,

Just a remark.

On Tue, Jan 27, 2009 at 9:44 AM, Romain Beauxis  wrote:
> "({ 1w }, monday_source),"

It might be a bit heavy to have one source per playlist, since each
source will prepare a couple files in advance. If there's no download
involved, it's fine. Otherwise using the reload technique might be
preferable. I understand that reload each 24 hours is not the same as
reload everyday at 0:00. I should look into the code, but I think that
it's quite easy to add a reload command to playlist operators to force
the reload. This, coupled with a cron, would fit your bill.

Cheers,
-- 
David

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Logs and fallback notification

2009-01-27 Thread David Baelde
Kris Lipscombe wrote:
> >def f(a,b)
> >  log("transitioning")
> >  sequence([a,b])
> >end
> The logging part of this works fine. However calling sequence seems to
> be giving an issue. As sequence seems to be track sensitive it waits
> for the end of a track before skipping back to the ALSA input. In fact
> it doesn't seem to come back from Last.FM at all. Any work around to
> this?

If your transition is meant to quit the source A in the middle of a track
as soon as B becomes available, you can simply use:
def f(a,b)
  ...
  b
end

Writing a custom transition here is also an opportunity for crafting
a smoother one:
def f(a,b)
  ...
  sequence([fade.final(duration=2.,a), fade.initial(duration=2.,b)])
end
Now the source A will be faded out immediately, in the middle of its track,
and B will start smoothly.

You can also cross-fade by using add() instead of sequence()
as in the cookbook examples, etc etc.

Cheers,

David

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] playing large files

2009-01-27 Thread Romain Beauxis
Hi all !

Le Monday 26 January 2009 09:16:23 David Baelde, vous avez écrit :
> In any case, there is no possible tuning. For decoding MP3 files, we
> rely of libmad. You can try playing your file with madplay: if the
> result is better, then we're having an issue in liquidsoap, in which
> case you should send us the file to see if we can reproduce and fix
> it.

I fully agree with David. We also play recorded shows which are big files. 
Also, the decoder never parses the whole file at once, so there shouldn't be 
any difference in size.

However, an incompatibility on the format or another bug is also possible, to 
if you can reproduce, please send us the file !


Romain

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] one playlist per day

2009-01-27 Thread Romain Beauxis
Hi Hugo !

Le Monday 26 January 2009 21:26:42 Hugo Rodrigues, vous avez écrit :
> http://savonet.sourceforge.net/doc-svn/complete_case.html
> -> it have playlist for days and night, but i need to use diferrent
> playlist every day..

I think you need to read the documentation there:
  http://savonet.sourceforge.net/doc-svn/language.html

In particular, the section called "Time intervals" should contain everything 
you need, for instance:
"w stands for weekday, ranging from 0 to 7, where 1 is monday, and sunday is 
both 0 and 7."

"({ 1w }, monday_source),"

Good luck with your script and have a good day !


Romain



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users