From finnendahl at folkwang-hochschule.de Tue Jul 1 03:58:24 2003 From: finnendahl at folkwang-hochschule.de (Orm Finnendahl) Date: Tue, 1 Jul 2003 12:58:24 +0200 Subject: [CM] dopairs Message-ID: <20030701105823.GA1689@finnendahl.de> Hi Rick, using your dopairs macro I noticed the following behaviour: (dopairs (x y '(1 2 3 4 5)) (begin (display (list x y)) (newline))) guile> (1 2) (3 4) : In procedure cadr in expression (cadr #{\ g75}#): : Wrong type argument in position 1: () ABORT: (wrong-type-arg) Type "(backtrace)" to get more information or "(debug)" to enter the debugger. I think, the error of an uneven pair list should get caught and assume it's due to a typo in the fourth last line of the dopairs definition. To fix this, change that line: - (if (null? ,a) into + (if (null? (cdr ,a)) After replacement: (dopairs (x y '(1 2 3 4 5)) (begin (display (list x y)) (newline))) guile> (1 2) (3 4) : In procedure error in expression (error str): : Uneven pair list: (1 2 3 4 5) ABORT: (misc-error) guile> -- Orm From finnendahl at folkwang-hochschule.de Tue Jul 1 04:03:06 2003 From: finnendahl at folkwang-hochschule.de (Orm Finnendahl) Date: Tue, 1 Jul 2003 13:03:06 +0200 Subject: [CM] cm-2.4.0-cvs and guile Message-ID: <20030701110306.GB1689@finnendahl.de> Hi, trying to load the latest cm.scm from cvs into guile-1.6.0 the process dies with the following error: ; Loading: /usr/local/lisp/cm/src/guile.scm ; Loading: /usr/local/lisp/cm/src/goops.scm ; Loading: /usr/local/lisp/cm/src/level1.scm ; Loading: /usr/local/lisp/cm/src/loop.scm ; Loading: /usr/local/lisp/cm/src/utils.scm ; Loading: /usr/local/lisp/cm/src/mop.scm ; Loading: /usr/local/lisp/cm/src/objects.scm ; Loading: /usr/local/lisp/cm/src/io.scm ; Loading: /usr/local/lisp/cm/src/scheduler.scm ; Loading: /usr/local/lisp/cm/src/sco.scm ; Loading: /usr/local/lisp/cm/src/clm.scm ; Loading: /usr/local/lisp/cm/src/clm2.scm ; Loading: /usr/local/lisp/cm/src/midi1.scm ; Loading: /usr/local/lisp/cm/src/midi2.scm ; Loading: /usr/local/lisp/cm/src/midi3.scm ; Loading: /usr/local/lisp/cm/src/cmn.scm ERROR: Unbound variable: Process scheme exited abnormally with code 2 ERROR: In procedure open-file: ERROR: No such file or directory: "/usr/local/lisp/cm/src/cm.scm" Process scheme exited abnormally with code 2 Is it me? -- Orm From taube at uiuc.edu Tue Jul 1 04:49:39 2003 From: taube at uiuc.edu (Rick Taube) Date: Tue, 1 Jul 2003 06:49:39 -0500 Subject: [CM] cm-2.4.0-cvs and guile In-Reply-To: <20030701110306.GB1689@finnendahl.de> Message-ID: <1845E83E-ABBA-11D7-8BF6-000A95674CE4@uiuc.edu> oh sorry!. i dont think that cmn.scm should be loaded (yet...) please try commenting out that line and then load again. im almost done with the re-editing the doc tree for the final release, once thats done ill test all the nm examples in the various lisps. On Tuesday, Jul 1, 2003, at 06:03 America/Chicago, Orm Finnendahl wrote: > Hi, > > trying to load the latest cm.scm from cvs into guile-1.6.0 the process > dies with the following error: > > ; Loading: /usr/local/lisp/cm/src/guile.scm > ; Loading: /usr/local/lisp/cm/src/goops.scm > ; Loading: /usr/local/lisp/cm/src/level1.scm > ; Loading: /usr/local/lisp/cm/src/loop.scm > ; Loading: /usr/local/lisp/cm/src/utils.scm > ; Loading: /usr/local/lisp/cm/src/mop.scm > ; Loading: /usr/local/lisp/cm/src/objects.scm > ; Loading: /usr/local/lisp/cm/src/io.scm > ; Loading: /usr/local/lisp/cm/src/scheduler.scm > ; Loading: /usr/local/lisp/cm/src/sco.scm > ; Loading: /usr/local/lisp/cm/src/clm.scm > ; Loading: /usr/local/lisp/cm/src/clm2.scm > ; Loading: /usr/local/lisp/cm/src/midi1.scm > ; Loading: /usr/local/lisp/cm/src/midi2.scm > ; Loading: /usr/local/lisp/cm/src/midi3.scm > ; Loading: /usr/local/lisp/cm/src/cmn.scm > ERROR: Unbound variable: > > Process scheme exited abnormally with code 2 > ERROR: In procedure open-file: > ERROR: No such file or directory: "/usr/local/lisp/cm/src/cm.scm" > > Process scheme exited abnormally with code 2 > > > > > > Is it me? > > -- > Orm > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From taube at uiuc.edu Tue Jul 1 05:02:41 2003 From: taube at uiuc.edu (Rick Taube) Date: Tue, 1 Jul 2003 07:02:41 -0500 Subject: [CM] dopairs In-Reply-To: <20030701105823.GA1689@finnendahl.de> Message-ID: yes, thank you! ill make the change in cvs right away. btw dopairs should allow any number of forms in its body so your explicit (begin ...) is not necessary. (dopairs (x y '(a 1 b 2 c 3)) (display x) (display y) ...) > I think, the error of an uneven pair list should get caught and assume > it's due to a typo in the fourth last line of the dopairs definition. > > To fix this, change that line: > > - (if (null? ,a) > > into > > + (if (null? (cdr ,a)) > > After replacement: > > (dopairs (x y '(1 2 3 4 5)) > (begin > (display (list x y)) > (newline))) > > guile> (1 2) > (3 4) > : In procedure error in expression (error str): > : Uneven pair list: (1 2 3 4 5) > ABORT: (misc-error) > guile> > > -- > Orm > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From bil at ccrma.Stanford.EDU Tue Jul 1 05:06:34 2003 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: 01 Jul 2003 05:06:34 -0700 Subject: [CM] sndins library by Michael Scholz Message-ID: <1057061193.3048.2.camel@cmn30.stanford.edu> Michael Scholz has written a library called sndins that packages up C versions of some instruments and calls them in notelists. Here's part of the README file: "The C/XEN library `libsndins.so' provides the instrument FM-VIOLIN and the reverberators JC-REVERB, NREV, and FREEVERB to use them in longer notelists in Snd/Guile and Snd/Ruby. They are not so fast as the ffi-lisp versions, at least not on my machine, but they run much faster than the Scheme or Ruby variants. In addition I have added the FCOMB example from sndscm.html which is used in freeverb." It's at ccrma-ftp as sndins-1.0.0.tar.gz. From finnendahl at folkwang-hochschule.de Tue Jul 1 06:24:38 2003 From: finnendahl at folkwang-hochschule.de (Orm Finnendahl) Date: Tue, 1 Jul 2003 15:24:38 +0200 Subject: [CM] score file empty Message-ID: <20030701132438.GA2017@finnendahl.de> Hi Rick, thanks for the hint with dopairs. The examples of the chapter "Beyond MIDI" don't work on my machine. Evaluating the blur example results in a score file which contains the function table definition but no note events at all. Here's the input to guile: (begin (set-sco-output-hook! #'play-sco-file) (defobject i1 (i) (amp freq (attack :initform .05) (release :initform .25)) (:parameters time dur amp freq attack release)) (define sco-header ; define a score file header string "f1 0 8192 10 0.0 0.41 0.06 0.04 0.00 0.11 0.02 0.00 0.00") (define (blur ) (process repeat 100 output (new i1 :time (now) :freq (between 20 2000) ; Hertz :dur .4 :amp .1) wait .015)) (events (blur) "blur.sco" 0 :header sco-header :options "-d -m0 -A" :orchestra "blur.orc" :output "blur.aiff") ) From taube at uiuc.edu Tue Jul 1 06:46:25 2003 From: taube at uiuc.edu (Rick Taube) Date: Tue, 1 Jul 2003 08:46:25 -0500 Subject: [CM] score file empty Message-ID: <682A8418-ABCA-11D7-BBFB-000A95674CE4@uiuc.edu> ok thanks, let me poke at it and see whats going wrong. ill try to fix it in cvs today. On Tuesday, Jul 1, 2003, at 08:24 America/Chicago, Orm Finnendahl wrote: > Hi Rick, > > thanks for the hint with dopairs. > > The examples of the chapter "Beyond MIDI" don't work on my > machine. Evaluating the blur example results in a score file which > contains the function table definition but no note events at all. > > Here's the input to guile: > > (begin > (set-sco-output-hook! #'play-sco-file) > (defobject i1 (i) > (amp > freq > (attack :initform .05) > (release :initform .25)) > (:parameters time dur amp freq attack release)) > > (define sco-header ; define a score file header string > "f1 0 8192 10 0.0 0.41 0.06 0.04 0.00 0.11 0.02 0.00 0.00") > > (define (blur ) > (process repeat 100 > output (new i1 :time (now) > :freq (between 20 2000) ; Hertz > :dur .4 :amp .1) > wait .015)) > > > (events (blur) "blur.sco" 0 > :header sco-header > :options "-d -m0 -A" > :orchestra "blur.orc" > :output "blur.aiff") > ) > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From taube at uiuc.edu Wed Jul 2 03:05:48 2003 From: taube at uiuc.edu (Rick Taube) Date: Wed, 2 Jul 2003 05:05:48 -0500 Subject: [CM] score file empty In-Reply-To: <20030701132438.GA2017@finnendahl.de> Message-ID: On Tuesday, Jul 1, 2003, at 08:24 America/Chicago, Orm Finnendahl wrote: > > The examples of the chapter "Beyond MIDI" don't work on my > machine. Evaluating the blur example results in a score file which > contains the function table definition but no note events at all. Orm, the csound blur example works fine for me in Guile 1.6.1/Mac OSX. What version/os are you using ? --- ; Common Music 2.4.0 output on 02 Jul 2003, 04:59:34 f1 0 8192 10 0.0 0.41 0.06 0.04 0.00 0.11 0.02 0.00 0.00 i1 0 0.4 0.1 1863 0.05 0.25 i1 0.015 0.4 0.1 641 0.05 0.25 i1 0.03 0.4 0.1 1464 0.05 0.25 i1 0.045 0.4 0.1 1637 0.05 0.25 i1 0.06 0.4 0.1 985 0.05 0.25 i1 0.075 0.4 0.1 1530 0.05 0.25 i1 0.09 0.4 0.1 1803 0.05 0.25 i1 0.105 0.4 0.1 1345 0.05 0.25 i1 0.12 0.4 0.1 104 0.05 0.25 i1 0.135 0.4 0.1 766 0.05 0.25 From finnendahl at folkwang-hochschule.de Wed Jul 2 03:15:42 2003 From: finnendahl at folkwang-hochschule.de (Orm Finnendahl) Date: Wed, 2 Jul 2003 12:15:42 +0200 Subject: [CM] score file empty In-Reply-To: References: <20030701132438.GA2017@finnendahl.de> Message-ID: <20030702101542.GB1047@finnendahl.de> Hi Rick, Am Mittwoch, den 02. Juli 2003 um 05:05:48 Uhr (-0500) schrieb Rick Taube: > Orm, the csound blur example works fine for me in Guile 1.6.1/Mac OSX. > What version/os are you using ? it's working now. I took the file beyond.cm and evaluated step by step and now output is there. Sorry for the noise. I don't know why it didn't work yesterday. BTW I'm using linux/guile-1.6.0 and latest cvs of cm. -- Orm P.S.: Your book is great! I'm using it in my courses in Essen and the students seem to be quite happy. From finnendahl at folkwang-hochschule.de Wed Jul 2 03:37:38 2003 From: finnendahl at folkwang-hochschule.de (Orm Finnendahl) Date: Wed, 2 Jul 2003 12:37:38 +0200 Subject: [CM] scorefile, guile and nil Message-ID: <20030702103738.GA1157@finnendahl.de> Hi Rick, using the score file mechanism, I get a format error as format tries to write to nil as destination which is undefined in scheme. FORMAT: error with call: (format nil "<===i~a" ===>1 ) illegal destination `nil' : In procedure error in expression (error "error in format"): : error in format ABORT: (misc-error) guile> After doing (define nil #f) it works. Should this be done globally e.g. at startup of scheme? -- Orm From taube at uiuc.edu Wed Jul 2 03:57:06 2003 From: taube at uiuc.edu (Rick Taube) Date: Wed, 2 Jul 2003 05:57:06 -0500 Subject: [CM] scorefile, guile and nil In-Reply-To: <20030702103738.GA1157@finnendahl.de> Message-ID: > > After doing (define nil #f) it works. > > Should this be done globally e.g. at startup of scheme? hi -- no dont do this. any 'nil' you find in cm's scheme source code is a bug. it should either be #f or (), depending on whether 'nil' is standing for boolean false or the empty list in the current context. if you find a nil, please let me know which file. or maybe i should grep the sources right now btw if portability is an issue for your class, cm defines 'true' and 'false' variables so that you dont have to hardwire boolan values like #f or nil in your code > using the score file mechanism, I get a format error as format tries to > write to nil as destination which is undefined in scheme. > > FORMAT: error with call: (format nil "<===i~a" ===>1 ) > illegal destination `nil' > : In procedure error in expression (error "error in > format"): > : error in format > ABORT: (misc-error) > guile> > > > > > After doing (define nil #f) it works. > > Should this be done globally e.g. at startup of scheme? > > > -- > Orm > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From taube at uiuc.edu Wed Jul 2 03:58:13 2003 From: taube at uiuc.edu (Rick Taube) Date: Wed, 2 Jul 2003 05:58:13 -0500 Subject: [CM] scorefile, guile and nil In-Reply-To: <20030702103738.GA1157@finnendahl.de> Message-ID: <136404A4-AC7C-11D7-8BDD-000A95674CE4@uiuc.edu> On Wednesday, Jul 2, 2003, at 05:37 America/Chicago, Orm Finnendahl wrote: > FORMAT: error with call: (format nil "<===i~a" ===>1 ) > do (format #f "<===i~a" ===>" 1) or (format false "<===i~a" ===>" 1) From taube at uiuc.edu Wed Jul 2 06:33:40 2003 From: taube at uiuc.edu (Rick Taube) Date: Wed, 2 Jul 2003 08:33:40 -0500 Subject: [CM] scorefile, guile and nil Message-ID: oh thanks! ill fix in cvs right away but sourceforge may cause some delays until you actaully get the revisions with 'cvs update' so ill update the tarfile at ccrma as well... On Wednesday, Jul 2, 2003, at 07:28 America/Chicago, Orm Finnendahl wrote: > Am Mittwoch, den 02. Juli 2003 um 05:57:06 Uhr (-0500) schrieb Rick > Taube: >> >> if you find a nil, please let me know which file. or maybe i should >> grep the sources right now > > I found 3 files: > > orm at grisey:/usr/local/lisp/cm/src$ grep "(format nil" *.scm > midi1.scm: (format stream (format nil "~~~d at t" > patterns.scm: (gvar (string->symbol (format nil "<~a>" > sco.scm: (format nil "i~a" (slot-ref obj 'ins)) > sco.scm: (format nil "f~a" (slot-ref obj 'num)) > spectral.scm:; (format t (format nil "~~%C: ~A, M: ~A, C/M: ~~S" > fmat fmat) > spectral.scm:; (format t (format nil "~~%~A~~10,3f" fmat) > orm at grisey:/usr/local/lisp/cm/src$ > >> btw if portability is an issue for your class, cm defines 'true' and >> 'false' variables so that you dont have to hardwire boolan values like >> #f or nil in your code > > that's convenient. So what's the way to change the sources? Should I > hardwire #f in the sco.scm and such, or should I use 'false'? > > > -- > Orm From bil at ccrma.Stanford.EDU Fri Jul 4 04:44:09 2003 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: 04 Jul 2003 04:44:09 -0700 Subject: [CM] double-float in clm in cmucl/clisp Message-ID: <1057319049.14338.4.camel@cmn30.stanford.edu> just a "heads-up" for CLM-ers using cmucl or clisp -- due to aggravating package problems, the old "double-float" function is now named "double". Other lisps can use either the new name or the old one. "make-double-float-array" has a synonym "make-double-array". From johannes.quint at web.de Fri Jul 4 11:41:19 2003 From: johannes.quint at web.de (Johannes Quint) Date: Fri, 4 Jul 2003 20:41:19 +0200 Subject: [CM] cm with openmcl and xemacs Message-ID: <1A021502-AE4F-11D7-BD36-000393B906B6@web.de> (i am new with opensource, so maybe this is a trivial question...:) trying to launch cm with openmcl via xemacs, i get the following error: /Applications/cm-2.4.0/bin/xcm: [: too many arguments logout /Applications/cm-2.4.0/bin/xcm: xemacs: command not found [Process completed] have i to set pathnames? thanks for help j.quint __ Johannes Quint Rilkestr.55 D-53225 Bonn 0228 468256 johannes.quint at web.de http://private.addcom.de/j.quint/index.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 519 bytes Desc: not available URL: From taube at uiuc.edu Fri Jul 4 11:55:28 2003 From: taube at uiuc.edu (Rick Taube) Date: Fri, 4 Jul 2003 13:55:28 -0500 Subject: [CM] cm with openmcl and xemacs In-Reply-To: <1A021502-AE4F-11D7-BD36-000393B906B6@web.de> Message-ID: <141E328D-AE51-11D7-A56F-000A95674CE4@uiuc.edu> could be a combination of things, including my script (which tries to test for xemacs and supposedly exits if it cant find it.) it appears you are runnin on osx. Do you actually have Apple's x11.app and Xemacs installed. in the terminal type: which xemacs to see if you have it in your path. On Friday, Jul 4, 2003, at 13:41 America/Chicago, Johannes Quint wrote: > (i am new with opensource, so maybe this is a trivial question...:) > > trying to launch cm with openmcl via xemacs, i get the following error: > > /Applications/cm-2.4.0/bin/xcm: [: too many arguments > logout > /Applications/cm-2.4.0/bin/xcm: xemacs: command not found > [Process completed] > > have i to set pathnames? > > thanks for help > > j.quint > > __ > > Johannes Quint > Rilkestr.55 > D-53225 Bonn > 0228 468256 > johannes.quint at web.de > http://private.addcom.de/j.quint/index.htm From finnendahl at folkwang-hochschule.de Fri Jul 4 12:03:56 2003 From: finnendahl at folkwang-hochschule.de (Orm Finnendahl) Date: Fri, 4 Jul 2003 21:03:56 +0200 Subject: [CM] cm with openmcl and xemacs In-Reply-To: <1A021502-AE4F-11D7-BD36-000393B906B6@web.de> References: <1A021502-AE4F-11D7-BD36-000393B906B6@web.de> Message-ID: <20030704190356.GA4775@finnendahl.de> Am Freitag, den 04. Juli 2003 um 20:41:19 Uhr (+0200) schrieb Johannes Quint: > > (i am new with opensource, so maybe this is a trivial question...:) > trying to launch cm with openmcl via xemacs, i get the following error: > /Applications/cm-2.4.0/bin/xcm: [: too many arguments > logout > /Applications/cm-2.4.0/bin/xcm: xemacs: command not found The error seems to imply that the process, who tries to call xemacs, doesn't find the binary. This can be due to: 1. The binary isn't installed 2. The binary is installed in a location, where it isn't found by the calling process. To troubleshoot it: Try to launch xemacs from a terminal by typing 'xemacs' at the prompt. If that works, try to launch the process which is going to start xemacs (openmcl?) from the very same terminal. If it didn't work in the first place, check the $PATH variable with the command 'echo $PATH'. This command lists the paths, which are checked by the shell to start programs. If the Path containing xemacs isn't contained, you either copy/move the xemacs binary into any seen path (dirty), or set a link to the binary in a seen path (less dirty), or add the path of the xemacs binary to your $PATH environment variable (e.g. in bash: 'export PATH={$PATH}:') BTW what I explained is not exactly open source, it's plain unix. -- Orm From taube at uiuc.edu Fri Jul 4 12:50:09 2003 From: taube at uiuc.edu (Rick Taube) Date: Fri, 4 Jul 2003 14:50:09 -0500 Subject: [CM] cm with openmcl and xemacs In-Reply-To: Message-ID: If you want to work on OSX with CLM and CM etc then you need to install some stuff first. I sent a note to the list awhile back detailing exactly what you had to do, maybe someone still has a copy of that message and can repost, or maybe you can look in the cmdist archive. basically you have to: download/install Apple's beta 3 of Xemacs (http://www.apple.com/macosx/x11/) download/install Apples Developer Tools (http://developer.apple.com/tools/download/) download/install fink (http://fink.sf.net) and then Xemacs (http://fink.sfe.net/pdb/package.php/xemacs-sumo-pkg > (oh i fear i have to go back to os 9...) now now dont panic. it will all work out... From carl.boingie at rcn.com Fri Jul 4 12:48:31 2003 From: carl.boingie at rcn.com (Carl Edwards) Date: Fri, 4 Jul 2003 15:48:31 -0400 Subject: [CM] sequence help Message-ID: <001b01c34265$6f51d570$a7e27ad1@laptop> This is basic and probably trivial, but for some reason I'm having a tough time figuring it out. Maybe one of ya'll can point out the error of my ways... I'd like to be able to take a few simple processes and sequence them into a single midi file. The problem is that I don't know the amount of time that the first process will take up and I'd like the second process to begin on the next beat. I guess it's just not clear to me how to feed the events function a list of things to do one-after-another. Should I (is it possible to...) have each process write it's last "now" to a global variable? I'm probably missing something very obvious. Any help would be appreciated. Carl Edwards From taube at uiuc.edu Fri Jul 4 13:21:46 2003 From: taube at uiuc.edu (Rick Taube) Date: Fri, 4 Jul 2003 15:21:46 -0500 Subject: [CM] sequence help In-Reply-To: <001b01c34265$6f51d570$a7e27ad1@laptop> Message-ID: <2266B3DE-AE5D-11D7-9EC2-000A95674CE4@uiuc.edu> you can use the 'finally' option to chain processes together like so: (define (doit ) (process repeat (random 300) output (new ...) wait (whatever) finally (sprout (doit) (now)))) that is, the last thing the current process does is to sprout a new process that starts at its current time. a more genereal solution would be for me to reimpleent the functionality of the old 'thread' container. this is actually on my 'todo' list, unfortunately that list is very long! On Friday, Jul 4, 2003, at 14:48 America/Chicago, Carl Edwards wrote: > > This is basic and probably trivial, but for some reason I'm having a > tough > time figuring it out. Maybe one of ya'll can point out the error of my > ways... > > I'd like to be able to take a few simple processes and sequence them > into a > single midi file. The problem is that I don't know the amount of time > that > the first process will take up and I'd like the second process to > begin on > the next beat. I guess it's just not clear to me how to feed the events > function a list of things to do one-after-another. > > Should I (is it possible to...) have each process write it's last > "now" to a > global variable? > > I'm probably missing something very obvious. Any help would be > appreciated. > > Carl Edwards > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From taube at uiuc.edu Fri Jul 4 13:31:59 2003 From: taube at uiuc.edu (Rick Taube) Date: Fri, 4 Jul 2003 15:31:59 -0500 Subject: [CM] cm with openmcl and xemacs In-Reply-To: Message-ID: <8FF929E8-AE5E-11D7-9EC2-000A95674CE4@uiuc.edu> > > yesterday i've downloaded xemacs from this site: > http://www.xemacs.org/Download/index.html > is this another version as yours? yes. if you read the xemacs homepage they probably dont support osx. So you should install all X Windows and Linux apps for ISX via Fink. The Fink project makes Linux and Xwindoes software avaialble to compile and run on OSX. Fink is built on top of the debian apt-get tool set, except that after it downloads software it pathches the sources to compile and run on OSX. Fink also has binary releases of its 'stable' software pacakges, these you can download and then run. There is also a GUI to Fink. I dont use it myself, but Google 'fink commander' for more info. Perhaps at some point in the future projects like Xemacs and Guile will provide that their own software runs on OSX, but until then use Fink. From johannes.quint at web.de Fri Jul 4 14:34:18 2003 From: johannes.quint at web.de (Johannes Quint) Date: Fri, 4 Jul 2003 23:34:18 +0200 Subject: [CM] cm with openmcl and xemacs In-Reply-To: <8FF929E8-AE5E-11D7-9EC2-000A95674CE4@uiuc.edu> Message-ID: <44741762-AE67-11D7-B130-000393B906B6@web.de> On Friday, July 4, 2003, at 10:31 PM, Rick Taube wrote: > >> >> yesterday i've downloaded xemacs from this site: >> >> is this another version as yours? > > yes. if you read the xemacs homepage they probably dont support osx. > So you should install all X Windows and Linux apps for ISX via Fink. > The Fink project makes Linux and Xwindoes software avaialble to > compile and run on OSX. Fink is built on top of the debian apt-get > tool set, except that after it downloads software it pathches the > sources to compile and run on OSX. Fink also has binary releases of > its 'stable' software pacakges, these you can download and then run. > There is also a GUI to Fink. I dont use it myself, but Google 'fink > commander' for more info. Perhaps at some point in the future projects > like Xemacs and Guile will provide that their own software runs on > OSX, but until then use Fink. > http://fink.sfe.net/pdb/package.php/xemacs-sumo-pkg: this link seems to work no more. but on the fink site there is a link to www.xemacs.org, so i hope thats ok (xemacs _alone_ can be launched on my computer...). > I sent a note to the list awhile back detailing exactly what you had > to do did you remember the month? thanks again j. __ Johannes Quint Rilkestr.55 D-53225 Bonn 0228 468256 johannes.quint at web.de http://private.addcom.de/j.quint/index.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1442 bytes Desc: not available URL: From taube at uiuc.edu Fri Jul 4 15:50:23 2003 From: taube at uiuc.edu (Rick Taube) Date: Fri, 4 Jul 2003 17:50:23 -0500 Subject: [CM] cm with openmcl and xemacs In-Reply-To: <44741762-AE67-11D7-B130-000393B906B6@web.de> Message-ID: <000901c3427e$a7d1c180$a5197e82@music.uiuc.edu> > http://fink.sfe.net/pdb/package.php/xemacs-sumo-pkg: this link seems to work no more. but on the fink site there is a link to www.xemacs.org, so i hope thats ok (xemacs _alone_ can be launched on my computer...). i dont knoe. i installed xemacs via fink but i did this months ago. but fink will work you just have to learn something about it. after installing fink i simply typed 'fink install xemacs' >did you remember the month? probably april or may -------------- next part -------------- An HTML attachment was scrubbed... URL: From fdowling at tcd.ie Fri Jul 4 16:51:23 2003 From: fdowling at tcd.ie (fdowling) Date: Sat, 5 Jul 2003 00:51:23 +0100 Subject: [CM] cart to polar Message-ID: <3F306F38@ntserver-e2w2.tcd.ie> Hi, Is there a function that returns the polar value from cartesian co-ords? Cheers, Fergal Dowling. From carl.boingie at rcn.com Fri Jul 4 15:25:19 2003 From: carl.boingie at rcn.com (Carl Edwards) Date: Fri, 4 Jul 2003 18:25:19 -0400 Subject: [CM] sequence help References: <2266B3DE-AE5D-11D7-9EC2-000A95674CE4@uiuc.edu> Message-ID: <000701c34289$be9cdd90$7be27ad1@laptop> That works! Thank you, Rick. I'll have to look up the old thread function to see what that did, but in the meantime this is working just fine. Thanks again, Carl Edwards > Subject: Re: [CM] sequence help > > you can use the 'finally' option to chain processes together like so: > > (define (doit ) > (process repeat (random 300) > output (new ...) > wait (whatever) > finally (sprout (doit) (now)))) > > that is, the last thing the current process does is to sprout a new > process that starts at its current time. a more genereal solution > would be for me to reimpleent the functionality of the old 'thread' > container. this is actually on my 'todo' list, unfortunately that list > is very long! From andersvi at notam02.no Sun Jul 6 03:54:04 2003 From: andersvi at notam02.no (Anders Vinjar) Date: 06 Jul 2003 12:54:04 +0200 Subject: [CM] cart to polar In-Reply-To: <3F306F38@ntserver-e2w2.tcd.ie> References: <3F306F38@ntserver-e2w2.tcd.ie> Message-ID: >>>>> "f" == fdowling writes: f> Hi, Is there a function that returns the polar value from f> cartesian co-ords? Cheers, Fergal Dowling. > (defun cartesian-to-polar (coords) (let* ((x (car coords)) (y (cadr coords)) (r (sqrt (+ (expt x 2) (expt y 2)))) (ang (- (atan y x)))) (list r ang))) CARTESIAN-TO-POLAR > (cartesian-to-polar (list 1 1)) (1.4142135 -0.7853982) From f.stafek at volny.cz Sun Jul 6 13:37:58 2003 From: f.stafek at volny.cz (frantisek stafek) Date: Sun, 6 Jul 2003 22:37:58 +0200 Subject: [CM] CLM under windows References: Message-ID: <012b01c343fe$7d846a50$6547b13e@ffff> > > > > > >> Or does CLM work better with Lispworks under Windows 2000? > > > > I don't know anything about this. > > when i last looked (a while ago) the free lispworks for windows was a > joke, it had a small heapsize and a "session time limit" as well. > there really isnt a good free lisp solution on windows -- clisp is the > closest but its FFI is hopeless. i think there is a native guile in the > works for windows, you might consider using the clm/snd code using that > at some point. > Anyone tried to work with CLM under Corman Lisp (free for noncomertial use)? Frantisek Stafek From taube at uiuc.edu Tue Jul 8 03:35:21 2003 From: taube at uiuc.edu (Rick Taube) Date: Tue, 8 Jul 2003 05:35:21 -0500 Subject: [CM] Re: Can't get simple CLM instrument working :( In-Reply-To: <000001c34538$d2da8fd0$254040ab@roboserv1> Message-ID: > When I type '(compile-file "v.ins")' at the LISP prompt (running ACL Sounds like either you dont have the file located in your home directory or ACL's working directory isnt set to your home directory. First, determine that the file is actually where you expect it to be. Next, try specifying the full pathname to the file to compile and load it in Lisp. For example, on my account at ccrma i would do: (compile-file "/amd/cm-home/user/h/hkt/v.ins") assuming that v.ins was in my home directory. I think ACL might support the unix "~/" short-cut for home directory specification. ACL also has a feature that lets you set its working director, if you are running in an image with common music installed you can do: (cd "/whereever") (compile-file "v.ins") From bil at ccrma.Stanford.EDU Tue Jul 8 05:11:52 2003 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: 08 Jul 2003 05:11:52 -0700 Subject: [CM] Re: Can't get simple CLM instrument working :( In-Reply-To: <000001c34538$d2da8fd0$254040ab@roboserv1> References: <000001c34538$d2da8fd0$254040ab@roboserv1> Message-ID: <1057666312.6467.12.camel@cmn30.stanford.edu> > I don't know whether Bill's CLM instruments are "built-in" to (and > hence automatically loaded with) the CLM bin file found at > /usr/ccrma/lbin/cm2/clm2, or whether I have to manually load them. *clm-instruments* is a list of the currently loaded instruments. The clm2 image at ccrma doesn't have any loaded by default. To compile one, copy it to your current directory, then (compile-file ...) -- the tutorial is written from the point of view of someone who has just untarred the CLM tarball and built CLM. From johannes.quint at web.de Tue Jul 8 15:17:54 2003 From: johannes.quint at web.de (Johannes Quint) Date: Wed, 9 Jul 2003 00:17:54 +0200 Subject: [CM] cm with openmcl and xemacs In-Reply-To: Message-ID: <05AA6FE6-B192-11D7-8A94-000393B906B6@web.de> On Friday, July 4, 2003, at 09:50 PM, Rick Taube wrote: > If you want to work on OSX with CLM and CM etc then you need to > install some stuff first. I sent a note to the list awhile back > detailing exactly what you had to do, maybe someone still has a copy > of that message and can repost, or maybe you can look in the cmdist > archive. basically you have to: > > download/install Apple's beta 3 of Xemacs > (http://www.apple.com/macosx/x11/) > download/install Apples Developer Tools > (http://developer.apple.com/tools/download/) > download/install fink (http://fink.sf.net) and then Xemacs > (http://fink.sfe.net/pdb/package.php/xemacs-sumo-pkg > after downloading all, now my error-message has changed: typing: open /Applications/cm-2.4.0/bin/xcm i get: /Applications/cm-2.4.0/bin/xcm; exit Welcome to Darwin! [Johannes-Quints-Computer:~] johannes% /Applications/cm-2.4.0/bin/xcm; exit logout [Process completed] and nothing happens.. what's now my mistake? tanks again jq __ Johannes Quint Rilkestr.55 D-53225 Bonn 0228 468256 johannes.quint at web.de http://private.addcom.de/j.quint/index.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1452 bytes Desc: not available URL: From taube at uiuc.edu Tue Jul 8 15:28:41 2003 From: taube at uiuc.edu (Rick Taube) Date: Tue, 8 Jul 2003 17:28:41 -0500 Subject: [CM] cm with openmcl and xemacs In-Reply-To: <05AA6FE6-B192-11D7-8A94-000393B906B6@web.de> Message-ID: <874E8DBE-B193-11D7-A7BA-000A95674CE4@uiuc.edu> >what's now my mistake? dunno yet. Is X11 running before you try to use Xemacs? what happens when you type this in the Terminal: xemacs From taube at uiuc.edu Tue Jul 8 15:50:59 2003 From: taube at uiuc.edu (Rick Taube) Date: Tue, 8 Jul 2003 17:50:59 -0500 Subject: [CM] cm with openmcl and xemacs In-Reply-To: <29C968F2-B195-11D7-8A94-000393B906B6@web.de> Message-ID: it looks to me like you dont have X11 running, that is xemacs in running in your shell! I dont know where you installed the X11 app, look in Applications/X11 and double-click it. Once X11 is running, type xemacs in a terminal. From taube at uiuc.edu Wed Jul 9 08:21:45 2003 From: taube at uiuc.edu (Rick Taube) Date: Wed, 9 Jul 2003 10:21:45 -0500 Subject: [CM] cm with openmcl and xemacs In-Reply-To: <0BC1B740-B215-11D7-8CEC-000393B906B6@web.de> Message-ID: <000501c3462d$cfca4c40$821c7e82@music.uiuc.edu> Im glad you got it working. You can add the X11.app to your login tasks so that you dont ever have to start it by hand Once you get familiar with Xemacs+OpenMCL I would be suprised if you didnt prefer it to MCL. . > that's it. cm works now. everything looks quite different as in the mcl 4.2 days, but that's a matter of time. > i've still problems with the cmn-preview, but that's not so urgent in the moment. > thanks again for your help. > > johannes quint -------------- next part -------------- An HTML attachment was scrubbed... URL: From f.stafek at volny.cz Wed Jul 9 14:19:42 2003 From: f.stafek at volny.cz (frantisek stafek) Date: Wed, 9 Jul 2003 23:19:42 +0200 Subject: [CM] CLM under windows - building with CLISP+MINGW References: <007701c33d59$47eaa6d0$0241ebd5@ffff> <1056975532.23706.0.camel@cmn30.stanford.edu> Message-ID: <006301c3465f$d0fa2e00$5048b13e@ffff> > I use the cygnus gcc. I'd actually be very interested to > find out what Borland C says about the sndlib/clm code. I've downloaded mingw distribution of gnu tools along with gcc, and trying to build CLM with clisp. I've uncomented (pushnew :no-ffi *features*) line, also changed line with several defvars to point to compiler: (defvar *ld* #+windoze "c:/programy/mingw/bin/ld" #+openmcl "cc" #-(or opencml windoze) "ld") (defvar *cc* #+windoze "c:/programy/mingw/bin/gcc" #-windoze "cc") , also changed line with clisp-shell defun to work properly with win2000 shell: #+(and clisp ansi-cl) (defun clisp-shell (arg) (ext:shell (format nil "cmd /c ~A" arg))) but somehow I'm still not able to finish the build process. Any hint, how to continue? It hangs with following: [5]> (load "c:/programy/clm/clm-2/all.lisp") ;; Loading file C:\programy\clm\clm-2\all.lisp ... ;; Loading file C:\programy\clm\clm-2\clm-loop.fas ... ;; Loading of file C:\programy\clm\clm-2\clm-loop.fas is finished. ; Compiling "C:\\programy\\clm\\clm-2\\nio.c" ; Compiling "C:\\programy\\clm\\clm-2\\nheaders.c" ; Compiling "C:\\programy\\clm\\clm-2\\naudio.c" C:/programy/clm/clm-2/naudio.c:7062:19: mmreg.h: No such file or directory C:/programy/clm/clm-2/naudio.c: In function `mfg': C:/programy/clm/clm-2/naudio.c:7399: `MM_MICROSOFT' undeclared (first use in thi s function) C:/programy/clm/clm-2/naudio.c:7399: (Each undeclared identifier is reported onl y once C:/programy/clm/clm-2/naudio.c:7399: for each function it appears in.) C:/programy/clm/clm-2/naudio.c:7399: `MM_CREATIVE' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7400: `MM_MEDIAVISION' undeclared (first use in t his function) C:/programy/clm/clm-2/naudio.c:7400: `MM_FUJITSU' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7401: `MM_ARTISOFT' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7401: `MM_TURTLE_BEACH' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7402: `MM_IBM' undeclared (first use in this func tion) C:/programy/clm/clm-2/naudio.c:7402: `MM_VOCALTEC' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7403: `MM_ROLAND' undeclared (first use in this f unction) C:/programy/clm/clm-2/naudio.c:7403: `MM_DSP_SOLUTIONS' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7404: `MM_NEC' undeclared (first use in this func tion) C:/programy/clm/clm-2/naudio.c:7404: `MM_ATI' undeclared (first use in this func tion) C:/programy/clm/clm-2/naudio.c:7405: `MM_WANGLABS' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7405: `MM_TANDY' undeclared (first use in this fu nction) C:/programy/clm/clm-2/naudio.c:7406: `MM_VOYETRA' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7406: `MM_ANTEX' undeclared (first use in this fu nction) C:/programy/clm/clm-2/naudio.c:7407: `MM_ICL_PS' undeclared (first use in this f unction) C:/programy/clm/clm-2/naudio.c:7407: `MM_INTEL' undeclared (first use in this fu nction) C:/programy/clm/clm-2/naudio.c:7408: `MM_GRAVIS' undeclared (first use in this f unction) C:/programy/clm/clm-2/naudio.c:7408: `MM_VAL' undeclared (first use in this func tion) C:/programy/clm/clm-2/naudio.c:7409: `MM_INTERACTIVE' undeclared (first use in t his function) C:/programy/clm/clm-2/naudio.c:7409: `MM_YAMAHA' undeclared (first use in this f unction) C:/programy/clm/clm-2/naudio.c:7410: `MM_EVEREX' undeclared (first use in this f unction) C:/programy/clm/clm-2/naudio.c:7410: `MM_ECHO' undeclared (first use in this fun ction) C:/programy/clm/clm-2/naudio.c:7411: `MM_SIERRA' undeclared (first use in this f unction) C:/programy/clm/clm-2/naudio.c:7411: `MM_CAT' undeclared (first use in this func tion) C:/programy/clm/clm-2/naudio.c:7412: `MM_APPS' undeclared (first use in this fun ction) C:/programy/clm/clm-2/naudio.c:7412: `MM_DSP_GROUP' undeclared (first use in thi s function) C:/programy/clm/clm-2/naudio.c:7413: `MM_MELABS' undeclared (first use in this f unction) C:/programy/clm/clm-2/naudio.c:7413: `MM_COMPUTER_FRIENDS' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7414: `MM_ESS' undeclared (first use in this func tion) C:/programy/clm/clm-2/naudio.c:7414: `MM_AUDIOFILE' undeclared (first use in thi s function) C:/programy/clm/clm-2/naudio.c:7415: `MM_MOTOROLA' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7415: `MM_CANOPUS' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7416: `MM_EPSON' undeclared (first use in this fu nction) C:/programy/clm/clm-2/naudio.c:7416: `MM_TRUEVISION' undeclared (first use in th is function) C:/programy/clm/clm-2/naudio.c:7417: `MM_AZTECH' undeclared (first use in this f unction) C:/programy/clm/clm-2/naudio.c:7417: `MM_VIDEOLOGIC' undeclared (first use in th is function) C:/programy/clm/clm-2/naudio.c:7418: `MM_SCALACS' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7418: `MM_KORG' undeclared (first use in this fun ction) C:/programy/clm/clm-2/naudio.c:7419: `MM_APT' undeclared (first use in this func tion) C:/programy/clm/clm-2/naudio.c:7419: `MM_ICS' undeclared (first use in this func tion) C:/programy/clm/clm-2/naudio.c:7420: `MM_ITERATEDSYS' undeclared (first use in t his function) C:/programy/clm/clm-2/naudio.c:7420: `MM_METHEUS' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7421: `MM_LOGITECH' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7421: `MM_WINNOV' undeclared (first use in this f unction) C:/programy/clm/clm-2/naudio.c:7422: `MM_NCR' undeclared (first use in this func tion) C:/programy/clm/clm-2/naudio.c:7422: `MM_EXAN' undeclared (first use in this fun ction) C:/programy/clm/clm-2/naudio.c:7423: `MM_AST' undeclared (first use in this func tion) C:/programy/clm/clm-2/naudio.c:7423: `MM_WILLOWPOND' undeclared (first use in th is function) C:/programy/clm/clm-2/naudio.c:7424: `MM_SONICFOUNDRY' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7424: `MM_VITEC' undeclared (first use in this fu nction) C:/programy/clm/clm-2/naudio.c:7425: `MM_MOSCOM' undeclared (first use in this f unction) C:/programy/clm/clm-2/naudio.c:7425: `MM_SILICONSOFT' undeclared (first use in t his function) C:/programy/clm/clm-2/naudio.c:7426: `MM_SUPERMAC' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7426: `MM_AUDIOPT' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7427: `MM_SPEECHCOMP' undeclared (first use in th is function) C:/programy/clm/clm-2/naudio.c:7427: `MM_DOLBY' undeclared (first use in this fu nction) C:/programy/clm/clm-2/naudio.c:7428: `MM_OKI' undeclared (first use in this func tion) C:/programy/clm/clm-2/naudio.c:7428: `MM_AURAVISION' undeclared (first use in th is function) C:/programy/clm/clm-2/naudio.c:7429: `MM_OLIVETTI' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7429: `MM_IOMAGIC' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7430: `MM_MATSUSHITA' undeclared (first use in th is function) C:/programy/clm/clm-2/naudio.c:7430: `MM_CONTROLRES' undeclared (first use in th is function) C:/programy/clm/clm-2/naudio.c:7431: `MM_XEBEC' undeclared (first use in this fu nction) C:/programy/clm/clm-2/naudio.c:7431: `MM_NEWMEDIA' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7432: `MM_NMS' undeclared (first use in this func tion) C:/programy/clm/clm-2/naudio.c:7432: `MM_LYRRUS' undeclared (first use in this f unction) C:/programy/clm/clm-2/naudio.c:7433: `MM_COMPUSIC' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c:7433: `MM_OPTI' undeclared (first use in this fun ction) C:/programy/clm/clm-2/naudio.c:7434: `MM_DIALOGIC' undeclared (first use in this function) C:/programy/clm/clm-2/naudio.c: In function `describe_audio_state_1': C:/programy/clm/clm-2/naudio.c:7709: warning: passing arg 1 of `mixerGetLineInfo A' from incompatible pointer type C:/programy/clm/clm-2/naudio.c:7715: warning: passing arg 1 of `mixerGetLineInfo A' from incompatible pointer type C:/programy/clm/clm-2/naudio.c:7750: warning: passing arg 1 of `mixerGetLineCont rolsA' from incompatible pointer type C:/programy/clm/clm-2/naudio.c:7779: warning: passing arg 1 of `mixerGetControlD etailsA' from incompatible pointer type C:/programy/clm/clm-2/naudio.c:7814: warning: passing arg 1 of `mixerGetControlD etailsA' from incompatible pointer type ; Compiling "C:\\programy\\clm\\clm-2\\nsound.c" ; Compiling "C:\\programy\\clm\\clm-2\\lispcall.c" ; Compiling "C:\\programy\\clm\\clm-2\\ncmus.c" ;; Loading file C:\programy\clm\clm-2\walk.fas ... ;; Loading of file C:\programy\clm\clm-2\walk.fas is finished. ;; Loading file C:\programy\clm\clm-2\special-form-for-cmu.cl ... ;; Loading of file C:\programy\clm\clm-2\special-form-for-cmu.cl is finished. ;; Loading file C:\programy\clm\clm-2\clm-package.fas ... ;; Loading of file C:\programy\clm\clm-2\clm-package.fas is finished. ;; Loading file C:\programy\clm\clm-2\initmus.fas ... *** - READ: input stream # ends within an object. Last op ening parenthesis probably in line 424. 1. Break CLM[6]> Thanks for any remark, Frantisek Stafek From bil at ccrma.Stanford.EDU Fri Jul 11 04:52:41 2003 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: 11 Jul 2003 04:52:41 -0700 Subject: [CM] CLM under windows - building with CLISP+MINGW In-Reply-To: <006301c3465f$d0fa2e00$5048b13e@ffff> References: <007701c33d59$47eaa6d0$0241ebd5@ffff> <1056975532.23706.0.camel@cmn30.stanford.edu> <006301c3465f$d0fa2e00$5048b13e@ffff> Message-ID: <1057924361.2866.0.camel@cmn30.stanford.edu> > C:/programy/clm/clm-2/naudio.c:7062:19: mmreg.h: No such file > or directory I removed the dependency on this file -- apparently it was only used to pass back a manufacturer name. > C:/programy/clm/clm-2/naudio.c:7709: warning: passing arg 1 of > `mixerGetLineInfo Something has changed since Windows 98... Can you find the declaration for this function in mmsystem.h (or MMSYSTEM.H) and send it to me? I had a Windows 2000 setup for about an hour, but accidentally clobbered it while installing Linux, so I never saw the new version of mmsystem.h -- if possible, send me the whole file. > ;; Loading file C:\programy\clm\clm-2\initmus.fas ... > *** - READ: input stream I don't see the initmus.lisp compilation in the output you sent -- did it report any error? From johannes.quint at addcom.de Fri Jul 11 16:17:47 2003 From: johannes.quint at addcom.de (johannes.quint) Date: Sat, 12 Jul 2003 01:17:47 +0200 Subject: [CM] midishare Message-ID: going on installing the whole env. i have problems with midishare now. i've tried a bit to find the cause by myself, maybe ths can help to clarify it: the test (probe-file "/System/Library/Frameworks/MidiShare.framework/MidiShare")) returns nil [midishare is installed in /Applications/ccl/darwin-headers] as usual: thanks in advance johannes __ Johannes Quint Rilkestr.55 D-53225 Bonn 0228 468256 johannes.quint at web.de http://private.addcom.de/j.quint/index.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 547 bytes Desc: not available URL: From taube at uiuc.edu Sat Jul 12 06:01:13 2003 From: taube at uiuc.edu (Rick Taube) Date: Sat, 12 Jul 2003 08:01:13 -0500 Subject: [CM] midishare In-Reply-To: Message-ID: <000801c34875$ad315210$8d197e82@music.uiuc.edu> Did you actually install and configure the Misihare and Player applications from the Grame ftp site and can you use their apps successfully? If you can start their msController app and play your synth with it then you can declare success. But until that point you should not try to build CM with it because it wont work unless you have installed Midishare coor3ectly. Onnce you do have it installed you will have to recompile cm since it depends on symbols it imports from the midishare package. [midishare is installed in /Applications/ccl/darwin-headers] only the OpenMCL FFI to Midishare should be installed there! You can get this FFI from CCRMA, i left a tarball of it in the cm ftp area. This FFI is not Midishare itself. There are some direction for installing MIdishare: http://commonmusic.sf.net/doc/install.html#install_ms BTW Please let me know if these isntall directions are unclear or incorrect, I wrote then several weeks after I got Midishare working. -------------- next part -------------- An HTML attachment was scrubbed... URL: From taube at uiuc.edu Sat Jul 12 06:06:34 2003 From: taube at uiuc.edu (Rick Taube) Date: Sat, 12 Jul 2003 08:06:34 -0500 Subject: [CM] new CM docs in CVS Message-ID: <000d01c34876$6c4aad40$8d197e82@music.uiuc.edu> Ive updated cm's entire doc/ tree including a new version of the dictionary a new look for the home page. it is now in the cvs repository. If you have already installed CM ffrom CVS you get the new material by doing cd cm/doc cvs update -d (the "-d" is apparently necessary to add the new doc/dict directory to your local tree) -------------- next part -------------- An HTML attachment was scrubbed... URL: From taube at uiuc.edu Sat Jul 12 10:28:00 2003 From: taube at uiuc.edu (Rick Taube) Date: Sat, 12 Jul 2003 12:28:00 -0500 Subject: [CM] RE: midishare In-Reply-To: Message-ID: <000601c3489a$f1f98190$9c197e82@music.uiuc.edu> On OSX I believe the Midishare package (.pkg) should install the frameworks in: "/System/Library/Frameworks/MidiShare.framework/MidiShare" Ditto for the Player framework If they are not under /system/library/frameworks then locate them on your machine and either move them there or change the patname that CM is using. It may actually be the case that CM doesnt need to check a hardwired path to determine if it should compile midishare classes, ie it might be possible to locate shared libs some other way on OSX but I dont know . ill have to check or maybe someone on this list can say. Obviously Id prefer to not hardwire the path as it currently is. -----Original Message----- From: susanne.quint at web.de [mailto:susanne.quint at web.de] Sent: Saturday, July 12, 2003 11:29 AM To: taube at uiuc.edu Subject: midishare in cm.lisp, is the following path meant as at the toplevel? (if #+(and openmcl darwin) (and (probe-file "ccl:darwin-headers;midishare;") (probe-file "/System/Library/Frameworks/MidiShare.framework/MidiShare")) ; <- !!!??? [after installing midishare, a MidiShare.framework-folder is only in /ccl/darwin-headers/midishare/System/Library/Frameworks/] j __ Johannes Quint Rilkestr.55 D-53225 Bonn 0228 468256 johannes.quint at web.de http://private.addcom.de/j.quint/index.htm -------------- next part -------------- An HTML attachment was scrubbed... URL: From johannes.quint at web.de Sat Jul 12 15:21:07 2003 From: johannes.quint at web.de (Johannes Quint) Date: Sun, 13 Jul 2003 00:21:07 +0200 Subject: [CM] RE: midishare In-Reply-To: <000601c3489a$f1f98190$9c197e82@music.uiuc.edu> Message-ID: <22005E99-B4B7-11D7-81EB-000393B906B6@web.de> On Saturday, July 12, 2003, at 07:28 PM, Rick Taube wrote: > On OSX I believe the Midishare?package (.pkg) should install the > ?frameworks in: > ? > "/System/Library/Frameworks/MidiShare.framework/MidiShare" > ? > Ditto for the Player frameworkIf they are not under > /system/library/frameworks then locate them on your machine and either > move them there orchange the patname that CM is using. It may actually > be the case that CM doesnt need to check a hardwired path to determine > if it should compile midishare classes,ie it might be possible to > locate shared libs some other way on OSX?but?I dont know . ill have to > check or maybe someone on this list can say. Obviously Id prefer to > not hardwire the path as it currently is. > ? ok, i changed the pathnames. now i have: ; Compiling "/Applications/cm-2.4.0/src/midishare/MidiShare-Interface.lisp". ; Loading "/Applications/cm-2.4.0/bin/MidiShare-Interface.dfsl". > Error: Error opening shared library "/System/Library/Frameworks/MidiShare.framework/MidiShare": dyld: /Applications/ccl//dppccl malformed library: /System/Library/Frameworks/MidiShare.framework/MidiShare (not a Mach-O file, bad magic number) j -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1362 bytes Desc: not available URL: From taube at uiuc.edu Sun Jul 13 05:40:56 2003 From: taube at uiuc.edu (Rick Taube) Date: Sun, 13 Jul 2003 07:40:56 -0500 Subject: [CM] RE: midishare In-Reply-To: <22005E99-B4B7-11D7-81EB-000393B906B6@web.de> Message-ID: <000901c3493c$024c8320$8a197e82@music.uiuc.edu> Im not sure what caused the libs to become corrupt. Installin midishare on my machine worked fine with the packge I got from Grame. Ill have to try installing from their ftp server, perhaps the version they sent me is different than what is on their web site. -----Original Message----- From: cmdist-admin at ccrma.Stanford.EDU [mailto:cmdist-admin at ccrma.Stanford.EDU] On Behalf Of Johannes Quint Sent: Saturday, July 12, 2003 5:21 PM To: Rick Taube Cc: cmdist at ccrma.Stanford.EDU Subject: Re: [CM] RE: midishare On Saturday, July 12, 2003, at 07:28 PM, Rick Taube wrote: On OSX I believe the Midishare package (.pkg) should install the frameworks in: "/System/Library/Frameworks/MidiShare.framework/MidiShare" Ditto for the Player frameworkIf they are not under /system/library/frameworks then locate them on your machine and either move them there orchange the patname that CM is using. It may actually be the case that CM doesnt need to check a hardwired path to determine if it should compile midishare classes,ie it might be possible to locate shared libs some other way on OSX but I dont know . ill have to check or maybe someone on this list can say. Obviously Id prefer to not hardwire the path as it currently is. ok, i changed the pathnames. now i have: ; Compiling "/Applications/cm-2.4.0/src/midishare/MidiShare-Interface.lisp". ; Loading "/Applications/cm-2.4.0/bin/MidiShare-Interface.dfsl". > Error: Error opening shared library "/System/Library/Frameworks/MidiShare.framework/MidiShare": dyld: /Applications/ccl//dppccl malformed library: /System/Library/Frameworks/MidiShare.framework/MidiShare (not a Mach-O file, bad magic number) j -------------- next part -------------- An HTML attachment was scrubbed... URL: From susanne.quint at web.de Sat Jul 12 08:54:09 2003 From: susanne.quint at web.de (susanne.quint) Date: Sat, 12 Jul 2003 17:54:09 +0200 Subject: [CM] midishare In-Reply-To: <000801c34875$ad315210$8d197e82@music.uiuc.edu> Message-ID: <1318AEC9-B481-11D7-8F8B-000393B906B6@web.de> On Saturday, July 12, 2003, at 03:01 PM, Rick Taube wrote: > Did you actually install and configure the Misihare and Player > applications from the Grame ftp site and can you use their apps > successfully? If you can start their msController app and play your > synth with it then you can declare success. But until that point you > should not try to build CM with it because it wont work unless you > have installed Midishare coor3ectly. Onnce you do have it installed > you will have to recompile cm since it depends on symbols it imports > from the midi thats what i've done. midishare seems to works via mscontroller but building cm, i get 'midishare not installed' > share package. > ? > [midishare is installed in /Applications/ccl/darwin-headers] > > only the?OpenMCL? FFI to Midishare should be installed there! You can > get this FFI from CCRMA, i left a tarball of it in the cm ftp area.? > This FFI is not Midishare itself. > ? yes,, i have ffi in my ccl folder: /ccl/darwin-header/midishare/ and then C, constants.cdb, etc. > There are some direction for installing MIdishare: > ? > http://commonmusic.sf.net/doc/install.html#install_ms > > ? > BTW Please let me know if these?isntall directions are unclear or > incorrect, I wrote then several weeks after I got Midishare working. > ? > j __ Johannes Quint Rilkestr.55 D-53225 Bonn 0228 468256 johannes.quint at web.de http://private.addcom.de/j.quint/index.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2238 bytes Desc: not available URL: From johannes.quint at web.de Tue Jul 15 03:53:15 2003 From: johannes.quint at web.de (Johannes Quint) Date: Tue, 15 Jul 2003 12:53:15 +0200 Subject: [CM] tempo-change Message-ID: <890688D2-B6B2-11D7-A9C8-000393B906B6@web.de> i've written a function, which opens midifiles via sibelius instead of quicktime. (set-midi-output-hook! #'sib-play-midifile) this works fine. then i've add two functions to change time-signatures and tempos from bar to bar: (define (metermsg time n d) (multiple-value-bind (msg data) (make-time-signature n d) (new midimsg time time msg msg data data))) (define (tempomsg time tempo) (multiple-value-bind (msg data) (make-tempo-change tempo) (new midimsg time time msg msg data data))) strange is, that the first (metermsg) works fine but the second (tempomsg) creates in sibelius odd tempi, i.e. (tempomsg (now) 120) creates in sibelius tempo 90000 or so. is this a problem of sib or is something wrong with my code? j. __ Johannes Quint Rilkestr.55 D-53225 Bonn 0228 468256 johannes.quint at web.de http://private.addcom.de/j.quint/index.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1000 bytes Desc: not available URL: From taube at uiuc.edu Tue Jul 15 14:43:01 2003 From: taube at uiuc.edu (Rick Taube) Date: Tue, 15 Jul 2003 16:43:01 -0500 Subject: [CM] tempo-change In-Reply-To: <890688D2-B6B2-11D7-A9C8-000393B906B6@web.de> Message-ID: <4F003918-B70D-11D7-8654-000A95674CE4@uiuc.edu> > creates in sibelius tempo 90000 or so. > is this a problem of sib or is something wrong with my code? the make-tempo-change function is a low-level function that expects its argument to be in micro-seconds (usecs), not beats-per-minute. So add: (define (bpm->usecs bpm) (floor (* 1000000 (/ 60 bpm)))) then do: > (tempomsg (now) (bpm->usecs 120) ) also you can use the function 'midi-file-print' to print out the contents of your midifiles when you want to inspect raw midi values: > (midi-file-print "/whatever/foo.midi") From taube at uiuc.edu Wed Jul 16 07:18:38 2003 From: taube at uiuc.edu (Rick Taube) Date: Wed, 16 Jul 2003 09:18:38 -0500 Subject: [CM] tempo-change In-Reply-To: Message-ID: <64EB019B-B798-11D7-9E99-000A95674CE4@uiuc.edu> Im sorry I havent had time to see what is going wrong with the Midisbhare libs. Ill try to get to it in the next day or so... On Wednesday, Jul 16, 2003, at 08:25 America/Chicago, Johannes Quint wrote: > On Dienstag, Juli 15, 2003, at 11:43 Uhr, Rick Taube wrote: > >> the make-tempo-change function is a low-level function that expects >> its argument to be in micro-seconds (usecs), not beats-per-minute. So >> add: >> >> (define (bpm->usecs bpm) >> (floor (* 1000000 (/ 60 bpm)))) >> > > ah! ...thanks very much. > btw, midishare still doesn't work for me, can it depend on ccl? would > it be a good idea to reinstall it? > > regards j.q. > > __ > > Johannes Quint > Rilkestr.55 > D-53225 Bonn > 0228 468256 > johannes.quint at web.de > http://private.addcom.de/j.quint/index.htm From taube at uiuc.edu Wed Jul 16 07:19:59 2003 From: taube at uiuc.edu (Rick Taube) Date: Wed, 16 Jul 2003 09:19:59 -0500 Subject: [CM] tempo-change In-Reply-To: Message-ID: <94E383BA-B798-11D7-9E99-000A95674CE4@uiuc.edu> Im sorry I havent had time to track down the library problem yet, ill try to get to it in the next day or so. > On Dienstag, Juli 15, 2003, at 11:43 Uhr, Rick Taube wrote: > >> the make-tempo-change function is a low-level function that expects >> its argument to be in micro-seconds (usecs), not beats-per-minute. So >> add: >> >> (define (bpm->usecs bpm) >> (floor (* 1000000 (/ 60 bpm)))) >> > > ah! ...thanks very much. > btw, midishare still doesn't work for me, can it depend on ccl? would > it be a good idea to reinstall it? > > regards j.q. > > __ > > Johannes Quint > Rilkestr.55 > D-53225 Bonn > 0228 468256 > johannes.quint at web.de > http://private.addcom.de/j.quint/index.htm From dlphilp at bright.net Thu Jul 17 19:28:05 2003 From: dlphilp at bright.net (Dave Phillips) Date: Thu, 17 Jul 2003 22:28:05 -0400 Subject: [CM] some new questions about the new Snd Message-ID: <3F175B35.E7C4188@bright.net> Greetings: I'm rewriting the material on Snd for the next edition of my book. Obviously I'm making a *lot* of changes, and I have some questions about the newer versions of Snd. 1. Can Snd access the Common Music functions ? If so, can someone give an example ? 2. I understand that CLM is pretty much built into Snd now, so of course I'm wondering how I might use CLM and CM together from within Snd. Example ? 3. What else should I be looking at in Snd-6 ? Best regards, == Dave Phillips The Book Of Linux Music & Sound at http://www.nostarch.com/lms.htm The Linux Soundapps Site at http://linux-sound.org From dlphilp at bright.net Fri Jul 18 04:04:32 2003 From: dlphilp at bright.net (Dave Phillips) Date: Fri, 18 Jul 2003 07:04:32 -0400 Subject: [CM] oh them changes... Message-ID: <3F17D440.D2239EE5@bright.net> Greetings: In v.1 of the BLMS (see sig) I was able to say that this worked: (jc-reverb 2.0 #f .1 #f) If I try that now I get this error: > (jc-reverb 2.0 #f .1 #f) "Too many arguments." >misc-error If I start removing arguments I get these errors: > (jc-reverb 2.0 #f .1) mus-channels: wrong-type-arg: Wrong type argument (expecting "a generator"): #f >wrong-type-arg I've looked into jcrev.scm and it does look as if things have changed, but I'm still unable to make it work. Suggestions ? Best regards, == Dave Phillips The Book Of Linux Music & Sound at http://www.nostarch.com/lms.htm The Linux Soundapps Site at http://linux-sound.org From bil at ccrma.Stanford.EDU Fri Jul 18 05:03:20 2003 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: 18 Jul 2003 05:03:20 -0700 Subject: [CM] some new questions about the new Snd In-Reply-To: <3F175B35.E7C4188@bright.net> References: <3F175B35.E7C4188@bright.net> Message-ID: <1058529800.31927.23.camel@cmn30.stanford.edu> > I'm rewriting the material on Snd for the next edition of my book. > Obviously I'm making a *lot* of changes, and I have some > questions about the newer versions of Snd. Great! I look forward to reading it. I'll check the first version later today and send along whatever comes to mind. > > 1. Can Snd access the Common Music functions ? If so, > can someone give an example ? I think so -- I'll try to get to this today. > > I've looked into jcrev.scm and it does look as if things have > changed, but I'm still unable to make it work. Suggestions ? The new versions of the CLM-based instruments all now assume they're used within with-sound or some equivalent. A quick example: (with-sound (:reverb jc-reverb) (fm-violin 0 .1 440 .1 :reverb-amount .2)) From fdowling at tcd.ie Fri Jul 18 17:10:42 2003 From: fdowling at tcd.ie (fdowling) Date: Sat, 19 Jul 2003 01:10:42 +0100 Subject: [CM] modulo function ? Message-ID: <3F4CF7B6@ntserver-e2w2.tcd.ie> Hi, How do I access a modulo (%) function? Cheers, Fergal Dowling From johannes.quint at web.de Sat Jul 19 00:29:22 2003 From: johannes.quint at web.de (Johannes Quint) Date: Sat, 19 Jul 2003 09:29:22 +0200 Subject: [CM] modulo function ? In-Reply-To: <3F4CF7B6@ntserver-e2w2.tcd.ie> Message-ID: On Samstag, Juli 19, 2003, at 02:10 Uhr, fdowling wrote: > Hi, > How do I access a modulo (%) function? > Cheers, > Fergal Dowling (mod x y) __ Johannes Quint Rilkestr.55 D-53225 Bonn 0228 468256 johannes.quint at web.de http://private.addcom.de/j.quint/index.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 341 bytes Desc: not available URL: From bbattey at u.washington.edu Thu Jul 24 16:26:51 2003 From: bbattey at u.washington.edu (Bret F Battey) Date: Thu, 24 Jul 2003 16:26:51 -0700 (PDT) Subject: [CM] wrapper macro strategies In-Reply-To: Message-ID: Hi all, Since I chain a lot of processors, I'm writing wrapper macros for some of the many CLM instruments that don't already have them. (I'll be very, very happy when I never have to use a 'sound-let' in my code.) Interesting code problems I can't figure out while trying to make two wrappers for a 'balance' instrument: (1) One should be able to do: (balance-sounds () (mix soundfile1) (mix soundfile2)) But given that defmacro can only take one &body, I'm really not sure on how to pull this off. Or one can do (balance-sounds () ((mix soundfile1) (mix soundfile2))) but it still not clear to me how to pull apart the body in a way that functions correctly. (2) If that can be solved, the next challenge is to make a balance wrapper that works for the most common situation: where you need to balance a processed file against the original unprocessed file. Given an already existing wrapper macro 'contrast-sound', one should be able to do something like the following to compensate for the tendency of 'contrast' to amplify a sound: (balance-processed-sound () (contrast-sound (:fm-index 2) (mix soundfile1))) or maybe (balance-processed-sound () (contrast (:fm-index 2)) (mix soundfile1)) Any hints will be appreciated, -=Bret Battey From bil at ccrma.Stanford.EDU Fri Jul 25 05:30:10 2003 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 25 Jul 2003 05:30:10 -0700 Subject: [CM] wrapper macro strategies In-Reply-To: References: Message-ID: <3F2122D2.8070405@ccrma.stanford.edu> Bret F Battey wrote: >(balance-sounds () (mix soundfile1) (mix soundfile2)) > >But given that defmacro can only take one &body, I'm really not sure on how to pull this off. > > sound.lisp has several examples -- &body is a list of all the statements in the body of the macro, so you can use ,.body or , at body to plug them in anywhere. A very simple example is (defmacro without-warnings (&body body) `(progn ,.body)) For (balance-processed-sound () (contrast-sound (:fm-index 2) (mix soundfile1))), I'd save the maxamp (or whatever) of soundfile1, save the output of contrast-sound via sound-let, get the ratio to match the original, scale the new output, mixing that into the overall output. sound-let's can be nested, as can with-sound's. If you get stuck, send me the actual code you're trying to use. From JBenham at mktadvantage.com Fri Jul 25 10:34:19 2003 From: JBenham at mktadvantage.com (Jeremiah Benham) Date: Fri, 25 Jul 2003 12:34:19 -0500 Subject: [CM] snd in Debian problem Message-ID: <33159FBEF39BD31196A9009027DE963501325C76@mad8.Evanston> I could never get any of snd packages from the .deb archive to work correctly. They all segfaulted. I then decided to roll my own. Snd 6.9 works fine but with a few problems. Whe I try to use David Phillips guile extensions it segfaults with no other error. The other problem I have is that the listener window does not work. What do you mean does not work you may ask. I mean I type (+ 1 2) and the cursor then moves under neath the ( when I hit enter. What should I look into to try to correct this issue. Thanks, Jeremiah -------------- next part -------------- An HTML attachment was scrubbed... URL: From bbattey at u.washington.edu Fri Jul 25 11:21:55 2003 From: bbattey at u.washington.edu (Bret F Battey) Date: Fri, 25 Jul 2003 11:21:55 -0700 (PDT) Subject: [CM] wrapper macro strategies In-Reply-To: <3F2122D2.8070405@ccrma.stanford.edu> Message-ID: Oops, sorry, I should have been clearer: I already know how to make basic wrapper macros using &body. What I can't crack is how to write a macro 'balance-sounds' that could turn this (for example): (balance-sounds () (mix soundfile1) (mix soundfile2)) into (sound-let ((temp1 () (mix soundfile2)) (sound-let ((temp2 () (mix soundfile2))) (balance temp1 temp2)))) or a macro 'balance-sound-process': (balance-sound-process () (contrast (:fm-index '(0 0 1 2))) (mix soundfile2))) expanding into (sound-let ((temp1 () (mix soundfile2)) (sound-let ((temp2 () (contrast temp1 :fm-index '(0 0 1 2)))) (balance temp2 temp1)))) (My paren's are probably off because I'm typing right into email) The specific problem being that &body -- which would contain both the source sound specification and the contrast specification -- has to be split into two parts somehow... [Also, this later example shows that I'm varying fm-index continuously, so I need a continuous adaptation of gain on the sound -- hence using balance rather than a single overall gain control based on relative peak values.] Bret Battey http://BatHatMedia.com ---------------------------------------------------------------------- Research Associate Center for Digital Arts and Experimental Media University of Washington, Seattle http://www.washington.edu/dxarts/ On Fri, 25 Jul 2003, Bill Schottstaedt wrote: > Bret F Battey wrote: > > >(balance-sounds () (mix soundfile1) (mix soundfile2)) > > > >But given that defmacro can only take one &body, I'm really not sure on how to pull this off. > > > > > sound.lisp has several examples -- &body is a list of all the statements > in the > body of the macro, so you can use ,.body or , at body to plug them in anywhere. > A very simple example is > > (defmacro without-warnings (&body body) `(progn ,.body)) > > For (balance-processed-sound () (contrast-sound (:fm-index 2) (mix soundfile1))), > I'd save the maxamp (or whatever) of soundfile1, save the output of contrast-sound > via sound-let, get the ratio to match the original, scale the new output, mixing > that into the overall output. sound-let's can be nested, as can with-sound's. > If you get stuck, send me the actual code you're trying to use. > > > > > > > From dlphilp at bright.net Fri Jul 25 11:36:21 2003 From: dlphilp at bright.net (Dave Phillips) Date: Fri, 25 Jul 2003 14:36:21 -0400 Subject: [CM] snd in Debian problem References: <33159FBEF39BD31196A9009027DE963501325C76@mad8.Evanston> Message-ID: <3F2178A5.CA6D1680@bright.net> Jeremiah Benham wrote: > > I could never get any of snd packages from the .deb archive to work > correctly. They all segfaulted. > > I then decided to roll my own. Snd 6.9 works fine but with a few > problems. Whe I try to use David Phillips guile extensions it > segfaults with no other error. The other problem I have is that the > listener window does not work. What do you mean does not work you may > ask. I mean I type (+ 1 2) and the cursor then moves under neath the > ( when I hit enter. > > What should I look into to try to correct this issue. First, let us know what GUI toolkit you've built Snd with (Motif, Lesstif, or GTK). Next, tell us what version of Guile you're using. We'll go forth from there... :) Best regards, == dp From taube at ux1.cso.uiuc.edu Fri Jul 25 20:00:38 2003 From: taube at ux1.cso.uiuc.edu (taube heinrich) Date: Fri, 25 Jul 2003 22:00:38 -0500 (CDT) Subject: [CM] wrapper macro strategies In-Reply-To: Message-ID: On Fri, 25 Jul 2003, Bret F Battey wrote: > Oops, sorry, I should have been clearer: > I already know how to make basic wrapper macros using &body. What I can't crack is > how to write a macro 'balance-sounds' that could turn this (for example): do you really need &body statements or can you assume (for example) that the macro will always balance just two "sound expressions"? if so, then its really simple you could do something like: (defmacro balance-sounds (expr1 expr2) (let ((var1 (gentemp "temp")) (var2 (gentemp "temp"))) `(sound-let ((,var1 () ,expr1)) (sound-let ((,var2 () ,expr2)) (balance ,var1 ,var2))))) balancing an arbitrary number of sounds is slightly more complex -- one way would be to recursivly iterate the &body exprs and wrap the results of each recursive iteration in a sound-let. i could probably cobble this up but not in Pine where I am typing this message! From justinrosander at access-4-free.com Sun Jul 27 23:49:17 2003 From: justinrosander at access-4-free.com (justin) Date: Mon, 28 Jul 2003 01:49:17 -0500 Subject: [CM] SND 6.1 segfault Message-ID: <200307280149.17241.justinrosander@access-4-free.com> Hello there, Just wondering....... I could only get snd to run without segfaulting by placing all the *.html documentation in my home directory. I just thought that was a little strange... I don't necessarily mind having the documentation in my home directories, but I'm curious if the same problem was noticed by others.... Justin -- "I drank what?" --Socrates From bil at ccrma.Stanford.EDU Mon Jul 28 04:45:19 2003 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 28 Jul 2003 04:45:19 -0700 Subject: [CM] SND 6.1 segfault In-Reply-To: <200307280149.17241.justinrosander@access-4-free.com> References: <200307280149.17241.justinrosander@access-4-free.com> Message-ID: <3F250CCF.6050803@ccrma.stanford.edu> justin wrote: >I could only get snd to run without segfaulting by placing all the *.html >documentation in my home directory. I just thought that was a little >strange... > > At some point (snd 6.1 apparently!) I had some startup code to find the Snd documentation for the help system, and it could segfault if something was awry from its limited point of view. If possible, get the current version (6.10 or 6.11) and try it. If you have gdb, it is sometimes helpful to gdb snd run where Which can tell me where the error occurred, on a good day. From bil at ccrma.Stanford.EDU Mon Jul 28 04:48:20 2003 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 28 Jul 2003 04:48:20 -0700 Subject: [CM] snd in Debian problem In-Reply-To: <33159FBEF39BD31196A9009027DE963501325C76@mad8.Evanston> References: <33159FBEF39BD31196A9009027DE963501325C76@mad8.Evanston> Message-ID: <3F250D84.3010307@ccrma.stanford.edu> Jeremiah Benham wrote: > I could never get any of snd packages from the .deb archive to work > correctly. They all segfaulted. > > I then decided to roll my own. Snd 6.9 works fine but with a few > problems. Whe I try to use David Phillips guile extensions it > segfaults with no other error. The other problem I have is that the > listener window does not work. What do you mean does not work you may > ask. I mean I type (+ 1 2) and the cursor then moves under neath the > ( when I hit enter. > If you're using Lesstif, all bets are off. Otherwise, please run Snd under gdb, and send me the stack trace -- thanks! From bil at ccrma.Stanford.EDU Tue Jul 29 04:40:27 2003 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 29 Jul 2003 04:40:27 -0700 Subject: [CM] wrapper macro strategies In-Reply-To: References: Message-ID: <3F265D2B.5070900@ccrma.stanford.edu> Perhaps this is closer to what you want: (defmacro balance-sounds (&rest exprs) (let* ((temps '()) (calls (mapcar #'(lambda (expr) (let ((tmp (gentemp))) (push tmp temps) (list tmp expr))) exprs))) `(sound-let ,calls (balance , at temps)))) or (balance ,@(reverse temps)) -- not sure which order you want. From k.s.matheussen at notam02.no Thu Jul 31 04:08:23 2003 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Thu, 31 Jul 2003 13:08:23 +0200 (MEST) Subject: [CM] Ladspa stuff for snd. Message-ID: Hi, here is a script for using ladspa plugins in snd. I think its rather nice. Its a bit like Dave Phillips script, but more general since it automaticly builds up the menues and dialogs instead of using predefined ones. And it has realtime preview. http://www.notam02.no/arkiv/src/snd/ladspa.scm Feel free to do whatever you want with it. Public domain. -- From dlphilp at bright.net Thu Jul 31 04:58:34 2003 From: dlphilp at bright.net (Dave Phillips) Date: Thu, 31 Jul 2003 07:58:34 -0400 Subject: [CM] Ladspa stuff for snd. References: Message-ID: <3F29046A.73A41C53@bright.net> Hi Kjetil: Wow, what a nice improvement ! I recommend replacing my hard-coded stuff with your work, it's much more flexible. I haven't tested the preview functions yet, I'll give them a workout later today. One minor problem: the dialogs are BIG, maybe too big. I'm not sure how we could reduce the width without removing some buttons: any suggestions ? Nice work, Kjetil. Thanks for adding this code to Snd ! Best regards, == Dave Phillips The Book Of Linux Music & Sound at http://www.nostarch.com/lms.htm The Linux Soundapps Site at http://linux-sound.org Currently listening to: Harold Budd & Brian Eno, "Their Memories" "Kjetil S. Matheussen" wrote: > > Hi, here is a script for using ladspa plugins in snd. > I think its rather nice. Its a bit like Dave Phillips > script, but more general since it automaticly builds > up the menues and dialogs instead of using predefined ones. > And it has realtime preview. > http://www.notam02.no/arkiv/src/snd/ladspa.scm > Feel free to do whatever you want with it. Public domain. > > -- > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From k.s.matheussen at notam02.no Thu Jul 31 05:27:43 2003 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Thu, 31 Jul 2003 14:27:43 +0200 (MEST) Subject: [CM] Ladspa stuff for snd. In-Reply-To: <3F29046A.73A41C53@bright.net> Message-ID: On Thu, 31 Jul 2003, Dave Phillips wrote: > Hi Kjetil: > > Wow, what a nice improvement ! I recommend replacing my hard-coded > stuff with your work, it's much more flexible. > > I haven't tested the preview functions yet, I'll give them a workout > later today. > > One minor problem: the dialogs are BIG, maybe too big. I'm not sure > how we could reduce the width without removing some buttons: any > suggestions ? > > Nice work, Kjetil. Thanks for adding this code to Snd ! > Thank you very much. I think it would be nice if the buttons were like this: [Preview] [OK] [Cancel] Or something similar. However, the preview function sort of kind of doesnt work very well. So thats why theres all those apply/undo/redo/play/stop combination buttons. So to make the above design make sense, the preview function needs to be fixed properly. And I'm not sure how to do that. I guess its enough to make a new apply-ladspa c-function that doesnt store undo or update graphics? Or perhaps, is it possible to turn off undo adding and graphics update? I didn't find a way to do that. > Best regards, > > == Dave Phillips > > The Book Of Linux Music & Sound at http://www.nostarch.com/lms.htm > The Linux Soundapps Site at http://linux-sound.org > > Currently listening to: Harold Budd & Brian Eno, "Their Memories" > > > "Kjetil S. Matheussen" wrote: > > > > Hi, here is a script for using ladspa plugins in snd. > > I think its rather nice. Its a bit like Dave Phillips > > script, but more general since it automaticly builds > > up the menues and dialogs instead of using predefined ones. > > And it has realtime preview. > > http://www.notam02.no/arkiv/src/snd/ladspa.scm > > Feel free to do whatever you want with it. Public domain. > > > > -- > > > > _______________________________________________ > > Cmdist mailing list > > Cmdist at ccrma.stanford.edu > > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From bil at ccrma.Stanford.EDU Thu Jul 31 06:14:58 2003 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 31 Jul 2003 06:14:58 -0700 Subject: [CM] Ladspa stuff for snd. In-Reply-To: References: Message-ID: <3F291652.2000803@ccrma.stanford.edu> Kjetil S. Matheussen wrote: >Hi, here is a script for using ladspa plugins in snd. > > > Thanks! I'll check it out later today. I notice a comment about finding the number of inputs and outputs for a plugin -- perhaps we could add a way to readback whatever info a ladspa plugin provides, similar (in spirit anyway) to mus-audio-mixer-read? From k.s.matheussen at notam02.no Thu Jul 31 06:51:28 2003 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Thu, 31 Jul 2003 15:51:28 +0200 (MEST) Subject: [CM] Ladspa stuff for snd. In-Reply-To: <3F291652.2000803@ccrma.stanford.edu> Message-ID: On Thu, 31 Jul 2003, Bill Schottstaedt wrote: > Kjetil S. Matheussen wrote: > > >Hi, here is a script for using ladspa plugins in snd. > > > > > > > > Thanks! I'll check it out later today. I notice a comment about > finding the number of inputs and outputs for a plugin -- perhaps > we could add a way to readback whatever info a ladspa plugin > provides, similar (in spirit anyway) to mus-audio-mixer-read? > That would be very nice. It would also be nice to be able to get the default hints of a ladspa plugin. -- From dlphilp at bright.net Thu Jul 31 07:50:48 2003 From: dlphilp at bright.net (Dave Phillips) Date: Thu, 31 Jul 2003 10:50:48 -0400 Subject: [CM] Ladspa stuff for snd. References: Message-ID: <3F292CC8.73ABA6B@bright.net> "Kjetil S. Matheussen" wrote: > I think it would be nice if the buttons were like this: > > [Preview] [OK] [Cancel] > > Or something similar. However, the preview function sort of kind of > doesnt work very well. So thats why theres all those > apply/undo/redo/play/stop combination buttons. What about pressing the Preview button to call a preview-dialog which would contain those other controls ? Is that practical (once the preview function itself works) ? == dlp From afc_asti at allmail.net Thu Jul 31 22:51:00 2003 From: afc_asti at allmail.net (kasti) Date: Thu, 31 Jul 2003 21:51:00 -0800 Subject: [CM] How to evaluate a .cm file Message-ID: <20030801055100.0EFC037B1E@www.fastmail.fm> Hello! I've been getting a problem, after making a .cm file with some programming -defined to be used in the future with different values to get different musical excerpts-, I got stuck when loading it inside the Interpreter (it's like loading nothing because I have to write it from scratch in the interpreter), it just don't evaluate (load "whatever.cm") If this command is not enough to make the interpreter evaluate the file, what more do i need? Thanks in advance !-) -- andr?s f. castiblanco v. e-mail address: afc_asti at allmail.net -- http://www.fastmail.fm - The professional email service