From achim.bornhoeft at web.de Mon Oct 1 04:39:37 2007 From: achim.bornhoeft at web.de (Achim Bornhoeft) Date: Mon, 01 Oct 2007 13:39:37 +0200 Subject: [CM] *clm-search-list* and relative pathnames In-Reply-To: <46FFF614.5080305@klingbeil.com> References: <46FD7EFE.2030208@web.de> <46FE9FC4.4060008@web.de> <20070930143423.M28874@ccrma.Stanford.EDU> <46FFE0B1.3030202@web.de> <46FFF614.5080305@klingbeil.com> Message-ID: <4700DC79.6090005@web.de> I figured out, why I stumbled across this problem (I should have had a closer look before posting. It's not the biggest problem anyway.): Some of my sample reading instruments have no open-input inside, because I put this in the with-sound to open and close only once per call. (This makes them a little faster especially when having huge notelists.) Here is an example (soundfile.ins): (definstrument soundfile (start-time duration soundfile amplitude-envelope &optional (srt-conv 1.0)) (let* ((start-sample (* start-time *srate*)) (end-sample (+ start-sample (* duration *srate*))) (wavetable (make-src :input soundfile :srate srt-conv)) (amp-env (make-env :duration duration :envelope amplitude-envelope))) (run (loop for sample-number from start-sample to end-sample do (outa sample-number (* (env amp-env) (src wavetable))))))) #| With the full pathname both filename and input file structure are working when passed to the instrument: (with-sound (:srate 44100 :statistics t) (soundfile 0 4 "/Users/born/Desktop/1-4.wav" '(0 0 0.1 1 0.9 1 1 0) .7)) (with-sound (:srate 44100 :statistics t) (soundfile 0 4 (open-input "/Users/born/Desktop/1-4.wav") '(0 0 0.1 1 0.9 1 1 0) .7)) With *clm-search-list* => ("" "/Users/born/Desktop/1-4.wav") this works: (with-sound (:srate 44100 :statistics t) (soundfile 0 4 (open-input "1-4.wav") '(0 0 0.1 1 0.9 1 1 0) .7)) but this is not working: (with-sound (:srate 44100 :statistics t) (soundfile 0 4 "1-4.wav" '(0 0 0.1 1 0.9 1 1 0) .7)) Assumed that soundfile.ins and 1-4.wav are living in the same directory with an empty *clm-search-list* and relative pathnames it's the same: (setf *clm-search-list* nil) this one works: (with-sound (:srate 44100 :statistics t) (soundfile 0 4 (open-input "./1-4.wav") '(0 0 0.1 1 0.9 1 1 0) .7)) this not: (with-sound (:srate 44100 :statistics t) (soundfile 0 4 "./1-4.wav" '(0 0 0.1 1 0.9 1 1 0) .7)) |# Achim Michael Klingbeil schrieb: > It's a bit hard to diagnose without looking at your "soundfile" > instrument. Post the source and perhaps then we can figure it out. > > > Achim Bornhoeft wrote: >> With *clm-search-list* this is working: >> >> (with-sound (:srate 44100 :statistics t) >> (soundfile 0 4 (open-input* "1-4.wav") '(0 0 0.1 1 0.9 1 1 0) .7)) >> >> but with this the listener hangs: >> >> (with-sound (:srate 44100 :statistics t) >> (soundfile 0 4 "1-4.wav" '(0 0 0.1 1 0.9 1 1 0) .7)) >> >> Is there any possibility to use relative pathnames in CLM (OpenMCL)? >> >> >> Bill Schottstaedt schrieb: >>> The *clm-search-list* business works on a Mac (and Linux) in sbcl; I >>> can't test >>> openmcl, and can't see why it would hang even if merge-pathnames >>> was unhappy. >>> >>> _______________________________________________ >>> Cmdist mailing list >>> Cmdist at ccrma.stanford.edu >>> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >>> >> > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > -- Achim Bornhoeft .- Neckarhalde 38, D-72070 Tuebingen -.-. tel/fax +49 (0)7071 942745 -... mobil +49 (0)179 6936930 skype:achim.bornhoeft?call -- From torstenanders at gmx.de Tue Oct 2 17:29:57 2007 From: torstenanders at gmx.de (Torsten Anders) Date: Wed, 3 Oct 2007 01:29:57 +0100 Subject: [CM] Strasheela now supports realtime Message-ID: Dear all, [sorry for cross-posting] Strasheela is a highly expressive constraint-based music composition system. Users declaratively state a music theory and the computer generates music which complies with this theory. A theory is formulated as a constraint satisfaction problem (CSP) by a set of rules (constraints) applied to a music representation in which some aspects are expressed by variables (unknowns). Music constraint programming is style-independent and is well-suited for highly complex theories (e.g. a fully-fledged theory of harmony). Results can be output into various formats including MIDI, Lilypond, and Csound. Strasheela 0.9 brings realtime capabilities to Strasheela: it provides constraint solvers supporting a timeout and an OpenSound Control interface. An example demonstrates how Strasheela can interoperate with other applications such as Supercollider or Pure Data in realtime. Further additions and bugfixes have been made to the system as well. For more information on Strasheela, please visit http://strasheela.sourceforge.net/ Changes are described at http://strasheela.sourceforge.net/strasheela/doc/Changes.html A realtime example is documented at http://strasheela.sourceforge.net/strasheela/doc/Example-Realtime- SimpleCounterpoint.html This release can be downloaded from: https://sourceforge.net/project/showfiles.php?group_id=167225 Best Torsten -- Torsten Anders Interdisciplinary Centre for Computer Music Research University of Plymouth Office: +44-1752-233667 Private: +44-1752-663492 http://strasheela.sourceforge.net http://www.torsten-anders.de From errordeveloper at gmail.com Sat Oct 6 11:16:32 2007 From: errordeveloper at gmail.com (ilya .d) Date: Sat, 6 Oct 2007 18:16:32 +0000 Subject: [CM] alsa problem .. In-Reply-To: <1183663391.17234.16.camel@cmn3.stanford.edu> References: <20061112200003.2015.13246.Mailman@cm-mail.stanford.edu> <1183623335.7571.20.camel@00110101> <20070705190844.M86097@ccrma.Stanford.EDU> <1183663391.17234.16.camel@cmn3.stanford.edu> Message-ID: <20071006181632.GH31309@00110101.errordevlopment.org.uk> On Thu, Jul 05, 2007 at 12:23:11PM -0700, Fernando Lopez-Lezcano wrote: > On Thu, 2007-07-05 at 12:12 -0700, Bill Schottstaedt wrote: > > I don't know anything about this, but I notice a variable > > > > snd_pcm_access_t alsa_interleave > > > > in audio.c line 3971 -- I wonder what would happen if you > > changed it to some other value? I can easily bring it out to > > the Snd extension language if it's useful. > > Hmm, I fuzzily seem to remember I never implemented interleaved support > in the alsa driver (only a few - two - cards used it at the time), if > nobody fixed this in between...... > > -- Fernando > I have still got this issue .. but i just found out that there are two functions in the API - """ Read / Write transfer There are two versions of read / write routines. The first expects the interleaved samples at input (SND_PCM_ACCESS_RW_INTERLEAVED access method), and the second one expects non-interleaved (samples in separated buffers - SND_PCM_ACCESS_RW_NONINTERLEAVED access method) at input. There are these functions for interleaved transfers: snd_pcm_writei() snd_pcm_readi(). For non-interleaved transfers, there are these functions: snd_pcm_writen() and snd_pcm_readn(). """ this what file:///usr/share/doc/alsa-lib-1.0.14a-r1/html/pcm.html says .. it probably was written a while ago .. i did post to alsa-devel list, but go no reply yet. i think about trying to change the function in audio.c .. but not sure may be there is few more things to check out .. snd_pcm_writei() and snd_pcm_readni() occure only twice each as i see. as i tend to use only two apps - pure data and snd - i just looked up in pd's source, and apparently it only uses snd_pcm_writei() and snd_pcm_readni() as well! pd works fine with this card .. any ideas ..?? i get the same error if i use hw:0 or plughw:0 . -- Cheers, Ilya. From oded at ccrma.Stanford.EDU Tue Oct 9 05:26:48 2007 From: oded at ccrma.Stanford.EDU (Oded Ben-Tal) Date: Tue, 9 Oct 2007 05:26:48 -0700 (PDT) Subject: [CM] cm on macos Message-ID: I am trying to get cm running under Mac (OSX10.4) I am trying to use the latest binaries (in the hope of avoiding other complications). I managed to install xemacs and sbcl (using fink, so under X11). The mac binaries install CM as an App, will it be possible to still let that existing app use the installed xemacs and sbcl? When I start CM it does give a rather crypic remark that I can set the emacs pointer manually somehow... Thanks Oded -- ___________________________________________________ Oded Ben-Tal http://ccrma.stanford.edu/~oded oded at ccrma.stanford.edu From errordeveloper at gmail.com Wed Oct 10 18:34:09 2007 From: errordeveloper at gmail.com (errordeveloper at gmail.com) Date: Thu, 11 Oct 2007 01:34:09 +0000 Subject: [CM] alsa problem .. SOLVED In-Reply-To: <20070705190844.M86097@ccrma.Stanford.EDU> References: <20061112200003.2015.13246.Mailman@cm-mail.stanford.edu> <1183623335.7571.20.camel@00110101> <20070705190844.M86097@ccrma.Stanford.EDU> Message-ID: <20071011013409.GB28551@00110101.errordevlopment.org.uk> Hello. So finally i have discovered that was a bug that i picked up don't know how .. basicly it heppend that whatever i set in the shell environment, (mus-alsa-playback-device) gave "hw:0", and it couldn't be 'set!, so i just studied lisp tiny bit more ..so (undefine mus-alsa-playback-device) (define (mus-alsa-playback-device) (mus-alsa-device)) . . that just fixed it .. i was very confused cause all other (mus-alsa-*device) procedures gave me right output .. strange that is.. but now all fixed. From bil at ccrma.Stanford.EDU Thu Oct 11 03:40:26 2007 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 11 Oct 2007 03:40:26 -0700 Subject: [CM] alsa problem .. SOLVED In-Reply-To: <20071011013409.GB28551@00110101.errordevlopment.org.uk> References: <20061112200003.2015.13246.Mailman@cm-mail.stanford.edu> <1183623335.7571.20.camel@00110101> <20070705190844.M86097@ccrma.Stanford.EDU> <20071011013409.GB28551@00110101.errordevlopment.org.uk> Message-ID: <20071011103746.M89929@ccrma.Stanford.EDU> Thanks very much for the info! What does (mus-alsa-device) return in the Snd listener? I think the problem was confusion between the ALSA device names "hw:0", "default", and "plughw:0" -- I've never understood any of this stuff. From errordeveloper at gmail.com Sat Oct 13 08:59:14 2007 From: errordeveloper at gmail.com (ilya .d) Date: Sat, 13 Oct 2007 15:59:14 +0000 Subject: [CM] alsa problem .. SOLVED In-Reply-To: <20071011103746.M89929@ccrma.Stanford.EDU> References: <20061112200003.2015.13246.Mailman@cm-mail.stanford.edu> <1183623335.7571.20.camel@00110101> <20070705190844.M86097@ccrma.Stanford.EDU> <20071011013409.GB28551@00110101.errordevlopment.org.uk> <20071011103746.M89929@ccrma.Stanford.EDU> Message-ID: <20071013155914.GB8259@00110101.errordevlopment.org.uk> it's me once again. just in case anyone gets something similar .. what i have to do every time i start Snd is: (undefine mus-alsa-playback-device) (define mus-alsa-playback-device mus-alsa-device) ; here an error happends, ; variable-ref: misc-error: variable is unbound: #> (define mus-alsa-playback-device mus-alsa-device) ; now it's ok - WHY ? ; ; but the playback doesn't work yet! ; it need this: (set! (mus-alsa-device) "hw:0") ; hw:0 doesn't work , but this asignment helps! (set! (mus-alsa-device) "plug:hdsp") ; even if all procedures could return ; "plug:hdsp" before - it didn't work, but once seting it to the one ; which doesn't work ["hw:0"] , and then setting back to what is right - ; make it work. i can't think what these procedure are, as they are not defined in lisp which i might understand .. they are in sndlib2xen.c right ? so what happends there is that somehow it picks up 'hw:0', even if MUS_ALSA_PLAYBACK_DEVICE is set to 'plug:hdsp', and all other variables do as well. BUT only _PLAYBACK_DEVICE picks up 'hw:0' ... and need this tricky crap to realize what has to be used .. i couldn't find any local .scm files which could set anything like this. just in case anybody looks at it .. -- cheers, ilya .d From sasadedic at hotmail.com Fri Oct 26 06:48:00 2007 From: sasadedic at hotmail.com (Aleksandar Dedic) Date: Fri, 26 Oct 2007 13:48:00 +0000 Subject: [CM] snd not work Message-ID: I have installed snd-9.4 with opions: --with-guile (previously installed) and --with-gtk, but when I type "snd" i the terminal, there is no answer. The --help give me a message: bash-3.1$ snd --help Snd is a sound editor; see http://ccrma.stanford.edu/software/snd/. This is Snd version 9.4 of 29-Sep-07: no extension language OSS 3.8.2 Sndlib 20.5 (26-Jun-07, float samples) CLM 3.41 (6-Sep-07) without any graphics system LADSPA 1.1 with large file support with gettext: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=sr_CS.UTF-8;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=sr_CS.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=sr_CS.UTF-8;LC_NAME=sr_CS.UTF-8;LC_ADDRESS=sr_CS.UTF-8;LC_TELEPHONE=sr_CS.UTF-8;LC_MEASUREMENT=sr_CS.UTF-8;LC_IDENTIFICATION=sr_CS.UTF-8 Compiled Oct 26 2007 13:35:27 C: 4.1.2 20070302 (prerelease) (4.1.2-1mdv2007.1) Libc: 2.4.development host: i686-pc-linux-gnu Sasa _________________________________________________________________ Boo!?Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews From bil at ccrma.Stanford.EDU Fri Oct 26 11:51:32 2007 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 26 Oct 2007 11:51:32 -0700 Subject: [CM] snd not work In-Reply-To: References: Message-ID: <20071026184524.M76813@ccrma.Stanford.EDU> The version info says "no extension language" which means the configure script could not find Guile, and "no graphics toolkit" which means it couldn't find gtk. config.log might have useful info, or you can give configure the path directly (GUILE_CONFIG_path). I forget how to tell gtk where to look (it is some complicated macro in aclocal.m4 -- basically pkg-config needs to be able to find gtk). Without either an extension language or a graphics toolkit, there's nothing Snd can do. From oded at ccrma.Stanford.EDU Sun Oct 28 08:30:15 2007 From: oded at ccrma.Stanford.EDU (Oded Ben-Tal) Date: Sun, 28 Oct 2007 08:30:15 -0700 (PDT) Subject: [CM] cm not loading Message-ID: I recently updated cm/clm and now cm isn't loading properly. I'm using the latest planetCCRMA version of cm/clm (cmucl), under xemacs/slime. When I start cm mode I get some warnings: ; In: LAMBDA (PCL::.PV-CELL. PCL::.NEXT-METHOD-CALL. O C DATA) ; (COMPONENT-VISITED-P O C) ; Warning: Undefined function COMPONENT-VISITED-P ; ; and several 'deleting unreachable code' warnings. and then I get a final error: Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER: NIL is not of type REAL [Condition of type TYPE-ERROR] Restarts: 0: [CONTINUE] Return NIL from load of "/usr/lib/cmucl/lib/cm/cm-load.lisp". 1: [ABORT ] Skip remaining initializations. Common Music version is 2.11.0 Any ideas? thanks Oded -- ___________________________________________________ Oded Ben-Tal http://ccrma.stanford.edu/~oded oded at ccrma.stanford.edu From nando at ccrma.Stanford.EDU Sun Oct 28 11:28:20 2007 From: nando at ccrma.Stanford.EDU (Fernando Lopez-Lezcano) Date: Sun, 28 Oct 2007 11:28:20 -0700 Subject: [CM] cm not loading In-Reply-To: References: Message-ID: <1193596100.30371.27.camel@cmn3.stanford.edu> On Sun, 2007-10-28 at 08:30 -0700, Oded Ben-Tal wrote: > I recently updated cm/clm and now cm isn't loading properly. > I'm using the latest planetCCRMA version of cm/clm (cmucl), under > xemacs/slime. > When I start cm mode I get some warnings: > ; In: LAMBDA (PCL::.PV-CELL. PCL::.NEXT-METHOD-CALL. O C DATA) > > ; (COMPONENT-VISITED-P O C) > ; Warning: Undefined function COMPONENT-VISITED-P > ; ; > > and several 'deleting unreachable code' warnings. > and then I get a final error: > > Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER: NIL is not of type > REAL > [Condition of type TYPE-ERROR] > > Restarts: > 0: [CONTINUE] Return NIL from load of > "/usr/lib/cmucl/lib/cm/cm-load.lisp". > 1: [ABORT ] Skip remaining initializations. > > Common Music version is 2.11.0 Which version of the operating systema and the packages? Do you get the same error with the sbcl version (I have not used cmucl in a while)? -- Fernando From oded at ccrma.Stanford.EDU Sun Oct 28 13:39:44 2007 From: oded at ccrma.Stanford.EDU (Oded Ben-Tal) Date: Sun, 28 Oct 2007 13:39:44 -0700 (PDT) Subject: [CM] Re: Cmdist digest, Vol 1 #1271 - 2 msgs In-Reply-To: <20071028190003.1108.56931.Mailman@cm-mail.stanford.edu> References: <20071028190003.1108.56931.Mailman@cm-mail.stanford.edu> Message-ID: Sorry, I'm running fc5 and the latest packages the planet has to offer. I never tried sbcl, maybe I should start... thanks Oded -- ___________________________________________________ Oded Ben-Tal http://ccrma.stanford.edu/~oded oded at ccrma.stanford.edu From taube at uiuc.edu Sun Oct 28 13:42:35 2007 From: taube at uiuc.edu (Rick Taube) Date: Sun, 28 Oct 2007 15:42:35 -0500 Subject: [CM] Re: Cmdist digest, Vol 1 #1271 - 2 msgs In-Reply-To: References: <20071028190003.1108.56931.Mailman@cm-mail.stanford.edu> Message-ID: <06C1EB9C-52D6-4989-A22F-CFDFBB525DD8@uiuc.edu> yes definately. at this point sbcl is a better choice than cmucl On Oct 28, 2007, at 3:39 PM, Oded Ben-Tal wrote: > Sorry, > I'm running fc5 and the latest packages the planet has to offer. I > never tried sbcl, maybe I should start... > > thanks > Oded > > -- > ___________________________________________________ > Oded Ben-Tal > http://ccrma.stanford.edu/~oded > oded at ccrma.stanford.edu > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From oded at ccrma.Stanford.EDU Mon Oct 29 10:49:38 2007 From: oded at ccrma.Stanford.EDU (Oded Ben-Tal) Date: Mon, 29 Oct 2007 10:49:38 -0700 (PDT) Subject: [CM] Re: Cmdist digest, Vol 1 #1271 - 2 msgs In-Reply-To: <06C1EB9C-52D6-4989-A22F-CFDFBB525DD8@uiuc.edu> References: <20071028190003.1108.56931.Mailman@cm-mail.stanford.edu> <06C1EB9C-52D6-4989-A22F-CFDFBB525DD8@uiuc.edu> Message-ID: So I installed the latest cm-sbcl (BTW, nando, the planet webpage still mantioned cm support only for cmucl and clisp, not sbcl) After changing the defualt load for xemacs to cm-sbcl this is what I get when I start slime: debugger invoked on a SIMPLE-ERROR in thread #: Error during processing of --eval option (LOAD #P"/usr/lib/sbcl/cm/cm-load"): # is in native code fasl file format version 72, but this version of SBCL uses format version 73. so there seems to be a mismatch between cm-sbcl and the sbcl version. I'm running FC5 sorry Oded From plewto at gmail.com Tue Oct 30 11:40:08 2007 From: plewto at gmail.com (Steven Jones) Date: Tue, 30 Oct 2007 13:40:08 -0500 Subject: [CM] Sample rate conversion on multi-channel sound question. Message-ID: <58a9955a0710301140nabc8d44qe4bff669177469fc@mail.gmail.com> I wish to stretch stereo samples using src in CLM. Unfortunately the manual examples use outa producing mono result. I'm currently working on a system to iterate the source signal channels to produce temporary mono files, perform the src, and then reassemble the results. I'm wondering if there might not be a simpler way? Thanks Steven Jones From nando at ccrma.Stanford.EDU Tue Oct 30 11:46:28 2007 From: nando at ccrma.Stanford.EDU (Fernando Lopez-Lezcano) Date: Tue, 30 Oct 2007 11:46:28 -0700 Subject: [CM] Re: Cmdist digest, Vol 1 #1271 - 2 msgs In-Reply-To: References: <20071028190003.1108.56931.Mailman@cm-mail.stanford.edu> Message-ID: <1193769988.7796.3.camel@cmn3.stanford.edu> On Sun, 2007-10-28 at 13:39 -0700, Oded Ben-Tal wrote: > Sorry, > I'm running fc5 and the latest packages the planet has to offer. I never > tried sbcl, maybe I should start... Yeah, I see. The cm package I released not long ago and could not test (I don't currently have a fc5 test system) - I think it was because you requested it. I'll see what I can do (I'm no longer building packages for fc5), probably try to test in my mach build environment and see if it is something easy to fix. -- Fernando From bil at ccrma.Stanford.EDU Tue Oct 30 12:03:00 2007 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 30 Oct 2007 12:03:00 -0700 Subject: [CM] Sample rate conversion on multi-channel sound question. In-Reply-To: <58a9955a0710301140nabc8d44qe4bff669177469fc@mail.gmail.com> References: <58a9955a0710301140nabc8d44qe4bff669177469fc@mail.gmail.com> Message-ID: <20071030190031.M40702@ccrma.Stanford.EDU> > I wish to stretch stereo samples using src in CLM. Unfortunately the > manual examples use outa producing mono result. I'm currently working > on a system to iterate the source signal channels to produce temporary > mono files, perform the src, and then reassemble the results. I'm > wondering if there might not be a simpler way? This is the Common Lisp CLM? Here's one way: (definstrument simple-src (start-time duration amp srt filename) (let* ((beg (floor (* start-time *srate*))) (end (+ beg (floor (* duration *srate*)))) (chans (min (mus-channels *output*) (mus-channels filename))) (srcs (make-array chans))) (loop for i from 0 below chans do (setf (aref srcs i) (make-src :srate srt :input (make-file->sample :file filename :channel i)))) (run (loop for i from beg below end do (loop for k from 0 below chans do (out-any i (* amp (src (aref srcs k))) k)))))) ;(with-sound (:channels 2) (simple-src 0 2 .5 1.5 "/home/bil/cl/2.snd")) The main changes from the example in the manual are the array of src's, and make-file->sample so that each src gets the specific channel to read.