Re: [Audacity-nyquist] dotimes - how does it work in plugins?
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: <edg...@we...> - 2008-03-09 09:13:41
|
Correction! 'dotimes' needs to know what value it shall return, otherwise it returns NIL what ends up in Audacity with 'nyquist did not return audio' or similar error messages. (german error message: Nyquist gab keine Audiodaten zurück.) > To apply the notch filter three times in a row you need to > accumulate the returned sound in the 's' variable: the correct version must be: (dotimes (i 3 s) ; 's' is the return value of 'dotimes' (setf s (notch2 s (* (+ 1 i) 50) 1))) The 'local variable' version works as-is because an explicit return value was given: (let (tmp-s) (dotimes (i 3) (setf tmp-s (notch2 s (* (+ 1 i) 50) 1))) tmp-s) ; the return value - edgar -- The author of this email does not necessarily endorse the following advertisements, which are the sole responsibility of the advertiser: ______________________________________________________ Bis 50 MB Dateianhänge? Kein Problem! http://freemail.web.de/club/landingpage.htm/?mc=025556 |