From finnendahl at folkwang-hochschule.de Sat Nov 2 07:27:43 2002 From: finnendahl at folkwang-hochschule.de (Orm Finnendahl) Date: Sat, 2 Nov 2002 16:27:43 +0100 Subject: [CM] changing tempo in midifiles Message-ID: <20021102152743.GA2084@finnendahl.de> Hi Rick, I don't know how to change the tempo definition of a midifile when generating it using a process. I tried to find out where to give the initialization pair (e.g. midi-file-tempo 120) when defining a process but didn't get very far looking at the sources. It seems the initialize-io method takes care of that but I couldn't find out who is calling it why. It somehow seems to be determined by the call to "out" of "process" as soon as it finds out it has to write midi-events. Maybe you can shed some light on the whole process of the handling of all that as I fear it isn't documented anywhere. -- Orm From finnendahl at folkwang-hochschule.de Sat Nov 2 07:35:41 2002 From: finnendahl at folkwang-hochschule.de (Orm Finnendahl) Date: Sat, 2 Nov 2002 16:35:41 +0100 Subject: [CM] setting tempo in midi files Message-ID: <20021102153541.GA2128@finnendahl.de> Hi Rick, I found it. I had overseen that it is handled as a keyword in events. (events (my-process args) "/tmp/foo.midi" :tempo 120) did the trick. -- Orm From troydwill at yahoo.com Sat Nov 2 17:01:16 2002 From: troydwill at yahoo.com (Troy Will) Date: Sat, 2 Nov 2002 17:01:16 -0800 (PST) Subject: [CM] bind-key function Message-ID: <20021103010116.5203.qmail@web13408.mail.yahoo.com> I'm trying to bind a key to a function. I uncommented ;(bind-key (char->integer #\m) 0 (lambda () (first-mark-in-window-at-left))) in examp.scm. Thus I would expect (first-mark-window-at-left) to execute whenever I hit the "m" key. However, the "m" goes into the minibuffer. Do I have the wrong idea of what bind-key does? Thanks, __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ From carl.boingie at rcn.com Sun Nov 3 11:21:24 2002 From: carl.boingie at rcn.com (Carl Edwards) Date: Sun, 3 Nov 2002 14:21:24 -0500 Subject: [CM] better late than never Message-ID: <000601c28376$b91e1050$72ed7ad1@laptop> Rick, Just a note of thanks from us beginners on the list-- the new intro.cm is a model of clarity! Thanks for the new examples and for the orderly introduction. Armed with these I may be able to get far enough "in" to CM to appreciate some of the other changes you have made. ;-) Best wishes, Carl Edwards From bil at ccrma.Stanford.EDU Mon Nov 4 04:27:43 2002 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 4 Nov 2002 04:27:43 -0800 Subject: [CM] bind-key function In-Reply-To: <20021103010116.5203.qmail@web13408.mail.yahoo.com> References: <20021103010116.5203.qmail@web13408.mail.yahoo.com> Message-ID: <200211041227.EAA11663@cmn14.stanford.edu> > However, the "m" goes into > the minibuffer. Do I have the wrong idea of what > bind-key does? bind-key affects key strokes in the waveform portion of the display; it depends on how you've set up Snd, but you may need to click the graph, or move the mouse to the graph to make sure it's the active area. From taube at uiuc.edu Wed Nov 6 05:55:48 2002 From: taube at uiuc.edu (Rick Taube) Date: Wed, 6 Nov 2002 07:55:48 -0600 Subject: [CM] Request for Comments (book) Message-ID: Im cranking away 12+ hours a day on a book about computer compostion. (The manuscript is due at the end of Decemeber but I dont know if I can live that long...) I'm releasing the first 1/3 or so of the book to this list in the hopes that a few kind souls would be interested in reading it and giving me feedback. The portion im releaseing today includes the introductory materials and the first eight chapters, which constitute the complete Part 1 of the book. Part 1 provides an introduction to Lisp for composers. Ill release more of the book at the end of the month. Any comments are welcome: nits, errors, code bugs, typos, and especaiily ideas on how to strengthen the presentation. Im also looking for code examples, implementation of cool compositional ideas, pithy quotes for chapter headings, compositions, projects, etc, to include in the book. The book will have a CD with it so actual source code and aiff files of comppositions could easily be included. Of course you would receive full and clear credit for any material that was used. The materials are copyrighted by Swets Zeitlinger Publishing so please do not mass mail it around! You can read the on-line version at: http://www-camil.music.uiuc.edu/faculty/taube/nm/nm_title.html ive also put a tarball at ccrma: ftp://ftp-ccrma.stanford.edu/pub/Lisp/cm/nm.tar.gz -rick From taube at uiuc.edu Thu Nov 7 12:39:12 2002 From: taube at uiuc.edu (Rick Taube) Date: Thu, 7 Nov 2002 14:39:12 -0600 Subject: [CM] Request for Comments (book) In-Reply-To: References: Message-ID: A huge "thank you" to all you kind souls that sent in bug reports on part 1 so far. Its amazing how many typos there were (are?) despite reading it a million times and sending it through two different spell checkers. by the way tge the winning typo was: faction of integers ive updated the material with the changes that have been suggested so far but i still have to figure out what to do about the row->matrix call in chapter 3 before its defined in chapter 8... updated docs also include better chapter links at the top and bottom of each page. http://www-camil.music.uiuc.edu/faculty/taube/nm/nm_title.html ftp://ftp-ccrma.stanford.edu/pub/Lisp/cm/nm.tar.gz thanks again! -rick From michael at klingbeil.com Thu Nov 7 23:03:04 2002 From: michael at klingbeil.com (Michael Klingbeil) Date: Fri, 8 Nov 2002 02:03:04 -0500 Subject: [CM] ATS Helper Message-ID: If anyone is using Juan Pampin's ATS under CLM, you might be interested in a small application I wrote to resynthesize ATS format files. Mainly the application is useful because the resynthesis is very fast (uses an inverse FFT overlap-add method). Currently it only runs on MacOS Classic or MacOS X (which will probably give it very limited appeal), but if there is interest I hope to release a command-line only version for POSIX type systems. For more information see: http://www.klingbeil.com/ats-syn.html I've also made a few modifications to ATS which, once I run the diffs, might be able to be merged back into the ATS distribution. There are many possible future directions for this project and I'd be interested to hear what people would find most useful. Possibilities: - CLM only version (just a regular CLM instrument but using FFT overlap-add) - POSIX command-line version - GUI editor (cross platform) - ATS-style analysis implemented in C++ (for speed, on my lowly Mac it isn't too fast!) - additions to ATS for cross synthesis, interpolations, etc. Best regards to all, Michael From juan at ccrma.Stanford.EDU Fri Nov 8 01:08:04 2002 From: juan at ccrma.Stanford.EDU (Juan Pampin) Date: Fri, 8 Nov 2002 01:08:04 -0800 Subject: [CM] ATS Helper In-Reply-To: Message-ID: <96D7F58C-F2F9-11D6-AB84-003065674E2A@ccrma.stanford.edu> Thanks for this contribution Michael, your program runs great under Mac OS X!. ATS file formats 5 and 6 would be very easy to add, in fact, internally (in lisp) ATS keeps independent time information for each partial, I built this in considering future multi-rate (wavelet-like) versions of ATS (I have a prototype of this running but needs some work yet, I guess that will have to wait until ATS-2.0!), the only reason I'm not writing this information out into ATS files is that I wasn't sure it could be useful for users and it would make files larger, but I can add those two formats for your applications no problem. A few questions: > - POSIX command-line version -As ATS is free and open source, would you be willing to make your program open source as well?. > - CLM only version (just a regular CLM instrument but using FFT > overlap-add) I have something like this running but I'd need to work on adding the noise resynthesis to it, it shouldn't be hard but needs some time. Otherwise, if you make your code available it should be very easy to translate it into CLM. > - GUI editor (cross platform) -Pablo Di Liscia and I are working on an GUI for ATS called ATSH, maybe you have checked it out already, otherwise go to: http://www-ccrma.stanford.edu/~juan/ATSH.html ATSH is in beta state yet. At this point we are working on adding the analysis component of ATS to it, ATSH uses GTK for graphics what makes it quite portable (we have it running on Linux, OS X, and Windows), analysis and synthesis functions are written in C. Would you like to collaborate in this project?, It would be great to join our efforts and work together avoiding duplicate resources. > - additions to ATS for cross synthesis, interpolations, etc. I'm teaching an ATS class at University of Washington this quarter and will have a group of grad. students working on ATS related projects, hopefully this will lead to new interesting additions and instruments. Best, JUAN On Thursday, November 7, 2002, at 11:03 PM, Michael Klingbeil wrote: > If anyone is using Juan Pampin's ATS under CLM, you might be interested > in a small application I wrote to resynthesize ATS format files. Mainly > the application is useful because the resynthesis is very fast (uses an > inverse FFT overlap-add method). Currently it only runs on MacOS Classic > or MacOS X (which will probably give it very limited appeal), but if > there is interest I hope to release a command-line only version for POSIX > type systems. For more information see: > > http://www.klingbeil.com/ats-syn.html > > > I've also made a few modifications to ATS which, once I run the diffs, > might be able to be merged back into the ATS distribution. > > There are many possible future directions for this project and I'd be > interested to hear what people would find most useful. Possibilities: > > - CLM only version (just a regular CLM instrument but using FFT > overlap-add) > - POSIX command-line version > - GUI editor (cross platform) > - ATS-style analysis implemented in C++ (for speed, on my lowly Mac it > isn't too fast!) > - additions to ATS for cross synthesis, interpolations, etc. > > > Best regards to all, > > Michael > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From bil at ccrma.Stanford.EDU Fri Nov 8 04:03:45 2002 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 8 Nov 2002 04:03:45 -0800 Subject: [CM] clm: maxf.ins from Juan Reyes Message-ID: <200211081203.EAA17221@cmn14.stanford.edu> Juan Reyes has written a new instrument: maxf.ins which I've added to the clm tarball; it's based on some recent ideas of Max Mathews (I think) and is described as "[a] sort of Modal Synthesis [...] it can be called Additive Synthesis in which a resonator is initialized to generate exponentially decaying sinusoids at a desired phase." From anders.vinjar at notam02.no Fri Nov 8 06:12:44 2002 From: anders.vinjar at notam02.no (Anders Vinjar) Date: 08 Nov 2002 15:12:44 +0100 Subject: [CM] Snd freezing everything Message-ID: Some seriously odd behaviour here while being 'root'. Starting Snd as root, choosing "New" from the file menu freezes everything. Only way out is to hit reset in the machine-room and having a hard reboot. This seems to be the behaviour across various alsa-revisions, across linux-versions and across (quite a few) hardwares. Both Snd from this morning and a previous version (from Oct-31st) behaves like this. Any clues? -anders From dlphilp at bright.net Fri Nov 8 06:37:20 2002 From: dlphilp at bright.net (Dave Phillips) Date: Fri, 08 Nov 2002 09:37:20 -0500 Subject: [CM] Snd freezing everything References: Message-ID: <3DCBCC20.D8E2CDA3@bright.net> Anders Vinjar wrote: > Some seriously odd behaviour here while being 'root'. > > Starting Snd as root, choosing "New" from the file menu freezes > everything. Only way out is to hit reset in the machine-room and > having a hard reboot. > > This seems to be the behaviour across various alsa-revisions, > across linux-versions and across (quite a few) hardwares. Both > Snd from this morning and a previous version (from Oct-31st) > behaves like this. > > Any clues? No clues, but Bill has warned me in the past about running Snd as root. I don't think it's advisable: I ran into the same problem when I tried it a while ago. Snd runs fine as normal user though. Is there some particular reason you need to run it as root ? 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 leh at mail.ru Fri Nov 8 10:53:31 2002 From: leh at mail.ru (Valery Beluntsov) Date: Fri, 8 Nov 2002 21:53:31 +0300 Subject: [CM] FIRST STEPS In-Reply-To: <3DCBCC20.D8E2CDA3@bright.net> References: <3DCBCC20.D8E2CDA3@bright.net> Message-ID: <200211082153.31265.leh@mail.ru> I'm new to CMN and I would like to use it under Linux system. I downloaded clisp and clisp-cm-clm-cmn packages (rpms) and ionstalles them on my computer. Plesae tell me what should be next step? How to compile a notation file? What should I do to preview results on the screen? To print? WBR, Valery From leh at mail.ru Fri Nov 8 12:52:57 2002 From: leh at mail.ru (Valery Beluntsov) Date: Fri, 8 Nov 2002 23:52:57 +0300 Subject: [CM] first steps... In-Reply-To: <3DCBCC20.D8E2CDA3@bright.net> References: <3DCBCC20.D8E2CDA3@bright.net> Message-ID: <200211082352.02846.leh@mail.ru> I got the following error trying to run clisp-cm-clm-cmn. What should I do to fix the problem? Thanx in advance, Valery -------------- next part -------------- A non-text attachment was scrubbed... Name: lisp-err.jpg Type: image/jpeg Size: 22501 bytes Desc: not available URL: From nando at ccrma.Stanford.EDU Fri Nov 8 13:27:43 2002 From: nando at ccrma.Stanford.EDU (Fernando Pablo Lopez-Lezcano) Date: Fri, 8 Nov 2002 13:27:43 -0800 (PST) Subject: [CM] first steps... In-Reply-To: <200211082352.02846.leh@mail.ru> Message-ID: > I got the following error trying to run clisp-cm-clm-cmn. What should I > do to fix the problem? Hmmm, I assume that you are using the redhat rpms that live in Planet CCRMA? What linux distribution and version are you using? It looks like you have mixed versions (maybe you installed the rpms manually?). The clisp you have installed is 2.30 and I built that one only for redhat 8.0 because 2.28 was not compiling at all. But the cm-clm-cmn you are using must be the one that was compiled for 7.x. That's the reason it is not starting (the core image is not compatible with the lisp you have installed). What version of redhat are you running? Is this on a redhat machine? If you are running redhat 7.2 or 7.3 then you should install clisp 2.28 and the matching cm-clm-cmn rpm. If you are running in 8.0: the clisp version of cm-clm-cmn does not work yet, clisp 2.30 compiles but (on my first try) cm does not, so I don't have rpms for the clisp world for 8.0. You could try using cmucl instead. [BTW: it would be MUCH better if next time you could copy and paste the text instead of sending a jpeg file of the screen, it makes it a lot harder to look at the error] -- Fernando From leh at mail.ru Fri Nov 8 14:46:11 2002 From: leh at mail.ru (Valery Beluntsov) Date: Sat, 9 Nov 2002 01:46:11 +0300 Subject: [CM] first steps... In-Reply-To: References: Message-ID: <200211090146.11633.leh@mail.ru> > > I got the following error trying to run clisp-cm-clm-cmn. What should I > > do to fix the problem? > > Hmmm, I assume that you are using the redhat rpms that live in Planet > CCRMA? What linux distribution and version are you using? I use ASP Linux 7.3 (it's russian distribution, it seems to be very similar to Redhat). Rpms of clisr and clisp-cm-clm-cmn I really downloaded from Planet CCRMA. > It looks like you have mixed versions (maybe you installed the rpms > manually?). The clisp you have installed is 2.30 and I built that one only > for redhat 8.0 because 2.28 was not compiling at all. But the cm-clm-cmn > you are using must be the one that was compiled for 7.x. That's the > reason it is not starting (the core image is not compatible with the lisp > you have installed). > Thank you for the solution, I really had installed clisp 2.30. I'll try now to download 2.28. WBR, Valery From bil at ccrma.Stanford.EDU Mon Nov 11 03:45:52 2002 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 11 Nov 2002 03:45:52 -0800 Subject: [CM] Snd freezing everything In-Reply-To: References: Message-ID: <200211111145.DAA21162@cmn14.stanford.edu> > Starting Snd as root, choosing "New" from the file menu freezes > everything. Only way out is to hit reset in the machine-room and > having a hard reboot. I can't get this to happen; I wouldn't run Snd as root, but that's only because Snd will try to do whatever you ask it to do. From carl.boingie at rcn.com Sun Nov 10 21:08:58 2002 From: carl.boingie at rcn.com (Carl Edwards) Date: Mon, 11 Nov 2002 00:08:58 -0500 Subject: [CM] one-over-f-noise Message-ID: <000201c2899e$6a762180$d9e37ad1@laptop> If anyone has time to answer a simple Lisp question: I've been looking at an old example that I found online, the one-over-f-noise.lsp function (or pair of functions). There is a part I don't understand in the let* form (if that's the right word) of the second function. Here's the listing: (defun one-over-f-noise (power-of-2) (let* (rtn (length (expt 2 power-of-2)) (half-range (/ 1.0 power-of-2)) (r (make-array (list power-of-2)))) ; bug: should free array (loop for n from 0 to (- length 1) do (push (one-over-f-aux n power-of-2 r half-range) rtn)) rtn)) I'll append the whole program below (necessary if you want to try it at home). My question is regarding the variable (or function) rtn. Is "rtn" short for something that I can't find in cltl2? Just point me in the right direction, I just need to know what to look up. Another sub-question is: should I worry about the documented bug? The program seems to work just fine. Thanks in advance, Carl Edwards ---------------snip----------------------------- (in-package :cm) (defun one-over-f-aux (n power-of-2 r half-range) (let ((sum 0)) (loop for i below power-of-2 do (let ((pow (expt 2 i))) (when (not (= (/ n pow) (/ (- n 1) pow))) (setf (aref r i) (between (- half-range) half-range))) (incf sum (aref r i)))) sum)) ;;; One over f noise generator. Returns a list of size 2^power-of-2 of ;;; numbers from -1 to 1 ;;; Based on Gardner (1978) and Dick Moore (1988?) (defun one-over-f-noise (power-of-2) (let* (rtn (length (expt 2 power-of-2)) (half-range (/ 1.0 power-of-2)) (r (make-array (list power-of-2)))) ; bug: should free array (loop for n from 0 to (- length 1) do (push (one-over-f-aux n power-of-2 r half-range) rtn)) rtn)) ----------------------snip------------------------------------- From carl.boingie at rcn.com Sun Nov 10 21:18:36 2002 From: carl.boingie at rcn.com (Carl Edwards) Date: Mon, 11 Nov 2002 00:18:36 -0500 Subject: [CM] OT: a quick clisp question Message-ID: <000301c2899e$6b3fda20$d9e37ad1@laptop> One other thing, if anyone knows... I installed Clisp 2.3 on my Win2K system in order to run CM 2.4. I am running both from a shell in Xemacs. Everything seems to work fine exept when I attempt to (exit). For some reason that is now an undefined function. There's no problem with (exit) in Clisp when CM is not installed. It's not crippling, it's just weird. Anyone have any ideas? Carl Edwards From nando at ccrma.Stanford.EDU Mon Nov 11 09:45:02 2002 From: nando at ccrma.Stanford.EDU (Fernando Pablo Lopez-Lezcano) Date: 11 Nov 2002 09:45:02 -0800 Subject: [CM] one-over-f-noise In-Reply-To: <000201c2899e$6a762180$d9e37ad1@laptop> References: <000201c2899e$6a762180$d9e37ad1@laptop> Message-ID: <1037036703.7799.4.camel@cmn37.Stanford.EDU> > I've been looking at an old example that I found online, the > one-over-f-noise.lsp function (or pair of functions). There is a part I > don't understand in the let* form (if that's the right word) of the > second function. Here's the listing: > > > (defun one-over-f-noise (power-of-2) > (let* (rtn > (length (expt 2 power-of-2)) > (half-range (/ 1.0 power-of-2)) > (r (make-array (list power-of-2)))) ; bug: should free array > (loop for n from 0 to (- length 1) do > (push > (one-over-f-aux n power-of-2 r half-range) > rtn)) > rtn)) > > I'll append the whole program below (necessary if you want to try it at > home). "rtn" is just a "local variable" declared in the let, it has no initial value so that defaults to nil. It is used inside the loop to build up a list (the "push" function does that). The value of rtn is what is returned from the function. The last form ("rtn") evaluates to the contents of "rtn" and that is what is returned. -- Fernando From leh at mail.ru Mon Nov 11 10:50:32 2002 From: leh at mail.ru (Valery Beluntsov) Date: Mon, 11 Nov 2002 21:50:32 +0300 Subject: [CM] first steps --- just testing In-Reply-To: <200211090146.11633.leh@mail.ru> References: <200211090146.11633.leh@mail.ru> Message-ID: <200211112150.33005.leh@mail.ru> I downloaded clisp 1.28 and it's OK now, it works. Because I'm still new to cmn, I have some simple questions. 1. How to load file to clisp? Now I start clisp, then copy-paste text to clisp console and press enter. It works but it seems to be easier method... 2. Here's a small test code and output in attachment: (cmn (size 24) (system brace (staff treble (meter 6 8) (c4 q) (d4 q) (e4 q) (f4 q.) (af4 q. tenuto)) (staff alto (meter 4 4) c3 h. b2 h. double-bar))) Why the image is turned to landscape orientation? What should I do to turn it back? 3. Why do I see no left line here? What should I do to make it appear? 4. Automatic grouping is fine, but what should I do to make the second note in the example look like one quarter? (Not to cancel automalic grouping globally, but just for one note?) 5. Why 4/4 barline extends to upper staff? What should I do to keep barlines in "theirs" staff only (e.g. for to have right and left hands to play in different meters when barlines should not match)? Thank you in advance, Valery -------------- next part -------------- A non-text attachment was scrubbed... Name: aaa1.eps Type: image/x-eps Size: 10334 bytes Desc: not available URL: From taube at uiuc.edu Mon Nov 11 10:59:42 2002 From: taube at uiuc.edu (Rick Taube) Date: Mon, 11 Nov 2002 12:59:42 -0600 Subject: [CM] OT: a quick clisp question In-Reply-To: <000301c2899e$6b3fda20$d9e37ad1@laptop> References: <000301c2899e$6b3fda20$d9e37ad1@laptop> Message-ID: arrg, try (ext:quit) or someting liek that maybe i should define quit and exit for all lisps in cm, this is a continual headache in Common Lisp. >One other thing, if anyone knows... > >I installed Clisp 2.3 on my Win2K system in order to run CM 2.4. I am >running both from a shell in Xemacs. > >Everything seems to work fine exept when I attempt to (exit). For some >reason that is now an undefined function. There's no problem with (exit) in >Clisp when CM is not installed. > >It's not crippling, it's just weird. Anyone have any ideas? > >Carl Edwards > > >_______________________________________________ >Cmdist mailing list >Cmdist at ccrma.stanford.edu >http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From juanig at ccrma.Stanford.EDU Mon Nov 11 12:15:24 2002 From: juanig at ccrma.Stanford.EDU (Juan Reyes) Date: 11 Nov 2002 12:15:24 -0800 Subject: [CM] first steps --- just testing In-Reply-To: <200211112150.33005.leh@mail.ru> References: <200211090146.11633.leh@mail.ru> <200211112150.33005.leh@mail.ru> Message-ID: <1037045725.7393.38.camel@cmn19.Stanford.EDU> To load your file into Clisp just use Emacs or your favorite editor and don't forget (in-package :cmn) at the start of your file. Name your file name.cmn or name.lisp. This is the easiest way to work with cmn, since most of your editing will be done with text and with emacs or vi. You should change your defaults also, for example: (transform '(0 1.0 -1 0 600 -10)) will change the orientation of your page but also you need to change its measurements by changing (page-height 8.5) (page-width 11.00) if its lettersize and if you are using inches instead of centimeters. (*cmn-units* :cm.) changes units to centimeters. If you use A4 paper you should measure it, and change your page-width and page-height values accordingly. For the left line you should start your file with (bar) on the bottom staff. You can change (automatic-bars nil) to disable auto grouping, although is global. Different bar lines will appear once you get rid of the system brace at the beginning. Hope this helps, --* Juan On Mon, 2002-11-11 at 10:50, Valery Beluntsov wrote: > I downloaded clisp 1.28 and it's OK now, it works. Because I'm still new to > cmn, I have some simple questions. > > 1. How to load file to clisp? Now I start clisp, then copy-paste text to clisp > console and press enter. It works but it seems to be easier method... > > 2. Here's a small test code and output in attachment: > > (cmn (size 24) > (system brace > (staff treble (meter 6 8) > (c4 q) (d4 q) (e4 q) (f4 q.) (af4 q. tenuto)) > (staff alto (meter 4 4) > c3 h. b2 h. double-bar))) > > Why the image is turned to landscape orientation? What should I do to turn it > back? > > 3. Why do I see no left line here? What should I do to make it appear? > > 4. Automatic grouping is fine, but what should I do to make the second note in > the example look like one quarter? (Not to cancel automalic grouping > globally, but just for one note?) > > 5. Why 4/4 barline extends to upper staff? What should I do to keep barlines > in "theirs" staff only (e.g. for to have right and left hands to play in > different meters when barlines should not match)? > > Thank you in advance, > Valery From dlphilp at bright.net Mon Nov 11 12:33:14 2002 From: dlphilp at bright.net (Dave Phillips) Date: Mon, 11 Nov 2002 15:33:14 -0500 Subject: [CM] debuggin ligeti References: <200211090146.11633.leh@mail.ru> <200211112150.33005.leh@mail.ru> <1037045725.7393.38.camel@cmn19.Stanford.EDU> Message-ID: <3DD0140A.9C117A87@bright.net> Greetings: I'm trying to figure how to fix the ligeti.cm example in CM 2.4.0. I've copied the output of the compile attempt below, can anyone tell me where to start the rewrite ? TIA ! 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 [dlphilp at localhost bin]$ lisp -core cm.core * (compile-file "/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.cm") Python version 1.0, VM version Intel x86 on 11 NOV 02 03:22:31 pm. Compiling: /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.cm 19 OCT 02 02:18:18 pm Converted EIGHTH-TIME. Compiling DEFINE (EIGHTH-TIME NUMBER-OF-EIGHTHS): Byte Compiling Top-Level Form: Byte Compiling Top-Level Form: Byte Compiling Creation Form for #: File: /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.cm In: DEFINE (MAKE-WHITE-FG-NOTES NOTE) (NEW TRANSPOSER :OF (NEW CYCLE :OF WHITE-FG-STEPS) :ON ...) Error: (during macroexpansion) Error in function EXPAND-INITS: ':ON' is not an initialization for #. Converted MAKE-WHITE-FG-NOTES. Compiling DEFINE (MAKE-WHITE-FG-NOTES NOTE): File: /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.cm In: DEFINE (MAKE-WHITE-FG-NOTES NOTE) (LET ((STEP #)) (NEW TRANSPOSER :OF (NEW CYCLE :OF WHITE-FG-STEPS) :ON ...)) Note: Variable STEP defined but never used. Converted MAKE-WHITE-FG-RHYTHMS. Compiling DEFINE (MAKE-WHITE-FG-RHYTHMS): Byte Compiling Top-Level Form: Compiling Creation Form for #: Byte Compiling Top-Level Form: Converted MAKE-BLACK-FG-NOTES. Compiling DEFUN MAKE-BLACK-FG-NOTES: Byte Compiling Top-Level Form: Compiling Creation Form for #: Compiling Creation Form for #: Compiling Creation Form for #: File: /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.cm In: DEFUN MAKE-BLACK-FG-RHYTHMS (NEW CYCLE 3 5 3 ...) Error: (during macroexpansion) Error in function EXPAND-INITS: '3' is not an initialization for #: (3 5 3 5 5 ...). Converted MAKE-BLACK-FG-RHYTHMS. Compiling DEFUN MAKE-BLACK-FG-RHYTHMS: File: /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.cm In: DEFPROCESS FG-MONO (DEFPROCESS FG-MONO (MODE KEYNUMS RHYTHMS) (PROCESS FOR KEY = (KEYNUM # :FROM MODE) ...)) --> DEFPARAMETER PROGN SETQ SETQ LAMBDA ==> #'(LAMBDA (&REST (MODE KEYNUMS RHYTHMS)) (PROCESS FOR KEY = (KEYNUM # :FROM MODE) ...)) Error: Lambda-variable is not a symbol: (MODE KEYNUMS RHYTHMS). In: DEFPROCESS DESORDRE-W/OCTAVES (DEFPROCESS DESORDRE-W/OCTAVES (MODE NTES RHYS) (LET (# # MODE-DEGREE) (LIST # #))) --> DEFPARAMETER PROGN SETQ SETQ LAMBDA ==> #'(LAMBDA (&REST (MODE NTES RHYS)) (LET (# # MODE-DEGREE) (LIST # #))) Error: Lambda-variable is not a symbol: (MODE NTES RHYS). Byte Compiling Top-Level Form: File: /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.cm In: DEFPROCESS DESORDRE-VOICES (DEFPROCESS DESORDRE-VOICES (MODE NTES RHYS CHORD VOIMAP) (LET (# FG-TIME FG-8THS MODE-DEGREE) (LIST # #))) --> DEFPARAMETER PROGN SETQ SETQ LAMBDA ==> #'(LAMBDA (&REST (MODE NTES RHYS CHORD VOIMAP)) (LET (# FG-TIME FG-8THS MODE-DEGREE) (LIST # #))) Error: Lambda-variable is not a symbol: (MODE NTES RHYS CHORD VOIMAP). Byte Compiling Top-Level Form: Compilation unit finished. 5 errors 1 note /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.x86f written. Compilation finished in 0:00:01. #p"/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.x86f" T T * (load "/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.x86f") ; Loading #p"/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.x86f". Error in function C::DO-CALL: Execution of a form compiled with errors: #'(LAMBDA (&REST (MODE KEYNUMS RHYTHMS)) (PROCESS FOR KEY = (KEYNUM (NEXT KEYNUMS) :FROM MODE) FOR RHY = (EIGHTH-TIME (NEXT RHYTHMS)) OUTPUT (NEW MIDI TIME (NOW) KEYNUM KEY AMPLITUDE FG-AMP DURATION RHY) WAIT RHY UNTIL (EOP? RHYTHMS))) Restarts: 0: [CONTINUE] Return NIL from load of "/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.x86f". 1: [ABORT ] Return to Top-Level. Debug (type H for help) (C::DO-CALL # 22 23 4 ...) Source: Error finding source: Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM: Source file no longer exists: target:code/byte-interp.lisp. 0] 1 * From juanig at ccrma.Stanford.EDU Mon Nov 11 14:25:33 2002 From: juanig at ccrma.Stanford.EDU (Juan Reyes) Date: 11 Nov 2002 14:25:33 -0800 Subject: [CM] Digitool MCL5.0 News from Lisp conference Message-ID: <1037053534.8704.4.camel@cmn19.Stanford.EDU> Digitool is pleased to announce that its MacOSX native version of MCL will ship in early January 2003. MCL 5.0 will be priced at $750 per commercial license including 1 year of technical support and patches. Educational institutions and students receive a 30% and 40% discount, respectively. Digitool is also pleased to announce that the latest MCL 5.0 beta (beta 5) is now available for purchase at a reduced price of $495. Digitool is making the beta available to the public in response to requests from customers, to provide a discount to existing users, and to assist Digitool in the final release of MCL 5.0. Educational institutions and students receive a 30% and 40% discount, respectively. Customers who purchase the beta will receive the final release in January at no charge. Customers who receive the beta as part of a current MCL subscription will have the beta and the final 5.0 release together count as a "single" release in their subscription. For individuals and companies paying by credit card, the quickest way to obtain MCL 5.0 beta is to purchase and download it directly from Digitool's OfficeFront on HotDispatch (you can use Amex, Visa, or MasterCard, and your transaction is secure): http://www.hotdispatch.com/mcl/officefront-2-product?ID=16173118 For all other cases (educational institutions, purchase orders, check payments, etc.), please use the applicable order form: http://www.digitool.com/purchase.html#forms Current subscription holders will be receiving an email early next week with information for downloading the MCL 5.0 beta." From t at fictive.com Mon Nov 11 14:32:30 2002 From: t at fictive.com (Tobias Kunze =?ISO-8859-1?B?QnJpc2Xxbw==?=) Date: Mon, 11 Nov 2002 23:32:30 +0100 Subject: [CM] debuggin ligeti In-Reply-To: <3DD0140A.9C117A87@bright.net> References: <200211090146.11633.leh@mail.ru> <200211112150.33005.leh@mail.ru> <1037045725.7393.38.camel@cmn19.Stanford.EDU> <3DD0140A.9C117A87@bright.net> Message-ID: <20021111233230.5cbd0f42.t@fictive.com> hm. i managed to load it with the attached diffs applied. however, the logic seems to be screwed up (flow is different from my original), so i guess that didn't cut it. re rewrite, the (original cm 1.3) source is at: http://ccrma-www.stanford.edu/~tkunze/publ/99/desordre/ligeti.html there is also a midi file, if that's all what you wanted ;) -t -------------- next part -------------- A non-text attachment was scrubbed... Name: ligeti.diffs Type: application/octet-stream Size: 2083 bytes Desc: not available URL: From dgm4+ at pitt.edu Mon Nov 11 15:18:12 2002 From: dgm4+ at pitt.edu (David Gerard Matthews) Date: Mon, 11 Nov 2002 18:18:12 -0500 Subject: [CM] Problems with CLM on RH 7.3 References: Message-ID: <3DD03AB4.5050804@pitt.edu> Greetings, I've finally gotten the time to sit down and try to learn CLM, but have already gotten into some problems with the tutorial. I'm running Red Hat Linux 7.3 and cmucl with the Planet CCRMA cmucl-cm-clm-cmn package. When trying to define an instrument, as in: (definstrument simp (start-time duration frequency amplitude) (multiple-value-bind (beg end) (times->samples start-time duration) (let ((s (make-oscil frequency))) (run (loop for i from beg below end do (outa i (* amplitude (oscil s)))))))) I get the following error: "DEFMACRO DEFINSTRUMENT" (DEFINSTRUMENT SIMP (START-TIME DURATION FREQUENCY AMPLITUDE) (MULTIPLE-VALUE-BIND # # #)) NIL) Source: Error finding source: Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM: Source file no longer exists: /usr/src/redhat/BUILD/clm-2/defins.lisp. I do not have this file, or even a /usr/src/redhat/BUILD directory. Should it be living somewhere else? Is it possible that it is installed somewhere else on my system? Is there a file I can edit to reflect the actual location where it can be found? thanks, dgm From nando at ccrma.Stanford.EDU Mon Nov 11 15:40:17 2002 From: nando at ccrma.Stanford.EDU (Fernando Pablo Lopez-Lezcano) Date: 11 Nov 2002 15:40:17 -0800 Subject: [CM] Problems with CLM on RH 7.3 In-Reply-To: <3DD03AB4.5050804@pitt.edu> References: <3DD03AB4.5050804@pitt.edu> Message-ID: <1037058017.7805.109.camel@cmn37.Stanford.EDU> > Greetings, > I've finally gotten the time to sit down and try to > learn CLM, but have already gotten into some problems with the tutorial. > I'm running Red Hat Linux 7.3 and cmucl with the Planet CCRMA > cmucl-cm-clm-cmn package. When trying to define an instrument, as in: > > (definstrument simp (start-time duration frequency amplitude) > (multiple-value-bind (beg end) (times->samples start-time duration) > (let ((s (make-oscil frequency))) > (run > (loop for i from beg below end do > (outa i (* amplitude (oscil s)))))))) > > I get the following error: > > "DEFMACRO DEFINSTRUMENT" > (DEFINSTRUMENT SIMP > (START-TIME DURATION FREQUENCY AMPLITUDE) > (MULTIPLE-VALUE-BIND # # #)) > NIL) > Source: Error finding source: > Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM: Source file no longer > exists: /usr/src/redhat/BUILD/clm-2/defins.lisp. Are you compiling the instrument? Just pasting the source into the lisp listener will not work. You have to: a) save the instrument source in a file (for example "simp.ins") b) compile the file with "(compile-file "simp.ins")" c) load the compiled instrument with "(load "simp.cmucl")" e) test it: (with-sound()(simp 0 1 440 0.1)) -- Fernando From taube at uiuc.edu Mon Nov 11 17:32:31 2002 From: taube at uiuc.edu (Rick Taube) Date: Mon, 11 Nov 2002 17:32:31 -0800 Subject: [CM] Re: debuggin ligeti References: <200211090146.11633.leh@mail.ru> <200211112150.33005.leh@mail.ru> <1037045725.7393.38.camel@cmn19.Stanford.EDU> <3DD0140A.9C117A87@bright.net> Message-ID: <003901c289eb$5fc2b170$83197e82@music.uiuc.edu> Im sorry that example file should not be there. I was working on it and forgot to remove it before i made the tarball. i ll have it working in the next release. it does work in cm 2.3.4 From carl.boingie at rcn.com Mon Nov 11 17:23:42 2002 From: carl.boingie at rcn.com (Carl Edwards) Date: Mon, 11 Nov 2002 20:23:42 -0500 Subject: [CM] one-over-f-noise References: <000201c2899e$6a762180$d9e37ad1@laptop> <1037036703.7799.4.camel@cmn37.Stanford.EDU> Message-ID: <017701c289ed$0e0a84a0$34e17ad1@laptop> Many thanks Fernando & Torsten. So, there were several things to learn there... I'm glad I asked. It's such a cool function! Again, thank you for your help. Carl Edwards > "rtn" is just a "local variable" declared in the let, it has no initial > value so that defaults to nil. It is used inside the loop to build up a > list (the "push" function does that). The value of rtn is what is > returned from the function. The last form ("rtn") evaluates to the > contents of "rtn" and that is what is returned. > > -- Fernando From dgm4+ at pitt.edu Mon Nov 11 19:16:57 2002 From: dgm4+ at pitt.edu (David Gerard Matthews) Date: Mon, 11 Nov 2002 22:16:57 -0500 Subject: [CM] Problems with CLM on RH 7.3 References: <3DD03AB4.5050804@pitt.edu> <1037058017.7805.109.camel@cmn37.Stanford.EDU> Message-ID: <3DD072A9.2070706@pitt.edu> Fernando Pablo Lopez-Lezcano wrote: >>Are you compiling the instrument? Just pasting the source into the lisp >>listener will not work. >> >>You have to: >>a) save the instrument source in a file (for example "simp.ins") >>b) compile the file with "(compile-file "simp.ins")" >>c) load the compiled instrument with "(load "simp.cmucl")" >>e) test it: >> (with-sound()(simp 0 1 440 0.1)) >> >>-- Fernando >> Ah. Shows what a silly newbie I am. Thanks. I was, in fact, pasting the source into the listener. Will try actually compiling the thing for real. Thanks, Fernando! -dgm From bil at ccrma.Stanford.EDU Tue Nov 12 04:33:17 2002 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 12 Nov 2002 04:33:17 -0800 Subject: [CM] cmn braille output Message-ID: <200211121233.EAA22652@cmn14.stanford.edu> With much help from Ruven Gottlieb, I've added the output-type :Braille to cmn, and made some initial translations (brl-display in cmn4.lisp) so that (cmn (output-type :Braille) treble c4 q full-double-bar) will write a file containing >/l? <200211090146.11633.leh@mail.ru> <200211112150.33005.leh@mail.ru> <1037045725.7393.38.camel@cmn19.Stanford.EDU> <3DD0140A.9C117A87@bright.net> <20021111233230.5cbd0f42.t@fictive.com> Message-ID: <3DD12EA9.F1709D09@bright.net> Tobias Kunze Brise?o wrote: > hm. i managed to load it with the attached diffs applied. however, > the logic seems to be screwed up (flow is different from my original), > so i guess that didn't cut it. > > re rewrite, the (original cm 1.3) source is at: > > http://ccrma-www.stanford.edu/~tkunze/publ/99/desordre/ligeti.html > > there is also a midi file, if that's all what you wanted ;) Thank you for the diffs, Tobias. I'd already "fixed" things through the first three event calls, but I'm having trouble with desordre-woctaves and desordre-voices. I'll send a full report when I've checked out the errors more closely. 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 Tue Nov 12 09:34:15 2002 From: dlphilp at bright.net (Dave Phillips) Date: Tue, 12 Nov 2002 12:34:15 -0500 Subject: [CM] debuggin ligeti References: <200211090146.11633.leh@mail.ru> <200211112150.33005.leh@mail.ru> <1037045725.7393.38.camel@cmn19.Stanford.EDU> <3DD0140A.9C117A87@bright.net> <20021111233230.5cbd0f42.t@fictive.com> <3DD12EA9.F1709D09@bright.net> Message-ID: <3DD13B97.4978B8C7@bright.net> Hi Rick, hi Tobias: Here's the part of ligeti.cm that has me stumped now: ;;; ;;; Add octaves and a fake background (defun desordre-woctaves (mode ntes rhys) (let ((fg-time 0) (fg-eighths 0) mode-degree) (list ;; foreground process (process with dur and keynum do (setf fg-time (now) mode-degree (next ntes) keynum (keynum mode-degree :from mode) fg-eighths (next rhys) dur (eighth-time fg-eighths)) output (new midi time fg-time keynum keynum duration (- dur .01) amplitude fg-amp) output (new midi time fg-time keynum (+ keynum 12) duration (- dur .01) amplitude fg-amp) wait dur until (eop? rhys)) ;; background process fills in 8th note pulses with ;; randomly selected mode notes based on current ;; foreground note. (process with pat = (new range :from (new pval :of mode-degree) :stepping (new random :of '((1 weight 3) 2 (3 weight .5 max 1))) :for (new pval :of fg-eighths)) repeat 1064 for k = (keynum (next pat) :from mode) unless (or (= (now) fg-time) (not (<= 0 k 127))) output (new midi time (now) keynum k duration (- eighth-pulse .01) amplitude bg-amp) wait eighth-pulse)))) (events (append (desordre-woctaves white-mode (make-white-fg-notes 'b3) (make-white-fg-rhythms)) (desordre-woctaves black-mode (make-black-fg-notes 'ds3) (make-black-fg-rhythms))) "/home/dlphilp/tmp/test4.mid") ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Compiling yields the following error: Compiling: /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.cm 12 NOV 02 12:19:50 pm Converted EIGHTH-TIME. Compiling DEFINE (EIGHTH-TIME NUMBER-OF-EIGHTHS): Byte Compiling Top-Level Form: Byte Compiling Top-Level Form: Byte Compiling Creation Form for #: Converted MAKE-WHITE-FG-NOTES. Compiling DEFINE (MAKE-WHITE-FG-NOTES NOTE): Byte Compiling Top-Level Form: Compiling Creation Form for #: Compiling Creation Form for #: Compiling Creation Form for #: Converted MAKE-WHITE-FG-RHYTHMS. Compiling DEFINE (MAKE-WHITE-FG-RHYTHMS): Byte Compiling Top-Level Form: Converted MAKE-BLACK-FG-NOTES. Compiling DEFUN MAKE-BLACK-FG-NOTES: Byte Compiling Top-Level Form: Compiling Creation Form for #: Converted MAKE-BLACK-FG-RHYTHMS. Compiling DEFUN MAKE-BLACK-FG-RHYTHMS: File: /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.cm In: DEFUN DESORDRE-WOCTAVES (PROCESS WITH PAT = (NEW RANGE :FROM (NEW PVAL :OF MODE-DEGREE) :STEPPING ...) ...) --> LET* FUNCTION BLOCK IF ==> (#) Error: Illegal function call. Byte Compiling Top-Level Form: Compiling Creation Form for #: Converted DESORDRE-WOCTAVES. Compiling DEFUN DESORDRE-WOCTAVES: Compiling Creation Form for #: Compiling Creation Form for #: Compiling Creation Form for #: Byte Compiling Top-Level Form: File: /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.cm In: DEFUN DESORDRE-WOCTAVES (PROCESS WITH DUR AND KEYNUM ...) --> LET* FUNCTION ==> (BLOCK :PROCESS (SETF FG-TIME (NOW) MODE-DEGREE (NEXT NTES) ...) (OUTPUT (NEW MIDI TIME FG-TIME KEYNUM ...)) (OUTPUT (NEW MIDI TIME FG-TIME KEYNUM ...)) ...) Warning: Undefined variable: FUNCALL Warning: This variable is undefined: FUNCALL Compilation unit finished. 1 error 2 warnings /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.x86f written. Compilation finished in 0:00:00. #p"/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/ligeti.x86f" T T * Any suggestions ? I'm getting MIDI files from the first three event calls, so I've commented out their calls to isolate the next problem. I've also commented out the desordre-voices section until I resolve this one (which will probably make fixing desordre-voices easier, I'm guessing). 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 taube at uiuc.edu Tue Nov 12 09:49:04 2002 From: taube at uiuc.edu (Rick Taube) Date: Tue, 12 Nov 2002 11:49:04 -0600 Subject: [CM] debuggin ligeti In-Reply-To: <3DD12EA9.F1709D09@bright.net> References: <200211090146.11633.leh@mail.ru> <200211112150.33005.leh@mail.ru> <1037045725.7393.38.camel@cmn19.Stanford.EDU> <3DD0140A.9C117A87@bright.net> <20021111233230.5cbd0f42.t@fictive.com> <3DD12EA9.F1709D09@bright.net> Message-ID: please dont bother with this example until i have time to get a new tarball out. it cant possibly work correctly in 2.4.0. I DO have it fixed now, and i'll make an update release as soon as i get openmcl going -- its only a matter of days. >Tobias Kunze Brise?o wrote: > >> hm. i managed to load it with the attached diffs applied. however, >> the logic seems to be screwed up (flow is different from my original), >> so i guess that didn't cut it. >> >> re rewrite, the (original cm 1.3) source is at: >> >> http://ccrma-www.stanford.edu/~tkunze/publ/99/desordre/ligeti.html >> >> there is also a midi file, if that's all what you wanted ;) > >Thank you for the diffs, Tobias. I'd already "fixed" things through the >first three event calls, but I'm having trouble with desordre-woctaves >and desordre-voices. I'll send a full report when I've checked out the >errors more closely. > >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 >_______________________________________________ >Cmdist mailing list >Cmdist at ccrma.stanford.edu >http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From dlphilp at bright.net Tue Nov 12 10:04:50 2002 From: dlphilp at bright.net (Dave Phillips) Date: Tue, 12 Nov 2002 13:04:50 -0500 Subject: [CM] debuggin ligeti References: <200211090146.11633.leh@mail.ru> <200211112150.33005.leh@mail.ru> <1037045725.7393.38.camel@cmn19.Stanford.EDU> <3DD0140A.9C117A87@bright.net> <20021111233230.5cbd0f42.t@fictive.com> <3DD12EA9.F1709D09@bright.net> Message-ID: <3DD142C2.18740A8F@bright.net> Hi Rick: Cool, I'll wait for the sign... :) 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 Rick Taube wrote: > > please dont bother with this example until i have time to get a new tarball out. it cant possibly work correctly in 2.4.0. I DO have it fixed now, and i'll make an update release as soon as i get openmcl going -- its only a matter of days. > > >Tobias Kunze Brise?o wrote: > > > >> hm. i managed to load it with the attached diffs applied. however, > >> the logic seems to be screwed up (flow is different from my original), > >> so i guess that didn't cut it. > >> > >> re rewrite, the (original cm 1.3) source is at: > >> > >> http://ccrma-www.stanford.edu/~tkunze/publ/99/desordre/ligeti.html > >> > >> there is also a midi file, if that's all what you wanted ;) > > > >Thank you for the diffs, Tobias. I'd already "fixed" things through the > >first three event calls, but I'm having trouble with desordre-woctaves > >and desordre-voices. I'll send a full report when I've checked out the > >errors more closely. > > > >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 > >_______________________________________________ > >Cmdist mailing list > >Cmdist at ccrma.stanford.edu > >http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From t at fictive.com Wed Nov 13 01:40:44 2002 From: t at fictive.com (Tobias Kunze =?ISO-8859-1?B?QnJpc2Xxbw==?=) Date: Wed, 13 Nov 2002 10:40:44 +0100 Subject: [CM] debuggin ligeti In-Reply-To: <3DD13B97.4978B8C7@bright.net> References: <200211090146.11633.leh@mail.ru> <200211112150.33005.leh@mail.ru> <1037045725.7393.38.camel@cmn19.Stanford.EDU> <3DD0140A.9C117A87@bright.net> <20021111233230.5cbd0f42.t@fictive.com> <3DD12EA9.F1709D09@bright.net> <3DD13B97.4978B8C7@bright.net> Message-ID: <20021113104044.2128817d.t@fictive.com> hm. my diffs were for clisp. don't know what the deal is with cmucl. but watch out: there is more wrong with the code than just the compile. as i said, flow is different from my original (which is why some vars don't get initialized properly) and most importantly, when i ran the 2.3.4 version today, it turned out twice as fast (which could be a problem within cm-2.3.4's timing code, or within ligeti.cm, i don't know). i think it may need a rewrite from the original 1.3 sources, but rick is superbusy and so am i... From bil at ccrma.Stanford.EDU Wed Nov 13 04:29:10 2002 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 13 Nov 2002 04:29:10 -0800 Subject: [CM] snd 6.3 Message-ID: <200211131229.EAA24045@cmn14.stanford.edu> Snd 6.3: many improvements to examp.rb and bess.rb from Michael Scholz many improvements to edit123.scm from Tom Roth open-next-file-in-directory in examp.scm (suggested by Tom Roth) run-compatible chain-dsps in examp.scm (suggested by Cris Ewing) upon-save-yourself and upon-take-focus in snd-motif.scm added edpos arg to find-mark added origin arg to bind-key added peaks-font and bold-peaks-font added -I switch to add a directory to the load path (guile and ruby) Ruby version now sets up a plausible initial value for $: Gtk version cleaned up. xg additions for Gtk+-2.1 added gtk-popup.scm (popup.scm translated to xg module) added gtk-popup-hook for gtk-popup.scm draw-axes and xm-enved.scm now work in Gtk as well as Motif. added snd-gtk.scm (partial snd-motif.scm translation). added gtk-effects.scm (translation of Dave Phillips' new-effects.scm) checked: Guile 1.7 in OSX CLM: added maxf.ins thanks to Juan Reyes removed clmnet.lisp/c CMN: new output-type :Braille with much help from: Michael Scholz, Bill Sack, Stefan Schwandter, Tom Roth, Paul Kirk, Ruven Gottlieb, Anders Vinjar, Juan Reyes From dlphilp at bright.net Wed Nov 13 05:11:45 2002 From: dlphilp at bright.net (Dave Phillips) Date: Wed, 13 Nov 2002 08:11:45 -0500 Subject: [CM] debuggin ligeti References: <200211090146.11633.leh@mail.ru> <200211112150.33005.leh@mail.ru> <1037045725.7393.38.camel@cmn19.Stanford.EDU> <3DD0140A.9C117A87@bright.net> <20021111233230.5cbd0f42.t@fictive.com> <3DD12EA9.F1709D09@bright.net> <3DD13B97.4978B8C7@bright.net> <20021113104044.2128817d.t@fictive.com> Message-ID: <3DD24F91.D8BC019A@bright.net> Tobias Kunze Brise?o wrote: > hm. my diffs were for clisp. don't know what the deal is with > cmucl. but watch out: there is more wrong with the code than > just the compile. as i said, flow is different from my original > (which is why some vars don't get initialized properly) and most > importantly, when i ran the 2.3.4 version today, it turned out > twice as fast (which could be a problem within cm-2.3.4's timing > code, or within ligeti.cm, i don't know). > > i think it may need a rewrite from the original 1.3 sources, but > rick is superbusy and so am i... No problem, thanks for the note. Rick already indicated he'd rather let this one hang for a while until the next CM tarball. I'm just fooling around with it anyway to learn more from code (debugging is always excellent instruction, yes?), but apparently there are problems I'm not likely to repair on my own, so I shall patiently wait for Rick's next release. :) Many thanks for all the help though ! 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 leh at mail.ru Tue Nov 12 12:56:44 2002 From: leh at mail.ru (Valery Beluntsov) Date: Tue, 12 Nov 2002 23:56:44 +0300 Subject: [CM] first steps --- just testing In-Reply-To: <1037045725.7393.38.camel@cmn19.Stanford.EDU> References: <200211112150.33005.leh@mail.ru> <1037045725.7393.38.camel@cmn19.Stanford.EDU> Message-ID: <200211122356.44207.leh@mail.ru> Thank you for your help. Now it's OK with me to use CMN, but I have some more questions: 1. How to make cross-staff groups? 2. How to handle vertical position of lyrics? 3. What is the best method to put lyrics into score (for now I use text- -text- -text --- is it right)? 4. If sometimes I have additional "voice" for two eighths notes --- should I use (onset) to put it? If in 1st measure (e.g. meter is 4/4) 3rd beat is (onset 2), in second measure 4th beat is (onset 7), etc. - it's a bit difficult to calculate onsets - is there some trick to calculate onsets automatically? Thanks in advance, Valery -- ????? ??????????, ??????? From wsack at acsu.buffalo.edu Wed Nov 13 12:56:21 2002 From: wsack at acsu.buffalo.edu (Bill Sack) Date: Wed, 13 Nov 2002 15:56:21 -0500 Subject: [CM] CMN: problem with pedal- across page breaks Message-ID: <3DD2BC75.1080103@acsu.buffalo.edu> hello, i'm scoring a piece now and noticing this problem: if a pedal- -pedal mark is is spread over a page break, the continuation of the mark appears on the source page instead of on the next page where it belongs. is this a known issue? i'm not doing anything fancy with explicit declarations of line- and page-breaks - just letting cmn take care of them automatically. is there anything i can do to fix this (apart from declaring said page-breaks so the pedal marks don't go across pages)? thanks, bill -- _________ Bill Sack wsack at acsu.buffalo.edu ---------------------- From petemoss at petemoss.org Wed Nov 13 14:03:50 2002 From: petemoss at petemoss.org (pete moss) Date: Wed, 13 Nov 2002 14:03:50 -0800 Subject: [CM] probs w/ snd and hammerfall Message-ID: <3DD2CC46.8080300@petemoss.org> is anyone out there using snd with a hammerfall card? i cant get snd to play using hammerfall hardware. i have used snd and alsa drivers from planet-ccrma and my own compiled from source. no matter what combo i use, i always get the same error (below) from snd. any advice? :P [13:41:33] alsa_dump_configuration: status of hw:0,0 hw_params status of hw:0,0 ACCESS: MMAP_NONINTERLEAVED RW_NONINTERLEAVED FORMAT: S32_LE SUBFORMAT: STD SAMPLE_BITS: 32 FRAME_BITS: [320 576] CHANNELS: [10 18] RATE: [44100 96000] PERIOD_TIME: (666 185760) PERIOD_SIZE: [64 8192] PERIOD_BYTES: [2560 589824] PERIODS: 2 BUFFER_TIME: (1333 371520) BUFFER_SIZE: [128 16384] BUFFER_BYTES: [5120 1048576] TICK_TIME: 10000 sw_params status of hw:0,0 start_mode: DATA xrun_mode: STOP tstamp_mode: NONE period_step: 0 sleep_min: 0 avail_min: 0 xfer_align: 0 silence_threshold: 0 silence_size: 0 boundary: 0 [13:41:33] audio configuration not available: alsa_audio_open: hw:0,0: access type RW_INTERLEAVED not available [13:41:33] Caught top level error (this must be a Snd bug; will try to continue): From dlphilp at bright.net Wed Nov 13 14:59:14 2002 From: dlphilp at bright.net (Dave Phillips) Date: Wed, 13 Nov 2002 17:59:14 -0500 Subject: [CM] CMN in CM 2.4 ? Message-ID: <3DD2D942.3428E2B1@bright.net> Greetings: Just to make sure I'm not chasing my own tail: Is CMN output support missing in CM 2.4.0 ? MIDI, CLM, and Csound output seem to be working okay but I'm getting errors ("no such class") when I attempt events output to CMN. 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 nando at ccrma.Stanford.EDU Wed Nov 13 15:31:15 2002 From: nando at ccrma.Stanford.EDU (Fernando Pablo Lopez-Lezcano) Date: 13 Nov 2002 15:31:15 -0800 Subject: [CM] probs w/ snd and hammerfall In-Reply-To: <3DD2CC46.8080300@petemoss.org> References: <3DD2CC46.8080300@petemoss.org> Message-ID: <1037230275.23473.18.camel@cmn37.Stanford.EDU> > is anyone out there using snd with a hammerfall card? > i cant get snd to play using hammerfall hardware. i have used snd and > alsa drivers from planet-ccrma and my own compiled from source. no > matter what combo i use, i always get the same error (below) from snd. > any advice? The current alsa sound driver support for snd cannot handle non-interleaved cards (like the hammerfall). You could work around the problem by using the plughw alsa device instead of the hardware device. You can override snd's choice of device by setting an environment variable: SNDLIB_ALSA_DEVICE="plughw:0" snd Would start snd (under bash) pointing to the plug interface for the first card. The plug interface will do the conversion between interleaved and non-interleaved for you. Beware. Do not start the recorder with the plughw device. A "feature" of alsa makes the plug interface offer unlimited channels and snd will try to use them and create a recorder window that can record several million channels :-) -- Fernando From petemoss at petemoss.org Wed Nov 13 15:50:09 2002 From: petemoss at petemoss.org (pete moss) Date: Wed, 13 Nov 2002 15:50:09 -0800 Subject: [CM] probs w/ snd and hammerfall References: <3DD2CC46.8080300@petemoss.org> <1037230275.23473.18.camel@cmn37.Stanford.EDU> Message-ID: <3DD2E531.70808@petemoss.org> using this SNDLIB* call causes the problem below. can you comment? any idea when snd will support non-interleaved cards? :P Fernando Pablo Lopez-Lezcano wrote: > The current alsa sound driver support for snd cannot handle > non-interleaved cards (like the hammerfall). You could work around the > problem by using the plughw alsa device instead of the hardware device. > You can override snd's choice of device by setting an environment > variable: > > SNDLIB_ALSA_DEVICE="plughw:0" snd > > Would start snd (under bash) pointing to the plug interface for the > first card. The plug interface will do the conversion between > interleaved and non-interleaved for you. ************** snd error [15:47:10] alsa_dump_configuration: status of plughw:0 hw_params status of plughw:0 ACCESS: RW_INTERLEAVED FORMAT: S16_LE SUBFORMAT: STD SAMPLE_BITS: 16 FRAME_BITS: [16 160000] CHANNELS: [1 10000] RATE: (5512 1537538) PERIOD_TIME: (666 185760) PERIOD_SIZE: 1024 PERIOD_BYTES: [2048 20480000] PERIODS: 3 BUFFER_TIME: (1997 557330) BUFFER_SIZE: 3072 BUFFER_BYTES: [6144 61440000] TICK_TIME: 10000 sw_params status of plughw:0 start_mode: DATA xrun_mode: STOP tstamp_mode: NONE period_step: 0 sleep_min: 0 avail_min: 0 xfer_align: 0 silence_threshold: 0 silence_size: 0 boundary: 0 [15:47:10] audio configuration not available: alsa_audio_open: plughw:0: cannot set channels to 2 [15:47:10] Caught top level error (this must be a Snd bug; will try to continue): From juanig at ccrma.Stanford.EDU Wed Nov 13 15:51:04 2002 From: juanig at ccrma.Stanford.EDU (Juan Reyes) Date: 13 Nov 2002 15:51:04 -0800 Subject: [CM] first steps --- just testing In-Reply-To: <200211122356.44207.leh@mail.ru> References: <200211112150.33005.leh@mail.ru> <1037045725.7393.38.camel@cmn19.Stanford.EDU> <200211122356.44207.leh@mail.ru> Message-ID: <1037231464.21522.2.camel@cmn9.Stanford.EDU> I think a good staring point is to look at the various examples inside the distribution. In particular you might find what you are looking for in cmn-ex.lisp. This file has bunch of examples. As far as lyrics take a look at lyrics.lisp. --* Juan On Tue, 2002-11-12 at 12:56, Valery Beluntsov wrote: > Thank you for your help. Now it's OK with me to use CMN, but I have some more > questions: > > 1. How to make cross-staff groups? > > 2. How to handle vertical position of lyrics? > > 3. What is the best method to put lyrics into score (for now I use text- > -text- -text --- is it right)? > > 4. If sometimes I have additional "voice" for two eighths notes --- should I > use (onset) to put it? If in 1st measure (e.g. meter is 4/4) 3rd beat is > (onset 2), in second measure 4th beat is (onset 7), etc. - it's a bit > difficult to calculate onsets - is there some trick to calculate onsets > automatically? > > Thanks in advance, > Valery > > > -- > ????? ??????????, > ??????? > > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From nando at ccrma.Stanford.EDU Wed Nov 13 16:55:05 2002 From: nando at ccrma.Stanford.EDU (Fernando Pablo Lopez-Lezcano) Date: 13 Nov 2002 16:55:05 -0800 Subject: [CM] probs w/ snd and hammerfall In-Reply-To: <3DD2E531.70808@petemoss.org> References: <3DD2CC46.8080300@petemoss.org> <1037230275.23473.18.camel@cmn37.Stanford.EDU> <3DD2E531.70808@petemoss.org> Message-ID: <1037235306.25120.2.camel@cmn37.Stanford.EDU> > using this SNDLIB* call causes the problem below. can you comment? Strange, the plug layer should be able to be opened with two channels. I think I made snd work once with a hammerfall but I don't currently the card only so that I can test. There are a couple of other parameters you could try to tweak: SNDLIB_ALSA_BUFFER_SIZE = size of each buffer in frames SNDLIB_ALSA_BUFFERS = number of buffers > any idea when snd will support non-interleaved cards? Hard to say, I really have to look at the code again (it's been a long time) to see what it would entail. -- Fernando From nando at ccrma.Stanford.EDU Wed Nov 13 18:10:17 2002 From: nando at ccrma.Stanford.EDU (Fernando Pablo Lopez-Lezcano) Date: 13 Nov 2002 18:10:17 -0800 Subject: [CM] probs w/ snd and hammerfall In-Reply-To: <1037235306.25120.2.camel@cmn37.Stanford.EDU> References: <3DD2CC46.8080300@petemoss.org> <1037230275.23473.18.camel@cmn37.Stanford.EDU> <3DD2E531.70808@petemoss.org> <1037235306.25120.2.camel@cmn37.Stanford.EDU> Message-ID: <1037239817.25120.11.camel@cmn37.Stanford.EDU> > > using this SNDLIB* call causes the problem below. can you comment? > > Strange, the plug layer should be able to be opened with two channels. I > think I made snd work once with a hammerfall but I don't currently the > card only so that I can test. If you are still scratching your head and wondering about the meaning of the end of the previous paragraph, so am I. I guess I'm too tired. I was trying to say that I have a hammerfall but it is not online so I cannot test with it :-) -- Fernando From bil at ccrma.Stanford.EDU Thu Nov 14 05:12:59 2002 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 14 Nov 2002 05:12:59 -0800 Subject: [CM] probs w/ snd and hammerfall In-Reply-To: <3DD2CC46.8080300@petemoss.org> References: <3DD2CC46.8080300@petemoss.org> Message-ID: <200211141313.FAA25526@cmn14.stanford.edu> > [13:41:33] Caught top level error (this must be a Snd bug; will try to > continue): I don't know about the Hammerfall problem, but this part of the error message might be badly worded -- the Snd bug here is that I apparently forgot to wrap a "catch" around an error handler somewhere -- I try to clean these up as I notice them. I removed the global catch a few months ago to make error handling in the listener less prone to flooding the listener with repetitive messages, but the down side was that errors could go uncaught -- and in Guile an uncaught throw exits the program(!) -- so there's this backup quasi-catch that complains about a Snd bug. Anyway, whenever anyone sees this message, please send me the details so I can fix it. From taube at uiuc.edu Thu Nov 14 07:17:02 2002 From: taube at uiuc.edu (Rick Taube) Date: Thu, 14 Nov 2002 07:17:02 -0800 Subject: [CM] CMN in CM 2.4 ? References: <3DD2D942.3428E2B1@bright.net> Message-ID: <000701c28bf0$e3466ad0$6b197e82@music.uiuc.edu> Yes I am including it in the next tarball. but it will only work in CL, not Scheme. ----- Original Message ----- From: "Dave Phillips" To: "CM/CLM/Snd mail-list" Sent: Wednesday, November 13, 2002 2:59 PM Subject: [CM] CMN in CM 2.4 ? > Greetings: > > Just to make sure I'm not chasing my own tail: Is CMN output support > missing in CM 2.4.0 ? MIDI, CLM, and Csound output seem to be working > okay but I'm getting errors ("no such class") when I attempt events > output to CMN. > > 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 > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From dlphilp at bright.net Thu Nov 14 05:44:19 2002 From: dlphilp at bright.net (Dave Phillips) Date: Thu, 14 Nov 2002 08:44:19 -0500 Subject: [CM] CMN in CM 2.4 ? References: <3DD2D942.3428E2B1@bright.net> <000701c28bf0$e3466ad0$6b197e82@music.uiuc.edu> Message-ID: <3DD3A8B3.56377D28@bright.net> Rick Taube wrote: > Yes I am including it in the next tarball. but it will only work in CL, not Scheme. Thanks, Rick, I'm looking forward to it. 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 Thu Nov 14 05:53:28 2002 From: dlphilp at bright.net (Dave Phillips) Date: Thu, 14 Nov 2002 08:53:28 -0500 Subject: [CM] small bug in Snd's Gate effect Message-ID: <3DD3AAD8.4EB69F7B@bright.net> Hi Bill: Just a quick note: The Gate effect in contrib/dlp/dp-new-effects.scm will produce an error ("expecting an integer") when first launched. This line: (define omit-silence #f) should be changed to (define omit-silence 0) It should work fine then. There may be a couple other similar instances in other effects, I'll try to track them down and fix 'em. Btw, I'm hoping to put some work into sprucing up the LADSPA effects. Currently they are applied only to whole file or from the cursor position onwards (undocumented "feature"), so I'll try to put them into the same framework as the other effects. Of course time is an issue so I can't promise when I'll get things fixed... but it's on my mind ! ;)... I've also screwed up some of the logic in the Freeverb effect: you need to try launching it twice before it will appear, probably due to some error I made when I first prepared it. I'll try fixing that one too... after I learn Swahili... and rebuild my carburetor blindfolded... and climb Chomalunga... 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: Sun Ra, "Stars Fell On Alabama" From lt at westnet.com Thu Nov 14 19:47:50 2002 From: lt at westnet.com (Larry Troxler) Date: Thu, 14 Nov 2002 22:47:50 -0500 Subject: [CM] CMN in CM 2.3.4? Message-ID: <3DD46E66.634CB473@westnet.com> It seems as if David Phillips is not the only one experimenting with CMN in CM lately. I am trying to make some CMN output in CM 2.3.4 and get this: CONTAINER-STAFF: Can't determine container for #e(22-ins :pan 0.8 :fn 76 :hz 68.29566 :amp 7000 :dur 0.4 :time 0.016110051 :ins 22). That is with the following write-event method: (defmethod write-event ((object 22-ins) (io essential-cmn-file) scoretime) (let ((staff (funcall (slot-value io 'staffer) io object))) (unless staff (error "~S didn't return a staff when called with ~S and ~S." (slot-value io 'staffer) io object)) (unless nil (cmn::add-note-to-staff (io-open io) staff scoretime (sv object dur) (sv object hz))))) Is there some minimum amount of work that needs to be done to get this to work, apart from simply specifying an .eps file as the output destination? Do staff definitions need to somehow be made, for example? Is there some example code available? Larry Troxler From bil at ccrma.Stanford.EDU Fri Nov 15 03:42:16 2002 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 15 Nov 2002 03:42:16 -0800 Subject: [CM] CMN: problem with pedal- across page breaks In-Reply-To: <3DD2BC75.1080103@acsu.buffalo.edu> References: <3DD2BC75.1080103@acsu.buffalo.edu> Message-ID: <200211151142.DAA26862@cmn14.stanford.edu> > i'm scoring a piece now and noticing this problem: if a pedal- -pedal > mark is is spread over a page break, the continuation of the mark > appears on the source page instead of on the next page where it belongs. Right -- pedal.lisp was ignoring page breaks. I added some code to try to fix this. From bil at ccrma.Stanford.EDU Fri Nov 15 03:43:00 2002 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 15 Nov 2002 03:43:00 -0800 Subject: [CM] first steps --- just testing In-Reply-To: <200211122356.44207.leh@mail.ru> References: <200211112150.33005.leh@mail.ru> <1037045725.7393.38.camel@cmn19.Stanford.EDU> <200211122356.44207.leh@mail.ru> Message-ID: <200211151143.DAA26865@cmn14.stanford.edu> > 1. How to make cross-staff groups? groups of what? There's an example of beaming across staves in cmn-ex.lisp under "beaming across multiple percussion clefs". Other things (such as slurs across staves) are handled similarly. > 2. How to handle vertical position of lyrics? The dy message is probably the simplest. There's an example in cmn-ex.lisp under "brace connecting two lines of lyrics". > 3. What is the best method to put lyrics into score (for now I use text- > -text- -text --- is it right)? Yes, or use lyrics.lisp; see also jimmy.cmn. > 4. If sometimes I have additional "voice" for two eighths notes --- should I > use (onset) to put it? If in 1st measure (e.g. meter is 4/4) 3rd beat is > (onset 2), in second measure 4th beat is (onset 7), etc. - it's a bit > difficult to calculate onsets - is there some trick to calculate onsets > automatically? See "lining up notes" in cmn-ex.lisp. This part of cmn is unnecessarily difficult. From taube at uiuc.edu Fri Nov 15 04:41:28 2002 From: taube at uiuc.edu (Rick Taube) Date: Fri, 15 Nov 2002 06:41:28 -0600 Subject: [CM] CMN in CM 2.3.4? In-Reply-To: <3DD46E66.634CB473@westnet.com> References: <3DD46E66.634CB473@westnet.com> Message-ID: >CONTAINER-STAFF: > Can't determine container for #e(22-ins :pan 0.8 :fn 76 :hz 68.29566 >:amp 7000 :dur 0.4 :time 0.016110051 :ins 22). You have to set up some mechanism for determninig which staff a note belongs to. looking at your data it seems as if your ins slot would do the trick. look for a function called channel-staffer (i think) in cmn.lisp. this function does this for midi notes using the "channel" data. THe simplist thing would be to define a function, say ins-staffer that does the exact same thing as channel-staffer but using your ins slot. then specify this as the :staffer value to the cmn file (io "foo.cmn" :staffer #'ins-staffer) you may have to do something about your Hz data too, i cant rememebr. > >Is there some example code available? > of course not! From taube at uiuc.edu Fri Nov 15 05:22:22 2002 From: taube at uiuc.edu (Rick Taube) Date: Fri, 15 Nov 2002 07:22:22 -0600 Subject: [CM] CMN in CM 2.3.4? In-Reply-To: References: <3DD46E66.634CB473@westnet.com> Message-ID: >>CONTAINER-STAFF: >> Can't determine container for #e(22-ins :pan 0.8 :fn 76 :hz 68.29566 >>:amp 7000 :dur 0.4 :time 0.016110051 :ins 22). > I think also that if you change your time values from floating poin values to to ratios in a tempo 60 then cmn may have a better shot at notating rhythm values. but maybe it doesnst matter, cmn is pretty smart From lt at westnet.com Fri Nov 15 19:31:07 2002 From: lt at westnet.com (Larry Troxler) Date: Fri, 15 Nov 2002 22:31:07 -0500 Subject: [CM] CMN in CM 2.3.4? References: <3DD46E66.634CB473@westnet.com> Message-ID: <3DD5BBFB.1E0C8D3B@westnet.com> Rick Taube wrote: > > >CONTAINER-STAFF: > > Can't determine container for #e(22-ins :pan 0.8 :fn 76 :hz 68.29566 > >:amp 7000 :dur 0.4 :time 0.016110051 :ins 22). > > You have to set up some mechanism for determninig which staff a note belongs to. looking at >your data it seems as if your ins slot would do the trick. > look for a function called channel-staffer (i think) in cmn.lisp. > this function does this for midi notes using the "channel" data. > THe simplist thing would be to define a function, say ins-staffer > that does the exact same thing as channel-staffer but using your ins slot. > then specify this as the :staffer value to the cmn file > > (io "foo.cmn" :staffer #'ins-staffer) > Thanks so much. It seems that it was my problem (well my first problem anyway - see below). I got thrown off because the default value for the staffer slot is container-staff and not channel-staffer. Of course since this is csound the instrument number is actually n.xxx, where xxx is the voice number. But this seems to be not a problem because it would only put each voice on a seperate staff, which is probably ok for a first look. Well, now, after making my ins-staffer definition and putting it in the staffer slot; if I try to render something (which renders ok to csound), lisp just hangs up eating CPU and memory. So there is still something I need to do. One thing that comes to mind, is what do I do with events that should not be scored in CMN? For example, my output stream has a number of csound f-statement events, which I would like to be ignored as far as CMN goes. Regards Larry Troxler From taube at uiuc.edu Sat Nov 16 04:10:37 2002 From: taube at uiuc.edu (Rick Taube) Date: Sat, 16 Nov 2002 06:10:37 -0600 Subject: [CM] CMN in CM 2.3.4? In-Reply-To: <3DD5BBFB.1E0C8D3B@westnet.com> References: <3DD46E66.634CB473@westnet.com> <3DD5BBFB.1E0C8D3B@westnet.com> Message-ID: >Well, now, after making my ins-staffer definition and putting it in the >staffer slot; if I try to render something (which renders ok to csound), >lisp just hangs up eating CPU and memory. you will have to trace this to see what/where it is going wrong. the first thing to determine is if it is cm sending stuff to CMN that is causeing the problem or if the problem is happening in cmn processing the data. you might try this: (trace cmn::finish-clm-input) and the do a run if you see cmn::finish-clm-input being called then the problem is happening in cmn code. if not, its happeing on the cm side. once you figures this out, start tracing the data to see if anything looks odd. >So there is still something I need to do. One thing that comes to mind, >is what do I do with events that should not be scored in CMN? i think they wont get sent unless they have a CMN method defined for write-event. >For example, my output stream has a number of csound f-statement events, >which I would like to be ignored as far as CMN goes. > >Regards > >Larry Troxler From lt at westnet.com Sun Nov 17 13:55:43 2002 From: lt at westnet.com (Larry Troxler) Date: Sun, 17 Nov 2002 16:55:43 -0500 Subject: [CM] CMN in CM 2.3.4? References: <3DD46E66.634CB473@westnet.com> Message-ID: <3DD8105F.73830C88@westnet.com> Some progress here with getting CM-2.3.4 and CMN running. I'd like to mention a some things I found: My multipage manuscripts were failing in cmn::paged-file-names because the function was attempting to take the length of original-name, which is a pathname and not a string. I don't know if this is supposed to be allowed by the standard, but on cmucl it fails. I worked around this by changing the open-io method in CM (the one for essential-cmn-file) to pass a string instead of a pathname. Next, because I am using csound and not midi, the "cmn" class which I found is used to add arbitrary things to the cmn score, wasn't useable and I had to make a paralell class which had an ins slot instead of a channel slot. Finally, some write methods in CM are defined only for cmn-file and not for essential-cmn-file, namely the cmn write method and the "after" method that does the marker processing. I don't understand why these can not be defined for essential-cmn-file instead so that they will work for direct eps rendering and not only when generating cmn files. In fact in my replacement cmn class, I defined my write method on essential-cmn-file and everything seems to work. That's all for now. Larry Troxler From leh at mail.ru Sun Nov 17 14:20:06 2002 From: leh at mail.ru (Valery Beluntsov) Date: Mon, 18 Nov 2002 01:20:06 +0300 Subject: [CM] bug report and question In-Reply-To: References: <3DD46E66.634CB473@westnet.com> <3DD5BBFB.1E0C8D3B@westnet.com> Message-ID: <200211180120.06607.leh@mail.ru> Dear friends, I noticed a kind of bug in CMN: when I use something like (a4 e (text_ "be" (dy -0.35)) no-beam) (b4 e (_text_ "ne")) ;;; there is a ;;;page break inserted by CMN (c5 q (_text_ "di" (dy -0.45))) (c5 e (_text "ctus")) and there is a page break inside a word, the ending of word is set to first page, not to the second. Is it a bug? Or I do something wrong? One thing more --- I noticed that sometimes CMN begins to set very strange line-breaks (between 7/8 and 1/8 in 4/4 measure etc.), the truth is in this piece there are many many many meter changes. Is there a feature like "no-line-mark" to tell to cmn that line break is prohibited here? And I have a question now --- why cmn does not show cautionary time-signature changes (at the and of line if change occurs at the beginning of next line)? Is there a way to turn this on? Thanks in advance, Valery From lt at westnet.com Sun Nov 17 17:23:21 2002 From: lt at westnet.com (Larry Troxler) Date: Sun, 17 Nov 2002 20:23:21 -0500 Subject: [CM] Let's hear from CM 1.x users(?) Message-ID: <3DD84109.56DE22AA@westnet.com> Is anyone on this list still using CM 1.x (the version with Stella)? After working with the latest version, and realizing how much time i've spent trying to re-implement things like the linked-to pattern, and stella; I've had a thought to try to get this old version working again, since it seems to me to be the best CM version as far as features go. Aside from that, this version has by far the best documentation of all the CM versions. I would especially like to hear from anyone who got this working on Cmucl on Linux (my current platform). Well, this is just a poll I suppose. Who here is using the old CM, and on what platforms is this still working? Larry Troxler From bil at ccrma.Stanford.EDU Mon Nov 18 03:49:20 2002 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 18 Nov 2002 03:49:20 -0800 Subject: [CM] probs w/ snd and hammerfall Message-ID: <200211181149.DAA01151@cmn14.stanford.edu> > Do not start the recorder with the plughw device. A "feature" of > alsa makes the plug interface offer unlimited channels and snd will try > to use them and create a recorder window that can record several million > channels :-) This should be fixed now -- in and out chans max out at 32. My original idea for this dialog was that every audio data line and mixer control would be active and displayed; this way the recorder could be used for tracing signals and other kinds of trouble shooting, as well as replace the highly unintuitive mixer control programs that various systems offer. But audio hardware has out-grown the original interface, and it's not obvious to me at the moment what the new "right thing" is. From taube at uiuc.edu Mon Nov 18 07:20:24 2002 From: taube at uiuc.edu (Rick Taube) Date: Mon, 18 Nov 2002 09:20:24 -0600 Subject: [CM] Let's hear from CM 1.x users(?) In-Reply-To: <3DD84109.56DE22AA@westnet.com> References: <3DD84109.56DE22AA@westnet.com> Message-ID: >After working with the latest version, and realizing how much time i've >spent trying to re-implement things like the linked-to pattern, and >stella; I've had a thought to try to get this old version working again, id be interested in learning the full list of things you are missing -- ive tried to support every feature that wasn't a total hack in the newr versions while also trying to make the system feel more like a natual extension to a language rather than some oddity with its own rules. for example i think you can get the same effect as the linked-to feature you want just by using a transposer object and a 'pval' pattern value. pval allows you to stick an arbitrary lisp expression inside a pattern and the pattern will return its evaluated value. the function 'pattern-value' returns the last value that was read from a pattern. so (pval (pattern-value x)) inside a pattern will evaluate to the last value of the pattern in the 'x' variable. here is linked to, i think: > (new random :notes '(e1 f g a b c2 d) :name 'bass-line)) # > (next #!bass-line) e1 > (define x (new transposer :of (new heap :of '((28 31 35 36) (29 33 36 38) (28 31 35 38) (29 33 36 40) (29 31 35 38) (31 33 36 40) (29 33 35 38))) :on (pval (pattern-value #!bass-line)))) > (next x) (a3 b3 ef4 fs4) > (next x) (af3 b3 ef4 fs4) From t.anders at qub.ac.uk Mon Nov 18 08:19:23 2002 From: t.anders at qub.ac.uk (Torsten Anders) Date: 18 Nov 2002 16:19:23 +0000 Subject: [CM] Let's hear from CM 1.x users(?) In-Reply-To: References: <3DD84109.56DE22AA@westnet.com> Message-ID: <1037636363.1461.121.camel@chewa> Dear Rick, For my compositional work I still use the old CM 1. I mainly use its score data structure. I generate the score in some non-CM way, but use CM to generate output into various formats. In CM 2 I miss parts of this score data structure. Especially, I miss that containers determine the timing order of their elements in different ways (as once containers called 'thread' and 'merge'). The new container type 'seq' is similar to 'merge', something similar to 'thread' is missing (is it?). I know I could mimic a thread by specifying offset times, but I prefer the abstraction of a thread. Because I mainly generate a score using own functions (i.e. I would probably not use the 'process' macro of CM 2), I also miss some functions of the old API in CM 2. I did not check that carefully, but I did not found functions as add-object, object-position, print-object etc. Anyway, perhaps I want to use CM in a way it is not mainly intended for, namely just as a toolbox to develop my own programs. So I only wrote this down, because you indirectly asked the list something like this. Kind regards, Torsten On Mon, 2002-11-18 at 15:20, Rick Taube wrote: > >After working with the latest version, and realizing how much time i've > >spent trying to re-implement things like the linked-to pattern, and > >stella; I've had a thought to try to get this old version working again, > > id be interested in learning the full list of things you are missing -- ive tried to support every feature that wasn't a total hack in the newr versions while also trying to make the system feel more like a natual extension to a language rather than some oddity with its own rules. -- Torsten Anders Sonic Arts Research Centre Queens University Belfast Tel: +44 28 9027 4831 From msimoni at umich.edu Mon Nov 18 08:55:22 2002 From: msimoni at umich.edu (Mary Simoni) Date: Mon, 18 Nov 2002 11:55:22 -0500 (EST) Subject: [CM] Let's hear from CM 1.x users(?) In-Reply-To: <3DD84109.56DE22AA@westnet.com> Message-ID: Hello all, I'll chime in. . . I prefer CM 1.x. I have rewritten a sizable chunk of cm1.4 for cm2.x and after spending a great deal of time, have decided to abandon it. I will probably end up using MAX/MSP for a course in algorithmic composition. Granted, MAX/MSP has its own limitations :-( cm2.x was released just as I finished a book in cm1.4. The book was to be published by the MIT Press. I've transferred the book contract to the University of Michigan as an e-book which should be released early 2003. Retroactively yours, Mary On Sun, 17 Nov 2002, Larry Troxler wrote: > Is anyone on this list still using CM 1.x (the version with Stella)? > > After working with the latest version, and realizing how much time i've > spent trying to re-implement things like the linked-to pattern, and > stella; I've had a thought to try to get this old version working again, > since it seems to me to be the best CM version as far as features go. > Aside from that, this version has by far the best documentation of all > the CM versions. > > I would especially like to hear from anyone who got this working on > Cmucl on Linux (my current platform). > > Well, this is just a poll I suppose. Who here is using the old CM, and > on what platforms is this still working? > > Larry Troxler > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From taube at uiuc.edu Mon Nov 18 09:43:53 2002 From: taube at uiuc.edu (Rick Taube) Date: Mon, 18 Nov 2002 11:43:53 -0600 Subject: [CM] Let's hear from CM 1.x users(?) In-Reply-To: <1037636363.1461.121.camel@chewa> References: <3DD84109.56DE22AA@westnet.com> <1037636363.1461.121.camel@chewa> Message-ID: >different ways (as once containers called 'thread' and 'merge'). The new >container type 'seq' is similar to 'merge', something similar to >'thread' is missing (is it?). I know I could mimic a thread by >specifying offset times, but I prefer the abstraction of a thread. i think i could add thread back in and its probably worth the while to do it. >functions of the old API in CM 2. I did not check that carefully, but I >did not found functions as add-object, object-position, print-object no, these are still there: subobjects add-object insert-object append-abject remove-object list-subobjects there is the additional advantage in the newer version that you can use all the lisp sequencing fucntions directly on the slot value, that is, the subobjects are now just a regular lisp list of data. this wasnt the case in cm1 From t at fictive.com Tue Nov 19 01:49:38 2002 From: t at fictive.com (Tobias Kunze =?ISO-8859-1?B?QnJpc2Xxbw==?=) Date: Tue, 19 Nov 2002 10:49:38 +0100 Subject: [CM] Let's hear from CM 1.x users(?) In-Reply-To: <3DD84109.56DE22AA@westnet.com> References: <3DD84109.56DE22AA@westnet.com> Message-ID: <20021119104938.28abd2a1.t@fictive.com> i personally prefer version 2--IMO it's cleaner and as rick said with fewer hacks. but i also know full well that i won't ever port old code to it. not only because of the drudgery of the work, but because it is important to me to get exactly the same output. so i guess i really miss only one thing: a language switch. i'd like to call cm with, say, "-language 1.3". Or, even better, a (with-language-version ("1.3") ...) of course, this would require that old implementations were maintained. i keep pretty much all versions on disk, fixing stuff as needed for myself. From bil at ccrma.Stanford.EDU Tue Nov 19 02:57:27 2002 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 19 Nov 2002 02:57:27 -0800 Subject: [CM] bug report and question In-Reply-To: <200211180120.06607.leh@mail.ru> References: <3DD46E66.634CB473@westnet.com> <3DD5BBFB.1E0C8D3B@westnet.com> <200211180120.06607.leh@mail.ru> Message-ID: <200211191057.CAA02520@cmn14.stanford.edu> > (a4 e (text_ "be" (dy -0.35)) no-beam) (b4 e (_text_ "ne")) ;;; there is a > ;;;page break inserted by CMN > (c5 q (_text_ "di" (dy -0.45))) (c5 e (_text "ctus")) > and there is a page break inside a word, the ending of word is set to first > page, not to the second. Is it a bug? Or I do something wrong? It's a bug -- I'll add it to my TODO list. > Is there a feature like > "no-line-mark" to tell to cmn that line break is prohibited here? You can set automatic-line-breaks to nil, but then every line-break is up to you. The page-break mechanism looks for existing line breaks and changes those to page breaks that come at page boundaries. You can set all-output-in-one-file to t to turn this off. It might work to set line breaks explicitly in the bad spot -- it's not impossible that CMN will accept them rather than make its own. > And I have a question now --- why cmn does not show cautionary time-signature > changes (at the and of line if change occurs at the beginning of next line)? Because no-one has written the code, I guess. From dlphilp at bright.net Tue Nov 19 09:59:45 2002 From: dlphilp at bright.net (Dave Phillips) Date: Tue, 19 Nov 2002 12:59:45 -0500 Subject: [CM] [OT] Linux Music & Sound Software site updated Message-ID: <3DDA7C11.13F32832@bright.net> Greetings: As of November 19 2002 the Linux Music & Sound Applications pages have been updated. This site contains more links to Linux audio, MIDI, and DSP sites than you can shake a stick at (== a lot), making it the most comprehensive listing of its kind on the Internet. The site may be reached here: http://sound.condorow.net (USA) Here: http://linuxsound.at (Europe) Here: http://linuxsound.ymo.org (Japan) (As aways, the Japanese site will not update until midnight tonight.) 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: New London Consort, "Veritas veritatum" (Carmina Burana) From lt at westnet.com Tue Nov 19 18:01:17 2002 From: lt at westnet.com (Larry Troxler) Date: Tue, 19 Nov 2002 21:01:17 -0500 Subject: [CM] Let's hear from CM 1.x users(?) References: <3DD84109.56DE22AA@westnet.com> Message-ID: <3DDAECED.F440F77B@westnet.com> Rick Taube wrote: > > >After working with the latest version, and realizing how much time i've > >spent trying to re-implement things like the linked-to pattern, and > >stella; I've had a thought to try to get this old version working again, > > id be interested in learning the full list of things you are missing -- ive tried to support every feature that wasn't a total hack in the newr versions while also trying to make the system feel more like a natual extension to a language rather than some oddity with its own rules. > > for example i think you can get the same effect as the linked-to feature you want just by using a transposer object and a 'pval' pattern value. Uh-oh, I'm very sorry for this, but in fact I mispoke. It wasn't linked-to that I miss but def-multipleitem! Sorry to make you think about the linked-to feature this much! Apart from this, well, the main thing obviously is the absence of Stella, and the "archive" function. However I realise that CM seems to be geared toward a pure algorithmic style of composition; hence my longing for those sequencer-type features might be out of place. Nevertheless, I did find Stella very usefull and was able to use it as a sort of sequencer, with _very_ powerfull algorithmic capalities. Another feature that I remember seeing is that I thought you could attach a seperate lisp random state to every pattern. But now that I'm looking back on the CM 1.x documentation, I can't find such a thing, so maybe I was just dreaming (!?) Larry Troxler From renueden at earthlink.net Tue Nov 19 18:43:28 2002 From: renueden at earthlink.net (Ken) Date: Tue, 19 Nov 2002 18:43:28 -0800 Subject: Fw: [CM] Let's hear from CM 1.x users(?) Message-ID: <006001c2903e$9c896fa0$a20477d8@KenLaptop> > > Apart from this, well, the main thing obviously is the absence of > > Stella, and the "archive" function. However I realise that CM seems to > > be geared toward a pure algorithmic style of composition; hence my > > longing for those sequencer-type features might be out of place. > > > > Nevertheless, I did find Stella very usefull and was able to use it as a > > sort of sequencer, with _very_ powerfull algorithmic capalities. > > > > I long for this too. I want sequencer type interaction with the ability to > combine it with algo processes. It would be nice to see CM be able to do > "everything" compositionally like Csound for synthesis/audio, these are > truly super applications. Perhaps this is possible but my attempts so far > have been futile, I can't quite get the hang of it. When time becomes > available, I will do more work in CM. I would like this to be my main > compositional tool preferably with a graphical interface especially with the > hooks into Snd, CMN etc.. > > Ken > From taube at uiuc.edu Wed Nov 20 04:07:43 2002 From: taube at uiuc.edu (Rick Taube) Date: Wed, 20 Nov 2002 06:07:43 -0600 Subject: [CM] Let's hear from CM 1.x users(?) In-Reply-To: <3DDAECED.F440F77B@westnet.com> References: <3DD84109.56DE22AA@westnet.com> <3DDAECED.F440F77B@westnet.com> Message-ID: >Uh-oh, I'm very sorry for this, but in fact I mispoke. It wasn't >linked-to that I miss but def-multipleitem! Sorry to make you think >about the linked-to feature this much! i will add back define-multiple-item when i get a chance. >Apart from this, well, the main thing obviously is the absence of >Stella, and the "archive" function. However I realise that CM seems to >be geared toward a pure algorithmic style of composition; hence my >longing for those sequencer-type features might be out of place. 'archive' is still there. its called save-object. all of the container mapping functions are steill there too. >Nevertheless, I did find Stella very usefull and was able to use it as a >sort of sequencer, with _very_ powerfull algorithmic capalities. yes, but plotter's 'algoritmic' editing is much nicer still -- its basically a sequencer for any type of object and has nice algo editiing capabilities. the main reasons i made a cm 2.4.0 was to get into guile so i can build a plotter-like interface for CM on something other than the mac. so with cm-2.4-0 i will be able to do it plus let people run in cl and scheme at the same time. scheme is nice in its own right because its much easer to teach. >Another feature that I remember seeing is that I thought you could >attach a seperate lisp random state to every pattern. But now that I'm >looking back on the CM 1.x documentation, I can't find such a thing, so >maybe I was just dreaming (!?) sheesh, you can still to that in cm-2.4.0! heaps and random have a :state initarg. From taube at uiuc.edu Wed Nov 20 05:44:42 2002 From: taube at uiuc.edu (Rick Taube) Date: Wed, 20 Nov 2002 07:44:42 -0600 Subject: [CM] new chapters... Message-ID: I've got the next four chapters done. thanks to everyone that has been sending me typo fixes and even style suggestions. ive editied the earlier chapters to refect all the changes im aware of. im sure though that ive introduced others :/ i have also added another function definition to the Musical Math chapter. the new chapters are 9. The Representation of Musical Data http://www-camil.music.uiuc.edu/faculty/taube/nm/nm_09.html 10. Etudes op. 4: Score Generation http://www-camil.music.uiuc.edu/faculty/taube/nm/nm_10.html 11. Algorithms and Processes http://www-camil.music.uiuc.edu/faculty/taube/nm/nm_11.html 12. Etudes op.5: Steve Reich's Piano Phase http://www-camil.music.uiuc.edu/faculty/taube/nm/nm_12.html all of the examples should work as is EXCEPT for the 'pwd' function discussed in chapter 10. i will add this to a new tarball for cm-2.4.0 in the next day or so. The top also has a new Table of Contents: http://www-camil.music.uiuc.edu/faculty/taube/nm/nm_title.html ive put a tarball at ccrma: ftp://ftp-ccrma.stanford.edu/pub/Lisp/cm/nm.tar.gz -rick From dlphilp at bright.net Wed Nov 20 07:41:47 2002 From: dlphilp at bright.net (Dave Phillips) Date: Wed, 20 Nov 2002 10:41:47 -0500 Subject: Fw: [CM] Let's hear from CM 1.x users(?) References: <006001c2903e$9c896fa0$a20477d8@KenLaptop> Message-ID: <3DDBAD3B.6DCD8091@bright.net> Ken wrote: > ... I want sequencer type interaction with the ability to > combine it with algo processes. It would be nice to see CM be able to do > "everything" compositionally like Csound for synthesis/audio, these are > truly super applications. Perhaps this is possible but my attempts so far > have been futile, I can't quite get the hang of it. When time becomes > available, I will do more work in CM. I would like this to be my main > compositional tool preferably with a graphical interface especially with > the hooks into Snd, CMN etc.. Yes ! This is my particular Holy Grail wrt the CLM/CM/CMN/Snd suite. I'd love to have such a tightly integrated environment as Ken suggests, and I think that's how things are proceeding, yes ? However, patience is required: it would be great to see the various GUI stuff for CM available for Linux too, but I think Rick's rather overwhelmed these days. Ach, if only I had another lifetime, then I could learn Gtk and Guile/Gtk well enough to attempt the ports myself. Alas, I'm still struggling to find the time to add new things to Snd. But I think things will get there, it's all just a matter of time and effort... (Btw, do any of you remember what it was like to have spare time ? I've completely forgotten... ;) 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 taube at uiuc.edu Wed Nov 20 08:05:10 2002 From: taube at uiuc.edu (Rick Taube) Date: Wed, 20 Nov 2002 10:05:10 -0600 Subject: Fw: [CM] Let's hear from CM 1.x users(?) Message-ID: > ... I want sequencer type interaction with the ability to > combine it with algo processes. It would be nice to see CM be able to do > "everything" compositionally like Csound for synthesis/audio, these are this is what plotter does and i _will_ get it going in guile/linux. "points" in a plotter display are your instnaces. you specify what slots you want to assign to/upto 5 "dimensions" of interest (x y widht height color) algos can generate to a whole plot or a portion of a plot, insert, replace, etc. there is "algorithmic" selecting and editing as well. >love to have such a tightly integrated environment as Ken suggests, and >I think that's how things are proceeding, yes ? yes, if by "proceeding" you mean "at the rate of a snail". but its is the very next thing on my list once im back in coding mode. i am totally swamped until the end of december. From t at fictive.com Wed Nov 20 08:08:19 2002 From: t at fictive.com (Tobias Kunze =?ISO-8859-1?B?QnJpc2Xxbw==?=) Date: Wed, 20 Nov 2002 17:08:19 +0100 Subject: [CM] new chapters... In-Reply-To: References: Message-ID: <20021120170819.1ad99d1c.t@fictive.com> quick notes: - ghosts: - seem fine, but note that list-ref is not defined; it appears to be elt, but it's not defined in the lisp version - maybe a stretch factor of less than 2 would be better, i.e., for ahead = (* here 1.5) ... and sprout ... at (* ahead 1.5) or so then there is less silence.. - html: - i'd add an "up" link next to the previous and next chapter links - the text is all in italics at the end of ch 11 - i'd add pre-rendered midi (and maybe score) files, for convenience - i think html should have more links, that is when you refer to some function, a link should take you to the definition of it, sort of like an index would do From dlphilp at bright.net Wed Nov 20 08:47:33 2002 From: dlphilp at bright.net (Dave Phillips) Date: Wed, 20 Nov 2002 11:47:33 -0500 Subject: Fw: [CM] Let's hear from CM 1.x users(?) References: Message-ID: <3DDBBCA5.6B961AB8@bright.net> Rick Taube wrote: > > ... I want sequencer type interaction with the ability to > > combine it with algo processes. It would be nice to see CM be able to do > > "everything" compositionally like Csound for synthesis/audio, these are > > this is what plotter does and i _will_ get it going in guile/linux. "points" in a plotter display are your instnaces. you > specify what slots you want to assign to/upto 5 "dimensions" of interest (x y widht height color) algos can generate to a > whole plot or a portion of a plot, insert, replace, etc. there is "algorithmic" selecting and editing as well. > > >love to have such a tightly integrated environment as Ken suggests, and > >I think that's how things are proceeding, yes ? > > yes, if by "proceeding" you mean "at the rate of a snail". but its is the very next thing on my list once im back in coding > mode. i am totally swamped until the end of december. No fear, I understand your situation completely. As Ken wrote, we are amazed at all the work you guys are able to get done with the time you have. The fact that your work is freely available just raises our respect another order of magnitude. :) 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 nando at ccrma.Stanford.EDU Wed Nov 20 10:34:58 2002 From: nando at ccrma.Stanford.EDU (Fernando Pablo Lopez-Lezcano) Date: 20 Nov 2002 10:34:58 -0800 Subject: Fw: [CM] Let's hear from CM 1.x users(?) In-Reply-To: <3DDBAD3B.6DCD8091@bright.net> References: <006001c2903e$9c896fa0$a20477d8@KenLaptop> <3DDBAD3B.6DCD8091@bright.net> Message-ID: <1037817299.20874.14.camel@cmn37.Stanford.EDU> > I think that's how things are proceeding, yes ? However, patience is > required: it would be great to see the various GUI stuff for CM > available for Linux too, but I think Rick's rather overwhelmed these > days. Ach, if only I had another lifetime, then I could learn Gtk and > Guile/Gtk well enough to attempt the ports myself. There is also a binding from common lisp (cmucl) to gtk, yet another option for porting over to linux. I have not used common music a lot (I tend to just write lisp code, I do use item streams), but I find the current incarnation more usable than the older stella. It is closer to being just lisp and I like that. From dlphilp at bright.net Wed Nov 20 10:56:06 2002 From: dlphilp at bright.net (Dave Phillips) Date: Wed, 20 Nov 2002 13:56:06 -0500 Subject: Fw: [CM] Let's hear from CM 1.x users(?) References: <006001c2903e$9c896fa0$a20477d8@KenLaptop> <3DDBAD3B.6DCD8091@bright.net> <1037817299.20874.14.camel@cmn37.Stanford.EDU> Message-ID: <3DDBDAC6.2C6D3DC3@bright.net> Fernando Pablo Lopez-Lezcano wrote: > There is also a binding from common lisp (cmucl) to gtk, yet another > option for porting over to linux. Definitely good news ! > I have not used common music a lot (I tend to just write lisp code, I do > use item streams), but I find the current incarnation more usable than > the older stella. It is closer to being just lisp and I like that. I'm really enjoying it too. Rick's NM texts are helping me understand it better, and I'm looking forward to the next version (I'd like to use it with CMN). > > (Btw, do any of you remember what it was like to have spare time ? > > I've completely forgotten... ;) > > What is that? > > I tried Googling for "spare time" and I could not find anything really > relevant (things like "how to own the internet in your spare time" or > "let your pc find aliens in its spare time" - it would seem the > expression is somehow related to pcs and the internet :-) LOL! 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 leh at mail.ru Wed Nov 20 13:15:27 2002 From: leh at mail.ru (Valery Beluntsov) Date: Thu, 21 Nov 2002 00:15:27 +0300 Subject: [CM] How to use cyrillic symbols in CMN? In-Reply-To: <3DDBDAC6.2C6D3DC3@bright.net> References: <006001c2903e$9c896fa0$a20477d8@KenLaptop> <1037817299.20874.14.camel@cmn37.Stanford.EDU> <3DDBDAC6.2C6D3DC3@bright.net> Message-ID: <200211210015.27642.leh@mail.ru> Hi, there is one strange thing. When I tried to use cyrillic symbols in (text "?.????????"), I got in output file question marks instead. ("?.????????"). How to get real cyrillic symbols (or other non-US symbols) in text in CMN? Thancks, Valery -- ????? ??????????, ??????? From bil at ccrma.Stanford.EDU Thu Nov 21 04:30:48 2002 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 21 Nov 2002 04:30:48 -0800 Subject: [CM] How to use cyrillic symbols in CMN? In-Reply-To: <200211210015.27642.leh@mail.ru> References: <006001c2903e$9c896fa0$a20477d8@KenLaptop> <1037817299.20874.14.camel@cmn37.Stanford.EDU> <3DDBDAC6.2C6D3DC3@bright.net> <200211210015.27642.leh@mail.ru> Message-ID: <200211211230.EAA05564@cmn14.stanford.edu> > How to get real cyrillic symbols (or other non-US symbols) in text in CMN? I tried this: (cmn staff treble (c4 q (text "middle-c" (dx 1.0) (dy 2.0) (font-name "Cyrillic") (font-size 40)))) and got "middle-c" in a cyrillic font -- the font name you use needs to be one that Postscript can find. I don't know how to find a list of such font names, nor where the ccrma cyrillic font came from. From bareitan at actcom.co.il Thu Nov 21 04:51:30 2002 From: bareitan at actcom.co.il (Avi Bar-Eitan) Date: Thu, 21 Nov 2002 14:51:30 +0200 Subject: [CM] FW: How to "get out" from the subscribing list? Message-ID: <000501c2915c$b777dda0$3c1673c0@music> -------------- next part -------------- An HTML attachment was scrubbed... URL: From lt at westnet.com Thu Nov 21 16:36:06 2002 From: lt at westnet.com (Larry Troxler) Date: Thu, 21 Nov 2002 19:36:06 -0500 Subject: [CM] Let's hear from CM 1.x users(?) References: <3DD84109.56DE22AA@westnet.com> <3DDAECED.F440F77B@westnet.com> Message-ID: <3DDD7BF6.10DD2935@westnet.com> Rick Taube wrote: > 'archive' is still there. its called save-object. all of the container mapping functions are still there too. Ok - found it - thanks! And sorry for speaking in error. > > >Nevertheless, I did find Stella very usefull and was able to use it as a > >sort of sequencer, with _very_ powerfull algorithmic capalities. > > yes, but plotter's 'algoritmic' editing is much nicer still -- its basically a sequencer for any type of object and has nice algo editiing capabilities. the main reasons i made a cm 2.4.0 was to get into guile so i can build a plotter-like interface for CM on something other than the mac. so with cm-2.4-0 i will be able to do it plus let people run in cl and scheme at the same time. scheme is nice in its own right because its much easer to teach. I haven't looked at the description of plotter much, since I can't run it yet (Linux), but I suspect that once it runs on Linux, I won't miss Stella much. Yes like you say the container mapping functions are still there, but what I miss is both the interactiveness of Stella (where you can select a current container for instance), and the terseness of the editing commands. > > >Another feature that I remember seeing is that I thought you could > >attach a seperate lisp random state to every pattern. But now that I'm > >looking back on the CM 1.x documentation, I can't find such a thing, so > >maybe I was just dreaming (!?) > > sheesh, you can still to that in cm-2.4.0! heaps and random have a :state initarg. Mea culpa! I don't remember why, but at some point I came to the erroneous conclusion that this slot wasn't there anymore! But it's there, plain as day in the source and the documentation. Larry Troxler From mjkoskin at koti.soon.fi Fri Nov 22 02:43:22 2002 From: mjkoskin at koti.soon.fi (Matti Koskinen) Date: Fri, 22 Nov 2002 12:43:22 +0200 Subject: [CM] alsa and snd-6 Message-ID: <3DDE0A4A.90907@koti.soon.fi> hi, I'm getting lots of buffer underruns in snd with alsa-0.9rc3, both when recording and playing. This must be an alsa issue, because csound also gives buffer underruns when playing directly to devaudio. snd also sometimes segfaults after playing, when first recorded. Now I changed snd to use oss, and this seems to work correctly. I've downloaded the alsa-0.9rc6, but haven't installed it yet. Has anybody else encountered buffer underruns with alsa and does installing alsa-0.9rc6 do any help? thanks -matti From bil at ccrma.Stanford.EDU Fri Nov 22 03:45:09 2002 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 22 Nov 2002 03:45:09 -0800 Subject: [CM] How to use cyrillic symbols in CMN? In-Reply-To: <200211210015.27642.leh@mail.ru> References: <006001c2903e$9c896fa0$a20477d8@KenLaptop> <1037817299.20874.14.camel@cmn37.Stanford.EDU> <3DDBDAC6.2C6D3DC3@bright.net> <200211210015.27642.leh@mail.ru> Message-ID: <200211221145.DAA06924@cmn14.stanford.edu> To follow up the previous note, In Redhat 8.0 (linux), the ghostscript font list can be found in Fontmap.GS -- in my case the full pathname is /usr/share/ghostscript/7.05/lib/Fontmap.GS. In that file, under Cyrillic is: % Cyrillic fonts. The character names are inappropriate, % and the encoding is probably not related to any known standard. /Shareware-Cyrillic-Regular (fcyr.gsf) ; /Shareware-Cyrillic-Italic (fcyri.gsf) ; % Aliases /Cyrillic /Cyrillic-Regular ; /Cyrillic-Regular /Shareware-Cyrillic-Regular ; /Cyrillic-Italic /Shareware-Cyrillic-Italic ; and the ghostscript documentation mentions: ftp://ctan.tug.org/tex-archive/fonts/cyrillic/cmcyr/ ftp://ctan.tug.org/tex-archive/fonts/cyrillic/ From taube at uiuc.edu Fri Nov 22 07:30:55 2002 From: taube at uiuc.edu (Rick Taube) Date: Fri, 22 Nov 2002 09:30:55 -0600 Subject: [CM] new cm-2.4.0 tarball Message-ID: Ive updated the cm-2.4.0.tar.gz file at CCRMA with 99% of functionality for the release. the only thing still missing is importing, ill try to add that soon. In this new archive CLM2 audio and CMN files are back for Common Lisp (not scheme) THe CMN stff has changed -- I've tried to make it easer to work with (no staffer functions, for example). Basically if you want to display anything in CMN you write a little method on 'object->cmn'. there is already one dwefined for midi -- see the CMN example in intro.cm for details. ill tru to document things in the next few weeks. If you use CMN i would be grateful if you would try it out and let me know if/how it could be improved. the tarball is at ftp://ftp-ccrma.stanford.edu/pub/Lisp/cm/sources/cm-2.4.0.tar.gz --------------------------------------------------------------------------- Features and bug fixes for CM 2.4.0: o ported CM to Open MCL/OSX o CMN supported again in Common Lisp. I think ive made it much easier to use. See example in intro.cmn for more info. Please send me feedback on this new method if you use CMN! o CLM2/audio supported again in Common Lisp CM. Ill add it scheme next. o CM now loads a scheme compatibilty file into Common Lisp unless you tell it not to. To block scheme symbols from being defined in the Common Music package do (push :no-scheme *features*) before you load cm.lisp o File versioning now supported by file type. To turn file versioning on/off you call the appropriate function: (set-midi-file-versions! #t) (set-clm-file-versions! #t) (set-audio-file-versions! #t) (set-sco-file-versions! #t) and so on. o Changed CD to behave like Linux CD -- calling CD without an arg now puts you in your home directory. This is incompatible with the last release -- sorry! o Added PWD function to print current working directory. o Added QUIT and EXIT functions to Common Music package. o Changed #i instance printing to show slot names rather than keyword initializations. o Added class for easy subclassing. o Fixed nasty while/until bug in process. o Fixed multiple transposer bugs. o Fixed multiple range bugs. o Ligeti example working. o Includes a nice cm script for clisp/Linux that Tobias Kunze wrote. The script even installs if it has to! From dlphilp at bright.net Fri Nov 22 09:16:41 2002 From: dlphilp at bright.net (Dave Phillips) Date: Fri, 22 Nov 2002 12:16:41 -0500 Subject: [CM] alsa and snd-6 References: <3DDE0A4A.90907@koti.soon.fi> Message-ID: <3DDE6679.5CA2AB1A@bright.net> Matti Koskinen wrote: > I'm getting lots of buffer underruns in snd with alsa-0.9rc3, both when > recording and playing. This must be an alsa issue, because csound also > gives buffer underruns when playing directly to devaudio. snd also > sometimes segfaults after playing, when first recorded. Now I changed > snd to use oss, and this seems to work correctly. I've downloaded the > alsa-0.9rc6, but haven't installed it yet. Has anybody else encountered > buffer underruns with alsa and does installing alsa-0.9rc6 do any help? Hi Matti, how's everything going for you these days ? Yes, I still have trouble with my SBLive and ALSA with Snd, so I usually compile it for OSS instead. Nando's done a lot of work on this already, but I suspect the SBLive is just a very difficult card to work with. What card are you using ? 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 renueden at earthlink.net Fri Nov 22 09:25:36 2002 From: renueden at earthlink.net (Ken) Date: Fri, 22 Nov 2002 09:25:36 -0800 Subject: [CM] sound cards [OT] alsa and snd-6 References: <3DDE0A4A.90907@koti.soon.fi> <3DDE6679.5CA2AB1A@bright.net> Message-ID: <006f01c2924c$3bcbb190$720277d8@KenLaptop> How about alsa support for the Audigy under Linux? Ken > Yes, I still have trouble with my SBLive and ALSA with Snd, so I usually > compile it for OSS instead. Nando's done a lot of work on this already, > but I suspect the SBLive is just a very difficult card to work with. > What card are you using ? > From t at fictive.com Fri Nov 22 09:58:39 2002 From: t at fictive.com (Tobias Kunze =?ISO-8859-1?B?QnJpc2Xxbw==?=) Date: Fri, 22 Nov 2002 18:58:39 +0100 Subject: [CM] new cm-2.4.0 tarball In-Reply-To: References: Message-ID: <20021122185839.5e24e8e0.t@fictive.com> ` > o Includes a nice cm script for clisp/Linux that Tobias > Kunze wrote. The script even installs if it has to! it does, but the tarball version is a bit old. so if you run clisp, have a unix box, and enjoy being a lazy person, feel free to get the current version from http://ccrma-www.stanford.edu/~tkunze/tmp/clispcm chmod 755 clispcm clispcm -v 2.4.0` for now. actually, don't even bother fetching cm itself! instead, get the script, then % clispcm -v 2.4.0 and you'll be at the prompt of a freshly fetched, installed, and built cm within a minute's time (assuming DSL speeds) :) one last thing: building 1.x versions is more involved, but it can be done in as few as 7 steps, too. 1 call "clispcm -v 1.3" (or 1.4) 2 wait for the build to fail 3 get http://ccrma-www.stanford.edu/~tkunze/tmp/cm-1.3.diffs (or http://ccrma-www.stanford.edu/~tkunze/tmp/cm-1.4.diffs) 4 cd into CMROOT/cm-1.3 (or 1.4) 5 call "patch -p1 < PATH-TO/cm-1.3.diffs" (or 1.4.diffs) 6 cd - 7 call clispcm as before to finish the build 8 lobby rick to update the source archives :) From nando at ccrma.Stanford.EDU Fri Nov 22 11:16:00 2002 From: nando at ccrma.Stanford.EDU (Fernando Pablo Lopez-Lezcano) Date: 22 Nov 2002 11:16:00 -0800 Subject: [CM] alsa and snd-6 In-Reply-To: <3DDE6679.5CA2AB1A@bright.net> References: <3DDE0A4A.90907@koti.soon.fi> <3DDE6679.5CA2AB1A@bright.net> Message-ID: <1037992580.9397.32.camel@cmn37.Stanford.EDU> > > I'm getting lots of buffer underruns in snd with alsa-0.9rc3, both when > > recording and playing. This must be an alsa issue, because csound also > > gives buffer underruns when playing directly to devaudio. snd also > > sometimes segfaults after playing, when first recorded. Now I changed > > snd to use oss, and this seems to work correctly. I've downloaded the > > alsa-0.9rc6, but haven't installed it yet. Has anybody else encountered > > buffer underruns with alsa and does installing alsa-0.9rc6 do any help? > > Hi Matti, how's everything going for you these days ? > > Yes, I still have trouble with my SBLive and ALSA with Snd, so I usually > compile it for OSS instead. Nando's done a lot of work on this already, > but I suspect the SBLive is just a very difficult card to work with. Not difficult but strange. It is asymetric, only supports two buffers for recording but a lot more for playback. Currently snd assumes that the audio i/o is going to be symetric, so you are stuck with just two buffers for playback (before I "fixed" that, recording would not work), which is not good as snd is not multithreaded with regards to audio i/o. I obviously need to redo the alsa driver for snd, it is still missing support for non-interleaved cards. Finding the time is the problem. -- Fernando From Baranovka at aol.com Sat Nov 23 18:16:17 2002 From: Baranovka at aol.com (Baranovka at aol.com) Date: Sat, 23 Nov 2002 21:16:17 EST Subject: [CM] Please take me off the email list. I am not familiar with the system@!! Message-ID: <169.1788ad6e.2b119071@aol.com> Hi, Please take me off the email list. I don't understand what you are sending me so please give the address to someone who can benefit. Thanks, Ann From dlphilp at bright.net Sun Nov 24 08:43:43 2002 From: dlphilp at bright.net (Dave Phillips) Date: Sun, 24 Nov 2002 11:43:43 -0500 Subject: [CM] problem with #! in CMUCL Message-ID: <3DE101BF.ED6DE408@bright.net> Greetings: Raeding through Rick Taube's new NM text I discovered that CMUCL doesn't like the #! prefix. For example: * (object-time #!test) Reader error on #, Output = #>: No dispatch function defined for #\!. Restarts: 0: [ABORT] Return to Top-Level. Debug (type H for help) (COMMON-LISP::%READER-ERROR #, Output = #> "No dispatch function defined for ~S." #\!) Source: Error finding source: Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM: Source file no longer exists: target:code/reader.lisp. 0] 0 * Error in KERNEL::UNBOUND-SYMBOL-ERROR-HANDLER: the variable TEST is unbound. Restarts: 0: [ABORT] Return to Top-Level. Debug (type H for help) (EVAL TEST) Source: Error finding source: Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM: Source file no longer exists: target:code/eval.lisp. 0] 0 * Warning: Ignoring unmatched close parenthesis. 0 0 * Can anyone tell me how to fix this problem ? Rick's examples from nm_10 onward utilize this prefix extensively so I'd like to know the CMUCL equivalent. TIA ! 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: Cecil Taylor, "Conquistador" From t.anders at qub.ac.uk Sun Nov 24 11:09:38 2002 From: t.anders at qub.ac.uk (Torsten Anders) Date: 24 Nov 2002 19:09:38 +0000 Subject: [CM] problem with #! in CMUCL Message-ID: <1038164978.2744.79.camel@chewa> Using CM 2.3.4 an CMUCL 18d I had no problems like that. * (new seq name 'test) # * #!test # So I do not think your error is caused by the read macro '#!', but no further help unfortunately -- can not reproduce your error. Regards, Torsten On Sun, 2002-11-24 at 16:43, Dave Phillips wrote: > Greetings: > > Raeding through Rick Taube's new NM text I discovered that CMUCL > doesn't like the #! prefix. For example: > > * (object-time #!test) > > Reader error on # SYSTEM:*STDIN*>, Output = #>: > No dispatch function defined for #\!. > [snip] -- Torsten Anders Sonic Arts Research Centre Queens University Belfast Tel: +44 28 9027 4831 From dlphilp at bright.net Sun Nov 24 12:37:59 2002 From: dlphilp at bright.net (Dave Phillips) Date: Sun, 24 Nov 2002 15:37:59 -0500 Subject: [CM] problem with #! in CMUCL References: <1038164978.2744.79.camel@chewa> Message-ID: <3DE138A7.EB82DFAA@bright.net> Greetings: Thanks for the note, Torsten, but here's what happens with the current 2.4.0 and CMUCL 18d : * (new seq name 'test) #"> * #!test Reader error on #, Output = #>: No dispatch function defined for #\!. Restarts: 0: [ABORT] Return to Top-Level. Debug (type H for help) (COMMON-LISP::%READER-ERROR #, Output = #> "No dispatch function defined for ~S." #\!) Source: Error finding source: Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM: Source file no longer exists: target:code/reader.lisp. 0] 0 * 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: Jelly Roll Morton, "The Pearls" Torsten Anders wrote: > > Using CM 2.3.4 an CMUCL 18d I had no problems like that. > > * (new seq name 'test) > # > * #!test > # > > So I do not think your error is caused by the read macro '#!', but no > further help unfortunately -- can not reproduce your error. > > Regards, > Torsten > > On Sun, 2002-11-24 at 16:43, Dave Phillips wrote: > > Greetings: > > > > Raeding through Rick Taube's new NM text I discovered that CMUCL > > doesn't like the #! prefix. For example: > > > > * (object-time #!test) > > > > Reader error on # > SYSTEM:*STDIN*>, Output = #>: > > No dispatch function defined for #\!. > > [snip] > -- > Torsten Anders > Sonic Arts Research Centre > Queens University Belfast > Tel: +44 28 9027 4831 > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From Baranovka at aol.com Sun Nov 24 14:32:33 2002 From: Baranovka at aol.com (Baranovka at aol.com) Date: Sun, 24 Nov 2002 17:32:33 EST Subject: [CM] (no subject) Message-ID: <27.3209494c.2b12ad81@aol.com>
either send me the program you are all discussing or take me off the email 
list, please. this is the second time I have requested to be removed from 
your list


From lt at westnet.com  Sun Nov 24 18:26:55 2002
From: lt at westnet.com (Larry Troxler)
Date: Sun, 24 Nov 2002 21:26:55 -0500
Subject: CMN in CM 2.4.0 / Re: [CM] new cm-2.4.0 tarball
References: 
Message-ID: <3DE18A6F.FE6055F9@westnet.com>

Rick Taube wrote:
> 
> Ive updated the cm-2.4.0.tar.gz file at CCRMA with 99% of functionality for the release. the only thing still missing is importing, ill try to add that soon.
> In this new archive  CLM2 audio and CMN files are back for Common Lisp (not scheme) THe CMN stff has changed -- I've tried to make it easer to work with (no staffer functions, for example). Basically if you want to display anything in CMN you write a little method on 'object->cmn'. there is already one dwefined for midi -- see the CMN example in intro.cm for details. ill tru to document things in the next few weeks. If you use CMN i would be grateful if you would try it out and let me know if/how it could be improved.

Hi Rick. I tried porting over my CM 2-.3.4 stuff to CM 2.4.0, and for
the most part it looks like CMN is working well in the new version. I
have a bunch of other comments, non CMN-related, but I will save those
for a seperate post.

Bascially, from my limited perspective and use, I have only these minor
observations w.r.t CMN:

First, I think the readme.text is wrong, or at least it doesn't work for
Cmucl on Linux.
When I followed the directions, CMN was not included in the CM core.
What I had to do was load CMN for the _second_ run of the installation
script (where all the CM files are compiled and the script saves the
core image).

Next, I notice that there seems not to be a simple CMN class for
outputing various various stuff to CMN (like the "cmn" class in 2.3.4).
Not matter, it's very trivial to implement, except for the staffing
assignment (see below)

Also, in intro.cm, it states that the third member of the first possible
form that object->cmn should return (the one to send a note to CMN)
should be a note name. In fact, this can just be a hertz value, in which
case it seems like CMN will find the closest note name. I think that
this detail (if I understand it correctly) can be usefull to document,
because it is typicall that an object will specify hertz (CLM and csound
objects, for example), and there is no function in CM that I can see
that will generate a note name based on a hertz value.

As far as staff assignment goes, I am not sure that the the staff
assignment should be a method on the event object, since a reasonable
way of working might be that the staff assignment could be a last-minute
global decision, relating to how I want to view this piece at this
moment. (The same can be said for note markups - for example I might
want to mark up all notes with fingerings equal to their positions
within their containers - but only just this once.)
However, for now it seems to work for me, and I think I would have to
make some use of CM/CMN before getting a real feel for what comes up in
practice. And it is always possible to have the object methods rely on
global parameters for these kind of decisions.

Larry Troxler



> 
> the tarball is at
> ftp://ftp-ccrma.stanford.edu/pub/Lisp/cm/sources/cm-2.4.0.tar.gz
> 
> ---------------------------------------------------------------------------
> Features and bug fixes for CM 2.4.0:
> 
> o ported CM to Open MCL/OSX
> 
> o CMN supported again in Common Lisp. I think ive made it
>   much easier to use.  See example in intro.cmn for
>   more info. Please send me feedback on this new method
>   if you use CMN!
> 
> o CLM2/audio supported again in Common Lisp CM. Ill add
>   it scheme next.
> 
> o CM now loads a scheme compatibilty file into Common Lisp
>   unless you tell it not to. To block scheme symbols from
>   being defined in the Common Music package do
>       (push :no-scheme *features*)
>   before you load cm.lisp
> 
> o File versioning now supported by file type. To turn file
>   versioning on/off you call the appropriate function:
> 
>   (set-midi-file-versions! #t)
>   (set-clm-file-versions! #t)
>   (set-audio-file-versions! #t)
>   (set-sco-file-versions! #t)
>   and so on.
> 
> o Changed CD to behave like Linux CD -- calling CD
>   without an arg now puts you in your home directory.
>   This is incompatible with the last release -- sorry!
> 
> o Added PWD function to print current working directory.
> 
> o Added QUIT and EXIT functions to Common Music package.
> 
> o Changed #i instance printing to show slot names rather
>   than keyword initializations.
> 
> o Added  class for easy subclassing.
> 
> o Fixed nasty while/until bug in process.
> 
> o Fixed multiple transposer bugs.
> 
> o Fixed multiple range bugs.
> 
> o Ligeti example working.
> 
> o Includes a nice cm script for clisp/Linux that Tobias
>   Kunze wrote. The script even installs if it has to!
> 
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist


From lt at westnet.com  Sun Nov 24 18:38:59 2002
From: lt at westnet.com (Larry Troxler)
Date: Sun, 24 Nov 2002 21:38:59 -0500
Subject: [CM] problem with #! in CMUCL
References: <3DE101BF.ED6DE408@bright.net>
Message-ID: <3DE18D43.E460F02A@westnet.com>

Dave Phillips wrote:
> 
> Greetings:
> 
>   Raeding through Rick Taube's new NM text I discovered that CMUCL
> doesn't like the #! prefix. For example:
> 
> * (object-time #!test)
> 
> Reader error on # SYSTEM:*STDIN*>, Output = #>:
> No dispatch function defined for #\!.
> 

Sorry, but it works for me as well, after building CM 2.4.0 according to
the readme.text.

Also, I'm sorry that I probably won't be able to help you much, given my
present state of lisp knowledge.


Sorry, so sorry, just wanted to give you another datapoint. 

Larry Troxler


From rm at fabula.de  Mon Nov 25 02:54:39 2002
From: rm at fabula.de (rm at fabula.de)
Date: Mon, 25 Nov 2002 11:54:39 +0100
Subject: [CM] (no subject)
In-Reply-To: <27.3209494c.2b12ad81@aol.com>
References: <27.3209494c.2b12ad81@aol.com>
Message-ID: <20021125105439.GA2620@www>

On Sun, Nov 24, 2002 at 05:32:33PM -0500, Baranovka at aol.com wrote:
> 
either send me the program you are all discussing or take me off the email 
> list, please. this is the second time I have requested to be removed from 
> your list

Dear Baranovka,

the CM mailing list (which discusses the Common Music, Common
Lisp Music, and SND sound processing software) is run by the
'mailman' mailing list software. You can easily unsubscribe
from the list by visiting the url given in the footer of every
mail you receive. If you forgot your user password (which got
sent to you during the subscription process (see below) you
can wait until the end of the month -- it's part of the monthly
mail you get as a remainder). It seems that the admins of this
list are rather bussy these days writing great software and/or
books and probably have not enough time to manually remove you from
the list ...
BTW, one remaining question: how did you end up on this list in the
first place? After all, a subscriber has to confirm subscription by
sending a confirmation message to the listserver -- something that's
hard to fake. Is it possible that someone is abusing your mail acccount?

 hth ralfd

> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist


From dlphilp at bright.net  Tue Nov 19 09:59:45 2002
From: dlphilp at bright.net (Dave Phillips)
Date: Tue, 19 Nov 2002 12:59:45 -0500
Subject: [CM] [Alsa-user] [OT] Linux Music & Sound Software site updated
Message-ID: <3DDA7C11.13F32832@bright.net>

Greetings:

  As of November 19 2002 the Linux Music & Sound Applications pages have
been updated. This site contains more links to Linux audio, MIDI, and
DSP sites than you can shake a stick at (== a lot), making it the most
comprehensive listing of its kind on the Internet.

  The site may be reached here:

      http://sound.condorow.net (USA)

  Here:

      http://linuxsound.at (Europe)

  Here:

      http://linuxsound.ymo.org (Japan)

  (As aways, the Japanese site will not update until midnight tonight.)  

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: New London Consort, "Veritas veritatum" (Carmina
Burana)


-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Alsa-user mailing list
Alsa-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


From taube at uiuc.edu  Mon Nov 25 06:40:10 2002
From: taube at uiuc.edu (Rick Taube)
Date: Mon, 25 Nov 2002 08:40:10 -0600
Subject: Fw: [CM] problem with #! in CMUCL
In-Reply-To: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu>
References: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu>
Message-ID: 

>>   Raeding through Rick Taube's new NM text I discovered that CMUCL
>> doesn't like the #! prefix. For example:
>> 

this is a silly typo i made friday that affects all ports. ill make a new tarball today but to fix it right away just edit objects.lisp and replace  the
current initialzie=instance for containers with:

(defmethod initialize-instance :after ((obj container) &rest args)
  args
  (let ((name (object-name obj)))
    (when name
      (unless (stringp name)
        (setf name (format nil "~a" name))
        (setf (object-name obj) name))
      (setf (gethash (string-downcase name) *dictionary*) obj))
    (values)))


you can put this in the cminit.lisp file or  rebuild/save the image again.  sorry!


From taube at uiuc.edu  Mon Nov 25 06:49:41 2002
From: taube at uiuc.edu (Rick Taube)
Date: Mon, 25 Nov 2002 08:49:41 -0600
Subject: Fw: CMN in CM 2.4.0 / Re: [CM] new cm-2.4.0 tarball
In-Reply-To: <008301c2943d$05629d60$011c7e82@music.uiuc.edu>
References: <008301c2943d$05629d60$011c7e82@music.uiuc.edu>
Message-ID: 

> First, I think the readme.text is wrong, or at least it doesn't work for
> Cmucl on Linux.
> When I followed the directions, CMN was not included in the CM core.
> What I had to do was load CMN for the _second_ run of the installation
> script (where all the CM files are compiled and the script saves the
> core image).

Yes, I can see that my wording is confusing if you load the other packages. sigh. i guess ill go back to my old message and not try to be so helpful! or alternately, i could do what i did in cm1 and autogenerate a load script
that saves your values for the 'cmn-directry' and 'clm-direcory' variabes if you loaded these systems. 


From dlphilp at bright.net  Mon Nov 25 07:11:12 2002
From: dlphilp at bright.net (Dave Phillips)
Date: Mon, 25 Nov 2002 10:11:12 -0500
Subject: Fw: [CM] problem with #! in CMUCL
References: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu> 
Message-ID: <3DE23D90.7980E78F@bright.net>

Hi Rick:

  Thanks, that fixed it ! All examples using it work now...

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: Aphex Twin, "Lichen"




Rick Taube wrote:
> 
> >>   Raeding through Rick Taube's new NM text I discovered that CMUCL
> >> doesn't like the #! prefix. For example:
> >>
> 
> this is a silly typo i made friday that affects all ports. ill make a new tarball today but to fix it right away just edit objects.lisp and replace  the
> current initialzie=instance for containers with:
> 
> (defmethod initialize-instance :after ((obj container) &rest args)
>   args
>   (let ((name (object-name obj)))
>     (when name
>       (unless (stringp name)
>         (setf name (format nil "~a" name))
>         (setf (object-name obj) name))
>       (setf (gethash (string-downcase name) *dictionary*) obj))
>     (values)))
> 
> you can put this in the cminit.lisp file or  rebuild/save the image again.  sorry!


From taube at uiuc.edu  Mon Nov 25 07:15:33 2002
From: taube at uiuc.edu (Rick Taube)
Date: Mon, 25 Nov 2002 09:15:33 -0600
Subject: Fw: [CM] problem with #! in CMUCL
In-Reply-To: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu>
References: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu>
Message-ID: 

in CMUCL with the patch i provided this works:

 * (object-time #!test)

but this doesnt:

* #!test

unless you hit  twice!  this is  a bug in cmucl -- for some reason their read-eval-print loop doesnt notice that its read anything to print.  the "fix" might be for me to make the #! read macro actually restult in evaluation, but then putting #!name references inside quoted lists is impossible. ill have to think about it...



From rm at fabula.de  Mon Nov 25 08:00:40 2002
From: rm at fabula.de (rm at fabula.de)
Date: Mon, 25 Nov 2002 17:00:40 +0100
Subject: Fw: [CM] problem with #! in CMUCL
In-Reply-To: 
References: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu> 
Message-ID: <20021125160040.GD3403@www>

On Mon, Nov 25, 2002 at 09:15:33AM -0600, Rick Taube wrote:
> in CMUCL with the patch i provided this works:
> 
>  * (object-time #!test)
> 
> but this doesnt:
> 
> * #!test
> 
> unless you hit  twice!  this is  a bug in cmucl -- for some reason their read-eval-print loop doesnt notice that its read anything to print.  the "fix" might be for me to make the #! read macro actually restult in evaluation, but then putting #!name references inside quoted lists is impossible. ill have to think about it...
> 


Hmm, in terms of LISP/Scheme transparence: is '#!' really a good choice?
After all '#!' is Guiles (and SCSH's) start of multiline comment character 
(which needs to be terminated by a closing '!#' on as the first character
of an otherwise empty line).


  Ralf Mattes
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist


From hiss999 at hiss999.co.uk  Mon Nov 25 07:46:19 2002
From: hiss999 at hiss999.co.uk (LuThEr/hiss999)
Date: Mon, 25 Nov 2002 15:46:19 +0000
Subject: [CM] (no subject)
In-Reply-To: <20021125105439.GA2620@www>
Message-ID: 

On 25/11/02 10:54 AM, "rm at fabula.de"  typed:

> If you forgot your user password (which got
> sent to you during the subscription process (see below) you
> can wait until the end of the month

Actually you can have it emailed to you in your edit your account page [see
URL at bottom]. Just click on email password.
-- 
LuThEr/hiss999

>-------computer generated sound/visuals at hiss999.co.uk-----------

>>********************<>

>>>******************************<>





From taube at uiuc.edu  Mon Nov 25 07:58:58 2002
From: taube at uiuc.edu (Rick Taube)
Date: Mon, 25 Nov 2002 09:58:58 -0600
Subject: Fw: [CM] problem with #! in CMUCL
In-Reply-To: <20021125160040.GD3403@www>
References: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu>
  <20021125160040.GD3403@www>
Message-ID: 

>Hmm, in terms of LISP/Scheme transparence: is '#!' really a good choice?
>After all '#!' is Guiles (and SCSH's) start of multiline comment character 

i sure read that in Guile 1.6.0 multiple line comment had been swiched to #| |#
is this not correct?

otherwise ill purge #! from the boos since you can pass string names to the events function. geez if guile still uses #! then im up for suggestions...


From rm at fabula.de  Mon Nov 25 08:35:11 2002
From: rm at fabula.de (rm at fabula.de)
Date: Mon, 25 Nov 2002 17:35:11 +0100
Subject: Fw: [CM] problem with #! in CMUCL
In-Reply-To: 
References: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu>  <20021125160040.GD3403@www> 
Message-ID: <20021125163511.GE3403@www>

On Mon, Nov 25, 2002 at 09:58:58AM -0600, Rick Taube wrote:
> >Hmm, in terms of LISP/Scheme transparence: is '#!' really a good choice?
> >After all '#!' is Guiles (and SCSH's) start of multiline comment character 
> 
> i sure read that in Guile 1.6.0 multiple line comment had been swiched to #| |#
> is this not correct?

Well, it kind of needs those for things like:
| 
| #!/usr/local/bin/guile
| -e ...
| !#
| 
| (my-guile-code 'here)
| 
| 

I got the impression '#|' was an _additional_ syntax.

> otherwise ill purge #! from the boos since you can pass string names
> to the events function. geez if guile still uses #! then im up for
> suggestions...

#! this is a multiline comment
!#

(display "Ok\n")

(define blub #! Do we really want
 such comments?
 !#
 "honk")

 (display (string-append blub "\n"))


still works. No comments ;-)


  Ralf Mattes


From dlphilp at bright.net  Mon Nov 25 08:24:09 2002
From: dlphilp at bright.net (Dave Phillips)
Date: Mon, 25 Nov 2002 11:24:09 -0500
Subject: Fw: [CM] problem with #! in CMUCL
References: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu>  <20021125160040.GD3403@www>  <20021125163511.GE3403@www>
Message-ID: <3DE24EA9.9EDDF7B4@bright.net>

rm at fabula.de wrote:

> Well, it kind of needs those for things like:
> |
> | #!/usr/local/bin/guile
> | -e ...
> | !#
> |
> | (my-guile-code 'here)
> |
> |
> 
> I got the impression '#|' was an _additional_ syntax.
> 
> > otherwise ill purge #! from the boos since you can pass string names
> > to the events function. geez if guile still uses #! then im up for
> > suggestions...
> 
> #! this is a multiline comment
> !#
> 
> (display "Ok\n")
> 
> (define blub #! Do we really want
>  such comments?
>  !#
>  "honk")
> 
>  (display (string-append blub "\n"))
> 
> still works. No comments ;-)

I also wondered about a possible conflict with the shell's use of it,
i.e., #!/bin/sh in a script.

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 taube at uiuc.edu  Mon Nov 25 08:46:40 2002
From: taube at uiuc.edu (Rick Taube)
Date: Mon, 25 Nov 2002 10:46:40 -0600
Subject: Fw: [CM] problem with #! in CMUCL
In-Reply-To: <20021125163511.GE3403@www>
References: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu>
  <20021125160040.GD3403@www>
  <20021125163511.GE3403@www>
Message-ID: 

>I got the impression '#|' was an _additional_ syntax.

That's unfortunate -- CM's use of #! comes from its Common Lisp life where  #! is reserved for users. So Ill have to figure out something for guile that also works in  CL.  Is there a scheme doc on what characters the user can use? I dont see a list in guile or r5rs docs. regardlesss of what i do for Guile the #! will still work in cl.



From dlphilp at bright.net  Tue Nov 26 05:14:16 2002
From: dlphilp at bright.net (Dave Phillips)
Date: Tue, 26 Nov 2002 08:14:16 -0500
Subject: [CM] various questions
Message-ID: <3DE373A8.4BB8434D@bright.net>

Greetings:

  As I'm testing Rick's latest tarball of CM I've come across a few
problems that might have relatively trivial solutions. Hopefully someone
can point me in the right direction regarding these problems and
questions:

   1. I built CM after loading the latest CLM-2 and CMN, and I saved the
core image according to the instructions (and Larry Troxler's advice).
My cminit.lisp looks like this:

;;; Forms in this file will be evaluated when Common Music starts.

(in-package :clm)
(in-package :cmn)
(in-package :cm)

(set-midi-output-hook! #'oss-play-midi-file)

   I then start everything (from /home/dlphilp/CCRMA) with 

	lisp -core cm-2.4.0/bin/cm.core -init cm-2.4.0/bin/cminit.lisp

   Is there a way to determine/verify what packages have been loaded ?
Using *package* apparently indicates only the last package loaded.


   2. The fm.ins in cm-2.4.0/etc/examples is not working for me. Here's
the rundown:

dlphilp at localhost:~/CCRMA$ lisp -core cm-2.4.0/bin/cm.core -init
cm-2.4.0/bin/cminit.lisp 

* (compile-file "cm-2.4.0/etc/examples/fm.ins")

Python version 1.0, VM version Intel x86 on 26 NOV 02 07:57:20 am.
Compiling: /home/dlphilp/CCRMA/cm-2.4.0/etc/examples/fm.ins 21 NOV 02
01:05:07 pm
[snip successful compile]

cm-2.4.0/etc/examples/fm.x86f written.
Compilation finished in 0:00:10.
#p"/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/fm.x86f"
NIL
NIL
* (load "/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/fm.cmucl")

; Loading #p"/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/fm.cmucl".

Warning: This function is undefined:
  LOAD-FOREIGN

Error in KERNEL:%COERCE-TO-FUNCTION:  the function LOAD-FOREIGN is
undefined.

Restarts:
  0: [CONTINUE] Return NIL from load of
"/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/fm.cmucl".
  1: [ABORT   ] Return to Top-Level.

Debug  (type H for help)

(KERNEL:%COERCE-TO-FUNCTION LOAD-FOREIGN)
Source: Error finding source: 
Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM:  Source file no longer
exists:
  target:code/fdefinition.lisp.
0] 1    
* 

   Any suggestions ? I'm not very knowledable about writing CLM
instruments yet and I'm not at all sure how to incorporate CLM with CM.
Still learning here... 


   3. I've been having fun with the CMN output, freely experimenting
with and changing Rick's example code in intro.cm. I've found a couple
of things I don't understand:

     A. The clefs appear to be finally determined by the octave
registration of their respective pitch class sets. Is that true, i.e.,
will the range of the pitches override the clef selection automatically
? Is there a way to "fix" the clef selection so it will not change ?

     B. The entry for cmn-file in the CM dictionary refers to a slot
initializer called "display" which takes a true or false argument. I
would like to auto-display newly created scores: does this setting
enable such an action ? If so, how do I use it ?

   Btw, I've been using GhostView to view the new EPS scores as they're
created, I only have to hit the Redisplay button twice and voila,
there's the new version. It's very cool, but I'd love to automate all
that if possible.


   4. How do I create a CMN and its MIDI file at the same time, i.e.,
how can I generate the MIDI file along with its particular score ?


  I also want to give a big "Thank you!" to everyone who's been helping
me with these and other issues. CM is very impressive, and Rick's NM
tutorials are an enormous assistance. It really does look like I'm
getting very close to my dream of an integrated environment for
composition/synthesis/notation/recording under Linux, thanks to the
Common apps.

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  Tue Nov 26 05:25:33 2002
From: dlphilp at bright.net (Dave Phillips)
Date: Tue, 26 Nov 2002 08:25:33 -0500
Subject: [CM] and yet one more...
Message-ID: <3DE3764D.32D3245@bright.net>

Greetings:

  Sorry, I forgot this one:

    How do I set set-clm-output-hook! to autoplay (in Linux) a newly
created soundfile ?

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 anders.vinjar at notam02.no  Tue Nov 26 05:55:40 2002
From: anders.vinjar at notam02.no (Anders Vinjar)
Date: 26 Nov 2002 14:55:40 +0100
Subject: [CM] various questions
In-Reply-To: <3DE373A8.4BB8434D@bright.net>
References: <3DE373A8.4BB8434D@bright.net>
Message-ID: 

>>> "DP" == Dave Phillips  writes:

    DP> (in-package :clm)
    DP> (in-package :cmn)
    DP> (in-package :cm)

The #'in-package form only sets the current package (giving you
easy access to all the symbols in that package).  The above 3
forms only results in leaving you in the :cm-package.  The
loading of clm/cmn and whatever is already done as part of the
build-process and dumping of the cm-image.

    DP> Is there a way to determine/verify what packages have
    DP> been loaded ?

* (list-all-packages)

One specific package:

* (find-package :clm)  
    
    DP> I would like to auto-display newly created scores

Have ghostview startup with the -watch flag.  ie:

 shell> gv -watch aaa.eps &

    DP> 4. How do I create a CMN and its MIDI file at the same
    DP> time, i.e., how can I generate the MIDI file along with
    DP> its particular score ?

If your process or whatever is deterministic just output directly
from the process to the various destinations.  Or else one option
might be to store the output into a 'seq first, then output the
'seq to "test.midi" and "test.eps" separately.  ie:

* (events (my-random-proc 4) (new seq name 'from-random-proc))
* (events #!from-random-proc "test.midi")
* (events #!from-random-proc "test.cmn")

-anders


From dlphilp at bright.net  Tue Nov 26 09:21:39 2002
From: dlphilp at bright.net (Dave Phillips)
Date: Tue, 26 Nov 2002 12:21:39 -0500
Subject: [CM] various questions
References: <3DE373A8.4BB8434D@bright.net> 
Message-ID: <3DE3ADA3.BA83E370@bright.net>

Anders Vinjar wrote:

>     DP> I would like to auto-display newly created scores
> 
> Have ghostview startup with the -watch flag.  ie:
> 
>  shell> gv -watch aaa.eps &

That's neat ! It works about two out of three times, then I hit
redisplay and it's fine again.

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 taube at uiuc.edu  Tue Nov 26 13:03:36 2002
From: taube at uiuc.edu (Rick Taube)
Date: Tue, 26 Nov 2002 15:03:36 -0600
Subject: [CM] and yet one more...
In-Reply-To: <3DE3764D.32D3245@bright.net>
References: <3DE3764D.32D3245@bright.net>
Message-ID: 

>
>    How do I set set-clm-output-hook! to autoplay (in Linux) a newly
>created soundfile ?
>

every score type should be 'hookable':

(set-clm-output-hook! ...)
(set-audio-output-hook! ...)
(set-cmn-output-hook! ...)
(set-sco-ouput-hook! ...)
(set-midi-output-hook! ...)


Maybe you can also do

	(events ... "/tmp/foo.aiff" :play T)

and cm should pass the :play value directly on to CLM.


From taube at uiuc.edu  Tue Nov 26 13:56:17 2002
From: taube at uiuc.edu (Rick Taube)
Date: Tue, 26 Nov 2002 15:56:17 -0600
Subject: [CM] various questions
In-Reply-To: 
References: <3DE373A8.4BB8434D@bright.net> 
Message-ID: 

>* (load "/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/fm.cmucl")
>
>; Loading #p"/home/dlphilp/CCRMA/cm-2.4.0/etc/examples/fm.cmucl".
>
> Warning: This function is undefined:
>  LOAD-FOREIGN

this looks like a CMU problem to me. I can compile/load in mcl, for example.

>     A. The clefs appear to be finally determined by the octave
> registration of their respective pitch class sets. Is that true, i.e.,
> will the range of the pitches override the clef selection automatically
>? Is there a way to "fix" the clef selection so it will not change ?

Are you setting up a staff first? I think if you do
	(set-cmn-staff! 0 :clef :treble ...)
CMN will only use the treble clef for staff 0. But maybe CMN changes to a new clef if it thinks it should. look in the cmn docs, there is probably a control on this.

BTW ill be adding a 'staffing' slot to .cmn files so that you can either define global staff descriptions like in intro.cm or specify them on a per score basis.


>     B. The entry for cmn-file in the CM dictionary refers to a slot
> initializer called "display" which takes a true or false argument. I
> would like to auto-display newly created scores: does this setting
> enable such an action ? If so, how do I use it ?

no, this is out of date, i think this referred to an interface someone at IRCAM did on the mac.  May try writing a hook function to do this and then do (set-cmn-output-hook! whatever)



From bil at ccrma.Stanford.EDU  Wed Nov 27 04:49:15 2002
From: bil at ccrma.Stanford.EDU (Bill Schottstaedt)
Date: Wed, 27 Nov 2002 04:49:15 -0800
Subject: Fw: [CM] problem with #! in CMUCL
In-Reply-To: 
References: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu>
	 <20021125160040.GD3403@www>
	 <20021125163511.GE3403@www>
	
Message-ID: <200211271249.EAA13706@cmn14.stanford.edu>

My guess is that Guile uses #! because that makes it possible
to use it as a scripting engine.  When a script is executed,
the #!program gets the script as its argument so some file with

#!guile -s
!#
(scheme code here which is evaluated by guile)

causes Unix to start guile passing it the script filename, which
guile then loads, treating the #! !# business as a comment.


There's code to read #-related stuff in guile's libguile/read.c around
line 360; in a quick glance I see

#f #t
#( for vectors
#b #B #o #O #d #D #x #X #i #I #e #E for numbers
#! for scripts
#* for arrays?? (guile arrays are a horrible kludge)
#{ something to do with symbols?
#\ chars
#: keywords


From bil at ccrma.Stanford.EDU  Wed Nov 27 05:43:54 2002
From: bil at ccrma.Stanford.EDU (Bill Schottstaedt)
Date: Wed, 27 Nov 2002 05:43:54 -0800
Subject: [CM] various questions
In-Reply-To: 
References: <3DE373A8.4BB8434D@bright.net> 
	
Message-ID: <200211271343.FAA13769@cmn14.stanford.edu>

> But maybe CMN changes to a new clef if it thinks it should.

I think it uses the user-specified clef, and only adds its own if
none was specified, but it's been years since I looked at this code.

> Warning: This function is undefined:
>  LOAD-FOREIGN

Odd -- surely cmucl hasn't changed the name of this function?


From taube at uiuc.edu  Wed Nov 27 06:04:30 2002
From: taube at uiuc.edu (Rick Taube)
Date: Wed, 27 Nov 2002 08:04:30 -0600
Subject: Fw: [CM] problem with #! in CMUCL
In-Reply-To: <200211271249.EAA13706@cmn14.stanford.edu>
References: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu>
  <20021125160040.GD3403@www>
  <20021125163511.GE3403@www>
 
 <200211271249.EAA13706@cmn14.stanford.edu>
Message-ID: 

thankyou! i dont see a whole lot of good available choices for both cl and scheme. the only other CLTL option reserved for users that is not a bracket of some sort is:
	#?foo
yuk!



From rm at fabula.de  Wed Nov 27 06:37:06 2002
From: rm at fabula.de (rm at fabula.de)
Date: Wed, 27 Nov 2002 15:37:06 +0100
Subject: Fw: [CM] problem with #! in CMUCL
In-Reply-To: 
References: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu>  <20021125160040.GD3403@www>  <20021125163511.GE3403@www>  <200211271249.EAA13706@cmn14.stanford.edu> 
Message-ID: <20021127143706.GD11899@www>

On Wed, Nov 27, 2002 at 08:04:30AM -0600, Rick Taube wrote:
> thankyou! i dont see a whole lot of good available choices for both cl and scheme. the only other CLTL option reserved for users that is not a bracket of some sort is:
> 	#?foo
> yuk!

Yes, indeed. I don't know about CLTL, but in Guile one can extend
the reader so anything after the '#' is possible (of course it's
not really a great idea to pick a well-established one like 
'#t' or '#<' ....). Why not generalize CM and use something 
like #c where 'c' is different for the different types
of objects ? 

 #i = an instance 
 #c = a container
 #s = a sequence

 ...


  Ralf Mattes
  
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist


From dlphilp at bright.net  Wed Nov 27 06:19:14 2002
From: dlphilp at bright.net (Dave Phillips)
Date: Wed, 27 Nov 2002 09:19:14 -0500
Subject: [CM] various questions
References: <3DE373A8.4BB8434D@bright.net> 
		 <200211271343.FAA13769@cmn14.stanford.edu>
Message-ID: <3DE4D462.3EC3B919@bright.net>

Bill Schottstaedt wrote:
 
> > But maybe CMN changes to a new clef if it thinks it should.
> 
> I think it uses the user-specified clef, and only adds its own if
> none was specified, but it's been years since I looked at this code.

Here's the code that's giving me the problem. A couple of interesting
things happen with it. Most noticeable is the clef change: I specify
treble for the flute but get an alto clef instead. But I also notice
that the instrument assignments don't line up, i.e., my flute line
should be on top but sometimes gets placed in the middle of the three
staves. Let me know if there's anything obviously misconfigured :


(set-cmn-staff! 0 :name "Cello" :clef :bass :meter '(4 4))
(set-cmn-staff! 1 :name "Oboe" :clef :treble :meter '(4 4))
(set-cmn-staff! 2 :name "Flute" :clef :treble :meter '(4 4))


(defun testit (stf len nts)
  (let ((nts (new heap :notes nts))
        ;; choose quarter or two eighths
        (rhy (new random
               :of
               `(2, 1, 1, 1, (new cycle :of '(1/2 1/2)), (new cycle :of
'(1/4 1/4)) ))))
    (process while (< (now) len)
             for n = (next nts)
             for r = (next rhy)
             output (new midi :time (now)
                         :duration r
                         :keynum n
                         :channel stf)
             wait r)))

(events (list (testit 0 69 '(c2 e g d b3 a))
              (testit 1 69 '(d3 f e a b4 g))
              (testit 2 69 '(e4 g f a d5 b)))
        "cmn-test.cmn"
        :size 20
        :title "Trio for Cello, Oboe, & Flute")


[re: fm.ins]
 
> > Warning: This function is undefined:
> >  LOAD-FOREIGN
> 
> Odd -- surely cmucl hasn't changed the name of this function?

Ja, this weirds me out too. I thought we'd already gone over this error,
but even trying to load the .cmucl file results in the error. That's why
I wondered about the code example itself (fm.ins in CM's examples).

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 taube at uiuc.edu  Wed Nov 27 06:22:34 2002
From: taube at uiuc.edu (Rick Taube)
Date: Wed, 27 Nov 2002 08:22:34 -0600
Subject: Fw: [CM] problem with #! in CMUCL
In-Reply-To: <20021127143706.GD11899@www>
References: <005901c2943c$d0839c70$011c7e82@music.uiuc.edu>
  <20021125160040.GD3403@www>
  <20021125163511.GE3403@www>
 
 <200211271249.EAA13706@cmn14.stanford.edu>
  <20021127143706.GD11899@www>
Message-ID: 

 Why not generalize CM and use something 
>like #c where 'c' is different for the different types
>of objects ? 
>
> #i = an instance 
> #c = a container
> #s = a sequence
>

that only compounds the problem. for example c and s are both used by CLTL for complex numbers and structures.

plus it a feature that the #! works for anything you define with a name -- seqs, plots, files, patterns etc.

I guess i could do

#n

where "n" means "name" but #n is not "protected" by CLTL. but maybe that doesnt matter.



From taube at uiuc.edu  Wed Nov 27 06:25:35 2002
From: taube at uiuc.edu (Rick Taube)
Date: Wed, 27 Nov 2002 08:25:35 -0600
Subject: [CM] various questions
In-Reply-To: <3DE4D462.3EC3B919@bright.net>
References: <3DE373A8.4BB8434D@bright.net>
 	
 
 <200211271343.FAA13769@cmn14.stanford.edu> <3DE4D462.3EC3B919@bright.net>
Message-ID: 

>things happen with it. Most noticeable is the clef change: I specify
>treble for the flute but get an alto clef instead. But I also notice
>that the instrument assignments don't line up, i.e., my flute line
>should be on top but sometimes gets placed in the middle of the three
>staves. Let me know if there's anything obviously misconfigured :
>

ill take a look, maybe im not passing the clef over properly. ditto staff assignments.


From dlphilp at bright.net  Wed Nov 27 07:34:18 2002
From: dlphilp at bright.net (Dave Phillips)
Date: Wed, 27 Nov 2002 10:34:18 -0500
Subject: [CM] CLM weirdness with CMUCL
Message-ID: <3DE4E5FA.B4E24D15@bright.net>

Hi Bill:

  I run this:

	(compile-file "clm-2/piano.ins")

  with no troubles. Then I run this :

(load "clm-2/piano.cmucl")

; Loading #p"/home/dlphilp/CCRMA/clm-2/piano.cmucl".

Warning: This function is undefined:
  LOAD-FOREIGN

Error in KERNEL:%COERCE-TO-FUNCTION:  the function LOAD-FOREIGN is
undefined.

Restarts:
  0: [CONTINUE] Return NIL from load of
"/home/dlphilp/CCRMA/clm-2/piano.cmucl".
  1: [ABORT   ] Return to Top-Level.

Debug  (type H for help)

(KERNEL:%COERCE-TO-FUNCTION LOAD-FOREIGN)
Source: Error finding source: 
Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM:  Source file no longer
exists:
  target:code/fdefinition.lisp.
0] 1
* 


  I'm still using CMUCL 18d, maybe something's off in CLM-2 ?

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  Wed Nov 27 07:58:45 2002
From: dlphilp at bright.net (Dave Phillips)
Date: Wed, 27 Nov 2002 10:58:45 -0500
Subject: [CM] more about CLM/CMUCL problem
Message-ID: <3DE4EBB5.E8D24F54@bright.net>

Greetings:

  Apparently there's no problem with either CLM or CMUCL. I just now
compiled and loaded piano.ins and piano.cmucl with no trouble. I ran
Lisp and CLM only, not the cm.core build. I was compiling/loading
piano.ins via the cm.core build:

	lisp -core /home/dlphilp/CCRMA/cm-2.4.0/bin/cm.core -init
/home/dlphilp/CCRMA/cm-2.4.0/bin/cmlisp.init

  cmlisp.init includes these statements:

	(in-package :clm)
	(in-package :cmn)
	(in-package :cm)

  But the LOAD-FOREIGN error occurs with cm.core. Any suggestions ?


== dp


From t.anders at qub.ac.uk  Wed Nov 27 08:53:48 2002
From: t.anders at qub.ac.uk (Torsten Anders)
Date: 27 Nov 2002 16:53:48 +0000
Subject: [CM] Packages again (was: more about CLM/CMUCL problem)
In-Reply-To: <3DE4EBB5.E8D24F54@bright.net>
References: <3DE4EBB5.E8D24F54@bright.net>
Message-ID: <1038416028.1979.24.camel@chewa>

Dear Dave,

Sorry, I can not help you with your actual question.

Just a note on Lisp packages again. Your init file looks like you expect
the 'in-package' form to load anything. But the only purpose of Lisp
packages is to avoid name clashes, e.g. for functions with the same
name. You may include all symbols, functions etc. of some lisp program
in an own package. The 'in-package' macro then swaps the namespace for
all symbols etc. you use without package labeling. Actually it is the
same concept as packages in Java which you may know (but Java packages
can be nested).

* (in-package :cl-user)

* (between 10 20)	; cm function is not recognized
Warning: This function is undefined:
  BETWEEN
...
* (cm::between 10 20)	; OK with package marking
17
* (in-package :cm)

* (between 10 20)	; OK when you are in the CM package
13

In other word: your current init file as preobably no effect at all.
Obviously the programs CM, CLM and CMN are already loaded -- otherwise
you would get an error switching into their packages ;-)

There is no build-in high-level facility in Lisp to collect, e.g., all
your files of a Lisp program in a module, which can be loaded as a
single unit. But there are several Lisp extensions to do this, most
often they are called defsystem.

Kind regards,
Torsten

PS: More information on packages can be found in the Common Lisp
reference:
http://www.lispworks.com/reference/HyperSpec/Body/11_.htm

On Wed, 2002-11-27 at 15:58, Dave Phillips wrote:
>   cmlisp.init includes these statements:
> 
> 	(in-package :clm)
> 	(in-package :cmn)
> 	(in-package :cm)
-- 
Torsten Anders
Sonic Arts Research Centre
Queens University Belfast
Tel: +44 28 9027 4831



From herbstmondwind at web.de  Wed Nov 27 09:54:56 2002
From: herbstmondwind at web.de (daniel mayer)
Date: Wed, 27 Nov 2002 18:54:56 +0100
Subject: [CM] QuickTime
Message-ID: <200211271754.gARHsuX20160@mailgate5.cinetic.de>

To the CM-list,

  Using Mac OS 9.2.2 and OMS 2.3.8 QuickTime doesn't work correctly
(it produces irregular delays on MIDI-signals).
I know, this is not a genuine CM-problem, but maybe someone 
has been faced to it when using CM.
Many thanks in advance for any hint!

Best Regards,

Daniel Mayer

______________________________________________________________________________
Belgien, Italien, Portugal,... Mit WEB.DE FreeMail konnen Sie in all
diese Lander SMS senden. http://freemail.web.de/features/?mc=021173



From taube at uiuc.edu  Wed Nov 27 10:34:34 2002
From: taube at uiuc.edu (Rick Taube)
Date: Wed, 27 Nov 2002 12:34:34 -0600
Subject: [CM] more about CLM/CMUCL problem
In-Reply-To: <3DE4EBB5.E8D24F54@bright.net>
References: <3DE4EBB5.E8D24F54@bright.net>
Message-ID: 

ill have to look at this in my infinite free time. its something silly im sure.


>Greetings:
>
>  Apparently there's no problem with either CLM or CMUCL. I just now
>compiled and loaded piano.ins and piano.cmucl with no trouble. I ran
>Lisp and CLM only, not the cm.core build. I was compiling/loading
>piano.ins via the cm.core build:
>
>	lisp -core /home/dlphilp/CCRMA/cm-2.4.0/bin/cm.core -init
>/home/dlphilp/CCRMA/cm-2.4.0/bin/cmlisp.init
>
>  cmlisp.init includes these statements:
>
>	(in-package :clm)
>	(in-package :cmn)
>	(in-package :cm)
>
>  But the LOAD-FOREIGN error occurs with cm.core. Any suggestions ?
>
>
>== dp
>_______________________________________________
>Cmdist mailing list
>Cmdist at ccrma.stanford.edu
>http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist



From taube at uiuc.edu  Wed Nov 27 10:53:55 2002
From: taube at uiuc.edu (Rick Taube)
Date: Wed, 27 Nov 2002 12:53:55 -0600
Subject: [CM] more about CLM/CMUCL problem
In-Reply-To: <3DE4EBB5.E8D24F54@bright.net>
References: <3DE4EBB5.E8D24F54@bright.net>
Message-ID: 

dave - im at home at cant get at cmu till tomoorow. my first guess is that load-foreign did not get added to the cm package. 

when you boot the cm core functoin do

	(find-symbol "LOAD-FOREIGN")

my hope is that this returns nil. if so then do

	(in-package :cl-user)

and again try

	(find-symbol "LOAD-FOREIGN")

if it finds the symbol then do

	(symbol-package 'load-foreign)

and tell me what it says.
if this is the problem them i can easilty fix it and you might be able do a workaround for now by adding

(import 'whatever:load-foreign :CM)

in your cminit.lisp file before you try compiling an instrument.



From dlphilp at bright.net  Wed Nov 27 11:43:41 2002
From: dlphilp at bright.net (Dave Phillips)
Date: Wed, 27 Nov 2002 14:43:41 -0500
Subject: [CM] more about CLM/CMUCL problem
References: <3DE4EBB5.E8D24F54@bright.net> 
Message-ID: <3DE5206D.6D61EBFC@bright.net>

Hi Rick:

   Here's the results of your suggestions :

dlphilp at localhost:~/CCRMA$ lisp -core cm-2.4.0/bin/cm.core -init
cm-2.4.0/bin/cminit.lisp 
* (find-symbol "LOAD-FOREIGN")

NIL
NIL
* (in-package :cl-user)

#
* (find-symbol "LOAD-FOREIGN")

LOAD-FOREIGN
:INHERITED
* (symbol-package 'load-foreign)

#
* 


  I recompiled clm-2/piano.ins and tried loading clm-2/piano.cmucl. It
works now, so I'll add the fix to my CM init file. Thanks again, Rick !

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




Rick Taube wrote:
> 
> dave - im at home at cant get at cmu till tomoorow. my first guess is that load-foreign did not get added to the cm package.
> 
> when you boot the cm core functoin do
> 
>         (find-symbol "LOAD-FOREIGN")
> 
> my hope is that this returns nil. if so then do
> 
>         (in-package :cl-user)
> 
> and again try
> 
>         (find-symbol "LOAD-FOREIGN")
> 
> if it finds the symbol then do
> 
>         (symbol-package 'load-foreign)
> 
> and tell me what it says.
> if this is the problem them i can easilty fix it and you might be able do a workaround for now by adding
> 
> (import 'whatever:load-foreign :CM)
> 
> in your cminit.lisp file before you try compiling an instrument.


From dlphilp at bright.net  Wed Nov 27 12:14:48 2002
From: dlphilp at bright.net (Dave Phillips)
Date: Wed, 27 Nov 2002 15:14:48 -0500
Subject: [CM] more about CLM/CMUCL problem
References: <3DE4EBB5.E8D24F54@bright.net> 
Message-ID: <3DE527B8.7BD72637@bright.net>

Rick Taube wrote:

> ...you might be able do a workaround for now by adding
> 
> (import 'whatever:load-foreign :CM)
> 
> in your cminit.lisp file before you try compiling an instrument.

Dumb question: what should "whatever" be set to in that statement ?

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 taube at uiuc.edu  Wed Nov 27 14:18:02 2002
From: taube at uiuc.edu (Rick Taube)
Date: Wed, 27 Nov 2002 14:18:02 -0800
Subject: [CM] more about CLM/CMUCL problem
References: <3DE4EBB5.E8D24F54@bright.net>  <3DE527B8.7BD72637@bright.net>
Message-ID: <002401c29662$e813d350$87197e82@music.uiuc.edu>

try adding
(import '(extensions:load-foreign) :cm)
to your cminit.lisp file. then the function
will be accessible in the cm package when to try to compile
and load an ins. ill  readd this to the cmu.lisp file in the next tarball.

----- Original Message ----- 
From: "Dave Phillips" 
To: "Rick Taube" 
Cc: 
Sent: Wednesday, November 27, 2002 12:14 PM
Subject: Re: [CM] more about CLM/CMUCL problem


> Rick Taube wrote:
> 
> > ...you might be able do a workaround for now by adding
> > 
> > (import 'whatever:load-foreign :CM)
> > 
> > in your cminit.lisp file before you try compiling an instrument.
> 
> Dumb question: what should "whatever" be set to in that statement ?
> 
> 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
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
> 



From dlphilp at bright.net  Thu Nov 28 06:52:18 2002
From: dlphilp at bright.net (Dave Phillips)
Date: Thu, 28 Nov 2002 09:52:18 -0500
Subject: [CM] more CLM/Snd problem
Message-ID: <3DE62DA2.E7848C71@bright.net>

Hi Bill:

  Here's another interesting report:

dlphilp at localhost:~/CCRMA$ lisp
CMU Common Lisp 18d, running on localhost.localdomain
Send questions to cmucl-help at cons.org. and bug reports to
cmucl-imp at cons.org.
Loaded subsystems:
    Python 1.0, target Intel x86
    CLOS based on PCL version:  September 16 92 PCL (f)
* (load "clm-2/all.lisp")

; Loading #p"/home/dlphilp/CCRMA/clm-2/all.lisp".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/special-form-for-cmu.cl".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/clm-package.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/initmus.x86f".
;;; Running /usr/bin/ld...
;;; Done.
;; Loading #p"/home/dlphilp/CCRMA/clm-2/sndlib2clm.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/defaults.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/ffi.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/io.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/mus.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/run.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/cmus.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/sound.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/clm-help.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/defins.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/env.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/clm-snd.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/rt.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/export.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/clm1.x86f".
T
* (in-package :clm)

#
* (start-snd)

T

* (load "clm-2/v.cmucl")

; Loading #p"/home/dlphilp/CCRMA/clm-2/v.cmucl".
;;; Running /usr/bin/ld...
;;; Done.
;; Loading #p"/home/dlphilp/CCRMA/clm-2/v.x86f".

T

* (snd-edit () (with-sound () (mix (snd-sound)) (fm-violin .1 .1 660
.1)))
Unbound variable: snd-edit

; (snd-edit () (with-sound () (mix (snd-sound)) (fm-violin .1 .1 660
.1)))

>unbound-variable
>
Interrupted at #x400D2BDE.

Restarts:
  0: [CONTINUE] Return from BREAK.
  1: [ABORT   ] Return to Top-Level.

Debug  (type H for help)

(UNIX::SIGINT-HANDLER # # #.(SYSTEM:INT-SAP
#x3FFFE7C0))
Source: Error finding source: 
Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM:  Source file no longer
exists:
  target:code/signal.lisp.
0] 1

*     


  Just another holiday greeting from Findlay OH... ;)

== dp



From dlphilp at bright.net  Thu Nov 28 06:34:24 2002
From: dlphilp at bright.net (Dave Phillips)
Date: Thu, 28 Nov 2002 09:34:24 -0500
Subject: [CM] CLM/Snd problems
Message-ID: <3DE62970.BE3FEFB8@bright.net>

Hi Bill:

  I'm having some new/old problems with the CLM/Snd connection. Using
CLM built into a cm.core I get this:


dlphilp at localhost:~/CCRMA$ lisp -core cm-2.4.0/bin/cm.core -init
cm-2.4.0/bin/cminit.lisp
* (in-package :clm)

#
* (start-snd)

Error in function UNIX::SIGSEGV-HANDLER:  Segmentation Violation at
#x402C41F0.

Restarts:
  0: [ABORT] Return to Top-Level.

Debug  (type H for help)

(UNIX::SIGSEGV-HANDLER #
                       #
                       #.(SYSTEM:INT-SAP #x3FFFEAE0))
Source: Error finding source: 
Error in function DEBUG::GET-FILE-TOP-LEVEL-FORM:  Source file no longer
exists:
  target:code/signal.lisp.
0] 0

* 


  Trying the same function using only the CLM image:

dlphilp at localhost:~/CCRMA$ lisp
CMU Common Lisp 18d, running on localhost.localdomain
Send questions to cmucl-help at cons.org. and bug reports to
cmucl-imp at cons.org.
Loaded subsystems:
    Python 1.0, target Intel x86
    CLOS based on PCL version:  September 16 92 PCL (f)
* (load "clm-2/all.lisp")

; Loading #p"/home/dlphilp/CCRMA/clm-2/all.lisp".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/special-form-for-cmu.cl".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/clm-package.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/initmus.x86f".
;;; Running /usr/bin/ld...
;;; Done.
;; Loading #p"/home/dlphilp/CCRMA/clm-2/sndlib2clm.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/defaults.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/ffi.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/io.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/mus.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/run.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/cmus.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/sound.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/clm-help.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/defins.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/env.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/clm-snd.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/rt.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/export.x86f".
;; Loading #p"/home/dlphilp/CCRMA/clm-2/clm1.x86f".
T
* (start-snd)

T
* (send-snd "(open-sound \"/home/dlphilp/linus.wav\")")

-1
* 



  Snd will open with the call to (send-snd) but it doesn't load the file
(hence the -1 I think). Previously it loaded the indicated file without
problem, but now the Snd/CLM connection fails with either image. Any
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