[CM] Windows and Lisp for Common Music
terrence.x.brannon@jpmchase.com
terrence.x.brannon at jpmchase.com
Wed, 19 Dec 2007 15:35:12 -0500
This is a multipart message in MIME format.
--=_alternative 0071165B852573B6_=
Content-Type: text/plain;
charset="US-ASCII"
Ok clisp-2.4.3 did indeed generate a .bat file, but it looks as follows,
so I fixed it:
:: Windows startup script for Common Music
@echo off
C:\Program Files\clisp-2.43/full/lisp.exe -B C:\Program Files\clisp-2.43
-M C:\Program Files\clisp-2.43/full/lispinit.mem -N C:\Program
Files\clisp-2.43\locale -K full -x "(progn (load
\"C:/cygwin/home/W049945/prg/lisp-asdf/cm/src/cm.lisp\" :verbose nil)
(cm))" -repl %1 %2 %3 %4 %5 %6 %7 %8 %9
Here is my best attempt to fix it:
:: Windows startup script for Common Music
@echo off
"C:\Program Files\clisp-2.43\full\lisp.exe" -B "C:\Program
Files\clisp-2.43" -M "C:\Program Files\clisp-2.43\full\lispinit.mem" -N
"C:\Program Files\clisp-2.43\locale" -K full -x "(progn (load
\"C:\\cygwin\\home\\W049945\\prg\\lisp-asdf\\cm\\src\\cm.lisp\\" :verbose
nil) (cm))" -repl %1 %2 %3 %4 %5 %6 %7 %8 %9
but then I got:
C:\cygwin\home\W049945\prg\lisp-asdf\cm\bin>cm
GNU CLISP: -x with lisp-file is invalid: ':verbose'
GRACE is awesome! Getting to listen to piano phase by Reich anytime I want
is inexpressably awesome... he's one of the greats.
--
Terrence Brannon - SID W049945
614-213-2475 (office)
614-213-3426 (fax)
818-359-0893 (cell)
Rick Taube <taube@uiuc.edu>
12/19/2007 02:58 PM
To
terrence.x.brannon@jpmchase.com
cc
cmdist@ccrma.stanford.edu
Subject
Re: [CM] Windows and Lisp for Common Music
> Well...
> I set my Lisp program to clisp and then sbcl, but in both cases, I
> get an error trying to run cm.sh, which is not surprising based on
> the contents of that file - it is a Unix shell script.
on xp you will need to generate the cm.bat file. You do this by
starting CLISP and then loading the cm.lisp file.
C:> clisp
[1]> (load "/path/to/cm/src/cm.lisp")
that should create the file
/path/to/cm/bin/cm.bat
you can use that to start cm from the shell or via slime (better look
at the contents of cm.bat first to see if it looks right...)
To start CM in Emacs with slime loaded do:
M-: (setq inferior-lisp-command "/path/to/cm/bin/cm.bat")
M-x slime
OR add this in your .emacs file:
(require 'slime)
(slime-setup)
(load "/path/to/cm/etc/emacs/cm.el")
(setq cm-program "/path/to/cm/bin/cm.bat")
; uncomment if you want to use sal
; (load "/Lisp/cm/etc/emacs/sal-mode.el")
(enable-cm-commands)
with these inits in effect you can do
M-x cm
and you should get CM running in CLISP a buffer. You should also be
able to generate a cm.bat file from in SBCL/WIndows, i tried last
summer but WinSBCL was so flakey i gave up and threw it out. THis is
why im getting out of (Common Lisp) develpment, its simply too
difficult to get anything working everywhere or to encorpoprate
graphics.
> Also, I googled and found out the website of Grace - http://
> pinhead.music.uiuc.edu/~hkt/grace/doc/ - but still dont know
> exactly what it does or how it fits into the Common Music scheme of
> things.
Its a C++ app written in JUCE. It has two bindings, one to Common
Lisp and one to Chicken Scheme. If you are using Common Lisp/Common
Music, you can use Grace as a cross platform replacement for EMACS +
LISP + SLIME + COMMON MUSIC . (Lets call this GraceCL.) In addition
to being cross-platform, GraceCL provides graphics, menus, a code
editor with syntax highlighting etc.
The "main" development path for Grace is a tight bundling with
CHicken Scheme, which provides realtime scheduling and allows for
direct port connections (MIDI for now) , again in a single, cross
platform environment.
Grace is still in its infancy but it is very usable. I taught my
Intro to Algorithic Composition with GraceCL last semseter, the class
was using Sal syntax and most of the class was composing interesting,
sophisticated music by the end of the semester.
> I presume at some point a link to some informative docs will be
> here - http://commonmusic.sourceforge.net/doc/cm.html#implementation
sure, at some point. you can read the docs under the grace/doc tree
for more information. these are also available under Help menu in grace.
-----------------------------------------
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.
--=_alternative 0071165B852573B6_=
Content-Type: text/html;
charset="US-ASCII"
<br><font size=2 face="sans-serif">Ok clisp-2.4.3 did indeed generate a
.bat file, but it looks as follows, so I fixed it:</font>
<br><font size=2 face="sans-serif">:: Windows startup script for Common
Music</font>
<br><font size=2 face="sans-serif">@echo off</font>
<br><font size=2 face="sans-serif">C:\Program Files\clisp-2.43/full/lisp.exe
-B C:\Program Files\clisp-2.43 -M C:\Program Files\clisp-2.43/full/lispinit.mem
-N C:\Program Files\clisp-2.43\locale -K full -x "(progn (load \"C:/cygwin/home/W049945/prg/lisp-asdf/cm/src/cm.lisp\"
:verbose nil) (cm))" -repl %1 %2 %3 %4 %5 %6 %7 %8 %9</font>
<br>
<br><font size=2 face="sans-serif">Here is my best attempt to fix it:</font>
<br><font size=2 face="sans-serif">:: Windows startup script for Common
Music</font>
<br><font size=2 face="sans-serif">@echo off</font>
<br><font size=2 face="sans-serif">"C:\Program Files\clisp-2.43\full\lisp.exe"
-B "C:\Program Files\clisp-2.43" -M "C:\Program Files\clisp-2.43\full\lispinit.mem"
-N "C:\Program Files\clisp-2.43\locale" -K full -x "(progn
(load \"C:\\cygwin\\home\\W049945\\prg\\lisp-asdf\\cm\\src\\cm.lisp\\"
:verbose nil) (cm))" -repl %1 %2 %3 %4 %5 %6 %7 %8 %9</font>
<br>
<br><font size=2 face="sans-serif">but then I got: </font>
<br>
<br><font size=2 face="sans-serif">C:\cygwin\home\W049945\prg\lisp-asdf\cm\bin>cm</font>
<br><font size=2 face="sans-serif">GNU CLISP: -x with lisp-file is invalid:
':verbose'</font>
<br>
<br>
<br><font size=2 face="sans-serif">GRACE is awesome! Getting to listen
to piano phase by Reich anytime I want is inexpressably awesome... he's
one of the greats.</font>
<br>
<br><font size=2 face="sans-serif">--<br>
Terrence Brannon - SID W049945<br>
614-213-2475 (office)<br>
614-213-3426 (fax)<br>
818-359-0893 (cell)<br>
<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Rick Taube <taube@uiuc.edu></b>
</font>
<p><font size=1 face="sans-serif">12/19/2007 02:58 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">terrence.x.brannon@jpmchase.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">cmdist@ccrma.stanford.edu</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [CM] Windows and Lisp for Common
Music</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt><br>
> Well...<br>
> I set my Lisp program to clisp and then sbcl, but in both cases, I
<br>
> get an error trying to run cm.sh, which is not surprising based on
<br>
> the contents of that file - it is a Unix shell script.<br>
<br>
on xp you will need to generate the cm.bat file. You do this by <br>
starting CLISP and then loading the cm.lisp file.<br>
<br>
C:> clisp<br>
[1]> (load "/path/to/cm/src/cm.lisp")<br>
<br>
that should create the file<br>
<br>
/path/to/cm/bin/cm.bat<br>
<br>
you can use that to start cm from the shell or via slime (better look <br>
at the contents of cm.bat first to see if it looks right...)<br>
To start CM in Emacs with slime loaded do:<br>
<br>
M-: (setq inferior-lisp-command "/path/to/cm/bin/cm.bat")<br>
M-x slime<br>
<br>
OR add this in your .emacs file:<br>
<br>
(require 'slime)<br>
(slime-setup)<br>
(load "/path/to/cm/etc/emacs/cm.el")<br>
(setq cm-program "/path/to/cm/bin/cm.bat")<br>
<br>
; uncomment if you want to use sal<br>
; (load "/Lisp/cm/etc/emacs/sal-mode.el")<br>
<br>
(enable-cm-commands)<br>
<br>
<br>
with these inits in effect you can do<br>
M-x cm<br>
<br>
and you should get CM running in CLISP a buffer. You should also be <br>
able to generate a cm.bat file from in SBCL/WIndows, i tried last <br>
summer but WinSBCL was so flakey i gave up and threw it out. THis is <br>
why im getting out of (Common Lisp) develpment, its simply too <br>
difficult to get anything working everywhere or to encorpoprate <br>
graphics.<br>
<br>
> Also, I googled and found out the website of Grace - http:// <br>
> pinhead.music.uiuc.edu/~hkt/grace/doc/ - but still dont know <br>
> exactly what it does or how it fits into the Common Music scheme of
<br>
> things.<br>
<br>
Its a C++ app written in JUCE. It has two bindings, one to Common <br>
Lisp and one to Chicken Scheme. If you are using Common Lisp/Common <br>
Music, you can use Grace as a cross platform replacement for EMACS + <br>
LISP + SLIME + COMMON MUSIC . (Lets call this GraceCL.) In addition
<br>
to being cross-platform, GraceCL provides graphics, menus, a code <br>
editor with syntax highlighting etc.<br>
<br>
The "main" development path for Grace is a tight bundling with
<br>
CHicken Scheme, which provides realtime scheduling and allows for <br>
direct port connections (MIDI for now) , again in a single, cross <br>
platform environment.<br>
<br>
Grace is still in its infancy but it is very usable. I taught my <br>
Intro to Algorithic Composition with GraceCL last semseter, the class <br>
was using Sal syntax and most of the class was composing interesting, <br>
sophisticated music by the end of the semester.<br>
<br>
> I presume at some point a link to some informative docs will be <br>
> here - http://commonmusic.sourceforge.net/doc/cm.html#implementation<br>
<br>
<br>
sure, at some point. you can read the docs under the grace/doc tree
<br>
for more information. these are also available under Help menu in grace.<br>
</tt></font>
<br>
<P><hr size=1></P>
<P>
This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates.
This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities.
</P>
--=_alternative 0071165B852573B6_=--