From bil at ccrma.Stanford.EDU Wed Feb 1 09:47:06 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 1 Feb 2012 09:47:06 -0800 Subject: [CM] Snd 12.8 Message-ID: <20120201174507.M21692@ccrma.Stanford.EDU> Snd 12.8: s7: added logbit? (using gmp arg order, not CL) added reverse argument (in C) to s7_new_type_x and (in scheme) to make-type. This is needed because an object might implement the apply and set methods, but they might refer to different things (I should have noticed this a long time ago). s7_environment_to_list and environment->list return just the local environment's bindings. They used to crawl up the environment chain, but that can now be done with outer-environment. outer-environment returns the environment enclosing its argument (an environment). added an object system example in the environments section of s7.html. It's based on environments as classes/instances. checked: sbcl 1.0.55, gtk 3.3.8|10|12 Thanks!: Mike Scholz, Rick Taube. From taube at illinois.edu Wed Feb 1 14:38:36 2012 From: taube at illinois.edu (Heinrich Taube) Date: Wed, 1 Feb 2012 16:38:36 -0600 Subject: [CM] Snd 12.8 In-Reply-To: <20120201174507.M21692@ccrma.Stanford.EDU> References: <20120201174507.M21692@ccrma.Stanford.EDU> Message-ID: <692FFDF2-7311-4EA6-B46B-B08963531458@illinois.edu> On Feb 1, 2012, at 11:47 AM, Bill Schottstaedt wrote: > added an object system example in the environments section of > s7.html. > It's based on environments as classes/instances. wow. this this strong enough to implment tiny-clos with call-next- method and make-instance? If that were possible i could load cm2 into s7 ! From bil at ccrma.Stanford.EDU Wed Feb 1 16:41:33 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 1 Feb 2012 16:41:33 -0800 Subject: [CM] Snd 12.8 In-Reply-To: <692FFDF2-7311-4EA6-B46B-B08963531458@illinois.edu> References: <20120201174507.M21692@ccrma.Stanford.EDU> <692FFDF2-7311-4EA6-B46B-B08963531458@illinois.edu> Message-ID: <20120202004021.M57610@ccrma.Stanford.EDU> > call-next-method and make-instance? hmm... where's my copy of CLtL2... (make-instance should be no problem, but I can't remember how call-next-method actually worked). From taube at illinois.edu Wed Feb 1 17:04:59 2012 From: taube at illinois.edu (Heinrich Taube) Date: Wed, 1 Feb 2012 19:04:59 -0600 Subject: [CM] Snd 12.8 In-Reply-To: <20120202004021.M57610@ccrma.Stanford.EDU> References: <20120201174507.M21692@ccrma.Stanford.EDU> <692FFDF2-7311-4EA6-B46B-B08963531458@illinois.edu> <20120202004021.M57610@ccrma.Stanford.EDU> Message-ID: <2E5F45B2-652E-43C9-A053-2FD2A409787D@illinois.edu> guile, gauch, stklos, chicken all support (to one degree or another) a variant of cltl2 called tiny-clos that implemnted basic functionality of clos as i recall the stklos doc was pretty good, http://www.stklos.net/Doc/html/stklos-ref-8.html#STklos-Object-System also gauche: http://practical-scheme.net/gauche/man/gauche-refe_64.html#Introduction-to-the-object-system and 'goops' in guile: http://www.gnu.org/software/guile/manual/html_node/GOOPS.html these tiny-clos derivatives didnt have lots of the bells and whistles but you could do 95% of typical cltl2 functionality. for example t-- rather than cltl2's :around :before and :after methods -- these systems let you call (call-next-method) when you want the next method. i think make-instance was actually called make, ie (make-instance 'foo) is (make ) and ininitialize-instance is called initialize. so to implement an after method on initialize you would do (define-method* (initialize (obj ) args) (next-method) ....) my cm2 sources are actually written in tiny-clos and works in these shemes. cltl2 sources are autogenerated from the scheme code if you load the cm system into common lisp. From rbastian at free.fr Thu Feb 2 00:56:21 2012 From: rbastian at free.fr (=?ISO-8859-1?B?UmVu6Q==?= Bastian) Date: Thu, 2 Feb 2012 09:56:21 +0100 Subject: [CM] snd without any graphics system Message-ID: <20120202095621.297478e8@rene.carmen> Hi, Installing audio software on a new computer (Debian 6.0) I had troubles because I tried to conciliate Alsa, oss etc. I reinstalled Debian (it was easier then debugging). But snd has no graphics: rb at rene:~$ snd --version This is Snd version 11.6 of 7-June-10: s7: 1.58 (2-June-10), Xen: 3.4 ALSA 1.0.23 Sndlib 21.2 (11-Dec-09, float samples) CLM 4.31 (7-Mar-10) GSL 1.14 fftw-3.2.2-sse2 without any graphics system LADSPA: 1.1 gmp: 4.3.2, mpfr: 3.0.0-p3, mpc: 0.8.2 Compiled Jul 25 2010 20:50:08 C: 4.4.4 Libc: 2.11.3.stable host: i686-pc-linux-gnu Is there a way out of the labyrinth? Best regards, -- Ren? Bastian www.pythoneon.org From phiroc at free.fr Wed Feb 1 23:44:43 2012 From: phiroc at free.fr (Philippe de Rochambeau) Date: Thu, 2 Feb 2012 08:44:43 +0100 Subject: [CM] Most efficient way to play a tune Message-ID: Hello, what is the most practical way to "lay out" a tune in CM? Do you just type a series of send("mp:midi"...)s in your code, with one send per note? Is there a pattern which allows you to simply play a series of notes, as opposed to making cycles, etc? For instance, here's how I would transcribe the beginning of Gaspar Sanz's Jacaras: begin send("mp:midi", key: key("d3"), dur: .5) send("mp:midi", key: key("d4"), dur: 1) send("mp:midi", key: key("f4"), dur: 1) ... end where .5 notes are quarter notes, and 1 notes are half notes. Is that efficient? Furthermore, in the CM documentation, the notes function is described as "Return[ing] the note (string) of ref, which can be a note, key or list of the same. A note name consists of a pitch class letter (c d e f g a b), an optional sharp or flat letter (s f) an optional quarter tone inflection (< or >)..." What exactly is a "quarter note inflection"? Many thanks for your help. Best regards, Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: From phiroc at free.fr Wed Feb 1 23:46:16 2012 From: phiroc at free.fr (Philippe de Rochambeau) Date: Thu, 2 Feb 2012 08:46:16 +0100 Subject: [CM] SAL vs. Scheme Message-ID: Hello, is choosing SAL over Scheme a matter of taste or is there a real difference? Can you create instruments in SAL? Many thanks. Philippe From bil at ccrma.Stanford.EDU Thu Feb 2 03:00:56 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 2 Feb 2012 03:00:56 -0800 Subject: [CM] Snd 12.8 In-Reply-To: <2E5F45B2-652E-43C9-A053-2FD2A409787D@illinois.edu> References: <20120201174507.M21692@ccrma.Stanford.EDU> <692FFDF2-7311-4EA6-B46B-B08963531458@illinois.edu> <20120202004021.M57610@ccrma.Stanford.EDU> <2E5F45B2-652E-43C9-A053-2FD2A409787D@illinois.edu> Message-ID: <20120202105853.M71149@ccrma.Stanford.EDU> tiny-clos has always worked in s7 -- it used to be a part of my test suite. I think you just need to add s7 to the list of scheme implementations, and add its sort! to the table of sort variations. I can send my copy if you want it. From bil at ccrma.Stanford.EDU Thu Feb 2 03:06:18 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 2 Feb 2012 03:06:18 -0800 Subject: [CM] snd without any graphics system In-Reply-To: <20120202095621.297478e8@rene.carmen> References: <20120202095621.297478e8@rene.carmen> Message-ID: <20120202110130.M39993@ccrma.Stanford.EDU> You need either motif or gtk to get graphics in Snd. In some cases, you may need the "devel" package as well as the normal one. I always build both from the sources, so I'm not sure how they are packaged. When you run configure, it creates config.log that tells what that script did. Sometimes it contains more information than the script printout. The other possibility is that your gtk is too old. I think currently Snd needs 2.12 or later. From bil at ccrma.Stanford.EDU Thu Feb 2 04:10:34 2012 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 2 Feb 2012 04:10:34 -0800 Subject: [CM] Most efficient way to play a tune In-Reply-To: References: Message-ID: <20120202120706.M48475@ccrma.Stanford.EDU> > What exactly is a "quarter note inflection"? It actually says "quarter tone inflection" by which I assume Rick means a quarter tone change in the pitch, up or down (that is, half a semitone). (american?) english uses the same term for the pitch change and the duration.