[LAD] Prototyping algorithms and ideas

Kjetil S. Matheussen k.s.matheussen at notam02.no
Fri Feb 1 16:55:56 UTC 2008


On Fri, 1 Feb 2008, Darren Landrum wrote:

> Kjetil S. Matheussen wrote:
> > Thanks, that was simple. I'll try figuring out the rest myself.
> > But what about resampling? The main main signal usually needs to
> > be resampled up 5-10 times to get a decent sound. Can I do that
> > with faust? Something like:
> > 
> > process = resample(5,d)
> 
> I'm quite curious about this as well. How do tools like Faust and CLAM 
> handle up- and down-sampling?
> 

In snd, you do it like this:

(define resampler (make-src <various optional options>))
(src resampler rate (lambda (direction) <input-signal>))




More information about the Linux-audio-dev mailing list