From taube at uiuc.edu Mon May 1 08:08:15 2006 From: taube at uiuc.edu (Rick Taube) Date: Mon, 1 May 2006 10:08:15 -0500 Subject: [CM] CM/FOMUS problems In-Reply-To: <4454B8A3.6070301@woh.rr.com> References: <4454B8A3.6070301@woh.rr.com> Message-ID: I think this was due to stale fomus stubs in my code. I updated then and fomus compiles and loads in cm/sbcl. unfortunately anonymous cvs at sourceforge is still not up -- ill make a new snapshots later today or tomorrow once recv is working. > > Trying to get FOMUS working under CM 2.9.1, failing here: From ml13 at onlinehome.de Thu May 4 05:08:57 2006 From: ml13 at onlinehome.de (Kilian Sprotte) Date: Thu, 4 May 2006 14:08:57 +0200 Subject: [CM] only one X11 window Message-ID: <637289AF-863F-45E0-B6C6-8BC0686B7B6A@onlinehome.de> Hi, has anyone experienced the same problem? When I do (cm::plotter) or (cm::cmio) it works, I get a window in X11, but only once! (That means, if I have opened a plotter already, (cm::plotter) as well as (cm::cmio) wont work and vice versa.) Only if I restart my LISP, I can open another window... Closing this first window does not help and I dont get an error in the LISP - a plotter or cmio obj is returned, just the window is missing... I am quite sure this used to be different, but I dont know exactly when. Thanks for any comments, Kilian From ml13 at onlinehome.de Thu May 4 09:41:48 2006 From: ml13 at onlinehome.de (Kilian Sprotte) Date: Thu, 4 May 2006 18:41:48 +0200 Subject: [CM] only one X11 window In-Reply-To: References: <637289AF-863F-45E0-B6C6-8BC0686B7B6A@onlinehome.de> Message-ID: Hi Rick, I am on OSX - openmcl, in fact. Maybe this is just my fault, if no- one ever experienced that - I must admit that I am using the lambda- gtk lib from common-lisp.net, because I was interested to use it for other purposes, too. That means, I have hacked cm-gtk in way to use this other system. Maybe before you spend too much time on this, it would be a good idea to test with the completely original versions - if you dont mind, I will wait until anonymous CVS is up again and go with fresh versions from there. Ciao, Kilian Am 04.05.2006 um 17:37 schrieb Rick Taube: > I will take a look at this, it should be working. i assume you are > on linux? > On May 4, 2006, at 7:08 AM, Kilian Sprotte wrote: > >> Hi, >> >> has anyone experienced the same problem? >> >> When I do (cm::plotter) or (cm::cmio) it works, I get a window in >> X11, but only once! >> (That means, if I have opened a plotter already, (cm::plotter) as >> well as (cm::cmio) >> wont work and vice versa.) >> >> Only if I restart my LISP, I can open another window... Closing >> this first window does not help and I dont get an error in the >> LISP - a plotter or cmio obj is returned, just the window is >> missing... >> >> I am quite sure this used to be different, but I dont know exactly >> when. >> >> Thanks for any comments, >> >> Kilian >> _______________________________________________ >> Cmdist mailing list >> Cmdist at ccrma.stanford.edu >> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From ml13 at onlinehome.de Sat May 6 01:58:21 2006 From: ml13 at onlinehome.de (Kilian Sprotte) Date: Sat, 6 May 2006 10:58:21 +0200 Subject: [CM] only one X11 window In-Reply-To: References: <637289AF-863F-45E0-B6C6-8BC0686B7B6A@onlinehome.de> Message-ID: <75A1B1DD-2042-4134-A85A-B54B05B62E99@onlinehome.de> Am 04.05.2006 um 18:41 schrieb Kilian Sprotte: > Maybe before you spend too much time on this, it would be a good > idea to test with the completely original versions - if you dont > mind, I will wait until anonymous CVS is up again and go with fresh > versions from there. I am sorry for the noise - I have just tried with the latest snapshots and it works! So I suppose my problem was using the lambda-gtk package... Is this something you would not recommend in conjunction with cm-gtk? Bye, Kilian -------------- next part -------------- An HTML attachment was scrubbed... URL: From ml13 at onlinehome.de Sat May 6 03:26:02 2006 From: ml13 at onlinehome.de (Kilian Sprotte) Date: Sat, 6 May 2006 12:26:02 +0200 Subject: [CM] only one X11 window In-Reply-To: <75A1B1DD-2042-4134-A85A-B54B05B62E99@onlinehome.de> References: <637289AF-863F-45E0-B6C6-8BC0686B7B6A@onlinehome.de> <75A1B1DD-2042-4134-A85A-B54B05B62E99@onlinehome.de> Message-ID: Am 06.05.2006 um 10:58 schrieb Kilian Sprotte: > So I suppose my problem was using the lambda-gtk package... Is this > something you would not recommend in conjunction with cm-gtk? Sorry, for so many mails about this - I will stop soon.... Just felt responsible telling you that the whole reason for this strange behaviour was a difference in the gtkffi-openmcl.lisp file that shipped with cm-gtk (which works) and a different one that is being generated by lambda-gtk. Bye, Kilian -------------- next part -------------- An HTML attachment was scrubbed... URL: From taube at uiuc.edu Sat May 6 04:09:30 2006 From: taube at uiuc.edu (Rick Taube) Date: Sat, 6 May 2006 06:09:30 -0500 Subject: [CM] only one X11 window In-Reply-To: References: <637289AF-863F-45E0-B6C6-8BC0686B7B6A@onlinehome.de> <75A1B1DD-2042-4134-A85A-B54B05B62E99@onlinehome.de> Message-ID: the lambda-gtk sources have been slowly evolving to cffi. i didnt update cm-gtk with the newer code base because I dont have time to test and debug it. On May 6, 2006, at 5:26 AM, Kilian Sprotte wrote: > > Am 06.05.2006 um 10:58 schrieb Kilian Sprotte: > >> So I suppose my problem was using the lambda-gtk package... Is this >> something you would not recommend in conjunction with cm-gtk? > Sorry, for so many mails about this - I will stop soon.... > > Just felt responsible telling you that the whole reason for this > strange behaviour was a difference in the?gtkffi-openmcl.lisp file > that shipped with cm-gtk (which works) and a different one that is > being generated by lambda-gtk. > > Bye, > Kilian? From bil at ccrma.Stanford.EDU Sun May 7 10:43:04 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Sun, 7 May 2006 10:43:04 -0700 Subject: [CM] Snd 8.1 Message-ID: <20060507173834.M57682@ccrma.Stanford.EDU> Snd 8.1 added a bunch of Forth files (*.fs) thanks to Mike Scholz. many more improvements from Kjetil and Mike. Gauche support in Snd -- this is a Scheme extension language like Guile. http://www.shiro.dreamhost.com/scheme/gauche/index.html use --with-gauche in configure. There are a number of differences between Gauche and Guile. added gauche-optargs.scm to get define* (but not defmacro*) gauche-format.scm to get ~{ and others block comments in '#| |#' to the Guile Snd to be compatible with Gauche (and CL). removed ws-interrupt? arg (no defmacro* currently in Gauche version). added define+ and definstrument+ to get around lack of documentation string support in Gauche. changed all '#! !#' to "#| |#' changed all '#:' to ':' "run" is a no-op in Gauche -- local variables aren't (currently) accessible in this context. with-sound users will want to stick with Guile for now. clisp support in clm. Due to Clisp's way of macroexpanding "loop", the loop macro can't be used within "run" (this affects Clisp users only of course). I changed a bunch of such cases to use "do". Also, "run*" doesn't currently work in the Clisp clm. changed show-listener slightly; if optional arg is #f, listener is not created. removed envelope-base. clm-load (ws.scm) for cm. checked: sbcl 0.9.11|12, gsl 1.8, gtk 2.8.17, fftw 3.1.1, fth up to 0.8.17 with much help from: Michael Klingbeil, Kjetil, Mike. I haven't updated the sourceforge tarball yet. 7ade3736f809df826b1b5edb20fc249a41d889ee clm-3.tar.gz 0adefdc5f2ec243936cf02555d61e1cfc0a12c0d cmn.tar.gz af653d2d145a7c2af99ef5188d401383eacf4b3b libxm.tar.gz 60ee4a668450c741964147d6ce5316890d4fefc5 snd-8-1.i386.rpm 213389ed7da6f314ac886ada8014a437bbe84650 snd-8-1.src.rpm 5a09781d01df53ad6a532914d35243f6d34e2a3d snd-8.1.tar.gz 32f29cdd08f9ba5c342e2782c7e88df78653f01b snd-8.tar.bz2 81a09890355ca6d29047ca30c8b5c470a2a817b7 snd-8.tar.gz 93d59f806a4654815a694e43ff0fd5b5c43b3cac sndlib.tar.gz From bil at ccrma.Stanford.EDU Fri May 12 11:56:27 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 12 May 2006 11:56:27 -0700 Subject: [CM] cvs and whatnot Message-ID: <20060512185533.M33064@ccrma.Stanford.EDU> Sourceforge claims it will have CVS working sometime today, but any such users will need to recheck-out the sources under the new name snd.cvs.sourceforge.net So: cvs -d:pserver:anonymous at snd.cvs.sourceforge.net:/cvsroot/snd login cvs -z3 -d:pserver:anonymous at snd.cvs.sourceforge.net:/cvsroot/snd co cvs-snd I hope that will work -- I haven't tried it, and my connection to sourceforge has been broken for several days. I've looked at a bunch of extension languages; here's my quick take on some: * ecl: (CL) doable; will require that all direct refs be through * xen.c (can't include its header files!); it also * requires config.h (colliding with mine), and uses * the field "complex" which confuses C. * eel: (C) a commercial product * elastic: (C) looks dead (no change since 2001), like Lua in calling sequences * elk: (Scheme) looks dead (no change since 1996) and is worse than stklos * in terms of name-space problems * GameMonkey: () c++, windows oriented (no linux I think) * librep: (CL) looks dead, but I still have the macros (xen.h) * lua: () doable, but it looks like akcl to me (and it's not freeware?) * mzscheme: (Scheme) doable (I have the xen.h macros for it), but... * ocaml: (ML) not an extension language, as far as I can tell * octave: (Matlab) c++, probably doable -- I'm looking into this currently * [2.1.73 won't build -- g++ trouble?] * pike: (C) not an extension language * python: () looks like ruby to me -- why duplicate? * rscheme: (Scheme) won't build on my systems * s-lang: (C) probably doable -- would need to wrap everything in my own * struct, and 7 args max is too few. * squirrel: () c++, like lua in call sequence * stklos: (Scheme) doesn't build libstklos yet, and has many non-unique names * in its headers So, octave is the only one that looks interesting (despite being c++ based -- gah). From taube at uiuc.edu Fri May 12 12:21:32 2006 From: taube at uiuc.edu (Rick Taube) Date: Fri, 12 May 2006 14:21:32 -0500 Subject: [CM] cvs and whatnot In-Reply-To: <20060512185533.M33064@ccrma.Stanford.EDU> References: <20060512185533.M33064@ccrma.Stanford.EDU> Message-ID: <8777cb0b14fbb494f7d6738ec898dc68@uiuc.edu> > I hope that will work -- I haven't tried it, and my connection to > sourceforge has > been broken for several days. i have been able to cvs to sourcefore since this morning. apropos, the new anonymous cvs host for cm is: export CVSROOT=":pserver:anonymous at commonmusic.cvs.sourceforge.net:/cvsroot/ commonmusic" cvs login cvs checkout {cm|rts|midishare|portmidi} > * mzscheme: (Scheme) doable (I have the xen.h macros for it), > but... > * stklos: (Scheme) doesn't build libstklos yet, and has many > non-unique names say did you look at chicken? http://www.call-with-current-continuation.org/ From bil at ccrma.Stanford.EDU Fri May 12 13:02:26 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 12 May 2006 13:02:26 -0700 Subject: [CM] Re: Scheme extension languages In-Reply-To: <4464DDB0.5070602@polymtl.ca> References: <4464DDB0.5070602@polymtl.ca> Message-ID: <20060512200159.M24956@ccrma.Stanford.EDU> I forgot about Chicken, and didn't know about Gambit -- thanks for the pointers -- I'll check them out. From mis at artengine.ca Fri May 12 20:39:31 2006 From: mis at artengine.ca (Michal Seta) Date: 12 May 2006 23:39:31 -0400 Subject: [CM] cvs and whatnot In-Reply-To: <8777cb0b14fbb494f7d6738ec898dc68@uiuc.edu> References: <20060512185533.M33064@ccrma.Stanford.EDU> <8777cb0b14fbb494f7d6738ec898dc68@uiuc.edu> Message-ID: <86zmhmbnkc.fsf@localhost.localdomain> Rick Taube writes: > say did you look at chicken? > > http://www.call-with-current-continuation.org/ and how about lush? http://lush.sourceforge.net/ Although, perhaps the other way around would be worthwile, i.e. using sndlib from lush... ./MiS From b0ef at esben-stien.name Sat May 13 19:49:46 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Sun, 14 May 2006 04:49:46 +0200 Subject: [CM] Crack Noise (snd-8.1) Message-ID: <87bqu1coc5.fsf@esben-stien.name> I'm getting terrible crackling in the noise after some while using SND. Only option is to restart. I'm not sure what info to provide. I have no such problems with any other JACK app. I'm on GNU/Linux, JACK 0.101.1 Any pointers as to what I can try? -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact [sip|iax]: e e jid:b0ef@ n n From b0ef at esben-stien.name Sat May 13 19:56:27 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Sun, 14 May 2006 04:56:27 +0200 Subject: [CM] Crack Noise (snd-8.1) In-Reply-To: <87bqu1coc5.fsf@esben-stien.name> (Esben Stien's message of "Sun, 14 May 2006 04:49:46 +0200") References: <87bqu1coc5.fsf@esben-stien.name> Message-ID: <877j4pco10.fsf@esben-stien.name> Esben Stien writes: > I'm getting terrible crackling in the noise after some while Strange; when I went to the menu and opened "Regions", the sound was ok again. It was also fine when I exited the "Regions" window. -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact [sip|iax]: e e jid:b0ef@ n n From b0ef at esben-stien.name Sat May 13 19:59:50 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Sun, 14 May 2006 04:59:50 +0200 Subject: [CM] Repeating History (snd-8.1) Message-ID: <873bfdcnvd.fsf@esben-stien.name> I'm experiencing that SND is repeating some sound that was already played: I start playback with C-q, then stop it with C-t some seconds later. When I hit C-q again, it plays a little bit from where it stopped before it starts to play from the point. Any pointers how to avoid this? -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact [sip|iax]: e e jid:b0ef@ n n From prthomas at toast.net Sat May 13 20:17:51 2006 From: prthomas at toast.net (pete thomas) Date: Sat, 13 May 2006 22:17:51 -0500 Subject: [CM] snd gtk question Message-ID: <1147576649.11499.79.camel@localhost.localdomain> Whenever "--with-gtk" is enabled in snd-8, snd-ls, and snd-gtk-7.16, windows open larger than screen size (RECORD, PREFERENCES for example). Either the bottom (with buttons),top, or both are off the screen. Thanks for your ideas, pete thomas From prthomas at toast.net Sat May 13 20:17:26 2006 From: prthomas at toast.net (pete thomas) Date: Sat, 13 May 2006 22:17:26 -0500 Subject: [CM] snd-8 capture question Message-ID: <1147576646.11499.77.camel@localhost.localdomain> I've been having no luck getting snd-8 (and snd-ls) to recognize inputs on my M-audio 1010LT using jack. The last version that worked was snd-7.16 but only when using OSS. The recording window lists no inputs and 3 output banks. The connections are present in qjackctl. When opening the RECORD window, multiple error messages occur: "unable to handle format mus-lintn" When enabling RECORD, the error message is: "OPEN DEVICE: CHANS FIELD(2) doesn't match file out panel (0 channel active) can't record: no inputs enabled" I've tried different ./configure 's with no luck. Any ideas will be appreciated, pete thomas From taube at uiuc.edu Sun May 14 14:35:44 2006 From: taube at uiuc.edu (Rick Taube) Date: Sun, 14 May 2006 16:35:44 -0500 Subject: [CM] CM 2.9.1 + RTS 2.0 released Message-ID: we have released the final design of the C based RTS scheduler as rts 2.0.0: http://sourceforge.net/project/showfiles.php?group_id=9766 It requires CM 2.9.1 and Portmidi 2.0.0, also just released as tarballs on the same page. We switched the scheduler from using cond_timedwait to a timing loop with nanosleep to yield as precise timings as possible. Testing results over a ten minute interval shows the scheduler performing very well indeed; I think I'm finally convinced now that CM can be used in real-time concert situations. But you can see for yourself, we've posted timings and consing/speed statistics here: http://pinhead.music.uiuc.edu/~hkt/rtstest/rts-test.html scheduling cpu% averaged around 7-8% even under heavy usage -- way, way under the eariler lisp-based rts. (you can adjust cpu using the :priority and :resolution args to rts.) As testing results show, it does make a difference if you cons or not. for non-concert work consing is not important, but if you really try to do an interactive piece you will probably want to use the millisecond :time-format and avoid allocating lots of clos objects and doing floating point math. So to help with this -- and without becoming overly obsessive about it I hope -- we have implemented some non-consing replacements for a handful of the most common CM runtime functions: rts:between rts:interp rts:rescale rts:odds etc. these all have restricted behavior (they return only ints for example). see the new tools documentation on the updated RTS topic page: http://commonmusic.sf.net/doc/dict/rts-topic.html#tools Other new RTS features: * error handlers are now installed under the callback, error modes are: :continue - offending process is dropped; rts continues running :stop - rts aborts error and stops. :debug - rts signals error break. * rts-hush, rts-pause, rts-continue now work. * user hooks can be set on rts, rts-pause, rts-continue, rts-stop * object start times are ignored on output; your code can still do :time (now) but it has no effect. * rts runs in Gauche but we still have to figure out how to handle GC. gauche rts should perform better on Linux than Darwin since apparently ephemeral gc is possible there but i havent tried. Currently RTS can only be used with portmidi, and you need to install both RTS and the latest Portmidi system by doing ./configure and ./make. see the updated install.html for info about installing the C based RTS and Portmidi. http://commonmusic.sf.net/doc/install.html The Midishare and OSC systems will be added soon. Note that the receiving API has changed slightly (its easier to use) but we have not documented this yet so you will have to figure it out by looking at testing files for now. btw the graphs on the testing page were made with a gnuplot interface that Todd wrote, if some gnuplot guru out there would like to make it a real event stream in CM that would be great. right now you can get it by checking out the cmt testing module 'cvs checkout cmt' --rick From andersvi at extern.uio.no Mon May 15 01:27:00 2006 From: andersvi at extern.uio.no (andersvi at extern.uio.no) Date: Mon, 15 May 2006 10:27:00 +0200 Subject: [CM] CM 2.9.1 + RTS 2.0 released In-Reply-To: (Rick Taube's message of "Sun, 14 May 2006 16:35:44 -0500") References: Message-ID: What SBCL environment is RTS working with? Tried various sbcl's, with various versions of cffi without luck. CFFI, PORTMIDI (and MIDISHARE) loads fine, but (use-system :rts) in a freshly booted cm returns an error: (CFFI::HANDLE-LOAD-FOREIGN-LIBRARY-ERROR "/site/cm-sys/rts/librts.so" "Unable to load foreign library: ~A" "/site/cm-sys/rts/librts.so") 0] This is cm, rts, and cffi_0.9.1, (and fc3 from the planet) >>> "RT" == Rick Taube writes: RT> RT> we have released the final design of the C based RTS RT> scheduler as rts 2.0.0: RT> RT> http://sourceforge.net/project/showfiles.php?group_id=9766 From azervopoulos at gmail.com Mon May 15 04:07:35 2006 From: azervopoulos at gmail.com (Thanassis Zervopoulos) Date: Mon, 15 May 2006 14:07:35 +0300 Subject: [CM] Portmidi record and Sound Message-ID: I'd like to ask if there is a way to record something with (portmidi-record ...) and at the same time (real time) to hear it and then (portmidi-record nil) Is that possible? Thanx in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From bil at ccrma.Stanford.EDU Mon May 15 04:45:44 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 15 May 2006 04:45:44 -0700 Subject: [CM] Repeating History (snd-8.1) In-Reply-To: <873bfdcnvd.fsf@esben-stien.name> References: <873bfdcnvd.fsf@esben-stien.name> Message-ID: <446869E8.4050804@ccrma> I can't get this bug to happen. It sounds like some buffer isn't being cleared. I also don't get the crackling noise, and can't immediately think of any reason why the regions dialog would clear it. From bil at ccrma.Stanford.EDU Mon May 15 04:51:25 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 15 May 2006 04:51:25 -0700 Subject: [CM] snd-8 capture question In-Reply-To: <1147576646.11499.77.camel@localhost.localdomain> References: <1147576646.11499.77.camel@localhost.localdomain> Message-ID: <44686B3D.1010202@ccrma> I think others have mentioned that that device doesn't work in Snd -- I don't have one, so it's hard to fix. I think the error message is trying to say that there aren't any active output channels (which is independent of the hardware -- did you activate at least one output channel?). You also need to activate at least one input. As the default, the recorder just shows the signals it can find. From bil at ccrma.Stanford.EDU Mon May 15 04:55:24 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 15 May 2006 04:55:24 -0700 Subject: [CM] snd gtk question In-Reply-To: <1147576649.11499.79.camel@localhost.localdomain> References: <1147576649.11499.79.camel@localhost.localdomain> Message-ID: <44686C2C.5020607@ccrma> In gtk I don't think I set the size of the recorder window, but I do set the preferences dialog size -- I'll add some check for the screen size in that case. You can make the recorder window smaller by setting vu-size to less than 1.0. From taube at uiuc.edu Mon May 15 05:37:19 2006 From: taube at uiuc.edu (Rick Taube) Date: Mon, 15 May 2006 07:37:19 -0500 Subject: [CM] CM 2.9.1 + RTS 2.0 released In-Reply-To: References: Message-ID: <632ff83e1ab04d325b11af2e89be545f@uiuc.edu> # SBCL 0.9.10/GNU Linux (Planet CCRMA) Dell i686, 1.5 GHz, 512M RAM. # Systems: cm-2.9.1, cffi-060107, portmidi-2.0.0, rts-2.0.0 did you make the libs in rts/ ? look for any error messages. > What SBCL environment is RTS working with? Tried various sbcl's, > with various versions of cffi without luck. CFFI, PORTMIDI (and > MIDISHARE) loads fine, but (use-system :rts) in a freshly booted From taube at uiuc.edu Mon May 15 05:46:36 2006 From: taube at uiuc.edu (Rick Taube) Date: Mon, 15 May 2006 07:46:36 -0500 Subject: [CM] CM 2.9.1 + RTS 2.0 released In-Reply-To: <632ff83e1ab04d325b11af2e89be545f@uiuc.edu> References: <632ff83e1ab04d325b11af2e89be545f@uiuc.edu> Message-ID: <8804cc20f3da325d910a405e56f1e963@uiuc.edu> # SBCL 0.9.10/GNU Linux (Planet CCRMA) Dell i686, 1.5 GHz, 512M RAM. also todd is also able to run it in SBCL under OSX/Tiger. the c lib should build clean so when you make it look for any warning that might mean problems you can also try loading the rts system with warnings enabled: (use-system :rts :warnings t) On May 15, 2006, at 7:37 AM, Rick Taube wrote: > > # Systems: cm-2.9.1, cffi-060107, portmidi-2.0.0, rts-2.0.0 > > > did you make the libs in rts/ ? > look for any error messages. > > >> What SBCL environment is RTS working with? Tried various sbcl's, >> with various versions of cffi without luck. CFFI, PORTMIDI (and >> MIDISHARE) loads fine, but (use-system :rts) in a freshly booted > From taube at uiuc.edu Mon May 15 05:59:57 2006 From: taube at uiuc.edu (Rick Taube) Date: Mon, 15 May 2006 07:59:57 -0500 Subject: [CM] CM 2.9.1 + RTS 2.0 released In-Reply-To: <8804cc20f3da325d910a405e56f1e963@uiuc.edu> References: <632ff83e1ab04d325b11af2e89be545f@uiuc.edu> <8804cc20f3da325d910a405e56f1e963@uiuc.edu> Message-ID: <03b86dfe49a1d7420fe2599b978ac3a9@uiuc.edu> important: try to build things directly in a terminal first without SLIME! i noticed I got that error once when I was working in emacs/slime but when I switched to the terminal it worked fine. i have not been doing any testing or running in slime since then. From taube at uiuc.edu Mon May 15 06:16:56 2006 From: taube at uiuc.edu (Rick Taube) Date: Mon, 15 May 2006 08:16:56 -0500 Subject: [CM] CM 2.9.1 + RTS 2.0 released In-Reply-To: <632ff83e1ab04d325b11af2e89be545f@uiuc.edu> References: <632ff83e1ab04d325b11af2e89be545f@uiuc.edu> Message-ID: I am able to build,load, start and stop rts on a CCRMA machine when i login remotely: * (lisp-implementation-version) "0.9.7" * (use-system :rts) ; loading system definition from /user/h/hkt/rts/rts.asd into ; # ; loading #P"/user/h/hkt/rts/rts.asd" ; registering # as RTS ; compiling file "/user/h/hkt/rts/cffi-scheduler.lisp" (written 13 MAY 2006 08:09:26 AM): ; /user/h/hkt/rts/cffi-scheduler.fasl written ; compilation finished in 0:00:01 ; loading #P"/user/h/hkt/rts/cffi-scheduler.fasl" ; compiling file "/user/h/hkt/rts/cm-scheduler.lisp" (written 03 MAY 2006 08:51:13 AM): ; /user/h/hkt/rts/cm-scheduler.fasl written ; compilation finished in 0:00:00 ; loading #P"/user/h/hkt/rts/cm-scheduler.fasl" # * (rts) ; RTS running * (rts-stop) ; RTS stopped. From taube at uiuc.edu Mon May 15 06:42:41 2006 From: taube at uiuc.edu (Rick Taube) Date: Mon, 15 May 2006 08:42:41 -0500 Subject: [CM] CM 2.9.1 + RTS 2.0 released In-Reply-To: References: Message-ID: I do notice that on the remote ccrma machine i have to sprout a tiny bit into the future or sbcl crashes: * (sprout (process repeat 4 do (print (now)) wait .5) :at (+ (now) .1)) * 0.005528927 0.50558186 1.009634 this doesnt happen on my linux box, and im not sure what the issue is at this point. From taube at uiuc.edu Mon May 15 08:12:35 2006 From: taube at uiuc.edu (Rick Taube) Date: Mon, 15 May 2006 10:12:35 -0500 Subject: [CM] slime and rts In-Reply-To: References: Message-ID: <9605B825-17A9-4516-817D-2D4CBEE36B1D@uiuc.edu> i can get rts to run under slime in linux/sbcl by setting swank:*communication-style* to :fd-handler in my ~/.swank.lisp file: (setf swank:*communication-style* ':fd-handler) the default behavior is :spawn, which apparently spawns threads in sbcl that must conflict with the posix c thread that rts starts somehow. if you send me bugs please be sure you are running directly in a terminal -- getting emacs and slime involved on top of everything else makes it impossible for me to know what is going wrong. From andersvi at extern.uio.no Mon May 15 09:49:45 2006 From: andersvi at extern.uio.no (andersvi at extern.uio.no) Date: Mon, 15 May 2006 18:49:45 +0200 Subject: [CM] CM 2.9.1 + RTS 2.0 released In-Reply-To: <632ff83e1ab04d325b11af2e89be545f@uiuc.edu> (Rick Taube's message of "Mon, 15 May 2006 07:37:19 -0500") References: <632ff83e1ab04d325b11af2e89be545f@uiuc.edu> Message-ID: >>> "R" == Rick Taube writes: R> R> # SBCL 0.9.10/GNU Linux (Planet CCRMA) Dell i686, 1.5 GHz, 512M RAM. R> # Systems: cm-2.9.1, cffi-060107, portmidi-2.0.0, rts-2.0.0 R> R> R> did you make the libs in rts/ ? R> look for any error messages. R> I did all the standard error-seeking, w/wo slime/xemacs, rebuilding fasls, getting rid of init-files etc., wo luck. There are no error messages coming from 'make'-ing the rts-libs. As always, ive tried everything - and as always theres obviously something ive forgotten :-) compiling, loading and executing clm instruments w. various .so libs works fine. Ill test on some other machine to see when i get some time. If i find out what ive forgot :) ill send you a note. -anders ----\\\-------- ----/\\\------- Common Music 2.9.1 ---/--\\\------ --/----\\\----- / \\\/ * (use-system :rts :warnings t) ; loading system definition from /site/cm-sys/rts/rts.asd into ; # ; loading #P"/site/cm-sys/rts/rts.asd" ; registering # as RTS ; loading system definition from /site/cm-sys/cffi_0.9.1/cffi.asd into ; # ; loading #P"/site/cm-sys/cffi_0.9.1/cffi.asd" ; registering # as CFFI ; loading #P"/site/cm-sys/cffi_0.9.1/src/utils.fasl" ; loading #P"/site/cm-sys/cffi_0.9.1/src/features.fasl" ; loading #P"/site/cm-sys/cffi_0.9.1/src/cffi-sbcl.fasl" ; loading #P"/site/cm-sys/cffi_0.9.1/src/package.fasl" ; loading #P"/site/cm-sys/cffi_0.9.1/src/libraries.fasl" ; loading #P"/site/cm-sys/cffi_0.9.1/src/early-types.fasl" ; loading #P"/site/cm-sys/cffi_0.9.1/src/types.fasl" ; loading #P"/site/cm-sys/cffi_0.9.1/src/enum.fasl" ; loading #P"/site/cm-sys/cffi_0.9.1/src/strings.fasl" ; loading #P"/site/cm-sys/cffi_0.9.1/src/functions.fasl" ; loading #P"/site/cm-sys/cffi_0.9.1/src/foreign-vars.fasl" ; compiling file "/site/cm-sys/rts/cffi-scheduler.lisp" (written 13 MAY 2006 05:09:26 PM): ; /site/cm-sys/rts/cffi-scheduler.fasl written ; compilation finished in 0:00:01 ; loading #P"/site/cm-sys/rts/cffi-scheduler.fasl" debugger invoked on a CFFI:LOAD-FOREIGN-LIBRARY-ERROR: Unable to load foreign library: /site/cm-sys/rts/librts.so Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL. restarts (invokable by number or by possibly-abbreviated name): 0: [RETRY ] Try loading the foreign library again. 1: [USE-VALUE] Use another library instead. 2: [RETRY ] Retry performing # on #. 3: [ACCEPT ] Continue, treating # on # as having been successful. 4: [ABORT ] Exit debugger, returning to top level. (CFFI::HANDLE-LOAD-FOREIGN-LIBRARY-ERROR "/site/cm-sys/rts/librts.so" "Unable to load foreign library: ~A" "/site/cm-sys/rts/librts.so") 0] From andersvi at extern.uio.no Tue May 16 07:20:04 2006 From: andersvi at extern.uio.no (andersvi at extern.uio.no) Date: Tue, 16 May 2006 16:20:04 +0200 Subject: [CM] CM 2.9.1 + RTS 2.0 released In-Reply-To: <5f86131899a432dd8972ceb2876d8e4f@uiuc.edu> (Rick Taube's message of "Tue, 16 May 2006 07:41:13 -0500") References: <632ff83e1ab04d325b11af2e89be545f@uiuc.edu> <5f86131899a432dd8972ceb2876d8e4f@uiuc.edu> Message-ID: Everything works straight on NOTAMs linuxboxes here. Sprouting away zillions of realtime processes :-) (havent tried with midishare or osc yet, just portmidi). This is sbcl-0.9.9*, and latest & greatest of everything from cm/rts/portmidi, and various versions of cffi. My problems seem to be some local weirdness on one machine at home. If i find some reason which might be worth knowing about for others ill send you a note. >>> "R" == Rick Taube writes: R> anders did you get it running with the cffi i sent you? From kruhft at gmail.com Tue May 16 10:07:17 2006 From: kruhft at gmail.com (Burton Samograd) Date: Tue, 16 May 2006 11:07:17 -0600 Subject: [CM] programmed piano Message-ID: <87sln9yk3e.fsf@gmail.com> Hi All, I just started with CLM and found the piano instrument to be nothing less than amazing sounding! I wrote some generative piano pieces that might be of interest for those that like modern, moody, stream of conciousness type music. Don't expect Bach or Beethoven, but my computer just started to play a couple of days ago :) You can grab the mp3's from: http://kruhft.boldlygoingnowhere.org/programmed_piano -- burton samograd kruhft .at. gmail kruhft.blogspot.com www.myspace.com/kruhft metashell.blogspot.com From taube at uiuc.edu Tue May 16 14:26:20 2006 From: taube at uiuc.edu (Rick Taube) Date: Tue, 16 May 2006 16:26:20 -0500 Subject: [CM] CM 2.9.1 + RTS 2.0 released In-Reply-To: References: <632ff83e1ab04d325b11af2e89be545f@uiuc.edu> <5f86131899a432dd8972ceb2876d8e4f@uiuc.edu> Message-ID: <2ebd51456c44c7ea3408bbbfd8c25951@uiuc.edu> > away zillions of realtime processes :-) (havent tried with > midishare or osc yet, just portmidi). This is sbcl-0.9.9*, and you should be able to output to any of them (they are all under construction...) but only portmidi receving is probably working. in a nutshell the new receiving api is: (recv ) ; starts C thread receiving on stream (recv-stop ) ; stops it (recv-set! ) ; set/clear receive hook (recv? ) ; predicate From kruhft at gmail.com Tue May 16 20:48:26 2006 From: kruhft at gmail.com (Burton Samograd) Date: Tue, 16 May 2006 21:48:26 -0600 Subject: [CM] Re: programmed piano References: <87sln9yk3e.fsf@gmail.com> Message-ID: <873bf9xqet.fsf@gmail.com> Burton Samograd writes: Slight change of URL and a torrent is now available: http://kruhft.boldlygoingnowhere.org/kruhft__programmed_piano__2006 I tried the torrent on my box and it worked, but if anyone could check and see if it works outside I'd appreciate it since this is my first seeding attempt. -- burton samograd kruhft .at. gmail kruhft.blogspot.com www.myspace.com/kruhft metashell.blogspot.com From emres at bilgi.edu.tr Wed May 17 05:12:57 2006 From: emres at bilgi.edu.tr (=?ISO-8859-1?Q?Emre_Sevin=E7?=) Date: Wed, 17 May 2006 15:12:57 +0300 Subject: [CM] programmed piano In-Reply-To: <87sln9yk3e.fsf@gmail.com> References: <87sln9yk3e.fsf@gmail.com> Message-ID: <446B1349.9070002@bilgi.edu.tr> Burton Samograd wrote: >Hi All, > >I just started with CLM and found the piano instrument to be nothing >less than amazing sounding! I wrote some generative piano pieces >that might be of interest for those that like modern, moody, stream of >conciousness type music. Don't expect Bach or Beethoven, but my >computer just started to play a couple of days ago :) > >You can grab the mp3's from: > >http://kruhft.boldlygoingnowhere.org/programmed_piano > Where can we find your Common Music source code for that mp3s? -- Emre Sevinc eMBA Software Development Istanbul Bilgi University http://www.bilgi.edu.tr From kruhft at gmail.com Wed May 17 08:15:08 2006 From: kruhft at gmail.com (Burton Samograd) Date: Wed, 17 May 2006 09:15:08 -0600 Subject: [CM] Re: programmed piano References: <87sln9yk3e.fsf@gmail.com> <446B1349.9070002@bilgi.edu.tr> Message-ID: <87lkt0vg1v.fsf@gmail.com> Emre Sevin? writes: > Where can we find your Common Music source code for that mp3s? To be honest, I don't have it any more since I was just doing a write/modify/render cycle; ie. just playing around to test some techniques and see what they would sound like. I'm planning on completing a full length album in near future and will be saving all the code for that project. The only thing about the code, is that these songs are all unique. Each run of the program produces a new version, so the code is really more of a song 'style' generator... My main goal is to produce an infinite piano 'player', following the ideas of John Cage and his future music theory (I can't remember hist quote at the moment, but it had to do with recordings being obsolete and people will just listen to programs that continuously generate music for you). -- burton samograd kruhft .at. gmail kruhft.blogspot.com www.myspace.com/kruhft metashell.blogspot.com From bil at ccrma.Stanford.EDU Wed May 17 09:00:45 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 17 May 2006 09:00:45 -0700 Subject: [CM] Re: programmed piano In-Reply-To: <87lkt0vg1v.fsf@gmail.com> References: <87sln9yk3e.fsf@gmail.com> <446B1349.9070002@bilgi.edu.tr> <87lkt0vg1v.fsf@gmail.com> Message-ID: <446B48AD.9050805@ccrma> There's some gadget -- madplayer perhaps or madwaves -- it generates various musical styles on the fly -- looks like a CD player. If only I had known there was a market for automatic composition... From kruhft at gmail.com Wed May 17 09:21:57 2006 From: kruhft at gmail.com (Burton Samograd) Date: Wed, 17 May 2006 10:21:57 -0600 Subject: [CM] Re: programmed piano References: <87sln9yk3e.fsf@gmail.com> <446B1349.9070002@bilgi.edu.tr> <87lkt0vg1v.fsf@gmail.com> <446B48AD.9050805@ccrma> Message-ID: <87ves4tye2.fsf@gmail.com> Bill Schottstaedt writes: > There's some gadget -- madplayer perhaps or madwaves -- it generates > various musical styles on the fly -- looks like a CD player. If > only I had known there was a market for automatic composition... Yes, I admit it's not really the hardest thing to do, but I wouldn't really say there is a market for it...yet. People are entrenched in the purchasing of albums, which is slowly fading away to individual songs with iTunes, who knows what might come next? -- burton samograd kruhft .at. gmail kruhft.blogspot.com www.myspace.com/kruhft metashell.blogspot.com From andersvi at extern.uio.no Wed May 17 09:58:55 2006 From: andersvi at extern.uio.no (andersvi at extern.uio.no) Date: Wed, 17 May 2006 18:58:55 +0200 Subject: [CM] CM 2.9.1 + RTS 2.0 released In-Reply-To: <2ebd51456c44c7ea3408bbbfd8c25951@uiuc.edu> (Rick Taube's message of "Tue, 16 May 2006 16:26:20 -0500") References: <632ff83e1ab04d325b11af2e89be545f@uiuc.edu> <5f86131899a432dd8972ceb2876d8e4f@uiuc.edu> <2ebd51456c44c7ea3408bbbfd8c25951@uiuc.edu> Message-ID: >>> "R" == Rick Taube writes: R> >> away zillions of realtime processes :-) (havent tried with >> midishare or osc yet, just portmidi). This is sbcl-0.9.9*, and R> R> you should be able to output to any of them (they are all under R> construction...) but only portmidi receving is probably working. in a R> nutshell the new receiving api is: I tried loading the osc-system, changing "libc.dylib" to "libc.so" in "osc/sockets.lisp" to locate the lib on linux, but it complains about the library: Error opening shared object "libc.so": /usr/lib/libc.so: invalid ELF header. [Condition of type SIMPLE-ERROR] Any clues? From kruhft at gmail.com Wed May 17 10:21:45 2006 From: kruhft at gmail.com (Burton Samograd) Date: Wed, 17 May 2006 11:21:45 -0600 Subject: [CM] Re: CM 2.9.1 + RTS 2.0 released References: <632ff83e1ab04d325b11af2e89be545f@uiuc.edu> <5f86131899a432dd8972ceb2876d8e4f@uiuc.edu> <2ebd51456c44c7ea3408bbbfd8c25951@uiuc.edu> Message-ID: <87mzdgtvme.fsf@gmail.com> andersvi at extern.uio.no writes: >>>> "R" == Rick Taube writes: > R> >>> away zillions of realtime processes :-) (havent tried with >>> midishare or osc yet, just portmidi). This is sbcl-0.9.9*, and > R> > R> you should be able to output to any of them (they are all under > R> construction...) but only portmidi receving is probably working. in a > R> nutshell the new receiving api is: > > I tried loading the osc-system, changing "libc.dylib" to > "libc.so" in "osc/sockets.lisp" to locate the lib on linux, but > it complains about the library: > > Error opening shared object "libc.so": > /usr/lib/libc.so: invalid ELF header. > [Condition of type SIMPLE-ERROR] > Any clues? On my system, sometimes things may not be the way they look, or so it seems. The actual libc is (and has always been to my knowledge) in /lib, for some reason they're putting a dynamic linking script in /usr/lib/libc.so. Maybe code a direct path to your /lib/libc.so.6 to see if that works... -- burton samograd kruhft .at. gmail kruhft.blogspot.com www.myspace.com/kruhft metashell.blogspot.com From b0ef at esben-stien.name Wed May 17 14:02:36 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Wed, 17 May 2006 23:02:36 +0200 Subject: [CM] Unbound Variable: butlast (SND Daily 20060517) Message-ID: <871wusl5zn.fsf@esben-stien.name> I'm trying to get started with CLM and SND. I do: Start emacs then run M-x run-snd-guile Then I evaluate: (load-from-path "/home/b0ef/.inbound/snd-8-CVS-20060517/snd-8/rt-compiler.scm") ..which seems to do fine, then: (load-from-path "/home/b0ef/.inbound/snd-8-CVS-20060517/snd-8/rt-examples.scm") This throws: Unbound variable: butlast I'm on GNU/Linux, SBCL-0.9.8, SND is configured with "--with-gtk --with-jack --with-ladspa --with-guile". Any pointers as to what I can try? -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact [sip|iax]: e e jid:b0ef@ n n From bil at ccrma.Stanford.EDU Wed May 17 12:12:38 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 17 May 2006 12:12:38 -0700 Subject: [CM] Unbound Variable: butlast (SND Daily 20060517) In-Reply-To: <871wusl5zn.fsf@esben-stien.name> References: <871wusl5zn.fsf@esben-stien.name> Message-ID: <20060517191150.M50061@ccrma.Stanford.EDU> "butlast" is defined in ice-9/common-list. Probably the simplest way to get it loaded is to add (use-modules (ice-9 common-list)) to you snd initialization file. From b0ef at esben-stien.name Wed May 17 14:23:37 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Wed, 17 May 2006 23:23:37 +0200 Subject: [CM] Not Connected (snd-ls-0.9.6.2) Message-ID: <87u07ojqg6.fsf@esben-stien.name> Either I get "Not Connected" when evaluating an expression or I manage to kill snd when I load-from-path the rt-examples.scm file. I do: M-x run-scheme ..which starts snd and then I do: (load-from-path "rt-compiler.scm") , but when I try to evaluate an expression with C-M-x, I get the "Not Connected" message. As explained in the rt-examples.scm file, I'm also supposed to load-from-path the rt-examples.scm file, but when I do this: (load-from-path "rt-examples.scm") , the whole of snd freeze and is not painting the GUI. It is not possible to run anything in the interpreter anymore. Any pointers as to what I can try? -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact [sip|iax]: e e jid:b0ef@ n n From b0ef at esben-stien.name Wed May 17 15:00:58 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Thu, 18 May 2006 00:00:58 +0200 Subject: [CM] Unbound Variable: butlast (SND Daily 20060517) In-Reply-To: <20060517191150.M50061@ccrma.Stanford.EDU> (Bill Schottstaedt's message of "Wed, 17 May 2006 12:12:38 -0700") References: <871wusl5zn.fsf@esben-stien.name> <20060517191150.M50061@ccrma.Stanford.EDU> Message-ID: <87lkt0jopx.fsf@esben-stien.name> "Bill Schottstaedt" writes: > (use-modules (ice-9 common-list)) Thank you. This got me past that issue. I'm still getting the "Not Connected" message when I try to evaluate something, as explained in the other email. -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact [sip|iax]: e e jid:b0ef@ n n From b0ef at esben-stien.name Wed May 17 18:53:56 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Thu, 18 May 2006 03:53:56 +0200 Subject: [CM] SB-INT Name Conflict (CLM-3) Message-ID: <87ac9g2j4b.fsf@esben-stien.name> Trying to build CLM-3, I get: Restarts: 0: [RESOLVE-CONFLICT] Resolve conflict. 1: [ABORT-REQUEST] Abort handling SLIME request. 2: [TERMINATE-THREAD] Terminate this thread (#) Backtrace: 0: (SB-INT:NAME-CONFLICT # USE-PACKAGE #) 1: (USE-PACKAGE :CLM #) 2: (SB-INT:EVAL-IN-LEXENV (USE-PACKAGE :CLM) #) 3: (SB-FASL::LOAD-AS-SOURCE # NIL NIL) 4: (SB-FASL::INTERNAL-LOAD #P"/home/b0ef/.inbound/clm-3/all.lisp" #P"/home/b0ef/.inbound/clm-3/all.lisp" :ERROR NIL NIL :SOURCE :DEFAULT) 5: (SB-FASL::INTERNAL-LOAD #P"/home/b0ef/.inbound/clm-3/all.lisp" #P"/home/b0ef/.inbound/clm-3/all.lisp" :ERROR NIL NIL NIL :DEFAULT) 6: (LOAD "/home/b0ef/.inbound/clm-3/all.lisp") 7: (SB-INT:EVAL-IN-LEXENV (LOAD "/home/b0ef/.inbound/clm-3/all.lisp") #) 8: (SWANK::EVAL-REGION "(load \"/home/b0ef/.inbound/clm-3/all.lisp\") Not even sure I need this package, as I understand CLM is part of SND and I intend to use that. I'm using SBCL-0.9.8 and I'm on GNU/Linux Any pointers how to solve this? -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact [sip|iax]: e e jid:b0ef@ n n From testcase at asu.edu Wed May 17 17:55:40 2006 From: testcase at asu.edu (todd ingalls) Date: Wed, 17 May 2006 20:55:40 -0400 Subject: [CM] CM 2.9.1 + RTS 2.0 released In-Reply-To: References: <632ff83e1ab04d325b11af2e89be545f@uiuc.edu> <5f86131899a432dd8972ceb2876d8e4f@uiuc.edu> <2ebd51456c44c7ea3408bbbfd8c25951@uiuc.edu> Message-ID: hi, sorry i am traveling and do not have access to email all the time- anyway, the osc module is not quite working yet with the new rts and receiving model. it may work to some degree, but performance will be sub-optimal. these should be updated in the next few days. thanks. On May 17, 2006, at 12:58 PM, andersvi at extern.uio.no wrote: >>>> "R" == Rick Taube writes: > R> >>> away zillions of realtime processes :-) (havent tried with >>> midishare or osc yet, just portmidi). This is sbcl-0.9.9*, and > R> > R> you should be able to output to any of them (they are all under > R> construction...) but only portmidi receving is probably working. > in a > R> nutshell the new receiving api is: > > I tried loading the osc-system, changing "libc.dylib" to > "libc.so" in "osc/sockets.lisp" to locate the lib on linux, but > it complains about the library: > > Error opening shared object "libc.so": > /usr/lib/libc.so: invalid ELF header. > [Condition of type SIMPLE-ERROR] > > Any clues? > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From bil at ccrma.Stanford.EDU Thu May 18 03:45:30 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 18 May 2006 03:45:30 -0700 Subject: [CM] SB-INT Name Conflict (CLM-3) In-Reply-To: <87ac9g2j4b.fsf@esben-stien.name> References: <87ac9g2j4b.fsf@esben-stien.name> Message-ID: <20060518104407.M67544@ccrma.Stanford.EDU> > Not even sure I need this package, as I understand CLM is part of SND > and I intend to use that. I don't know what the sbcl/clm problem is, but you don't need it if you're using Snd -- CLM is built into Snd, so just load ws.scm and whatever instruments you want, annd call with-sound in Snd's listener (and first set optimzation to 6). From kjetil at ccrma.Stanford.EDU Thu May 18 12:36:37 2006 From: kjetil at ccrma.Stanford.EDU (Kjetil S. Matheussen) Date: Thu, 18 May 2006 12:36:37 -0700 (PDT) Subject: [CM] Re: Unbound Variable: butlast In-Reply-To: <20060518190002.22887.64887.Mailman@cm-mail.stanford.edu> References: <20060518190002.22887.64887.Mailman@cm-mail.stanford.edu> Message-ID: Esben Stien: > > I'm trying to get started with CLM and SND. > > I do: > > Start emacs then run M-x run-snd-guile > > Then I evaluate: > > (load-from-path "/home/b0ef/.inbound/snd-8-CVS-20060517/snd-8/rt-compiler.scm") > > ..which seems to do fine, then: > > (load-from-path "/home/b0ef/.inbound/snd-8-CVS-20060517/snd-8/rt-examples.scm") > > This throws: > > Unbound variable: butlast > Thanks for finding that bug. I'll fix it immediately. The reason for this is that I use to load snd_conffile.scm first, where the list operators are loaded. From kjetil at ccrma.Stanford.EDU Thu May 18 12:47:54 2006 From: kjetil at ccrma.Stanford.EDU (Kjetil S. Matheussen) Date: Thu, 18 May 2006 12:47:54 -0700 (PDT) Subject: [CM] Not Connected (snd-ls-0.9.6.2) In-Reply-To: <20060518190002.22887.64887.Mailman@cm-mail.stanford.edu> References: <20060518190002.22887.64887.Mailman@cm-mail.stanford.edu> Message-ID: Esben Stien: > Either I get "Not Connected" when evaluating an expression or I manage > to kill snd when I load-from-path the rt-examples.scm file. > > I do: > > M-x run-scheme > > ..which starts snd and then I do: > > (load-from-path "rt-compiler.scm") > > , but when I try to evaluate an expression with C-M-x, I get the "Not > Connected" message. > Strange. Are you in scheme mode in emacs? M-x scheme-mode > As explained in the rt-examples.scm file, I'm also supposed to > load-from-path the rt-examples.scm file, but when I do this: > > (load-from-path "rt-examples.scm") > > , the whole of snd freeze and is not painting the GUI. It is not > possible to run anything in the interpreter anymore. > > Any pointers as to what I can try? Oops, I guess some of the examples might not compile anymore due to API changes, but things shouldn't freeze. When you get C-M-x to work, try evaulating one instrument at the time to find out which one that makes everything freeze. From b0ef at esben-stien.name Thu May 18 18:39:00 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Fri, 19 May 2006 03:39:00 +0200 Subject: [CM] SB-INT Name Conflict (CLM-3) In-Reply-To: <20060518104407.M67544@ccrma.Stanford.EDU> (Bill Schottstaedt's message of "Thu, 18 May 2006 03:45:30 -0700") References: <87ac9g2j4b.fsf@esben-stien.name> <20060518104407.M67544@ccrma.Stanford.EDU> Message-ID: <87zmheyerv.fsf@esben-stien.name> "Bill Schottstaedt" writes: > I don't know what the sbcl/clm problem is, but you don't need it if > you're using Snd -- CLM is built into Snd I need it if I want to run the interpreter in emacs, or so I understand. What I do now is M-x run-snd-guile and then put each block of code into the interpreter. I'm trying to figure out how I can evaluate a block of code and send it to SND. > just load ws.scm Yup, works;). Thank you. I also found this in the manual, but under Common Music, so I got confused. -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From b0ef at esben-stien.name Thu May 18 20:28:51 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Fri, 19 May 2006 05:28:51 +0200 Subject: [CM] Not Connected (snd-ls-0.9.6.2) In-Reply-To: (Kjetil S. Matheussen's message of "Thu, 18 May 2006 12:47:54 -0700 (PDT)") References: <20060518190002.22887.64887.Mailman@cm-mail.stanford.edu> Message-ID: <87odxuy9os.fsf@esben-stien.name> "Kjetil S. Matheussen" writes: > Are you in scheme mode in emacs? I might not have been, it seems, cause emacs would start Lisp Slime when I load *.scm files into it. When I switch into scheme mode and evaluate some code like the block below, it freeze. I also have some hard time understanding what actually evaluates the lisp code on the SND homepage. So far I've managed to run scheme code in the interpreter in emacs. I don't understand, with normal SND, how to evaluate scheme code without putting it into the interpreter. I guess this will become more clear after a while;) > When you get C-M-x to work, try evaulating one instrument at the > time It seems impossible, cause it will freeze just trying to evaluate this: (let ((osc (make-oscil))) ( 0 3 (lambda () (out (* 0.8 (oscil osc)))))) -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From bil at ccrma.Stanford.EDU Fri May 19 10:28:57 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 19 May 2006 10:28:57 -0700 Subject: [CM] there's a use for tanh!? Message-ID: <20060519172735.M1177@ccrma.Stanford.EDU> (tanh (* n (sin theta))) -> a square wave where n sets how square the corners are -- from an article on synchronizing fireflies. From kjetil at ccrma.Stanford.EDU Fri May 19 11:21:59 2006 From: kjetil at ccrma.Stanford.EDU (Kjetil S. Matheussen) Date: Fri, 19 May 2006 11:21:59 -0700 (PDT) Subject: [CM] Not Connected (snd-ls-0.9.6.2) Message-ID: Esben Stien: > I also have some hard time understanding what actually evaluates the > lisp code on the SND homepage. So far I've managed to run scheme code > in the interpreter in emacs. > > I don't understand, with normal SND, how to evaluate scheme code > without putting it into the interpreter. I'm not quite sure what you don't understand, but SND, at least for snd-ls, runs the scheme interpreter "guile" internally. And when pressing Ctrl+Alt+x on a block of code in emacs, emacs sends that block to SND through stdin. SND evaluates the code and gives feedback to emacs via stdout/stderr. From b0ef at esben-stien.name Fri May 19 14:11:45 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Fri, 19 May 2006 23:11:45 +0200 Subject: [CM] Not Connected (snd-ls-0.9.6.2) In-Reply-To: (Kjetil S. Matheussen's message of "Fri, 19 May 2006 11:21:59 -0700 (PDT)") References: Message-ID: <87iro1wwha.fsf@esben-stien.name> "Kjetil S. Matheussen" writes: > SND, at least for snd-ls, runs the scheme interpreter "guile" > internally. This is what I'm aiming to do, but I can't figure out what you've done in snd-ls that I have to do with snd. I believe snd-ls is a distribution of snd where you don't have guile installed. I have guile installed, so I guess I just need to run snd. Please correct me if I'm wrong. What I do now, is starting emacs and then running M-x run-snd-guile; this opens the interpreter buffer and I'm able to evaluate code by yanking blocks into it. Of course, I'm after just evaluating the block of code in a normal buffer with C-M-x, so that I don't need to kill and yank the block into the interpreter every time;). It's also unclear to me how to evaluate the lisp code for CLM. All I'm able to do is evaluate scheme code, of course, with guile. I guess I will use slime, which I have, but I can't figure out how to actually evaluate this code and have it sent to snd. Sorry if I'm a little confused and thank you for your help;). -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From scholz-micha at gmx.de Fri May 19 13:37:28 2006 From: scholz-micha at gmx.de (Michael Scholz) Date: Fri, 19 May 2006 22:37:28 +0200 Subject: [CM] SB-INT Name Conflict (CLM-3) In-Reply-To: <87zmheyerv.fsf@esben-stien.name> (Esben Stien's message of "Fri, 19 May 2006 03:39:00 +0200") References: <87ac9g2j4b.fsf@esben-stien.name> <20060518104407.M67544@ccrma.Stanford.EDU> <87zmheyerv.fsf@esben-stien.name> Message-ID: <86ejyp699z.fsf@Lerche.Socrates> > I need it if I want to run the interpreter in emacs, or so I > understand. What I do now is M-x run-snd-guile and then put each block > of code into the interpreter. I'm trying to figure out how I can > evaluate a block of code and send it to SND. After `M-x run-snd-guile' you can load an entire file with `C-M-l'. If you want to evaluate only single regions or a few functions, you may switch to the file buffer, change its mode to `M-x snd-guile-mode' and use the available keystrokes. You can learn about keystrokes and functions by `C-h m' or use the Emacs menu entry `Snd/Guile' (or, if you have the latest version of inf-snd.el, `Snd/Scheme'). Mike From b0ef at esben-stien.name Fri May 19 18:25:13 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Sat, 20 May 2006 03:25:13 +0200 Subject: [CM] SB-INT Name Conflict (CLM-3) In-Reply-To: <86ejyp699z.fsf@Lerche.Socrates> (Michael Scholz's message of "Fri, 19 May 2006 22:37:28 +0200") References: <87ac9g2j4b.fsf@esben-stien.name> <20060518104407.M67544@ccrma.Stanford.EDU> <87zmheyerv.fsf@esben-stien.name> <86ejyp699z.fsf@Lerche.Socrates> Message-ID: <8764k1wkqu.fsf@esben-stien.name> Michael Scholz writes: > `M-x snd-guile-mode' Of course;). Again I find that what I ask for, is written neatly down in the inf-snd.el file or the manual. Truly sorry. Thank you very much for your help -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From b0ef at esben-stien.name Sun May 21 03:12:05 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Sun, 21 May 2006 12:12:05 +0200 Subject: [CM] Not Connected (snd-ls-0.9.6.2) In-Reply-To: <87iro1wwha.fsf@esben-stien.name> (Esben Stien's message of "Fri, 19 May 2006 23:11:45 +0200") References: <87iro1wwha.fsf@esben-stien.name> Message-ID: <87irnzsn4a.fsf@esben-stien.name> Esben Stien writes: > how to evaluate the lisp code for CLM This is still unclear to me. I can't find any info on how to actually evaluate the lisp code. I have no problem with scheme, but I can't see how I can get snd to output sound based on lisp code. Trying to evaluate any lisp code in the snd interpreter won't work, of course. I'm missing something fundamental. I obviously need to start a lisp interpreter which in some way communicates with snd. Any pointers on what to read? -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From bil at ccrma.Stanford.EDU Sun May 21 04:40:25 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Sun, 21 May 2006 04:40:25 -0700 Subject: [CM] Not Connected (snd-ls-0.9.6.2) In-Reply-To: <87irnzsn4a.fsf@esben-stien.name> References: <87iro1wwha.fsf@esben-stien.name> <87irnzsn4a.fsf@esben-stien.name> Message-ID: <20060521113747.M6683@ccrma.Stanford.EDU> CLM in Snd uses whatever extension language you've chosen, so in your case CLM is using Scheme. Lisp (Common Lisp) is not yet supported in Snd. When you run Snd's with-sound, you're running CLM in Scheme (the "CL" in "CLM" no longer means anything). From b0ef at esben-stien.name Sun May 21 12:39:56 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Sun, 21 May 2006 21:39:56 +0200 Subject: [CM] Not Connected (snd-ls-0.9.6.2) In-Reply-To: <20060521113747.M6683@ccrma.Stanford.EDU> (Bill Schottstaedt's message of "Sun, 21 May 2006 04:40:25 -0700") References: <87iro1wwha.fsf@esben-stien.name> <87irnzsn4a.fsf@esben-stien.name> <20060521113747.M6683@ccrma.Stanford.EDU> Message-ID: <87zmhbqi9f.fsf@esben-stien.name> "Bill Schottstaedt" writes: > Lisp (Common Lisp) is not yet supported in Snd Yes, I figured that;). I just thought maybe there was a way to use CLM and then write the resulting file to a snd buffer. Thank you for your help. -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From b0ef at esben-stien.name Sun May 21 12:54:33 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Sun, 21 May 2006 21:54:33 +0200 Subject: [CM] Source File for SIMP Message-ID: <87verzqhl2.fsf@esben-stien.name> Trying to get started with CLM. I start emacs, then M-x slime; this brings me to the CL-USER prompt. I then proceed to load all.lisp from the CLM package. This responds with: ; using existing configuration file config.h T I then try to evaluate the simple sine code: (definstrument simp (start-time duration frequency amplitude) (let* ((beg (floor (* start-time *srate*))) (end (+ beg (floor (* duration *srate*)))) (j 0)) (run (loop for i from beg below end do (outa i (* amplitude (sin (* j 2.0 pi (/ frequency *srate*))))) (incf j))))) ..as explained in the manual, but this throws an error: oops -- I can't find SIMP's lisp source file! [Condition of type SIMPLE-ERROR] Restarts: 0: [ABORT-REQUEST] Abort handling SLIME request. 1: [TERMINATE-THREAD] Terminate this thread (#) Backtrace: 0: ((LAMBDA (#:WHOLE106 #:ENVIRONMENT107)) (DEFINSTRUMENT SIMP (START-TIME DURATION FREQUENCY AMPLITUDE) (LET* (# # #) (RUN #))) #) 1: (MACROEXPAND-1 (DEFINSTRUMENT SIMP (START-TIME DURATION FREQUENCY AMPLITUDE) (LET* (# # #) (RUN #))) #) 2: (MACROEXPAND (DEFINSTRUMENT SIMP (START-TIME DURATION FREQUENCY AMPLITUDE) (LET* (# # #) (RUN #))) #) Maybe it's something I haven't loaded. Trying to compile-file the v.ins file gets me a whole page of errors: CL-USER> (compile-file "/home/b0ef/.inbound/clm-3/v.ins") ; Writing "/home/b0ef/.inbound/clm-3/clm_FM_VIOLIN.c" ; ; caught STYLE-WARNING: ; using deprecated EVAL-WHEN situation names EVAL LOAD ; ; caught STYLE-WARNING: ; using deprecated EVAL-WHEN situation names EVAL LOAD COMPILE ; Compiling "/home/b0ef/.inbound/clm-3/clm_FM_VIOLIN.c" ; Creating shared object file "/home/b0ef/.inbound/clm-3/clm_FM_VIOLIN.so" ; ; caught STYLE-WARNING: ; using deprecated EVAL-WHEN situation names LOAD EVAL ; file: /home/b0ef/.inbound/clm-3/v.ins ; in: DEFINSTRUMENT FM-VIOLIN ; (RUN ; (LOOP FOR ; I ; FROM ; BEG ; TO ; END ; DO ; (DECLARE ; (TYPE :FLOAT ; NOISE-AMOUNT ; FUZZ ; IND-FUZZ ; AMP-FUZZ ; MODULATION ; FM1-RAT ; FM2-RAT ; FM3-RAT ; VIB) ; (TYPE :MUS-ANY IND-NOI AMP-NOI) ; (TYPE :DOUBLE* COEFFS) ; (TYPE :BOOLEAN FROBBER EASY-CASE MODULATE)) ; (IF (/= 0.0 NOISE-AMOUNT) ; (IF (NULL FROBBER) (SETF FUZZ #) (SETF FUZZ #))) ; (SETF VIB (+ (ENV FRQF) (TRIANGLE-WAVE PERVIB) (RAND-INTERP RANVIB))) ; (IF IND-NOI (SETF IND-FUZZ (+ 1.0 #))) ; ...)) ; --> MACROEXPAND-1 CLM::RUN-1 PROGN CLM:: LET MULTIPLE-VALUE-BIND ; --> MULTIPLE-VALUE-CALL ; ==> ; #'(LAMBDA ; (&OPTIONAL (CLM::*CLM-DATAI-LEN*) (CLM::*CLM-DATAR-LEN*) &REST #:G226) ; (DECLARE (IGNORE #:G226)) ; (LET ((CLM::*CLM-BEG* (FLOOR #)) ; (CLM::*CLM-END* (AND # #)) ; (CLM::*CLM-DATAI* ; (MAKE-INTEGER-ARRAY CLM::*CLM-DATAI-LEN* :INITIAL-ELEMENT 0)) ; (CLM::*CLM-DATAR* (MAKE-DOUBLE-ARRAY CLM::*CLM-DATAR-LEN*))) ; (CLM::LOAD-VARS 49 ; 26 ; '((MODULATE 47 0 :BOOLEAN) (EASY-CASE 45 0 :BOOLEAN) ; (FROBBER 43 0 :BOOLEAN) (COEFFS 41 0 :DOUBLE-ARRAY) ; (VIB 0 25 :REAL) (FM3-RAT 0 24 :REAL) ; (FM2-RAT 0 23 :REAL) (FM1-RAT 0 22 :REAL) ; (MODULATION 0 21 :REAL) (AMP-FUZZ 0 20 :REAL) ; (IND-FUZZ 0 19 :REAL) (FUZZ 0 18 :REAL) ...) ; CLM::VARDATA ; CLM::*CLM-DATAI* ; CLM::*CLM-DATAR*) ; (CLM::TO-BIGNUM CLM::*CLM-BEG* CLM::*CLM-DATAI* CLM::+CLM-BEG+) ; (CLM::TO-BIGNUM (OR CLM::*CLM-END* 0) CLM::*CLM-DATAI* CLM::+CLM-END+) ; (IF (AND END (< CLM::*CLM-END* CLM::*CLM-BEG*)) ; (WARN "end time < begin time: ~A from ~A to ~A?" ; 'FM-VIOLIN ; CLM::*CLM-BEG* ; CLM::*CLM-END*)) ; (IF *CLM-DEBUG* ; (PRINT ; (FORMAT NIL ; "(~A ~A~% ~A~% ~A ~A ~A)" ; '|clm_fm_violin11| ; CLM::*CLM-BEG* ; CLM::*CLM-END* ; CLM::*CLM-DATAR* ; CLM::*CLM-DATAI* ; CLM::*CLM-DATAR-LEN*))) ; (SETF (GET *CLM-INS* :DATAI) CLM::*CLM-DATAI*) ; (SETF (GET *CLM-INS* :DATAR) CLM::*CLM-DATAR*) ; (SETF CLM-LAST-BEGIN-TIME (MAX CLM-LAST-BEGIN-TIME CLM::*CLM-BEG*)) ; (PROGN (TAGBODY (RESTART-CASE # #) CLM::NOTE-ALL-DONE)) ; (IF (NOT (ZEROP #)) ; (FORMAT T ; "interrupted: ~A" ; (AREF CLM::*CLM-DATAI* CLM::+CLM-INTERRUPTED+))))) ; ; caught STYLE-WARNING: ; using the lexical binding of the symbol CLM::*CLM-DATAI-LEN*, not the ; dynamic binding, even though the symbol name follows the usual naming ; convention (names like *FOO*) for special variables ; ; caught STYLE-WARNING: ; using the lexical binding of the symbol CLM::*CLM-DATAR-LEN*, not the ; dynamic binding, even though the symbol name follows the usual naming ; convention (names like *FOO*) for special variables ; --> MACROEXPAND-1 CLM::RUN-1 PROGN CLM:: LET MULTIPLE-VALUE-BIND ; --> MULTIPLE-VALUE-CALL FUNCTION ; ==> ; (LET ((CLM::*CLM-BEG* (FLOOR (+ BEG CLM::*OFFSET*))) ; (CLM::*CLM-END* (AND (NUMBERP END) (FLOOR #))) ; (CLM::*CLM-DATAI* ; (MAKE-INTEGER-ARRAY CLM::*CLM-DATAI-LEN* :INITIAL-ELEMENT 0)) ; (CLM::*CLM-DATAR* (MAKE-DOUBLE-ARRAY CLM::*CLM-DATAR-LEN*))) ; (CLM::LOAD-VARS 49 ; 26 ; '((MODULATE 47 0 :BOOLEAN) (EASY-CASE 45 0 :BOOLEAN) ; (FROBBER 43 0 :BOOLEAN) (COEFFS 41 0 :DOUBLE-ARRAY) ; (VIB 0 25 :REAL) (FM3-RAT 0 24 :REAL) ; (FM2-RAT 0 23 :REAL) (FM1-RAT 0 22 :REAL) ; (MODULATION 0 21 :REAL) (AMP-FUZZ 0 20 :REAL) ; (IND-FUZZ 0 19 :REAL) (FUZZ 0 18 :REAL) ...) ; CLM::VARDATA ; CLM::*CLM-DATAI* ; CLM::*CLM-DATAR*) ; (CLM::TO-BIGNUM CLM::*CLM-BEG* CLM::*CLM-DATAI* CLM::+CLM-BEG+) ; (CLM::TO-BIGNUM (OR CLM::*CLM-END* 0) CLM::*CLM-DATAI* CLM::+CLM-END+) ; (IF (AND END (< CLM::*CLM-END* CLM::*CLM-BEG*)) ; (WARN "end time < begin time: ~A from ~A to ~A?" ; 'FM-VIOLIN ; CLM::*CLM-BEG* ; CLM::*CLM-END*)) ; (IF *CLM-DEBUG* ; (PRINT ; (FORMAT NIL ; "(~A ~A~% ~A~% ~A ~A ~A)" ; '|clm_fm_violin11| ; CLM::*CLM-BEG* ; CLM::*CLM-END* ; CLM::*CLM-DATAR* ; CLM::*CLM-DATAI* ; CLM::*CLM-DATAR-LEN*))) ; (SETF (GET *CLM-INS* :DATAI) CLM::*CLM-DATAI*) ; (SETF (GET *CLM-INS* :DATAR) CLM::*CLM-DATAR*) ; (SETF CLM-LAST-BEGIN-TIME (MAX CLM-LAST-BEGIN-TIME CLM::*CLM-BEG*)) ; (PROGN ; (TAGBODY ; (RESTART-CASE ; (|clm_fm_violin11| CLM::*CLM-DATAR* ; CLM::*CLM-DATAR-LEN* ; CLM::*CLM-DATAI* ; CLM::*CLM-DATAI-LEN*) ; (NIL NIL :REPORT "try to exit current note cleanly and go on." #)) ; CLM::NOTE-ALL-DONE)) ; (IF (NOT (ZEROP (AREF CLM::*CLM-DATAI* CLM::+CLM-INTERRUPTED+))) ; (FORMAT T ; "interrupted: ~A" ; (AREF CLM::*CLM-DATAI* CLM::+CLM-INTERRUPTED+)))) ; ; caught STYLE-WARNING: ; using the lexical binding of the symbol CLM::*CLM-BEG*, not the ; dynamic binding, even though the symbol name follows the usual naming ; convention (names like *FOO*) for special variables ; ; caught STYLE-WARNING: ; using the lexical binding of the symbol CLM::*CLM-END*, not the ; dynamic binding, even though the symbol name follows the usual naming ; convention (names like *FOO*) for special variables ; ; caught STYLE-WARNING: ; using the lexical binding of the symbol CLM::*CLM-DATAI*, not the ; dynamic binding, even though the symbol name follows the usual naming ; convention (names like *FOO*) for special variables ; ; caught STYLE-WARNING: ; using the lexical binding of the symbol CLM::*CLM-DATAR*, not the ; dynamic binding, even though the symbol name follows the usual naming ; convention (names like *FOO*) for special variables ; ; caught STYLE-WARNING: ; using deprecated EVAL-WHEN situation names LOAD EVAL ; ; compilation unit finished ; caught 10 STYLE-WARNING conditions #P"/home/b0ef/.inbound/clm-3/v.fasl" T NIL Any pointers to get me started is greatly appreciated. -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From taube at uiuc.edu Sun May 21 11:43:01 2006 From: taube at uiuc.edu (Rick Taube) Date: Sun, 21 May 2006 13:43:01 -0500 Subject: [CM] Source File for SIMP In-Reply-To: <87verzqhl2.fsf@esben-stien.name> References: <87verzqhl2.fsf@esben-stien.name> Message-ID: > Any pointers to get me started is greatly appreciated. you cannot evaluate a definstument. you have to compile a .ins file and load its .fasl into into lisp. try this in the repl assuming /path/to/clm is your clm directory: (load "/path/to/clm/all.lisp") (load (compile-file "/path/to/clm/v.ins")) (with-sound () (fm-violin 0 1 200 .1)) you should hear a friendly toot. From kjetil at ccrma.Stanford.EDU Sun May 21 13:53:48 2006 From: kjetil at ccrma.Stanford.EDU (Kjetil S. Matheussen) Date: Sun, 21 May 2006 13:53:48 -0700 (PDT) Subject: [CM] Re: Not Connected (snd-ls-0.9.6.2) In-Reply-To: <20060521190004.17229.76673.Mailman@cm-mail.stanford.edu> References: <20060521190004.17229.76673.Mailman@cm-mail.stanford.edu> Message-ID: Esben Stien: >> Lisp (Common Lisp) is not yet supported in Snd > >Yes, I figured that;). I just thought maybe there was a way to use CLM >and then write the resulting file to a snd buffer. > I think you misunderstand a lot. Everything you want to do is possible in SND. Please just describe exactly what happens when you are trying to use CLM in SND. From b0ef at esben-stien.name Sun May 21 23:53:03 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Mon, 22 May 2006 08:53:03 +0200 Subject: [CM] Source File for SIMP In-Reply-To: (Rick Taube's message of "Sun, 21 May 2006 13:43:01 -0500") References: <87verzqhl2.fsf@esben-stien.name> Message-ID: <871wumr1o0.fsf@esben-stien.name> Rick Taube writes: > you cannot evaluate a definstument. That's one fundamental I missed;) > (load "/path/to/clm/all.lisp") > (load (compile-file "/path/to/clm/v.ins")) > (with-sound () (fm-violin 0 1 200 .1)) Trying to evaluate this with a fresh emacs slime boot, this is what I get: CL-USER> (load "/home/b0ef/.inbound/clm-3/all.lisp") ; using existing configuration file config.h T CL-USER> (load (compile-file "/home/b0ef/.inbound/clm-3/v.ins")) ; Writing "/home/b0ef/.inbound/clm-3/clm_FM_VIOLIN.c" ; ; caught STYLE-WARNING: ; using deprecated EVAL-WHEN situation names EVAL LOAD ; ; caught STYLE-WARNING: ; using deprecated EVAL-WHEN situation names EVAL LOAD COMPILE ; Compiling "/home/b0ef/.inbound/clm-3/clm_FM_VIOLIN.c" ; Creating shared object file "/home/b0ef/.inbound/clm-3/clm_FM_VIOLIN.so" ; ; caught STYLE-WARNING: ; using deprecated EVAL-WHEN situation names LOAD EVAL ; file: /home/b0ef/.inbound/clm-3/v.ins ; in: DEFINSTRUMENT FM-VIOLIN ; (RUN ; (LOOP FOR ; I ; FROM ; BEG ; TO ; END ; DO ; (DECLARE ; (TYPE :FLOAT ; NOISE-AMOUNT ; FUZZ ; IND-FUZZ ; AMP-FUZZ ; MODULATION ; FM1-RAT ; FM2-RAT ; FM3-RAT ; VIB) ; (TYPE :MUS-ANY IND-NOI AMP-NOI) ; (TYPE :DOUBLE* COEFFS) ; (TYPE :BOOLEAN FROBBER EASY-CASE MODULATE)) ; (IF (/= 0.0 NOISE-AMOUNT) ; (IF (NULL FROBBER) (SETF FUZZ #) (SETF FUZZ #))) ; (SETF VIB (+ (ENV FRQF) (TRIANGLE-WAVE PERVIB) (RAND-INTERP RANVIB))) ; (IF IND-NOI (SETF IND-FUZZ (+ 1.0 #))) ; ...)) ; --> MACROEXPAND-1 CLM::RUN-1 PROGN CLM:: LET MULTIPLE-VALUE-BIND ; --> MULTIPLE-VALUE-CALL ; ==> ; #'(LAMBDA ; (&OPTIONAL (CLM::*CLM-DATAI-LEN*) (CLM::*CLM-DATAR-LEN*) &REST #:G226) ; (DECLARE (IGNORE #:G226)) ; (LET ((CLM::*CLM-BEG* (FLOOR #)) ; (CLM::*CLM-END* (AND # #)) ; (CLM::*CLM-DATAI* ; (MAKE-INTEGER-ARRAY CLM::*CLM-DATAI-LEN* :INITIAL-ELEMENT 0)) ; (CLM::*CLM-DATAR* (MAKE-DOUBLE-ARRAY CLM::*CLM-DATAR-LEN*))) ; (CLM::LOAD-VARS 49 ; 26 ; '((MODULATE 47 0 :BOOLEAN) (EASY-CASE 45 0 :BOOLEAN) ; (FROBBER 43 0 :BOOLEAN) (COEFFS 41 0 :DOUBLE-ARRAY) ; (VIB 0 25 :REAL) (FM3-RAT 0 24 :REAL) ; (FM2-RAT 0 23 :REAL) (FM1-RAT 0 22 :REAL) ; (MODULATION 0 21 :REAL) (AMP-FUZZ 0 20 :REAL) ; (IND-FUZZ 0 19 :REAL) (FUZZ 0 18 :REAL) ...) ; CLM::VARDATA ; CLM::*CLM-DATAI* ; CLM::*CLM-DATAR*) ; (CLM::TO-BIGNUM CLM::*CLM-BEG* CLM::*CLM-DATAI* CLM::+CLM-BEG+) ; (CLM::TO-BIGNUM (OR CLM::*CLM-END* 0) CLM::*CLM-DATAI* CLM::+CLM-END+) ; (IF (AND END (< CLM::*CLM-END* CLM::*CLM-BEG*)) ; (WARN "end time < begin time: ~A from ~A to ~A?" ; 'FM-VIOLIN ; CLM::*CLM-BEG* ; CLM::*CLM-END*)) ; (IF *CLM-DEBUG* ; (PRINT ; (FORMAT NIL ; "(~A ~A~% ~A~% ~A ~A ~A)" ; '|clm_fm_violin2| ; CLM::*CLM-BEG* ; CLM::*CLM-END* ; CLM::*CLM-DATAR* ; CLM::*CLM-DATAI* ; CLM::*CLM-DATAR-LEN*))) ; (SETF (GET *CLM-INS* :DATAI) CLM::*CLM-DATAI*) ; (SETF (GET *CLM-INS* :DATAR) CLM::*CLM-DATAR*) ; (SETF CLM-LAST-BEGIN-TIME (MAX CLM-LAST-BEGIN-TIME CLM::*CLM-BEG*)) ; (PROGN (TAGBODY (RESTART-CASE # #) CLM::NOTE-ALL-DONE)) ; (IF (NOT (ZEROP #)) ; (FORMAT T ; "interrupted: ~A" ; (AREF CLM::*CLM-DATAI* CLM::+CLM-INTERRUPTED+))))) ; ; caught STYLE-WARNING: ; using the lexical binding of the symbol CLM::*CLM-DATAI-LEN*, not the ; dynamic binding, even though the symbol name follows the usual naming ; convention (names like *FOO*) for special variables ; ; caught STYLE-WARNING: ; using the lexical binding of the symbol CLM::*CLM-DATAR-LEN*, not the ; dynamic binding, even though the symbol name follows the usual naming ; convention (names like *FOO*) for special variables ; --> MACROEXPAND-1 CLM::RUN-1 PROGN CLM:: LET MULTIPLE-VALUE-BIND ; --> MULTIPLE-VALUE-CALL FUNCTION ; ==> ; (LET ((CLM::*CLM-BEG* (FLOOR (+ BEG CLM::*OFFSET*))) ; (CLM::*CLM-END* (AND (NUMBERP END) (FLOOR #))) ; (CLM::*CLM-DATAI* ; (MAKE-INTEGER-ARRAY CLM::*CLM-DATAI-LEN* :INITIAL-ELEMENT 0)) ; (CLM::*CLM-DATAR* (MAKE-DOUBLE-ARRAY CLM::*CLM-DATAR-LEN*))) ; (CLM::LOAD-VARS 49 ; 26 ; '((MODULATE 47 0 :BOOLEAN) (EASY-CASE 45 0 :BOOLEAN) ; (FROBBER 43 0 :BOOLEAN) (COEFFS 41 0 :DOUBLE-ARRAY) ; (VIB 0 25 :REAL) (FM3-RAT 0 24 :REAL) ; (FM2-RAT 0 23 :REAL) (FM1-RAT 0 22 :REAL) ; (MODULATION 0 21 :REAL) (AMP-FUZZ 0 20 :REAL) ; (IND-FUZZ 0 19 :REAL) (FUZZ 0 18 :REAL) ...) ; CLM::VARDATA ; CLM::*CLM-DATAI* ; CLM::*CLM-DATAR*) ; (CLM::TO-BIGNUM CLM::*CLM-BEG* CLM::*CLM-DATAI* CLM::+CLM-BEG+) ; (CLM::TO-BIGNUM (OR CLM::*CLM-END* 0) CLM::*CLM-DATAI* CLM::+CLM-END+) ; (IF (AND END (< CLM::*CLM-END* CLM::*CLM-BEG*)) ; (WARN "end time < begin time: ~A from ~A to ~A?" ; 'FM-VIOLIN ; CLM::*CLM-BEG* ; CLM::*CLM-END*)) ; (IF *CLM-DEBUG* ; (PRINT ; (FORMAT NIL ; "(~A ~A~% ~A~% ~A ~A ~A)" ; '|clm_fm_violin2| ; CLM::*CLM-BEG* ; CLM::*CLM-END* ; CLM::*CLM-DATAR* ; CLM::*CLM-DATAI* ; CLM::*CLM-DATAR-LEN*))) ; (SETF (GET *CLM-INS* :DATAI) CLM::*CLM-DATAI*) ; (SETF (GET *CLM-INS* :DATAR) CLM::*CLM-DATAR*) ; (SETF CLM-LAST-BEGIN-TIME (MAX CLM-LAST-BEGIN-TIME CLM::*CLM-BEG*)) ; (PROGN ; (TAGBODY ; (RESTART-CASE ; (|clm_fm_violin2| CLM::*CLM-DATAR* ; CLM::*CLM-DATAR-LEN* ; CLM::*CLM-DATAI* ; CLM::*CLM-DATAI-LEN*) ; (NIL NIL :REPORT "try to exit current note cleanly and go on." #)) ; CLM::NOTE-ALL-DONE)) ; (IF (NOT (ZEROP (AREF CLM::*CLM-DATAI* CLM::+CLM-INTERRUPTED+))) ; (FORMAT T ; "interrupted: ~A" ; (AREF CLM::*CLM-DATAI* CLM::+CLM-INTERRUPTED+)))) ; ; caught STYLE-WARNING: ; using the lexical binding of the symbol CLM::*CLM-BEG*, not the ; dynamic binding, even though the symbol name follows the usual naming ; convention (names like *FOO*) for special variables ; ; caught STYLE-WARNING: ; using the lexical binding of the symbol CLM::*CLM-END*, not the ; dynamic binding, even though the symbol name follows the usual naming ; convention (names like *FOO*) for special variables ; ; caught STYLE-WARNING: ; using the lexical binding of the symbol CLM::*CLM-DATAI*, not the ; dynamic binding, even though the symbol name follows the usual naming ; convention (names like *FOO*) for special variables ; ; caught STYLE-WARNING: ; using the lexical binding of the symbol CLM::*CLM-DATAR*, not the ; dynamic binding, even though the symbol name follows the usual naming ; convention (names like *FOO*) for special variables ; ; caught STYLE-WARNING: ; using deprecated EVAL-WHEN situation names LOAD EVAL ; ; compilation unit finished ; caught 10 STYLE-WARNING conditions T CL-USER> (with-sound () (fm-violin 0 1 200 .1)) memory fault [Condition of type SB-KERNEL::MEMORY-FAULT-ERROR] Restarts: 0: [NIL] try to exit current note cleanly and go on. 1: [NIL] abort current note. 2: [NIL] close files and return to top-level. 3: [NIL] jump past remaining notes. 4: [ABORT-REQUEST] Abort handling SLIME request. 5: [TERMINATE-THREAD] Terminate this thread (#) Backtrace: 0: (SB-KERNEL::MEMORY-FAULT-ERROR) 1: ("foreign function: call_into_lisp") 2: ("foreign function: post_signal_tramp") 3: ("foreign function: mus_env") 4: ("foreign function: clm_fm_violin2") 5: (|clm_fm_violin3| #.(SB-SYS:INT-SAP #X0B61D990) 72 #.(SB-SYS:INT-SAP #X0B61D7F8) 98) 6: (FM-VIOLIN 0 1 200 0.1 :FM-INDEX 1.0 :AMP-ENV (0 0 25 1 75 1 100 0) :PERIODIC-VIBRATO-RATE 5.0 :RANDOM-VIBRATO-RATE 16.0 :PERIODIC-VIBRATO-AMPLITUDE 0.0025 :RANDOM-VIBRATO-AMPLITUDE 0.005 :NOISE-AMOUNT 0.0 :NOISE-FREQ 1000.0 :IND-NOISE-FREQ 10.0 :IND-NOISE-AMOUNT 0.0 :AMP-NOISE-FREQ 20.0 :AMP-NOISE-AMOUNT 0.0 :GLISS-ENV (0 0 100 0) :GLISSANDO-AMOUNT 0.0 :FM1-ENV (0 1 25 0.4 75 0.6 100 0) :FM2-ENV (0 1 25 0.4 75 0.6 100 0) :FM3-ENV (0 1 25 0.4 75 0.6 100 0) :FM1-RAT 1.0 :FM2-RAT 3.0 :FM3-RAT 4.0 :FM1-INDEX NIL :FM2-INDEX NIL :FM3-INDEX NIL :BASE NIL :FROBBER NIL :REVERB-AMOUNT 0.01 :INDEX-TYPE :VIOLIN :DEGREE NIL :DISTANCE 1.0 :DEGREES NIL :NO-WAVESHAPING NIL :DENOISE NIL :DENOISE-DUR 0.1 :DENOISE-AMP 0.005) 7: (NIL) 8: (SB-INT:EVAL-IN-LEXENV (WITH-SOUND NIL (FM-VIOLIN 0 1 200 0.1)) #) 9: (SWANK::EVAL-REGION "(with-sound () (fm-violin 0 1 200 .1)) " T) 10: ((LAMBDA NIL)) 11: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-SYNTAX-HOOKS (T)) # # #) 12: (SWANK::CALL-WITH-BUFFER-SYNTAX #) 13: (SB-INT:EVAL-IN-LEXENV (SWANK:LISTENER-EVAL "(with-sound () (fm-violin 0 1 200 .1)) ") #) 14: ((LAMBDA NIL)) 15: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T)) # # # #) 16: ((LAMBDA NIL)) 17: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T)) # # # #) 18: (SWANK::CALL-WITH-REDIRECTED-IO # #) 19: (SWANK::CALL-WITH-CONNECTION # #) 20: (SWANK::HANDLE-REQUEST #) 21: ((LAMBDA NIL)) 22: ((LAMBDA NIL)) 23: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T)) # # # #) 24: (SWANK::CALL-WITH-REDIRECTED-IO # #) 25: (SWANK::CALL-WITH-CONNECTION # #) 26: (SWANK::CALL-WITH-BINDINGS NIL #) 27: ((LAMBDA NIL)) 28: ("foreign function: call_into_lisp") 29: ("foreign function: funcall0") 30: ("foreign function: new_thread_trampoline") 31: ("foreign function: #xB7FC110B") Guess I'm very unlucky;). -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From mailbox at alexdamiani.com Tue May 23 03:02:53 2006 From: mailbox at alexdamiani.com (Alex Damiani) Date: Tue, 23 May 2006 12:02:53 +0200 Subject: [CM] I wonder if this is possible... Message-ID: <200605231202.54015.mailbox@alexdamiani.com> Hello everyone, I just subscribed... :) I am trying to learn how to use CMN, and am facing a problem. This is basically what I want to try to write: (cmn (setf s1 (staff treble (meter 6 8) a4 e a4 e a4 e a4 q.)) (staff (tied-to s1) (d4 q stem-down) (r8) (d4 q. stem-down sharp))) It displays OK, except for the fact that the 8th rest overlaps with the 3rd (a4 e) note, since it gets placed in the exact vertical center of the score. I noticed the same thing happens if I use an onset to place the (d4 q.) note, with auto-rests set to true. Since I DO want the r8 to display, but would like it to be aligned to the two d4 notes, I'd like to know how to tell CMN to draw a rest on a different score line than the center one, if at all possible. Thanks a lot for your help! Yours Sincerely, Alex From bil at ccrma.Stanford.EDU Tue May 23 04:21:51 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 23 May 2006 04:21:51 -0700 Subject: [CM] I wonder if this is possible... In-Reply-To: <200605231202.54015.mailbox@alexdamiani.com> References: <200605231202.54015.mailbox@alexdamiani.com> Message-ID: <20060523111953.M41589@ccrma.Stanford.EDU> Probably the quickest is to use the "dy" function: (cmn (setf s1 (staff treble (meter 6 8) a4 e a4 e a4 e a4 q.)) (staff (tied-to s1) (d4 q stem-down) (eighth-rest (dy -.75)) (d4 q. stem-down sharp))) The argument is in terms of staff = 1.0. From b0ef at esben-stien.name Tue May 23 09:25:30 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Tue, 23 May 2006 18:25:30 +0200 Subject: [CM] Source File for SIMP In-Reply-To: <871wumr1o0.fsf@esben-stien.name> (Esben Stien's message of "Mon, 22 May 2006 08:53:03 +0200") References: <87verzqhl2.fsf@esben-stien.name> <871wumr1o0.fsf@esben-stien.name> Message-ID: <87bqtopv2d.fsf@esben-stien.name> Esben Stien writes: > Trying to evaluate this with a fresh emacs slime boot I'm able to compile, load and play the simple sine, though;). The fm violin generates fault no matter what I do. I'll try and play some more with it and report back what instruments I can't get to work. Thank you very much for your help. -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From mailbox at alexdamiani.com Tue May 23 04:28:34 2006 From: mailbox at alexdamiani.com (Alex Damiani) Date: Tue, 23 May 2006 13:28:34 +0200 Subject: [CM] I wonder if this is possible... In-Reply-To: <20060523111953.M41589@ccrma.Stanford.EDU> References: <200605231202.54015.mailbox@alexdamiani.com> <20060523111953.M41589@ccrma.Stanford.EDU> Message-ID: <200605231328.34907.mailbox@alexdamiani.com> That works just fine, thanks a lot! On Tuesday 23 May 2006 13:21, Bill Schottstaedt wrote: > Probably the quickest is to use the "dy" function: > > (cmn (setf s1 (staff treble (meter 6 8) a4 e a4 e a4 e a4 q.)) > (staff (tied-to s1) (d4 q stem-down) (eighth-rest (dy -.75)) (d4 q. > stem-down sharp))) > > The argument is in terms of staff = 1.0. > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From b0ef at esben-stien.name Tue May 23 09:32:48 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Tue, 23 May 2006 18:32:48 +0200 Subject: [CM] Re: Not Connected (snd-ls-0.9.6.2) In-Reply-To: (Kjetil S. Matheussen's message of "Sun, 21 May 2006 13:53:48 -0700 (PDT)") References: <20060521190004.17229.76673.Mailman@cm-mail.stanford.edu> Message-ID: <877j4cpuq7.fsf@esben-stien.name> "Kjetil S. Matheussen" writes: > describe exactly what happens when you are trying to use CLM in SND. The problem is not using CLM with SND. I've figured out how I can get the scheme part to work. Problem is that I want to get CLM in LISP up and running. I've managed so far to compile a few instruments, though most generate an error. What I don't understand is how with-sound can open the resulting test.snd file in SND. As it is now, it only plays it through it's own playback function using OSS audio output. There must be something I'm missing that somehow connects CLM (LISP) to SND. I know that SND don't support LISP, but I want with-sound to generate test.snd and then hand it to SND. Sorry if I can't make this more clear;). -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From taube at uiuc.edu Tue May 23 08:20:18 2006 From: taube at uiuc.edu (Rick Taube) Date: Tue, 23 May 2006 10:20:18 -0500 Subject: [CM] Re: Not Connected (snd-ls-0.9.6.2) In-Reply-To: <877j4cpuq7.fsf@esben-stien.name> References: <20060521190004.17229.76673.Mailman@cm-mail.stanford.edu> <877j4cpuq7.fsf@esben-stien.name> Message-ID: > There must be something I'm missing that somehow connects CLM (LISP) > > Sorry if I can't make this more clear;). there are two disjoint worlds: Scheme and CommonLisp. So you have this choice: (1) Common Lisp: CLM loaded via all.lisp, NO SND (2) Scheme: CLM loaded via ws.scm + SND so if you want to use SND then you will be using scheme. > to SND. I know that SND don't support LISP, but I want with-sound to > generate test.snd and then hand it to SND. im sure you can add hook to tell SND to save a file after you generated via with-sound. im sorry i dont know exactly how -- i use clm with common lisp (ie NO SND) From bil at ccrma.Stanford.EDU Tue May 23 10:18:16 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 23 May 2006 10:18:16 -0700 Subject: [CM] Re: Not Connected (snd-ls-0.9.6.2) In-Reply-To: <877j4cpuq7.fsf@esben-stien.name> References: <20060521190004.17229.76673.Mailman@cm-mail.stanford.edu> <877j4cpuq7.fsf@esben-stien.name> Message-ID: <20060523171615.M87333@ccrma.Stanford.EDU> There's a section about the clm-snd connection in clm.html -- "CLM and Snd" or something. CLM has various wrappers to start Snd and open the output of with-sound and so on (clm-snd.lisp). The catch is that this depends on the FFI and the presence of X11, so it may not work in your setup. I think it is available in sbcl/clm, but I haven't tried it recently. From ego111 at gmail.com Tue May 23 14:01:07 2006 From: ego111 at gmail.com (Evans Winner) Date: Tue, 23 May 2006 14:01:07 -0700 Subject: [CM] Re: Not Connected (snd-ls-0.9.6.2) In-Reply-To: References: <20060521190004.17229.76673.Mailman@cm-mail.stanford.edu> <877j4cpuq7.fsf@esben-stien.name> Message-ID: <6e107fd50605231401k55d947e1l40bdf07378518cd@mail.gmail.com> Is: http://ccrma.stanford.edu/software/snd/snd/clm.html#sndcommunication not what you are looking for? E On 5/23/06, Rick Taube wrote: > > > There must be something I'm missing that somehow connects CLM (LISP) > > > > Sorry if I can't make this more clear;). > > there are two disjoint worlds: Scheme and CommonLisp. So you have this > choice: > > (1) Common Lisp: CLM loaded via all.lisp, NO SND > (2) Scheme: CLM loaded via ws.scm + SND > > so if you want to use SND then you will be using scheme. > > > to SND. I know that SND don't support LISP, but I want with-sound to > > generate test.snd and then hand it to SND. > > im sure you can add hook to tell SND to save a file after you > generated via with-sound. im sorry i dont know exactly how -- i use clm > with common lisp (ie NO SND) > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > -- ? From Meino.Cramer at gmx.de Tue May 23 19:33:31 2006 From: Meino.Cramer at gmx.de (Meino Christian Cramer) Date: Wed, 24 May 2006 04:33:31 +0200 (CEST) Subject: [CM] CVS-Access not psossible... Message-ID: <20060524.043331.74745037.Meino.Cramer@gmx.de> Hi, since some days I cannot access CVS of snd no longer: cvs [update aborted]: connect to cvs.sourceforge.net(66.35.250.207):2401 failed: No route to host What I doing so badly wrong here ? Kind regards, Meino Cramer From fbar at footils.org Wed May 24 02:17:40 2006 From: fbar at footils.org (Frank Barknecht) Date: Wed, 24 May 2006 11:17:40 +0200 Subject: [CM] CVS-Access not psossible... In-Reply-To: <20060524.043331.74745037.Meino.Cramer@gmx.de> References: <20060524.043331.74745037.Meino.Cramer@gmx.de> Message-ID: <20060524091740.GC12329@fliwatut.scifi> Hallo, Meino Christian Cramer hat gesagt: // Meino Christian Cramer wrote: > since some days I cannot access CVS of snd no longer: > > cvs [update aborted]: connect to cvs.sourceforge.net(66.35.250.207):2401 failed: No route to host > > What I doing so badly wrong here ? Sourceforge has changed server names: You need to use snd.cvs.sourceforge.net now. This also affects the web viewer, which now is at: http://snd.cvs.sourceforge.net/snd/ Attached is a little tcl-script, which the tcl-tk team used to convert their repository to the new names. When started without arguments, it will traverse all subdirectories recursively and change CVS-roots. Use at own risk. Ciao -- Frank Barknecht _ ______footils.org_ __goto10.org__ -------------- next part -------------- A non-text attachment was scrubbed... Name: fixcvsroot.tcl Type: application/x-tcl Size: 1149 bytes Desc: not available URL: From bil at ccrma.Stanford.EDU Wed May 24 03:35:11 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 24 May 2006 03:35:11 -0700 Subject: [CM] CVS-Access not psossible... In-Reply-To: <20060524.043331.74745037.Meino.Cramer@gmx.de> References: <20060524.043331.74745037.Meino.Cramer@gmx.de> Message-ID: <20060524103315.M98185@ccrma.Stanford.EDU> After the great disk crash, sourceforge changed all the project names. In each case you need to start over (i.e. recheckout) the project with the project name at the start. In snd it's: cvs -d:pserver:anonymous at snd.cvs.sourceforge.net:/cvsroot/snd login cvs -z3 -d:pserver:anonymous at snd.cvs.sourceforge.net:/cvsroot/snd co cvs-snd From Meino.Cramer at gmx.de Wed May 24 10:10:38 2006 From: Meino.Cramer at gmx.de (Meino Christian Cramer) Date: Wed, 24 May 2006 19:10:38 +0200 (CEST) Subject: [CM] CVS-Access not psossible... In-Reply-To: <20060524103315.M98185@ccrma.Stanford.EDU> References: <20060524.043331.74745037.Meino.Cramer@gmx.de> <20060524103315.M98185@ccrma.Stanford.EDU> Message-ID: <20060524.191038.74732007.Meino.Cramer@gmx.de> From: "Bill Schottstaedt" Subject: Re: [CM] CVS-Access not psossible... Date: Wed, 24 May 2006 03:35:11 -0700 Hi Bill ! That snds good ! :))) Thank you *very* much for your reply! Have a nice day! Meino > After the great disk crash, sourceforge changed all the project names. > In each case you need to start over (i.e. recheckout) the project with > the project name at the start. In snd it's: > > cvs -d:pserver:anonymous at snd.cvs.sourceforge.net:/cvsroot/snd login > cvs -z3 -d:pserver:anonymous at snd.cvs.sourceforge.net:/cvsroot/snd co cvs-snd > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From fbar at footils.org Wed May 24 12:28:34 2006 From: fbar at footils.org (Frank Barknecht) Date: Wed, 24 May 2006 21:28:34 +0200 Subject: [CM] CVS-Access not psossible... In-Reply-To: <20060524103315.M98185@ccrma.Stanford.EDU> References: <20060524.043331.74745037.Meino.Cramer@gmx.de> <20060524103315.M98185@ccrma.Stanford.EDU> Message-ID: <20060524192833.GB24404@fliwatut.scifi> Hallo, Bill Schottstaedt hat gesagt: // Bill Schottstaedt wrote: > After the great disk crash, sourceforge changed all the project names. > In each case you need to start over (i.e. recheckout) the project with > the project name at the start. In snd it's: > > cvs -d:pserver:anonymous at snd.cvs.sourceforge.net:/cvsroot/snd login > cvs -z3 -d:pserver:anonymous at snd.cvs.sourceforge.net:/cvsroot/snd co cvs-snd Note that the CVS webviewer's URL changed as well, so you may want to update http://snd.sourceforge.net/ and http://ccrma.stanford.edu/software/snd/ as well, and probably the now invalid URL lingers around in other places, too. See my previous mail for the new URLs. (Rant: Why Sourceforge didn't place a little redirect for this in its Apache config slips me.) Ciao -- Frank Barknecht _ ______footils.org_ __goto10.org__ From znmeb at cesmail.net Wed May 24 21:02:11 2006 From: znmeb at cesmail.net (M. Edward (Ed) Borasky) Date: Wed, 24 May 2006 21:02:11 -0700 Subject: [CM] there's a use for tanh!? In-Reply-To: <20060519172735.M1177@ccrma.Stanford.EDU> References: <20060519172735.M1177@ccrma.Stanford.EDU> Message-ID: <44752C43.30305@cesmail.net> Actually ... that sounds interesting ... can you post a link to the article about synchronizing fireflies? Bill Schottstaedt wrote: > (tanh (* n (sin theta))) > > -> a square wave where n sets how square the corners are -- > from an article on synchronizing fireflies. > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > -- M. Edward (Ed) Borasky http://linuxcapacityplanning.com From bil at ccrma.Stanford.EDU Thu May 25 03:37:34 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 25 May 2006 03:37:34 -0700 Subject: [CM] there's a use for tanh!? In-Reply-To: <44752C43.30305@cesmail.net> References: <20060519172735.M1177@ccrma.Stanford.EDU> <44752C43.30305@cesmail.net> Message-ID: <20060525103245.M76968@ccrma.Stanford.EDU> > Actually ... that sounds interesting ... can you post a link to the > article about synchronizing fireflies? It's from CMJ, but not the one you'd think -- College Mathematics Journal, vol 37 no 3 May 2006, "Fireflies flashing in unison" by Ying Zhou, Walter Gall, and Karen Nabb. The "references" include numerous other articles on the phenomenon, but I don't see any web link. From wsack at buffalo.edu Thu May 25 07:49:47 2006 From: wsack at buffalo.edu (bill sack) Date: Thu, 25 May 2006 10:49:47 -0400 Subject: [CM] there's a use for tanh!? In-Reply-To: <20060525103245.M76968@ccrma.Stanford.EDU> References: <20060519172735.M1177@ccrma.Stanford.EDU> <44752C43.30305@cesmail.net> <20060525103245.M76968@ccrma.Stanford.EDU> Message-ID: <4475C40B.8040900@buffalo.edu> i've used tanh in CLM (and the tanh~ object in pd) to simulate the "warm" distortion from analog circuits, e.g.: (outa i (* tanh my-signal x)) with x determining the amount of distortion - a factor of 2 is a slight warm-up and around 20 is on the way to square-wave-land (but never really getting there as tanh * x will never = 1). Richard Dudas (Max/MSP dev and all-'round good guy) introduced us to it in the context of a quick and dirty, last-ditch method for avoiding clipping at overloading dac objects in real-time environments (Max & pd). good for keeping undergrad electronic music concerts on schedule ... all of which is still not as interesting as fireflies ... Bill Schottstaedt wrote: >>Actually ... that sounds interesting ... can you post a link to the >>article about synchronizing fireflies? >> >> > >It's from CMJ, but not the one you'd think -- College Mathematics Journal, >vol 37 no 3 May 2006, "Fireflies flashing in unison" by Ying Zhou, >Walter Gall, and Karen Nabb. The "references" include numerous >other articles on the phenomenon, but I don't see any web link. > > >_______________________________________________ >Cmdist mailing list >Cmdist at ccrma.stanford.edu >http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > > > From b0ef at esben-stien.name Thu May 25 23:55:39 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Fri, 26 May 2006 08:55:39 +0200 Subject: [CM] Re: Not Connected (snd-ls-0.9.6.2) In-Reply-To: <20060523171615.M87333@ccrma.Stanford.EDU> (Bill Schottstaedt's message of "Tue, 23 May 2006 10:18:16 -0700") References: <20060521190004.17229.76673.Mailman@cm-mail.stanford.edu> <877j4cpuq7.fsf@esben-stien.name> <20060523171615.M87333@ccrma.Stanford.EDU> Message-ID: <87zmh55l78.fsf@esben-stien.name> "Bill Schottstaedt" writes: > There's a section about the clm-snd connection in clm.html I'm baffled again how this escaped me. Thank you for your help. -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From b0ef at esben-stien.name Fri May 26 00:07:59 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Fri, 26 May 2006 09:07:59 +0200 Subject: [CM] Crack Noise (snd-8.1) In-Reply-To: <87bqu1coc5.fsf@esben-stien.name> (Esben Stien's message of "Sun, 14 May 2006 04:49:46 +0200") References: <87bqu1coc5.fsf@esben-stien.name> Message-ID: <87slmx5kmo.fsf@esben-stien.name> Esben Stien writes: > I'm getting terrible crackling I've always had this problem to some degree and I've talked to other users who experience the same. Is the JACK code supposed to be stable and work correctly? I'm using JACK-0.101.1 on GNU/Linux-2.6.16 and I have no such problems with other JACK apps except a few buggy ones (xmms2, aqualung, mixxx, etc). I also experience hard freeze fully reproducible with: I evaluate the pluck code in clm-ins.scm and then use with-sound to load it into SND. I then hit C-q a few times to play it. Then the whole system hard freeze. I cannot even log in via ssh. There is no log info. I'm using SND-8.1. Any thing I can try? -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From kjetil at ccrma.Stanford.EDU Fri May 26 13:29:45 2006 From: kjetil at ccrma.Stanford.EDU (Kjetil S. Matheussen) Date: Fri, 26 May 2006 13:29:45 -0700 (PDT) Subject: [CM] Crack Noise (snd-8.1) In-Reply-To: <20060526190003.8692.35957.Mailman@cm-mail.stanford.edu> References: <20060526190003.8692.35957.Mailman@cm-mail.stanford.edu> Message-ID: Esben Stien: >> I'm getting terrible crackling > >I've always had this problem to some degree and I've talked to other >users who experience the same. > >Is the JACK code supposed to be stable and work correctly? Yes, it should work correctly. I am very sure that it does. However, buffer underruns are not uncommon, and you get a message about those to the terminal. Do you? In case, setting the dac-size to at least 2048 helps some, (set! (dac-size) 2048), but another solution is to use snd-ls, which use a different playing routine that works much better. Another cause of crackling could be that you are setting the volume too high. Internally, snd use floats by default, but the jack backend only receives 16 bits sounds (I don't know why, it can receive floats, but snd sends 16 bits integers instead)), which cause crackling sounds. To fix that, turn down the volume in the control panel. From b0ef at esben-stien.name Fri May 26 18:33:50 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Sat, 27 May 2006 03:33:50 +0200 Subject: [CM] Crack Noise (snd-8.1) In-Reply-To: (Kjetil S. Matheussen's message of "Fri, 26 May 2006 13:29:45 -0700 (PDT)") References: <20060526190003.8692.35957.Mailman@cm-mail.stanford.edu> Message-ID: <873bew5k01.fsf@esben-stien.name> "Kjetil S. Matheussen" writes: > buffer underruns [..] not uncommon [..] you get [..] message (?) Yes, sometimes, but not all the chirps are reported > snd-ls [..] different playing routine [..] works [..] better I'm trying to use that, but it only freezes. This is what I do: Start up emacs and M-x run-scheme, which starts snd-ls. I then (load-from-path "/home/b0ef/.inbound/snd-ls-0.9.6.2/snd-8/rt-compiler.scm") which proceeds smoothly. I then copy this code into the interpreter: (let ((osc (make-oscil))) ( 0 3 (lambda () (out (* 0.8 (oscil osc)))))) Now snd-ls is frozen and stops painting the gui. The interpreter is also dead. F.ex putting (+ 1 1) into the interpreter yields nothing. I'm on GNU using linux-2.6.16 with snd-ls-0.9.6.2, jack-0.101.1 -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From mis at artengine.ca Fri May 26 21:48:14 2006 From: mis at artengine.ca (Michal Seta) Date: 27 May 2006 00:48:14 -0400 Subject: [CM] [fomus] bug/problem Message-ID: <86mzd4hy41.fsf@localhost.localdomain> Hello, I am assuming that problems specific to FOMUS may be reported here. I just noticed that when using :treble-8dn with the make-instr structure, fomus generates invalid lilypond code. it writes \clef treble_8 instead of \clef "treble_8" as per: http://lilypond.org/doc/v2.8/Documentation/user/lilypond/Clef.html#Clef "The argument clefname must be enclosed in quotes when it contains underscores or digits." ./MiS From michael at klingbeil.com Sun May 28 21:38:24 2006 From: michael at klingbeil.com (Michael Klingbeil) Date: Mon, 29 May 2006 00:38:24 -0400 Subject: [CM] clm instrument won't compile Message-ID: I'm looking for help with the following clm instrument. I'm running clm-3 (*clm-date* => "8-Apr-06"), OpenMCL 0.14.3, MacOS X 10.3.9. When I try to compile this instrument, I get the following error: /Users/mkling/ins/clm_stest.c: In function `clm_stest10': /Users/mkling/ins/clm_stest.c:106: error: `as_needed_NIL' undeclared (first use in this function) /Users/mkling/ins/clm_stest.c:106: error: (Each undeclared identifier is reported only once /Users/mkling/ins/clm_stest.c:106: error: for each function it appears in.) /Users/mkling/ins/clm_stest.c:106: warning: passing arg 1 of `mus_src' makes pointer from integer without a cast There is obviously something wrong with the src input function. But if I look in the C file, I have the as_needed_0 function there... Maybe there is something wrong with my macro? But this worked fine with clm-2. I noticed this ominous paragraph in the docs: def-clm-struct is syntactically like def-struct, but sets up the struct field names for the run macro. There are several examples in prc-toolkit95.lisp, and other instruments. The fields can only be of a numerical type (no generators, for example). If so that's kind of a downer... ;; ============================= begin stest.ins ;; smooth noise version (def-clm-struct src-noise s (freq 440.0) (amp 1.0)) (clm::def-optkey-fun make-snoise ((frequency 440.0) (amplitude 1.0)) (make-src-noise :s (let* ((width 8) (rate (/ frequency *srate*)) (gen (make-src :srate 0.0 :width width))) ;; now run the generator to clear latency in src generator (loop repeat (* width (/ 1.0 rate)) do (src gen rate #'(lambda (dir) (centered-random amplitude)))) gen) :freq (hz->radians frequency) :amp amplitude)) (defmacro snoise (gen bwmod) `(* (src-noise-amp ,gen) (src (src-noise-s ,gen) ;; the noise bandwidth is specified in radians per sample rate ;; (this is consitent with frequency modulation in other clm generators) ;; we need to convert this to a srample rate scaling factor which is relative to the output sample rate ;; (since we are generating new random values at each sample) ;; 1/two-pi = 0.15915494309189535 (* (+ ,bwmod (src-noise-freq ,gen)) 0.15915494309189535) #'(lambda (dir) (centered-random 1.0))))) (definstrument stest (start dur amp) (let* ((beg (floor (* start *srate*))) (end (+ beg (floor (* dur *srate*)))) (noise (make-snoise 100))) (run (loop for i from beg to end do (outa i (* amp (snoise noise 0.0))))))) From bil at ccrma.Stanford.EDU Mon May 29 04:01:46 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 29 May 2006 04:01:46 -0700 Subject: [CM] clm instrument won't compile In-Reply-To: References: Message-ID: <447AD49A.6060804@ccrma> The documentation is correct, unfortunately; it turned out to be a major problem to implement generator-type fields in clm-3 -- I spent several days fussing with it, then gave up. I had thought it would work in non-CL clm's, but I seem to be getting an unexpected error in that case too -- groan! I am willing to translate your clm-2 instrument to run in clm-3. It might not be as pretty, but there's always a way around the def-clm-struct restriction. From bil at ccrma.Stanford.EDU Mon May 29 04:26:26 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 29 May 2006 04:26:26 -0700 Subject: [CM] Crack Noise (snd-8.1) In-Reply-To: References: <20060526190003.8692.35957.Mailman@cm-mail.stanford.edu> Message-ID: <447ADA62.70905@ccrma> > Internally, snd use floats by default, but the jack backend only > receives 16 bits sounds (I don't know why, it can receive floats, but snd sends 16 bits integers instead)) I think audio.c line 9804 was missing " || HAVE_JACK" so the data format checker was always returning 16 bit ints. From michael at klingbeil.com Mon May 29 10:14:11 2006 From: michael at klingbeil.com (Michael Klingbeil) Date: Mon, 29 May 2006 13:14:11 -0400 Subject: [CM] clm instrument won't compile In-Reply-To: <447AD49A.6060804@ccrma> References: <447AD49A.6060804@ccrma> Message-ID: Thanks for the information. I just got rid of all the def-clm-struct stuff, and of course then it works fine. Just out of curiosity, can you have arrays in def-clm-struct? At 4:01 AM -0700 5/29/06, Bill Schottstaedt wrote: >The documentation is correct, unfortunately; it turned out to be a major >problem to implement generator-type fields in clm-3 -- I spent several days >fussing with it, then gave up. I had thought it would work in non-CL >clm's, but I seem to be getting an unexpected error in that case too -- >groan! I am willing to translate your clm-2 instrument to run in clm-3. >It might not be as pretty, but there's always a way around the def-clm-struct >restriction. From bil at ccrma.Stanford.EDU Mon May 29 12:03:31 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 29 May 2006 12:03:31 -0700 Subject: [CM] clm instrument won't compile In-Reply-To: References: <447AD49A.6060804@ccrma> Message-ID: <20060529190114.M58702@ccrma.Stanford.EDU> > Just out of curiosity, can you have arrays in def-clm-struct? It turns out I forgot that the field type defaults to float, so the generator field does work in Scheme -- the snd-test.scm case looks like: (def-clm-struct sa1 (freq 0.0 :type float) (coscar #f :type clm) (sincar #f :type clm) (dly #f :type clm) (hlb #f :type clm)) And arrays are doable in that context with vcts: (def-clm-struct hiho2 (i 0 :type int) (x 0.0 :type float) (v #f :type vct) (s "hiho") (ii 3 :type int) (xx 1.0 :type float)) But in Common Lisp, the field has to be a number (there's a list of implemented types in run.lisp line 6770). I can't remember whether arrays would be hard to implement -- I was so traumatized by wasting 3 or 4 days of hacking on the generator fields that I suppressed the whole episode. From dpsenick at uiuc.edu Tue May 30 19:28:13 2006 From: dpsenick at uiuc.edu (David Psenicka) Date: Tue, 30 May 2006 21:28:13 -0500 Subject: [CM] [fomus] bug/problem In-Reply-To: <86mzd4hy41.fsf@localhost.localdomain> References: <86mzd4hy41.fsf@localhost.localdomain> Message-ID: <447CFF3D.5060308@uiuc.edu> Thanks, I'll take a look at this -David Michal Seta wrote: > Hello, > > I am assuming that problems specific to FOMUS may be reported here. I > just noticed that when using :treble-8dn with the make-instr > structure, fomus generates invalid lilypond code. it writes \clef > treble_8 instead of \clef "treble_8" as per: > http://lilypond.org/doc/v2.8/Documentation/user/lilypond/Clef.html#Clef > > "The argument clefname must be enclosed in quotes when it contains > underscores or digits." > > ./MiS > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > From dpsenick at uiuc.edu Tue May 30 20:46:08 2006 From: dpsenick at uiuc.edu (David Psenicka) Date: Tue, 30 May 2006 22:46:08 -0500 Subject: [CM] [fomus] bug/problem In-Reply-To: <447CFF3D.5060308@uiuc.edu> References: <86mzd4hy41.fsf@localhost.localdomain> <447CFF3D.5060308@uiuc.edu> Message-ID: <447D1180.5010207@uiuc.edu> An HTML attachment was scrubbed... URL: