[CM] define an instrument?

alin weiller alinweiller@caramail.com
Sat, 24 Apr 2004 23:48:54 GMT


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--=_NextPart_Lycos_0215351082850534_ID
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Thank you!

so now I'm trying
this :

my file "ranran.ins"
contains :

(definstrument
ranran (run (loop
for i from 0 below
20000 do (outa i
(centered-random
0.5)))))

so I write in CLISP
: (compile-file
"ranran.ins")

and CLM replies :

(compile-file
"ranran.ins")

Compilation du
fichier
/home/a-lin/sources/clm-2/ranran.ins...
; Writing
"/home/a-lin/sources/clm-2/clm_lnxclp_RANRAN.c"
; Compiling
"/home/a-lin/sources/clm-2/clm_lnxclp_RANRAN.c"

ERROR in
#:|(DEFINSTRUMENT
RANRAN (RUN #))-1-4|
dans la ligne 1 :
N'est pas permis
dans une
lambda-liste : (LOOP
FOR I FROM 0 BELOW
20000 DO (OUTA I
(CENTERED-RANDOM
0.5)))
ERROR in RANRAN dans
la ligne 1 :
N'est pas permis
dans une
lambda-liste : (LOOP
FOR I FROM 0 BELOW
20000 DO (OUTA I
(CENTERED-RANDOM
0.5)))
WARNING in RANRAN
dans la ligne 1 :
LOOP is neither
declared nor bound,
it will be treated
as if it were
declared SPECIAL.

Thank's

A-LIN
------- Message
original ------- 
De: Fernando Pablo
Lopez-Lezcano
<nando@ccrma.Stanford.EDU> 
Date: 24 Apr 2004
15:56:02 -0700 
Sujet: Re: [CM]
define an
instrument? 

> 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

Incroyable ! des SMS offerts avec CaraMail Premium - http://www.caramailmax.com


--=_NextPart_Lycos_0215351082850534_ID--