List Info

Thread: dotimes




dotimes
country flaguser name
United States
2008-03-10 07:53:58
A few comments on the recent Audacity-Nyquist postings:

Yes, "s" is a global variable, but in Nyquist
plugins, "s" is special 
because it is set to NIL after the plugin expressions are
evaluated. So

(setf s (notch s x y))

is perhaps not the most elegant approach, but it should not
cause any 
problems.

To iterate some filter on a signal with arguments from a
list, I'd 
suggest using dolist instead of dotimes:

(setf params-list '((a b) (c d) (e f) (g h) ...))

(dolist (params parms-list)
  (setf s (notch s (first params) (second params))))

-Roger


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Audacity-nyquist mailing list
Audacity-nyquistlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audaci
ty-nyquist

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )