Got it - thanks! I blindly took the Common Music 3 sample from the program (Steven Yi's blue) I'm trying to integrate CM3 with, which is in lisp, not scheme, oddly. Thanks again for the help. <br>b<br><br><div class="gmail_quote">
On Mon, Apr 20, 2009 at 3:28 PM, Heinrich Taube <span dir="ltr"><<a href="mailto:taube@uiuc.edu">taube@uiuc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
loading works for me, are you sure the file exists and it has scheme code in it??<br>
<br>
hkt$ echo "(define foo 123)" >> /tmp/foo.scm<br>
<br>
hkt$ cm --load "/tmp/foo.scm" --eval "(list foo foo)" --batch --quiet<br>
foo(123 123)Bye!<br>
hkt$<br>
<br>
<br>
try using the absolute path to the file, maybe thats the problem. also try enclosing the file in "" as i did<div><div></div><div class="h5"><br>
<br>
<br>
On Apr 20, 2009, at 1:29 PM, Ben McAllister wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Hi -<br>
<br>
Build went very smoothly. However, I'm getting an error trying to load a file:<br>
<br>
william-mcallisters-macbook-pro:bin ben$ ./cm --load ../../../../Documents/csound/test.lisp<br>
JUCE v1.46<br>
JUCE v1.46 (c) 2009 Julian Storer<br>
SndLib 20.11 (c) 2009 William Schottstaedt<br>
/\\\<br>
---\\\---------<br>
----\\\--------<br>
----/\\\------- Common Music 3.2.4<br>
---/--\\\------<br>
--/----\\\-----<br>
/ \\\/<br>
<br>
;io-error open-input-file: can't open /Applications/cm/src/cm.lisp, ../../../../Documents/csound/test.lisp[2]<br>
io-error<br>
cm><br>
<br>
Any ideas?<br>
<br>
Thanks!<br>
b<br>
<br>
On Mon, Apr 20, 2009 at 3:17 AM, Heinrich Taube <<a href="mailto:taube@uiuc.edu" target="_blank">taube@uiuc.edu</a>> wrote:<br>
I've recently moved to Mac and am trying to do the same with CM3. i.e you cannot pass the mac 'cm' binary a file to evaluate i.e.<br>
<br>
actually i added command line options to the cm app this past weekend, including --load, --eval and --batch options. you can provide multiple --eval and --load options, they are processes in a left-to-right manner. here is the set i have so far:<br>
<br>
hkt$ cm --help<br>
Usage: cm [options]<br>
options:<br>
--version print version and exit<br>
--help print help and exit<br>
--load <file> load file<br>
--eval <expr> evaluate expression<br>
--batch process options and exit<br>
--quiet don't print startup banner<br>
<br>
i also completly rewrote the read-loop, it now handles multi-line input much better. if you are using the cm console app you should definately do a svn update. i removed the 'q' option for quitting, use the (quit) function to quit instead.<br>
<br>
<br>
<br>
<br>
<br>
-- <br>
Listen Faster: <a href="http://www.listenfaster.com" target="_blank">http://www.listenfaster.com</a> - audio, film and technology<br>
<br></div></div>
_______________________________________________<br>
Cmdist mailing list<br>
<a href="mailto:Cmdist@ccrma.stanford.edu" target="_blank">Cmdist@ccrma.stanford.edu</a><br>
<a href="http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist</a><br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Listen Faster: <a href="http://www.listenfaster.com">http://www.listenfaster.com</a> - audio, film and technology<br><br>