[Audacity-nyquist] RE: Audacity-nyquist digest, Vol 1 #22 - 1 msg
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
|
From: Roger B. D. <rb...@cs...> - 2004-12-28 20:58:11
|
I haven't tried this or done any debugging, but just looking at the = code, the following is not a good idea: (SETQ SEQUENCE (SIM (CUE SEQUENCE) (MAKENOTE I SIG SAMPLE TS VOL S)))=20 This looks like you are trying to append sounds together by iterating in = a loop. SIM and SEQ as well as some other Nyquist behaviors should not be = used within procedural code. Instead, so something like: (SEQREP (I n) (MAKENOTE ...)) Because Nyquist uses lazy (deferred) evaluation, it can be very hard to understand when variable values are set and accessed, so it is best not = to use SETF with sounds. EXCEPTION: using SETF for a one-time = initialization of a new, local variable is OK. -Roger |