[CM] define an instrument?
taube@uiuc.edu
taube@uiuc.edu
Sat, 24 Apr 2004 18:08:42 -0500
you also need to observe the syntax of definstument. you must
supply an parameter list even if its a null list:
(definstrument rr ()
(run (loop ...)))
the () is null parameter list -- that list is not the same as
no parameter list as all, as your example.
---- Original message ----
>Date: 24 Apr 2004 15:56:02 -0700
>From: Fernando Pablo Lopez-Lezcano <nando@ccrma.Stanford.EDU>
>Subject: Re: [CM] define an instrument?
>To: alin weiller <alinweiller@caramail.com>
>Cc: list CM <cmdist@ccrma.Stanford.EDU>
>
>> Hi, I a very beginner, so I try to define a instrument but
it doesn't work,
>> any advice?
>>
>> (definstrument rr (run (loop for i from 0 below 20000 do
(outa i (centered-random 1))))
>>
>> ** - Continuable Error
>> oops -- I can't find RR's lisp source file!
>
>CLM instruments have to be compiled. Save the instrument in a
file (for
>example "filename.ins", then (compile-file "filename.ins"), (load
>"filename") [or (load "filename.cmucl") if you are running
cmucl].
>
>-- Fernando
>
>
>_______________________________________________
>Cmdist mailing list
>Cmdist@ccrma.stanford.edu
>http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist