<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br>I'm getting myself confused about how to evaluate a clm .lisp file in emacs.<br><br>I tried evaluating the inst below but get a lisp error: (void-function with-sound).<br><br>(definstrument examp1 (start-time duration frequency amplitude)<br>&nbsp; (let* ((beg (floor (* start-time *srate*)))<br>&nbsp;&nbsp;&nbsp; &nbsp;(end (+ beg (floor (* duration *srate*))))<br>&nbsp;&nbsp;&nbsp; &nbsp;(j 0))<br>&nbsp;&nbsp;&nbsp; (run<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (loop for i from beg below end do<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (outa i (* amplitude (sin (* j 2.0 pi (/ frequency *srate*)))))<br>&nbsp;&nbsp;&nbsp; (incf j)))))<br><br>(with-sound () (examp1 0 3.25 440.0 0.75))<br><br>I did a load all.lisp before evaluating and all the .fasl files are generated etc.&nbsp; Also the compile-file, then load, and finally with-sound approach is working o.k. for .ins files, but I was trying to code an inst using a .lisp file and evaluating from emacs so I could play then edit(tweak) from the buffer.&nbsp; Does that approach not work?<br><br>Regards,<br>Jim<br>                                               </div></body>
</html>