|
From: robs <aq...@ya...> - 2008-02-19 19:32:07
|
--- Wojciech Knapik <web...@wo...> wrote:
> And what about the two other things - preventing the lector from being
> cut out and on-the-fly generation ? Any comments/hints ?
On-the-fly: if you're going to a get a lot of people wanting to listen to the
demo songs, then probably not, unless you use a cache, in which case, probably
yes.
Lector: assuming lector is about 10secs, then use
sox lector.wav rand-lector.wav speed $rand1'c' rabbit allpass $rand2 $rand3
where $rand is obtained from a random number generator, between say -200 and
200, e.g. 123.456789. And $rand2 & $rand3 are also random numbers suitable for
the allpass effect.
Then you could use
sox rand-lector.wav 5min-lector.wav pad 10 10 repeat 9
to get your 5 minute file with lector roughly every 30 secs, though it would be
much better to use a fresh rand-lector.wav for each repeat---see the soxexam
manual page for hints on how this can be scripted.
You will definitely need to generate a new 5 minute mix file for each track
BTW, you'll need a more recent version of SoX, and soxmix is now sox -m.
Mixing will reduce the volume of the track, this can be constrained to just the
points during which the lector is active by using compand with sox -m.
I would recommend using a low bitrate for the demo songs (e.g. ogg level 1 or
2) just to keep your net bandwidth down.
Please donate your SoX scripts back to the SoX project if you get them up and
running; they would make an interesting example for others to learn from.
Cheers,
Rob
___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/
|