From dstrbck at freenet.de Sat Mar 3 08:29:51 2012 From: dstrbck at freenet.de (Daniel Storbeck) Date: Sat, 03 Mar 2012 17:29:51 +0100 Subject: [CM] Grace, microtonal resolution, strange behavior Message-ID: <4F5246FF.90006@freenet.de> Hi, I installed Grace 3.7.2 from source on Debian 6 64bit. The Juce midi output is connected to a E-MU xmidi 1x1 Usb to Midi cable which is connected to a Roland SoundCanvas SC-155. Everything seems to work ok. Now I'm working through the Sal midi out tutorial. When I evaluate: send("mp:tuning", 2) send( "mp:midi", key: 60) send( "mp:midi", key: 60.5) send( "mp:midi", key: 61) the first and the last note are played as expected but the second is played on another instrument / another channel. When evaluating: send( "mp:midi", key: 60.0) send( "mp:midi", key: 60.1) send( "mp:midi", key: 60.2) send( "mp:midi", key: 60.3) send( "mp:midi", key: 60.4) send( "mp:midi", key: 60.5) send( "mp:midi", key: 60.6) send( "mp:midi", key: 60.7) send( "mp:midi", key: 60.8) send( "mp:midi", key: 60.9) the notes corresponding to the key values 60.3 - 60.7 are played on the wrong instrument. While playing these ten notes aseqdump reports: daniel at hallo:~/cm$ aseqdump -p 128:0 Waiting for data. Press Ctrl+C to end. Source Event Ch Data gc freed 79776/128000, time: 0.006641 128:0 Note on 0, note 60, velocity 63 128:0 Note off 0, note 60, velocity 0 128:0 Note on 0, note 60, velocity 63 128:0 Note off 0, note 60, velocity 0 128:0 Note on 0, note 60, velocity 63 128:0 Note off 0, note 60, velocity 0 128:0 Note on 1, note 60, velocity 63 128:0 Note off 1, note 60, velocity 0 gc freed 79776/128000, time: 0.005465 128:0 Note on 1, note 60, velocity 63 128:0 Note off 1, note 60, velocity 0 128:0 Note on 1, note 60, velocity 63 128:0 Note off 1, note 60, velocity 0 128:0 Note on 1, note 60, velocity 63 128:0 Note off 1, note 60, velocity 0 128:0 Note on 1, note 60, velocity 63 128:0 Note off 1, note 60, velocity 0 gc freed 79776/128000, time: 0.006225 128:0 Note on 0, note 61, velocity 63 128:0 Note off 0, note 61, velocity 0 128:0 Note on 0, note 61, velocity 63 128:0 Note off 0, note 61, velocity 0 so you can see the channel switching. You also see the gc fiddling around for some reason that might be related to the problem. I guess this is a bug, not a feature, but is it Grace or some part of my system? Any ideas? regards Daniel --- Btw: The statement in the tutorial to set the microtonal res. to 12 is missing some parentheses: send "mp:tuning", 12 From taube at illinois.edu Sun Mar 4 07:53:23 2012 From: taube at illinois.edu (Heinrich Taube) Date: Sun, 4 Mar 2012 09:53:23 -0600 Subject: [CM] Grace, microtonal resolution, strange behavior In-Reply-To: <4F5246FF.90006@freenet.de> References: <4F5246FF.90006@freenet.de> Message-ID: microtonal midi output uses something i call channel tuning: based on the tuning you specifiy it takes reserves channels and "pretunes" them accoding to the microtonale quantization level. for example, choosing quarter-tone tuning means that half the channels are reserved for cents 0-49 and the other half of the channels are pretuned upwards to handle cents 50-99 since you only have 16 channels, this effectively cuts the channels in half for instruemtn assignement (because each instrument can do quartones) you can see this clearly if you do this: 1. choose Audio>MidiOut>Tuning to set things to quarter tone 2. choose the Audio>MidiOut>Midi Instruments... dialog -- when that dialog opens on the left hand side of the window you will see the available channels you have for insrument assignments also, you might want to try the lastest CM I have here: ubuntu: http://camil.music.uiuc.edu/software/grace/Grace-3.8.0-ubuntu.zip macos: http://camil.music.uiuc.edu/software/grace/Grace-3.8.0-osx.zip The only reason i haven't actually released these to sourceforge as a new cm 3.8.0 release is because I cant boot my windows partition to make the windows binary. ( i was hopeing to have purchased a new laptop about 4 weeks ago but....) On Mar 3, 2012, at 10:29 AM, Daniel Storbeck wrote: > Hi, I installed Grace 3.7.2 from source on Debian 6 64bit. The Juce > midi > output is connected to a E-MU xmidi 1x1 Usb to Midi cable which is > connected to a Roland SoundCanvas SC-155. Everything seems to work ok. > > Now I'm working through the Sal midi out tutorial. When I evaluate: > > send("mp:tuning", 2) > send( "mp:midi", key: 60) > send( "mp:midi", key: 60.5) > send( "mp:midi", key: 61) > > the first and the last note are played as expected but the second is > played on another instrument / another channel. When evaluating: > > send( "mp:midi", key: 60.0) > send( "mp:midi", key: 60.1) > send( "mp:midi", key: 60.2) > send( "mp:midi", key: 60.3) > send( "mp:midi", key: 60.4) > send( "mp:midi", key: 60.5) > send( "mp:midi", key: 60.6) > send( "mp:midi", key: 60.7) > send( "mp:midi", key: 60.8) > send( "mp:midi", key: 60.9) > > the notes corresponding to the key values 60.3 - 60.7 are played on > the > wrong instrument. While playing these ten notes aseqdump reports: > > daniel at hallo:~/cm$ aseqdump -p 128:0 > Waiting for data. Press Ctrl+C to end. > Source Event Ch Data > gc freed 79776/128000, time: 0.006641 > 128:0 Note on 0, note 60, velocity 63 > 128:0 Note off 0, note 60, velocity 0 > 128:0 Note on 0, note 60, velocity 63 > 128:0 Note off 0, note 60, velocity 0 > 128:0 Note on 0, note 60, velocity 63 > 128:0 Note off 0, note 60, velocity 0 > 128:0 Note on 1, note 60, velocity 63 > 128:0 Note off 1, note 60, velocity 0 > gc freed 79776/128000, time: 0.005465 > 128:0 Note on 1, note 60, velocity 63 > 128:0 Note off 1, note 60, velocity 0 > 128:0 Note on 1, note 60, velocity 63 > 128:0 Note off 1, note 60, velocity 0 > 128:0 Note on 1, note 60, velocity 63 > 128:0 Note off 1, note 60, velocity 0 > 128:0 Note on 1, note 60, velocity 63 > 128:0 Note off 1, note 60, velocity 0 > gc freed 79776/128000, time: 0.006225 > 128:0 Note on 0, note 61, velocity 63 > 128:0 Note off 0, note 61, velocity 0 > 128:0 Note on 0, note 61, velocity 63 > 128:0 Note off 0, note 61, velocity 0 > > so you can see the channel switching. You also see the gc fiddling > around for some reason that might be related to the problem. > > I guess this is a bug, not a feature, but is it Grace or some part > of my > system? Any ideas? > > regards > Daniel > --- > > > Btw: The statement in the tutorial to set the microtonal res. to 12 is > missing some parentheses: > > send "mp:tuning", 12 > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From taube at illinois.edu Sun Mar 4 10:43:41 2012 From: taube at illinois.edu (Heinrich Taube) Date: Sun, 4 Mar 2012 12:43:41 -0600 Subject: [CM] Grace, microtonal resolution, strange behavior In-Reply-To: <4F53B0A3.8060708@freenet.de> References: <4F5246FF.90006@freenet.de> <4F53B0A3.8060708@freenet.de> Message-ID: <60F4F730-F6F6-4223-837B-3AB270726AD0@illinois.edu> On Mar 4, 2012, at 12:12 PM, Daniel Storbeck wrote: > Hi Rick, > thanks for the clarification, so that was just a newbie problem. > Btw. is there a source repository besides the sourceforge releases? > I'm on Debian and the Ubuntu zip doesn't work for me because there > is a problem with some lib, I don't recall which one, now. > cheers > Daniel your linking problem might be the result of how old my ubuntu is -- its so old that its own system updater wont even let me update! but i cant reinstall everything until i have a new machine... so ive added a zip of the sources to the temp site: http://camil.music.uiuc.edu/software/grace/cm-3.8.0.zip building is not hard. first install sndlib from ccrma: wget ftp://ccrma-ftp.stanford.edu/pub/Lisp/sndlib.tar.gz tar -zxf sndlib.tar.gz cd sndlib ./configure CC=g++ make rm *.so cd .. then build cm, use premake (the 3.0 line...) to generate the makefiles wget http://camil.music.uiuc.edu/software/grace/cm-3.8.0.zip unzip cm-3.8.0.zip cd cm-3.8.0 premake --verbose --target gnu --sndlib ../sndlib make that should eventually result in a Grace app: bin/Grace & you can add fomus, sdif, liblo as extras, see the cm/readme.text for more information about this. > Am 04.03.2012 16:53, schrieb Heinrich Taube: >> microtonal midi output uses something i call channel tuning: based >> on the tuning you specifiy it takes reserves channels and >> "pretunes" them accoding to the microtonale quantization level. >> >> for example, choosing quarter-tone tuning means that half the >> channels are reserved for cents 0-49 and the other half of the >> channels are pretuned upwards to handle cents 50-99 >> since you only have 16 channels, this effectively cuts the channels >> in half for instruemtn assignement (because each instrument can do >> quartones) >> >> you can see this clearly if you do this: >> 1. choose Audio>MidiOut>Tuning to set things to quarter tone >> 2. choose the Audio>MidiOut>Midi Instruments... dialog -- when >> that dialog opens on the left hand side of the window you will see >> the available channels you have for insrument assignments >> >> also, you might want to try the lastest CM I have here: >> >> ubuntu: >> http://camil.music.uiuc.edu/software/grace/Grace-3.8.0-ubuntu.zip >> >> macos: >> http://camil.music.uiuc.edu/software/grace/Grace-3.8.0-osx.zip >> >> >> The only reason i haven't actually released these to sourceforge as >> a new cm 3.8.0 release is because I cant boot my windows partition >> to make the windows binary. ( i was hopeing to have purchased a new >> laptop about 4 weeks ago but....) >> >> >> >> >> On Mar 3, 2012, at 10:29 AM, Daniel Storbeck wrote: >> >>> Hi, I installed Grace 3.7.2 from source on Debian 6 64bit. The >>> Juce midi >>> output is connected to a E-MU xmidi 1x1 Usb to Midi cable which is >>> connected to a Roland SoundCanvas SC-155. Everything seems to work >>> ok. >>> >>> Now I'm working through the Sal midi out tutorial. When I evaluate: >>> >>> send("mp:tuning", 2) >>> send( "mp:midi", key: 60) >>> send( "mp:midi", key: 60.5) >>> send( "mp:midi", key: 61) >>> >>> the first and the last note are played as expected but the second is >>> played on another instrument / another channel. When evaluating: >>> >>> send( "mp:midi", key: 60.0) >>> send( "mp:midi", key: 60.1) >>> send( "mp:midi", key: 60.2) >>> send( "mp:midi", key: 60.3) >>> send( "mp:midi", key: 60.4) >>> send( "mp:midi", key: 60.5) >>> send( "mp:midi", key: 60.6) >>> send( "mp:midi", key: 60.7) >>> send( "mp:midi", key: 60.8) >>> send( "mp:midi", key: 60.9) >>> >>> the notes corresponding to the key values 60.3 - 60.7 are played >>> on the >>> wrong instrument. While playing these ten notes aseqdump reports: >>> >>> daniel at hallo:~/cm$ aseqdump -p 128:0 >>> Waiting for data. Press Ctrl+C to end. >>> Source Event Ch Data >>> gc freed 79776/128000, time: 0.006641 >>> 128:0 Note on 0, note 60, velocity 63 >>> 128:0 Note off 0, note 60, velocity 0 >>> 128:0 Note on 0, note 60, velocity 63 >>> 128:0 Note off 0, note 60, velocity 0 >>> 128:0 Note on 0, note 60, velocity 63 >>> 128:0 Note off 0, note 60, velocity 0 >>> 128:0 Note on 1, note 60, velocity 63 >>> 128:0 Note off 1, note 60, velocity 0 >>> gc freed 79776/128000, time: 0.005465 >>> 128:0 Note on 1, note 60, velocity 63 >>> 128:0 Note off 1, note 60, velocity 0 >>> 128:0 Note on 1, note 60, velocity 63 >>> 128:0 Note off 1, note 60, velocity 0 >>> 128:0 Note on 1, note 60, velocity 63 >>> 128:0 Note off 1, note 60, velocity 0 >>> 128:0 Note on 1, note 60, velocity 63 >>> 128:0 Note off 1, note 60, velocity 0 >>> gc freed 79776/128000, time: 0.006225 >>> 128:0 Note on 0, note 61, velocity 63 >>> 128:0 Note off 0, note 61, velocity 0 >>> 128:0 Note on 0, note 61, velocity 63 >>> 128:0 Note off 0, note 61, velocity 0 >>> >>> so you can see the channel switching. You also see the gc fiddling >>> around for some reason that might be related to the problem. >>> >>> I guess this is a bug, not a feature, but is it Grace or some part >>> of my >>> system? Any ideas? >>> >>> regards >>> Daniel >>> --- >>> >>> >>> Btw: The statement in the tutorial to set the microtonal res. to >>> 12 is >>> missing some parentheses: >>> >>> send "mp:tuning", 12 >>> >>> _______________________________________________ >>> Cmdist mailing list >>> Cmdist at ccrma.stanford.edu >>> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >> > From bil at ccrma.Stanford.EDU Mon Mar 5 04:25:20 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 5 Mar 2012 04:25:20 -0800 Subject: [CM] Snd 12.9 Message-ID: <20120305122351.M13607@ccrma.Stanford.EDU> Snd 12.9 Mike Scholz got Snd to compile/load/run in FreeBSD 8, 9, and 10 CentOS: gcc (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3) Ubuntu: gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1 Debian: gcc (Debian 4.4.5-8) 4.4.5 NetBSD OpenBSD s7: added random-state?, hash-table-iterator?, and morally-equal? clm/cmn/snd/s7: removed snd1.html and snd-contents.html (these were using Javascript for stuff that is now built into html), and translated the rest of the html files to html5. snd: removed the recorder, recorder-dialog, snd-g|xrec.c, changed various menu names and added a view:with-grid menu moved dialog buttons around at random, removed save-macros and named keyboard macros, added context-sensitive tooltips to the gtk version, changed the gtk listener default font to Monospace 11, the "minibuffer" is now a "statusbar". This means it is not editable, so all the key sequences that used to prompt for info are either undefined now, or use a dialog instead. removed minibuffer-history-length, prompt-in-minibuffer, clear-minibuffer, and report-in-minibuffer. Replaced the latter two with status-report. removed sound-specific search-procedures (i.e. there is only one search procedure) removed the bomb function checked: clang 1.7, gmp 5.0.3, gtk 3.3.14|16 Thanks!: Mike Scholz From ahcnz at orcon.net.nz Mon Mar 5 09:44:02 2012 From: ahcnz at orcon.net.nz (adam) Date: Tue, 06 Mar 2012 06:44:02 +1300 Subject: [CM] Snd 12.9 In-Reply-To: <20120305122351.M13607@ccrma.Stanford.EDU> References: <20120305122351.M13607@ccrma.Stanford.EDU> Message-ID: <1330969442.3996.2.camel@ahc> Could you point us to the best Download point, Bill. Perhaps the are Build or Install instructions (Ubuntu). Thanks. From bil at ccrma.Stanford.EDU Mon Mar 5 09:59:41 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 5 Mar 2012 09:59:41 -0800 Subject: [CM] Snd 12.9 In-Reply-To: <1330969442.3996.2.camel@ahc> References: <20120305122351.M13607@ccrma.Stanford.EDU> <1330969442.3996.2.camel@ahc> Message-ID: <20120305175606.M35635@ccrma.Stanford.EDU> > Could you point us to the best Download point, Bill. The simplest might be sourceforge under snd, but there are also tarballs at ftp://ccrma-ftp.stanford.edu/pub/Lisp/snd-12.9.tar.gz and the daily tarball ftp://ccrma-ftp.stanford.edu/pub/Lisp/snd-12.tar.gz The file README.Snd has other stuff (like how to use the CVS site at sourceforge). Someday I'll try to move this to a more modern system like git. The ancient address I have for sourceforge is http://sourceforge.net/projects/snd/ but that may be out-of-date. From hieronymous.christian.uhrmacher at verizon.net Sat Mar 10 07:15:16 2012 From: hieronymous.christian.uhrmacher at verizon.net (JEFFREY ZIMMER) Date: Sat, 10 Mar 2012 10:15:16 -0500 Subject: [CM] Question on bracket function Message-ID: <83F8E641-8153-462C-9248-32470D055ADE@verizon.net> My question pertains to CMN. I would like to move the brackets that appear when one uses triplet quarters. (Some of my triplet groups include quarter and half rests.) I thought I would need to do something like this to shift the bracket location vertically, but it does not work: (rest (rq 2/3) (dx 0) (dy 0) (bracket '(0 .5 0 0 0 0))) (chord (notes c5 e5 ) tq (dx 0)) (chord (notes d5 f5 ) tq (dx 0)) CMN message: WARNING: odd argument to bracket: (0 0.5 0 0 0 0): Upon carriage return, CMN continues and produces an .eps file without the change, but the terminal prompt does not return without Ctrl-C. (I have been working with a version of CMN that I downloaded to my PowerPC Mac G5 in 2005. It operates under CLISP from Source Forge, which I obtained at the same time.) Thanks much for any help. P.S. - Is there a way to search the on-line mail archive for such questions? From bil at ccrma.Stanford.EDU Sat Mar 10 09:03:15 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Sat, 10 Mar 2012 09:03:15 -0800 Subject: [CM] Question on bracket function In-Reply-To: <83F8E641-8153-462C-9248-32470D055ADE@verizon.net> References: <83F8E641-8153-462C-9248-32470D055ADE@verizon.net> Message-ID: <20120310170241.M98442@ccrma.Stanford.EDU> I think you've hit a bug in cmn. If the initial rest were a note, this would work: (c4 (rq 2/3) (dx 0) (dy 0) (setf bt (beat-subdivision- (subdivision 3) (dy .5)))) (chord (notes c5 e5 ) tq (-beat-subdivision- bt) (dx 0)) (chord (notes d5 f5 ) tq (-beat-subdivision bt) (dx 0)) )) That is, the rhythmic bracket is called "beat-subdivision", and the syntax is very verbose. (dy .5) in the first note above pushes the entire bracket up a bit. Unfortunately, if the first note is a rest, cmn gets confused about the bracket placement. I'll look at this -- maybe it will be easy to fix. I don't know how to search the cmdist archive. From rbastian at free.fr Mon Mar 19 06:24:55 2012 From: rbastian at free.fr (=?ISO-8859-1?B?UmVu6Q==?= Bastian) Date: Mon, 19 Mar 2012 14:24:55 +0100 Subject: [CM] cmn, arrow Message-ID: <20120319142455.4738af4b@rene.carmen> Hi Bill, I need a good symbol for an arrow upon a note, a rest or a bar. My bad solutions: (cmn (output-file "XXX") (g5 q (note-head :arrow-down) stem-up) (g5 q (note-head :arrow-up) (dy 0.7)) (bar) (g5 q (note-head :arrow-up) (dx -0.5)(dy 0.7)) (c5 q)(c5 q)(c5 q) (quarter-rest) (g5 q (note-head :arrow-up) (dx -0.6)(dy 0.7)) ) ; cmn what is better ? -- Ren? Bastian www.pythoneon.org From bil at ccrma.Stanford.EDU Mon Mar 19 11:00:18 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 19 Mar 2012 11:00:18 -0700 Subject: [CM] cmn, arrow In-Reply-To: <20120319142455.4738af4b@rene.carmen> References: <20120319142455.4738af4b@rene.carmen> Message-ID: <20120319175815.M64470@ccrma.Stanford.EDU> > I need a good symbol for an arrow upon a note, a rest or a bar. Here's a possibility -- you can make the arrow any size and style you like: (defun display-lone-arrow (mark obj score &optional size) (let* ((y-off (+ (y0 mark) (dy mark) (staff-y0 obj) 1.5)) (width .3) ; arrow width (height .4) ; arrow height (x-off (+ (x0 obj) (dx mark) (center obj) (x0 mark)))) (with-thickness score mark .035 ; this is the stem thickness (moveto score x-off (+ y-off 0.7)) (lineto score x-off y-off) (draw score) (moveto score (- x-off (* 0.5 width)) y-off) (rlineto score width 0) (rlineto score (* -0.5 width) (* -0.5 height)) (rlineto score (* -0.5 width) (* 0.5 height)) (fill-in score)))) (defvar lone-arrow (make-instance 'write-protected-sundry :name :lone-arrow :mark #'display-lone-arrow)) (defun lone-arrow (&rest objects) (apply #'mark #'display-lone-arrow :lone-arrow objects)) (cmn (staff treble (g5 q (lone-arrow)) (bar lone-arrow) (quarter-rest (lone-arrow)))) From rbastian at free.fr Mon Mar 26 12:22:49 2012 From: rbastian at free.fr (=?ISO-8859-1?B?UmVu6Q==?= Bastian) Date: Mon, 26 Mar 2012 21:22:49 +0200 Subject: [CM] cml, bird, freq-skew Message-ID: <20120326212249.5831a586@rene.carmen> Hi, I translate the 'bird' instrument in my Python project. But I dont understand what freq-skew does: -------------------------------- (definstrument bird (startime dur frequency freq-skew amplitude freq-envelope amp-envelope &optional (lpfilt 1.0) (degree 0) (reverb-amount 0)) --------------------------------- Is it the 'ix' in the fm algorithm ? sin(2pi * fc * t + ix * sin(2pi * fm * t)) Thanks, -- Ren? Bastian www.pythoneon.org From tiago.videira at gmail.com Tue Mar 27 01:29:20 2012 From: tiago.videira at gmail.com (Tiago Videira) Date: Tue, 27 Mar 2012 03:29:20 -0500 Subject: [CM] variables for weights Message-ID: Hello! So far the nifty function of Prof Taube has worked fine with numbers: However it seems it can't handle variables in the place of weights. How can I change that so I can use for instance the command (setq z 30) (gn-weight 2 '((a z) (b 5) (c 50))) having defined z previously? Basically i'm trying to achieve a function that can handle a list of weighted probabilities, in which the weights can be variables. Many thanks and Kind regards ---- ;;MAKES A PROBABILITY-WEIGHTED LIST (defun make-ptable (data) (let ((total (loop for d in data sum (second d))) (sum 0)) ;; total holds sum of weights in data (loop for d in data for v = (first d) ; outcome to return for w = (second d) ; relative weight do (setq sum (+ sum w)) ;; collect outcome and normalized probability collect (list v (/ sum total))))) (defun pick-tbl (table) ;; return outcome in table according ;; to its weighted probability (let ((x (rnd2 0 1))) ;; x is uniform number < 1. (loop for d in table for p = (second d) when (< x p ) ; x in this segment. return (first d)))) (defun gn-weight (nb tbl) (loop for i from 0 to (- nb 1) collect (pick-tbl (make-ptable tbl)))) From rbastian at free.fr Tue Mar 27 01:41:51 2012 From: rbastian at free.fr (=?ISO-8859-1?B?UmVu6Q==?= Bastian) Date: Tue, 27 Mar 2012 10:41:51 +0200 Subject: [CM] cml, bird, freq-skew In-Reply-To: <20120326212249.5831a586@rene.carmen> References: <20120326212249.5831a586@rene.carmen> Message-ID: <20120327104151.1bccf5d7@rene.carmen> Le Mon, 26 Mar 2012 21:22:49 +0200, Ren? Bastian a ?crit : > Hi, > > I translate the 'bird' instrument in my Python project. > But I dont understand what freq-skew does: > -------------------------------- > (definstrument bird (startime dur frequency freq-skew amplitude > freq-envelope amp-envelope &optional (lpfilt 1.0) (degree 0) > (reverb-amount 0)) > --------------------------------- > Is it the 'ix' in the fm algorithm ? > sin(2pi * fc * t + ix * sin(2pi * fm * t)) > > Thanks, > > No, it seems to be the profile (or outline) of the freq-variation. -- Ren? Bastian www.pythoneon.org From bil at ccrma.Stanford.EDU Tue Mar 27 04:18:50 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 27 Mar 2012 04:18:50 -0700 Subject: [CM] cml, bird, freq-skew In-Reply-To: <20120327104151.1bccf5d7@rene.carmen> References: <20120326212249.5831a586@rene.carmen> <20120327104151.1bccf5d7@rene.carmen> Message-ID: <20120327111604.M99188@ccrma.Stanford.EDU> > No, it seems to be the profile (or outline) of the > freq-variation. That's right. It's a multiplier on the frequency envelope in Hz, so at some point in more explicit code, like your python example, you'll need to convert that value to a phase increment, via (I haven't had my coffee yet...) freqskew * 2 * pi / sampling-rate. I hope that's not upside down or something -- mus_hz_to_radians in clm.c, probably. From rbastian at free.fr Wed Mar 28 00:32:56 2012 From: rbastian at free.fr (=?ISO-8859-1?B?UmVu6Q==?= Bastian) Date: Wed, 28 Mar 2012 09:32:56 +0200 Subject: [CM] cml, ruby, sndlib Message-ID: <20120328093256.2d25704e@rene.carmen> Hi, when i try to compile a .rb file, i get the message ./ws.rb:386:in `require': no such file to load -- sndlib (LoadError) a solution? (I use the rb files from clm-4) -- Ren? Bastian www.pythoneon.org From bil at ccrma.Stanford.EDU Wed Mar 28 06:18:16 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 28 Mar 2012 06:18:16 -0700 Subject: [CM] cml, ruby, sndlib In-Reply-To: <20120328093256.2d25704e@rene.carmen> References: <20120328093256.2d25704e@rene.carmen> Message-ID: <20120328131711.M46886@ccrma.Stanford.EDU> I don't understand what you're trying to do -- the *.rb files are normally used in Snd, where Snd has been built with Ruby. In that case, sndlib is included at compile time, and you just load("ws.rb"), for example. I don't know anything about compiling a Ruby file. From mike at fth-devel.net Wed Mar 28 06:30:50 2012 From: mike at fth-devel.net (Michael Scholz) Date: Wed, 28 Mar 2012 15:30:50 +0200 (CEST) Subject: [CM] cml, ruby, sndlib In-Reply-To: <20120328093256.2d25704e@rene.carmen> Message-ID: <201203281330.q2SDUoHb047533@pumpkin.fth-devel.net> Rene Bastian wrote: > ./ws.rb:386:in `require': no such file to load -- sndlib (LoadError) There are two options: Load Ruby scripts from snd (configured --with-ruby) with 'require "ws.rb"'; the sndlib functions exist already in snd. Compile sndlib.so from sndlib.tar.gz configured --with-ruby and locate it where Ruby can find it, you can set environment variable RUBYLIB. Mike From rbastian at free.fr Wed Mar 28 07:58:41 2012 From: rbastian at free.fr (=?ISO-8859-1?B?UmVu6Q==?= Bastian) Date: Wed, 28 Mar 2012 16:58:41 +0200 Subject: [CM] cml, ruby, sndlib In-Reply-To: <20120328131711.M46886@ccrma.Stanford.EDU> References: <20120328093256.2d25704e@rene.carmen> <20120328131711.M46886@ccrma.Stanford.EDU> Message-ID: <20120328165841.1fab5d16@rene.carmen> Le Wed, 28 Mar 2012 06:18:16 -0700, "Bill Schottstaedt" a ?crit : > I don't understand what you're trying to do -- understand Ruby ...:) > the *.rb files > are normally used in Snd, where Snd has been built with > Ruby. In that case, sndlib is included at compile time, and > you just load("ws.rb"), for example. I don't know anything > about compiling a Ruby file. OK. There is an answer from Michael Scholz > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist -- Ren? Bastian www.pythoneon.org From rbastian at free.fr Wed Mar 28 08:19:57 2012 From: rbastian at free.fr (=?ISO-8859-1?B?UmVu6Q==?= Bastian) Date: Wed, 28 Mar 2012 17:19:57 +0200 Subject: [CM] cml, ruby, sndlib In-Reply-To: <201203281330.q2SDUoHb047533@pumpkin.fth-devel.net> References: <20120328093256.2d25704e@rene.carmen> <201203281330.q2SDUoHb047533@pumpkin.fth-devel.net> Message-ID: <20120328171957.3a02b2f2@rene.carmen> Le Wed, 28 Mar 2012 15:30:50 +0200 (CEST), Michael Scholz a ?crit : > Rene Bastian wrote: > > > ./ws.rb:386:in `require': no such file to load -- sndlib (LoadError) > > There are two options: > > Load Ruby scripts from snd (configured --with-ruby) with 'require > "ws.rb"'; the sndlib functions exist already in snd. I dont know if Snd has been configured --with-ruby > > Compile sndlib.so from sndlib.tar.gz configured --with-ruby and > locate it where Ruby can find it, you can set environment variable > RUBYLIB. I tried to compile sndlib, but 'make' cannot find 'ruby.h' - which is missing; I suppose that Debian6.0 installed binaries of 'ruby'. In file included from _sndlib.h:512, from headers.c:58: xen.h:169:19: error: ruby.h: Aucun fichier ou dossier de ce type (next month I will try to compile Ruby from a tar.gz) Gr?sse, > > Mike > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist -- Ren? Bastian www.pythoneon.org From rm at tuxteam.de Wed Mar 28 10:10:57 2012 From: rm at tuxteam.de (rm at tuxteam.de) Date: Wed, 28 Mar 2012 19:10:57 +0200 Subject: [CM] cml, ruby, sndlib In-Reply-To: <20120328171957.3a02b2f2@rene.carmen> References: <20120328093256.2d25704e@rene.carmen> <201203281330.q2SDUoHb047533@pumpkin.fth-devel.net> <20120328171957.3a02b2f2@rene.carmen> Message-ID: <20120328171057.GA17747@seid-online.de> On Wed, Mar 28, 2012 at 05:19:57PM +0200, Ren? Bastian wrote: > Le Wed, 28 Mar 2012 15:30:50 +0200 (CEST), > Michael Scholz a ?crit : > > > Rene Bastian wrote: > > > > > ./ws.rb:386:in `require': no such file to load -- sndlib (LoadError) > > > > There are two options: > > > > Load Ruby scripts from snd (configured --with-ruby) with 'require > > "ws.rb"'; the sndlib functions exist already in snd. > > I dont know if Snd has been configured --with-ruby > > > > Compile sndlib.so from sndlib.tar.gz configured --with-ruby and > > locate it where Ruby can find it, you can set environment variable > > RUBYLIB. > > I tried to compile sndlib, but 'make' cannot find > 'ruby.h' - which is missing; I suppose that Debian6.0 installed > binaries of 'ruby'. > > In file included from _sndlib.h:512, > from headers.c:58: > xen.h:169:19: error: ruby.h: Aucun fichier ou dossier de ce type > > (next month I will try to compile Ruby from a tar.gz) You'll need to install one of the ruby development packages: $ apt-file search ruby.h .... ruby1.8-dev: /usr/lib/ruby/1.8/x86_64-linux/ruby.h ruby1.9.1-dev: /usr/include/ruby-1.9.1/ruby.h ruby1.9.1-dev: /usr/include/ruby-1.9.1/ruby/ruby.h Choose the one matching your ruby. HTH Ralf Mattes > Gr?sse, > > > > > Mike > > > > _______________________________________________ > > Cmdist mailing list > > Cmdist at ccrma.stanford.edu > > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > > > -- > Ren? Bastian > www.pythoneon.org > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From s_boussuge at yahoo.fr Thu Mar 29 03:55:45 2012 From: s_boussuge at yahoo.fr (stephane boussuge) Date: Thu, 29 Mar 2012 12:55:45 +0200 Subject: [CM] bug in cycle pattern ?? Message-ID: <57EBD94B-7910-4BB3-923F-5CE78E9E3420@yahoo.fr> Hi, i'm on grace 3.8.0 svn:1969M. cycle pattern have a strange comportment: if i evaluate many times next(make-cycle({1 2 3 4 5})) it output only 1 each time i evaluate . is it normal ?? thanks St?phane Boussuge s_boussuge at yahoo.fr www.stephaneboussuge.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.schatzer at tin.it Thu Mar 29 09:17:10 2012 From: j.schatzer at tin.it (hans) Date: Thu, 29 Mar 2012 16:17:10 +0000 (UTC) Subject: [CM] problems with common music 'process' and common lisp package system Message-ID: I can play these 2 functions - with loop and process, if they are locally defined. (defun up-loop () (loop for key from 60 to 72 for beg from 0 by .1 collect (make-instance 'midi :time beg :keynum key :duration 1))) (events (up-loop) "myscore.mid") (defun up-process () (process for key from 60 to 72 for beg from 0 by .1 output (make-instance 'midi :time beg :keynum key :duration 1))) (events (up-process) "myscore.mid") When I define the functions in a package, say automatic-jazz, and import/load them with quicklisp (ql:quickload :automatic-jazz) (events (automatic-jazz:up-loop) "myscore.mid") loads and runs o.k. But loading up-process gives errors like: LOOP ERROR: Found 'FOR' where operator expected. ERROR: (in macroexpansion of (PROCESS FOR I ...)) illegal loop syntax thanks for any advice or help Hans From rm at tuxteam.de Thu Mar 29 10:08:52 2012 From: rm at tuxteam.de (rm at tuxteam.de) Date: Thu, 29 Mar 2012 19:08:52 +0200 Subject: [CM] bug in cycle pattern ?? In-Reply-To: <57EBD94B-7910-4BB3-923F-5CE78E9E3420@yahoo.fr> References: <57EBD94B-7910-4BB3-923F-5CE78E9E3420@yahoo.fr> Message-ID: <20120329170852.GA7761@seid-online.de> On Thu, Mar 29, 2012 at 12:55:45PM +0200, stephane boussuge wrote: > Hi, Since noone answered so far ... > i'm on grace 3.8.0 svn:1969M. > cycle pattern have a strange comportment: > > if i evaluate many times next(make-cycle({1 2 3 4 5})) > it output only 1 each time i evaluate . > > is it normal ?? To be expected. Every time you evaluate next(make-cycle({1 2 3 4 5})) * --------------------- | this -* evaluate to a new cycle whose first element is one. You need to create one cycle and call next on it serveral times: wheel-of-fortune = make-cycle(1 2 3 4 5 6) next(wheel-of-fortune) -> 1 next(wheel-of-fortune) -> 2 etc. HTH Ralf Mattes > thanks > > > St?phane Boussuge > s_boussuge at yahoo.fr > www.stephaneboussuge.blogspot.com > > > > > > > > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From taube at illinois.edu Thu Mar 29 12:40:55 2012 From: taube at illinois.edu (Heinrich Taube) Date: Thu, 29 Mar 2012 14:40:55 -0500 Subject: [CM] bug in cycle pattern ?? In-Reply-To: <20120329170852.GA7761@seid-online.de> References: <57EBD94B-7910-4BB3-923F-5CE78E9E3420@yahoo.fr> <20120329170852.GA7761@seid-online.de> Message-ID: <9322301A-C7E6-4222-B95D-DA0DF4F3E3F9@illinois.edu> yes thanks! ralph's example was good. you should create a pattern ONE time, but read from it as many times as you like ; create a pattern begin with mypat = next(make-cycle({1 2 3 4 5})) ; read 10 elements loop repeat 10 print(next(mypat)) end end ; its also possible to read a bunch of items using the next function itself, for example this reads 50 items from one pattern next(make-cycle({1 2 3 4 5}), 50) apologies i have a few pending messages to reply to -- ill try to get through them by tomorrow! From bil at ccrma.Stanford.EDU Thu Mar 29 12:52:57 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 29 Mar 2012 12:52:57 -0700 Subject: [CM] CL-CLM on github? Message-ID: <20120329195136.M53025@ccrma.Stanford.EDU> David Lindes says he would like to work on the CL version of CLM, "from adding example usage information, to documentation, to perhaps cleaning up certain warnings that I get, making it quicklisp-friendly... whatever." but he prefers git/github, about which I know nothing. I have no plans to develop the CL CLM, so surely this is a good thing? I sent him this email: Hi! I'm flattered that you're interested in CLM. I stopped working on the Lisp side of that code about 10 years ago because it was too painful to debug anything through the Lisp FFI's of that time (sbcl in particular was a nightmare). But I've continued fixing any bugs that people report. My real effort since has been in C/Scheme (sndclm.html in the Snd package). Since the sndlib portion is shared, I always test the CL stuff whenever sndlib changes. The other CL program from that era is CMN, also more-or-less comatose, but also maintained ever since. I don't know anything about git or github -- any info you might want to pass along would be welcome. I'm certainly open to your suggestion, and would like to avoid sourceforge, if possible (I assume github is something else). I'll ask the other CLM/CMN users what they prefer. From js0000 at gmail.com Thu Mar 29 13:00:59 2012 From: js0000 at gmail.com (john saylor) Date: Thu, 29 Mar 2012 16:00:59 -0400 Subject: [CM] CL-CLM on github? In-Reply-To: <20120329195136.M53025@ccrma.Stanford.EDU> References: <20120329195136.M53025@ccrma.Stanford.EDU> Message-ID: <4F74BF7B.6020309@gmail.com> On 03/29/2012 03:52 PM, Bill Schottstaedt wrote: > I don't know anything about git or github -- any info you might want to > pass along would be welcome. you could say github is the next generation of sourceforge, but it wouldn't be completely accurate. nonetheless, github is cool- i like it. you can maybe answer some of your questions at this website: http://help.github.com/ -- http://or8.net/~johns "yeah yeah yeah" -beatles From taube at illinois.edu Thu Mar 29 14:13:32 2012 From: taube at illinois.edu (Heinrich Taube) Date: Thu, 29 Mar 2012 16:13:32 -0500 Subject: [CM] problems with common music 'process' and common lisp package system In-Reply-To: References: Message-ID: as long you can actually run the up-process inside SOME package into which cm was loaded then i think this would have to be a pacakge inheritance issue. if thats the case im going to guess that all the process symbols (such as 'for' 'do' etc) need to be imported from whatever package the process macro is defined in to whatever package you import into. but if up-process doesnt work from within the the original cm package then there is must be som actual issue in the code and you will have to send a back trace. but it looks like a macro expansion issue.... On Mar 29, 2012, at 11:17 AM, hans wrote: > I can play these 2 functions - with loop and process, if they are > locally defined. > > (defun up-loop () > (loop for key from 60 to 72 > for beg from 0 by .1 > collect (make-instance 'midi :time beg > :keynum key > :duration 1))) > > (events (up-loop) "myscore.mid") > > (defun up-process () > (process for key from 60 to 72 > for beg from 0 by .1 > output (make-instance 'midi :time beg > :keynum key > :duration 1))) > > (events (up-process) "myscore.mid") > > > When I define the functions in a package, say automatic-jazz, > and import/load them with quicklisp (ql:quickload :automatic-jazz) > > (events (automatic-jazz:up-loop) "myscore.mid") > loads and runs o.k. > > But loading up-process > > gives errors like: > LOOP ERROR: Found 'FOR' where operator expected. > ERROR: (in macroexpansion of (PROCESS FOR I ...)) > illegal loop syntax > > thanks for any advice or help > Hans > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From taube at illinois.edu Thu Mar 29 14:32:26 2012 From: taube at illinois.edu (Heinrich Taube) Date: Thu, 29 Mar 2012 16:32:26 -0500 Subject: [CM] variables for weights In-Reply-To: References: Message-ID: <0F4FA0E7-1737-49F9-BAD5-4B7EE8138818@illinois.edu> > Hello! > So far the nifty function of Prof Taube has worked fine with numbers: > However it seems it can't handle variables in the place of weights. > How can I change that so I can use for instance the command > (setq z 30) > (gn-weight 2 '((a z) (b 5) (c 50))) hi. you can use a comma prefixed expression within the backquote macro (the ` char not the ' char) to selectively evaluate items in a list: so it would be: (let (( z 30)) (gn-weight 2 `((a , z) (b 5) (c 50)))) of course you can always use the list function and regular quoting to evaluate expressions too: (let ((z 30)) (gn-weight 2 (list (list 'a z) '(b 5) (c 50)))) but rather than using the code you included you might consider using patterns -- they will do all the work for you! in cm2 it would be (let (( z 30)) (new weighting :of `((a , z) (b 5) (c 50)))) in cm3: (let (( z 30)) (make-weighting `((a , z) (b 5) (c 50)) )) > _______________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From rm at tuxteam.de Thu Mar 29 17:41:53 2012 From: rm at tuxteam.de (rm at tuxteam.de) Date: Fri, 30 Mar 2012 02:41:53 +0200 Subject: [CM] CL-CLM on github? In-Reply-To: <20120329195136.M53025@ccrma.Stanford.EDU> References: <20120329195136.M53025@ccrma.Stanford.EDU> Message-ID: <20120330004153.GB7761@seid-online.de> On Thu, Mar 29, 2012 at 12:52:57PM -0700, Bill Schottstaedt wrote: > David Lindes says he would like to work on the CL version of CLM, > > "from adding example usage information, to documentation, to > perhaps cleaning up certain warnings that I get, making it > quicklisp-friendly... whatever." > > but he prefers git/github, about which I know nothing. I have no > plans to develop the CL CLM, so surely this is a good thing? Oh, marvelous! Yes, git is definitely the way to go. Thanks Ralf Mattes > I sent him this email: > > > Hi! I'm flattered that you're interested in CLM. I stopped working on > the Lisp side of that code about 10 years ago because it was too > painful to debug anything through the Lisp FFI's of that time (sbcl in > particular was a nightmare). But I've continued fixing any bugs that > people report. My real effort since has been in C/Scheme (sndclm.html in the > Snd package). Since the sndlib portion is shared, I always test the CL > stuff whenever sndlib changes. The other CL program from that era is CMN, > also more-or-less comatose, but also maintained ever since. > > I don't know anything about git or github -- any info you might want to > pass along would be welcome. I'm certainly open to your suggestion, > and would like to avoid sourceforge, if possible (I assume github is > something else). I'll ask the other CLM/CMN users what they prefer. > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From rbastian at free.fr Fri Mar 30 02:54:44 2012 From: rbastian at free.fr (=?ISO-8859-1?B?UmVu6Q==?= Bastian) Date: Fri, 30 Mar 2012 11:54:44 +0200 Subject: [CM] CMN, coma :) In-Reply-To: <20120329195136.M53025@ccrma.Stanford.EDU> References: <20120329195136.M53025@ccrma.Stanford.EDU> Message-ID: <20120330115444.609d5a47@rene.carmen> Le Thu, 29 Mar 2012 12:52:57 -0700, "Bill Schottstaedt" a ?crit : [...] > The > other CL program from that era is CMN, also more-or-less comatose, > but also maintained ever since. > [...] It is true that only few people use CMN. But it is sure that CMN works when Clisp works; all my old .cmn files compile on new installations - that is really not a sign of advanced coma. No other notation software (PC-composer, Score, MusixTex, ..., Lilypond) I have been working with has the logical qualities of CMN - and logic is the most intuitive tool. I abandoned Lilypond which is not compatible with himself 6 months later :) What is missing? Documentation how to add new signs - but that can be done by a wicki open to all (registrated) users. -- Ren? Bastian www.pythoneon.org From j.schatzer at tin.it Fri Mar 30 07:34:40 2012 From: j.schatzer at tin.it (hans) Date: Fri, 30 Mar 2012 14:34:40 +0000 (UTC) Subject: [CM] =?utf-8?q?problems_with_common_music_=27process=27_and_commo?= =?utf-8?q?n_lisp=09package_system?= References: Message-ID: Heinrich Taube writes: > > as long you can actually run the up-process inside SOME package into > which cm was loaded then i think this would have to be a pacakge > inheritance issue. if thats the case im going to guess that all the > process symbols (such as 'for' 'do' etc) need to be imported from > whatever package the process macro is defined in to whatever package > you import into. > > but if up-process doesnt work from within the the original cm package > then there is must be som actual issue in the code and you will have > to send a back trace. but it looks like a macro expansion issue.... > > On Mar 29, 2012, at 11:17 AM, hans wrote: > > > I can play these 2 functions - with loop and process, if they are > > locally defined. > > > > (defun up-loop () > > (loop for key from 60 to 72 > > for beg from 0 by .1 > > collect (make-instance 'midi :time beg > > :keynum key > > :duration 1))) > > > > (events (up-loop) "myscore.mid") > > > > (defun up-process () > > (process for key from 60 to 72 > > for beg from 0 by .1 > > output (make-instance 'midi :time beg > > :keynum key > > :duration 1))) > > > > (events (up-process) "myscore.mid") > > > > > > When I define the functions in a package, say automatic-jazz, > > and import/load them with quicklisp (ql:quickload :automatic-jazz) > > > > (events (automatic-jazz:up-loop) "myscore.mid") > > loads and runs o.k. > > > > But loading up-process > > > > gives errors like: > > LOOP ERROR: Found 'FOR' where operator expected. > > ERROR: (in macroexpansion of (PROCESS FOR I ...)) > > illegal loop syntax > > > > thanks for any advice or help > > Hans > > > > _______________________________________________ > > Cmdist mailing list > > Cmdist at ... > > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > I am trying to create a test case to show the problem: ;1) load common music ;2) this second part runs o.k. (cm) (defun up-loop () (loop for key from 60 to 72 for beg from 0 by .1 collect (make-instance 'midi :time beg :keynum key :duration 1))) (events (up-loop) "myscore.mid") (defun up-process () (process for key from 60 to 72 for beg from 0 by .1 output (make-instance 'midi :time beg :keynum key :duration 1))) (events (up-process) "myscore.mid") ;3) creating a package *package* ; # (defpackage #:automatic-jazz (:use #:cl #:cm) (:export #:up-loop #:up-process)) (in-package :automatic-jazz) ; o.k. (defun up-loop () (loop for key from 60 to 72 for beg from 0 by .1 collect (make-instance 'midi :time beg :keynum key :duration 1))) ; gives following error (defun up-process () (process for key from 60 to 72 for beg from 0 by .1 output (make-instance 'midi :time beg :keynum key :duration 1))) LOOP ERROR: Found 'FOR' where operator expected. clause context: 'FOR KEY FROM 60 TO 72 FOR BEG FROM 0 BY 0.1' in: LAMBDA NIL (CM:PROCESS AUTOMATIC-JAZZ::FOR AUTOMATIC-JAZZ::KEY AUTOMATIC-JAZZ::FROM 60 AUTOMATIC-JAZZ::TO 72 AUTOMATIC-JAZZ::FOR AUTOMATIC-JAZZ::BEG AUTOMATIC-JAZZ::FROM 0 AUTOMATIC-JAZZ::BY ...) caught ERROR: (in macroexpansion of (PROCESS FOR KEY ...)) (hint: For more precise location, try *BREAK-ON-SIGNALS*.) illegal loop syntax compilation unit finished caught 1 ERROR condition ;4) using the new package (cm) ; o.k. (events (automatic-jazz:up-loop) "myscore.mid") ; gives following error (events (automatic-jazz:up-process) "myscore.mid") Execution of a form compiled with errors. Form: (PROCESS FOR KEY FROM 60 TO 72 FOR BEG FROM 0 BY 0.1 OUTPUT (MAKE-INSTANCE 'MIDI TIME BEG KEYNUM KEY DURATION 1)) Compile-time error: (in macroexpansion of (PROCESS FOR KEY ...)) (hint: For more precise location, try *BREAK-ON-SIGNALS*.) illegal loop syntax Thank you Hans From taube at illinois.edu Fri Mar 30 08:11:00 2012 From: taube at illinois.edu (Heinrich Taube) Date: Fri, 30 Mar 2012 10:11:00 -0500 Subject: [CM] problems with common music 'process' and common lisp package system In-Reply-To: References: Message-ID: >> if thats the case im going to guess that all the >> process symbols (such as 'for' 'do' etc) need to be imported from >> whatever package the process macro is defined in to whatever package >> you import into. > LOOP ERROR: Found 'FOR' where operator expected. > clause context: 'FOR KEY FROM 60 TO 72 FOR BEG FROM 0 BY 0.1' > in: LAMBDA NIL > (CM:PROCESS > AUTOMATIC-JAZZ::FOR > AUTOMATIC-JAZZ::KEY > AUTOMATIC-JAZZ::FROM > 60 > AUTOMATIC-JAZZ::TO > 72 > AUTOMATIC-JAZZ::FOR > AUTOMATIC-JAZZ::BEG > AUTOMATIC-JAZZ::FROM > 0 > AUTOMATIC-JAZZ::BY > ...) > yes it looks like what i thought: the symbols AUTOMATIC-JAZZ::FOR and on need to be inherited from the cm package (you may have to export them from the cm package first)