From ljure at multitel.com.uy Mon Aug 2 11:32:42 2004 From: ljure at multitel.com.uy (luis jure) Date: Mon, 2 Aug 2004 15:32:42 -0300 Subject: [CM] cmn->midi Message-ID: <20040802153242.2a6ee613@acme> hello, i know a bit of CMN, and next to nothing of CM. my question is, is there a simple way to convert a CMN score to MIDI file? i'm looking for something scriptable. i'm writing some vim-macros to compile and display the score from vim, and it would be handy to be able to generate and play the MIDI files, also. i can do that easily with lilypond, just adding a \midi block in the score, but i'd prefer to use CMN if i could find an equally easy solution. best, lj From dj.ton.e at gmx.de Sun Aug 8 14:28:29 2004 From: dj.ton.e at gmx.de (Tony) Date: Sun, 8 Aug 2004 23:28:29 +0200 Subject: [CM] Synthesizing Midi Message-ID: <000201c47d8e$a69ad710$db693c86@pc> I'm still trying to find a way to synthesize midi, yes midi, not audio. This means I want to go further in the ways of creating midi parts, especially in creating combinations of melody and rhythm, also finding new ways of creating variations of existing midi files. To reach this goal I thought Pd, Common Music or both together should be helpful tools. Rhythm-Melody Combination Let me try to describe what is the first step I want to try in combining rhythmic midi files with melodic midi files. I have two midi files. (e.g. both just one bar long, in 4/4 measure). 1: rhythm.mid ( with the following note lengths) 1/4 1/4 1/4 1/8 1/8. (all C notes) 2: melody.mid (with the following notes) 1/4(Note C) 3/4(Note D) From epsobolik at rcn.com Sun Aug 8 14:53:45 2004 From: epsobolik at rcn.com (Phil Sobolik) Date: Sun, 08 Aug 2004 17:53:45 -0400 Subject: [CM] re: Synthesizing midi Message-ID: <5.2.1.1.2.20040808175221.01866c38@pop.rcn.com> Sounds like the CM function 'import-events' is what you want to start with. You should be able to extract the info that you want from each file and, with some list manipulation, generate the new midi file. Phil Sobolik From carl.boingie at verizon.net Sun Aug 8 15:27:59 2004 From: carl.boingie at verizon.net (Carl Edwards) Date: Sun, 08 Aug 2004 18:27:59 -0400 Subject: [CM] Synthesizing Midi In-Reply-To: <000201c47d8e$a69ad710$db693c86@pc> Message-ID: Look in the CM dictionary under "join". Join "defines a union of two or more patterns. Elements from the joined patternsare read in parallel and returned as lists in which the elements are in the same order as the patterns specified to the join." Hope this helps. Carl Edwards > From: "Tony" > Date: Sun, 8 Aug 2004 23:28:29 +0200 > To: , > Subject: [CM] Synthesizing Midi > > I'm still trying to find a way to synthesize midi, yes midi, not audio. > This means I want to go further in the ways of creating midi parts, > especially in creating combinations of melody and rhythm, also finding > new ways of creating variations of existing midi files. To reach this > goal I thought Pd, Common Music or both together should be helpful > tools. > > > Rhythm-Melody Combination > > Let me try to describe what is the first step I want to try in combining > rhythmic midi files with melodic midi files. > > I have two midi files. (e.g. both just one bar long, in 4/4 measure). > > 1: rhythm.mid ( with the following note lengths) > 1/4 1/4 1/4 1/8 1/8. (all C notes) > > 2: melody.mid (with the following notes) > 1/4(Note C) 3/4(Note D) > > From these midi files I should get with Pd or Common Music or Key Kit a > combination: > > 3: combi.mid > 1/4(C) 1/4(D) 1/4(D) 1/8(D) 1/8(D) > > The same in words explained: The file melody.mid defines the note > pitches at a given time and rhythm.mid defines the note starting times, > the note durations and the note velocities. > (Sometimes) Long melody notes are converted (splitted) to many shorter > notes according to the rhythm.mid. > > Any tips regarding reaching this goal with Pd or Common Music or Key Kit > are welcome. > > Best greetings, > t > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From tjt at nosuch.com Sun Aug 8 16:59:08 2004 From: tjt at nosuch.com (Tim Thompson) Date: Sun, 8 Aug 2004 16:59:08 -0700 Subject: [CM] RE: [keykit] Synthesizing Midi In-Reply-To: <000201c47d8e$a69ad710$db693c86@pc> Message-ID: <000401c47da3$b25606a0$6400a8c0@hq.netapp.com> > I have two midi files. (e.g. both just one bar long, in 4/4 measure). > > 1: rhythm.mid ( with the following note lengths) > 1/4 1/4 1/4 1/8 1/8. (all C notes) > > 2: melody.mid (with the following notes) > 1/4(Note C) 3/4(Note D) > > From these midi files I should get with Pd or Common Music or Key Kit a > combination: > > 3: combi.mid > 1/4(C) 1/4(D) 1/4(D) 1/8(D) 1/8(D) In keykit, this would be: p1 = readmf("rhythm.mid") p2 = readmf("melody.mid") p3 = applynear(p1,p2,PITCH) writemf(p3,"combi.mid") The source for the applynear function is in lib/basic1.k, if you want to see how it works. It takes each note in p1, and applies the pitch of the nearest (in terms of time) note from p2. ...Tim... From taube at uiuc.edu Mon Aug 9 06:35:38 2004 From: taube at uiuc.edu (Rick Taube) Date: Mon, 9 Aug 2004 08:35:38 -0500 Subject: [CM] Synthesizing Midi In-Reply-To: <000201c47d8e$a69ad710$db693c86@pc> References: <000201c47d8e$a69ad710$db693c86@pc> Message-ID: all you need to do is import your two files using import-events and then define a little funcion that maps over the events and combines them. here is a candidate mapping function that returns a combined list of pitches and rhythms, where "rhythm" means the time delta between midi notes in your rhythm file: (define (zipper noteseq rhyseq) (loop with time = 0 for e1 in (subobjects noteseq) for e2 in (subobjects rhyseq) collect (list (midi-keynum e1) (- (object-time e2) time))) do (set! time (object-time e2)))) On Aug 8, 2004, at 4:28 PM, Tony wrote: > I'm still trying to find a way to synthesize midi, yes midi, not audio. > This means I want to go further in the ways of creating midi parts, > especially in creating combinations of melody and rhythm, also finding > new ways of creating variations of existing midi files. To reach this > goal I thought Pd, Common Music or both together should be helpful > tools. > > > Rhythm-Melody Combination > > Let me try to describe what is the first step I want to try in > combining > rhythmic midi files with melodic midi files. > > I have two midi files. (e.g. both just one bar long, in 4/4 measure). > > 1: rhythm.mid ( with the following note lengths) > 1/4 1/4 1/4 1/8 1/8. (all C notes) > > 2: melody.mid (with the following notes) > 1/4(Note C) 3/4(Note D) > > From these midi files I should get with Pd or Common Music or Key Kit a > combination: > > 3: combi.mid > 1/4(C) 1/4(D) 1/4(D) 1/8(D) 1/8(D) > > The same in words explained: The file melody.mid defines the note > pitches at a given time and rhythm.mid defines the note starting times, > the note durations and the note velocities. > (Sometimes) Long melody notes are converted (splitted) to many shorter > notes according to the rhythm.mid. > > Any tips regarding reaching this goal with Pd or Common Music or Key > Kit > are welcome. > > Best greetings, > t > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From dj.ton.e at gmx.de Mon Aug 9 07:02:04 2004 From: dj.ton.e at gmx.de (Tony) Date: Mon, 9 Aug 2004 16:02:04 +0200 Subject: [CM] RE: [keykit] Synthesizing Midi In-Reply-To: <000401c47da3$b25606a0$6400a8c0@hq.netapp.com> Message-ID: <000701c47e19$73993880$db693c86@pc> Thanks Tim, this works great. Now I'm trying to find a way that allows me also to use chords in melody.mid. Another variation would be to use the velocities from melody.mid and not from rhythm.mid. Best greetings, t -----Original Message----- From: Tim Thompson [mailto:tjt at nosuch.com] Sent: Monday, August 09, 2004 1:59 AM To: 'Tony'; cmdist at ccrma.stanford.edu; keykit at nosuch.com Subject: RE: [keykit] Synthesizing Midi > I have two midi files. (e.g. both just one bar long, in 4/4 measure). > > 1: rhythm.mid ( with the following note lengths) > 1/4 1/4 1/4 1/8 1/8. (all C notes) > > 2: melody.mid (with the following notes) > 1/4(Note C) 3/4(Note D) > > From these midi files I should get with Pd or Common Music or Key Kit a > combination: > > 3: combi.mid > 1/4(C) 1/4(D) 1/4(D) 1/8(D) 1/8(D) In keykit, this would be: p1 = readmf("rhythm.mid") p2 = readmf("melody.mid") p3 = applynear(p1,p2,PITCH) writemf(p3,"combi.mid") The source for the applynear function is in lib/basic1.k, if you want to see how it works. It takes each note in p1, and applies the pitch of the nearest (in terms of time) note from p2. ...Tim... From cewing at u.washington.edu Wed Aug 11 16:22:36 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Wed, 11 Aug 2004 16:22:36 -0700 (PDT) Subject: [CM] multi-channel peak detection Message-ID: Hi ho, I'm working on a video project for which the music already exists. The sounds are sharp, fm-style bell sounds and I want to make video objects that correspond to the sounds. To that end I've been working on the problem of detecting attacks in multiple channels and correlating them so I can control location on the screen by panning location. I have a system that works, but it's pretty inelegant. I'm wondering if any of you smart folks out here have dealt with a similar problem and would be willing to share code. Any takers? C ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* From fstafek at noise.cz Thu Aug 12 14:37:52 2004 From: fstafek at noise.cz (eFko) Date: Thu, 12 Aug 2004 23:37:52 +0200 Subject: [CM] local variables not shadowing in defprocess In-Reply-To: <40F7B261.3060905@ccrma> References: <5809A2A8-D667-11D8-8948-000A95674CE4@uiuc.edu> <40F7B261.3060905@ccrma> Message-ID: <1823814434.20040812233752@noise.cz> 16. ?ervence 2004, 12:48:01, Bill: >> personally i would throw away common lisp BS> I would too... But, I just spent 3 weeks hacking like a fiend BS> to rescue the CL version of CLM ("clm-3") and I hope to have it BS> ready by sometime next week. I had stopped work on the previous BS> version (clm-2) because the code made me angry just looking at BS> it, so it was either a total rewrite, or abandon CL. BS> _______________________________________________ BS> Cmdist mailing list BS> Cmdist at ccrma.stanford.edu BS> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist Just curios, what are the reasons for [possible] abandnoning CL? -- eFko From bil at ccrma.Stanford.EDU Fri Aug 13 04:36:06 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 13 Aug 2004 04:36:06 -0700 Subject: [CM] local variables not shadowing in defprocess In-Reply-To: <1823814434.20040812233752@noise.cz> References: <5809A2A8-D667-11D8-8948-000A95674CE4@uiuc.edu> <40F7B261.3060905@ccrma> <1823814434.20040812233752@noise.cz> Message-ID: <411CA7A6.5080601@ccrma> > Just curios, what are the reasons for [possible] abandnoning CL? There was a brief discussion about this in: http://ccrma-mail.stanford.edu/pipermail/cmdist/2002-June/000092.html (not sure that's a real link -- the cmdist archives in June 2002, see "on Guile"). The only thing I'd change, 2 years later, is that the "pointless bickering" has petered out... I'd add that lisp implementations have gotten worse, not better, in regards to the FFI's -- they're all different, and constantly changing. And the free lisps (sbcl in particular) are being developed by people with what I regard as a C-mentality -- highly annoying to someone who remembers the good old days... Also, CL debuggers have stagnated, and are currently not even close to gdb -- it's an act of complete desperation to ask for a CL backtrace, for example. And as Rick said earlier, Scheme closures and "funcall" handling are real improvements over CL. From taube at uiuc.edu Fri Aug 13 06:39:16 2004 From: taube at uiuc.edu (Rick Taube) Date: Fri, 13 Aug 2004 08:39:16 -0500 Subject: [CM] local variables not shadowing in defprocess In-Reply-To: <411CA7A6.5080601@ccrma> References: <5809A2A8-D667-11D8-8948-000A95674CE4@uiuc.edu> <40F7B261.3060905@ccrma> <1823814434.20040812233752@noise.cz> <411CA7A6.5080601@ccrma> Message-ID: <2BF20B05-ED2E-11D8-BA22-000A95674CE4@uiuc.edu> > I'd add that lisp implementations have gotten worse, not better, > in regards to the FFI's -- they're all different, and constantly > changing. And the free lisps (sbcl in particular) are being > developed by people with what I regard as a C-mentality -- highly > annoying to someone who remembers the good old days... I have to echo Bill's sentiments about the dismal state of CLTL FFIs. I am currently trying to generate GKT2 FFIs for SBCL and OpenMCL so that CM can again have a plotters and browers (I actally have it working in openmcl now...) In addition to the coplexity of GTK, these two Lisp interfaces share basically nothing in common! OpenMCL makes it very easy to build an ffi (its just the output from a program called ffigen ) but the restulting layer is clunky and very low level. SBCL's interface does a lot for you BUT you have to develop it by hand -- an impossible task for anything the size of GTK -- and its compiler is as strict as C even though Lisp is a dynamic language. Ive actually mananged to generate a valid gtk2 sbcl ffi (only the typesystem so far) but it was more than two weeks of work to write the program that generated the FFI. Its 2004 now and it shouldnt be this difficult to get a frigging cross platform GUI in CLTL. From epsobolik at rcn.com Sun Aug 15 07:45:54 2004 From: epsobolik at rcn.com (Phil Sobolik) Date: Sun, 15 Aug 2004 10:45:54 -0400 Subject: [CM] What do I call a network drive Message-ID: <5.2.1.1.2.20040815103515.06643700@pop.rcn.com> I'm using CM on a Mac with OS X. I would like to use an external drive on my Windows XP computer to store .cm and .mid files. I have the drive shared on my Mac Desktop. The name reads 'EXT (E)' - I named the connection 'EXT' and it's drive 'E' on the Windows computer. (shell "ls /volumes") lists the local Mac drive and 'workgroup;eps042002'. 'workgroup' is the 'domain' name on the Windows computer. 'eps042002' is the name of the computer according to XP. When I type in (cd "/volumes/workgroup;eps042002") I get an 'Illegal directory string' error. I can then (shell "ls") and get a listing, but keep getting the error. (load xxx) doesn't work. I assume CM is using OS 9 directory/file name rules or something. Is there a something I can call the drive that CM will understand? Phil Sobolik From taube at uiuc.edu Sun Aug 15 09:51:36 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Sun, 15 Aug 2004 11:51:36 -0500 Subject: [CM] What do I call a network drive Message-ID: <2122a7dd.70560b89.8300200@expms6.cites.uiuc.edu> Hi this has nothing to do with CM, its the underlying lisp thats having the problem. And I dont see how a lisp implementation could make sense of a peverse pathname like that. Perhaps you could could mount the parition under annother name or make an alias to it so the path you use looks like a unix path? ---- Original message ---- >Date: Sun, 15 Aug 2004 10:45:54 -0400 >From: Phil Sobolik >Subject: [CM] What do I call a network drive >To: cmdist at ccrma.Stanford.EDU > >I'm using CM on a Mac with OS X. I would like to use an external drive on >my Windows XP computer to store .cm and .mid files. I have the drive >shared on my Mac Desktop. The name reads 'EXT (E)' - I named the >connection 'EXT' and it's drive 'E' on the Windows computer. (shell "ls >/volumes") lists the local Mac drive and >'workgroup;eps042002'. 'workgroup' is the 'domain' name on the Windows >computer. 'eps042002' is the name of the computer according to XP. When I >type in (cd "/volumes/workgroup;eps042002") I get an 'Illegal directory >string' error. I can then (shell "ls") and get a listing, but keep getting >the error. (load xxx) doesn't work. I assume CM is using OS 9 >directory/file name rules or something. Is there a something I can call >the drive that CM will understand? > >Phil Sobolik > >_______________________________________________ >Cmdist mailing list >Cmdist at ccrma.stanford.edu >http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From taube at uiuc.edu Sun Aug 15 10:17:15 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Sun, 15 Aug 2004 12:17:15 -0500 Subject: [CM] What do I call a network drive Message-ID: <7cdc5508.705864aa.81db700@expms6.cites.uiuc.edu> >lists the local Mac drive and >'workgroup;eps042002'. you might also try to explicitly quote that ";" in the string, ie (cd "/volumes/workgroup\;eps042002" ) or perhaps Lisp pathnames have a way of dealing with such characters -- i dont know off hand and dont have the CLTL manual in front of me. From epsobolik at rcn.com Sun Aug 15 20:23:56 2004 From: epsobolik at rcn.com (Phil Sobolik) Date: Sun, 15 Aug 2004 23:23:56 -0400 Subject: [CM] What do I call a network drive In-Reply-To: <2122a7dd.70560b89.8300200@expms6.cites.uiuc.edu> Message-ID: <5.2.1.1.2.20040815153033.06609430@pop.rcn.com> It's not my name. That's just what OS X did when I connected to the drive on the server. What I find interesting is that WORKGROUP is the name of the network workgroup and EPS042002 is the name of the Windows server. Where is the name of the drive? BTW, if I browse to Network - WORKGROUP I see that EPS042002 is an alias. If I copy it and paste into my home directory, it creates a folder and copies all the files into. In a terminal window, I can ls /Volumes/WORKGROUP\;EPS042002 but ls /Network/WORKGROUP/EPS042002 just gives me /Network/WORKGROUP/EPS042002 back again At 11:51 AM 8/15/2004 -0500, you wrote: >Hi this has nothing to do with CM, its the underlying lisp thats having the >problem. And I dont see how a lisp implementation could make sense of a >peverse >pathname like that. Perhaps you could could mount the parition under annother >name or make an alias to it so the path you use looks like a unix path? > > > >---- Original message ---- > >Date: Sun, 15 Aug 2004 10:45:54 -0400 > >From: Phil Sobolik > >Subject: [CM] What do I call a network drive > >To: cmdist at ccrma.Stanford.EDU > > > >I'm using CM on a Mac with OS X. I would like to use an external drive on > >my Windows XP computer to store .cm and .mid files. I have the drive > >shared on my Mac Desktop. The name reads 'EXT (E)' - I named the > >connection 'EXT' and it's drive 'E' on the Windows computer. (shell "ls > >/volumes") lists the local Mac drive and > >'workgroup;eps042002'. 'workgroup' is the 'domain' name on the Windows > >computer. 'eps042002' is the name of the computer according to XP. When I > >type in (cd "/volumes/workgroup;eps042002") I get an 'Illegal directory > >string' error. I can then (shell "ls") and get a listing, but keep getting > >the error. (load xxx) doesn't work. I assume CM is using OS 9 > >directory/file name rules or something. Is there a something I can call > >the drive that CM will understand? > > > >Phil Sobolik > > > >_______________________________________________ > >Cmdist mailing list > >Cmdist at ccrma.stanford.edu > >http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > >_______________________________________________ >Cmdist mailing list >Cmdist at ccrma.stanford.edu >http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From bbattey at dmu.ac.uk Sun Aug 15 09:45:01 2004 From: bbattey at dmu.ac.uk (Bret Battey) Date: Sun, 15 Aug 2004 17:45:01 +0100 Subject: [CM] CLM OSX x11 issue / FTP Server Down Message-ID: <739A69A8-EEDA-11D8-BA93-000D9369AD4E@dmu.ac.uk> Greetings, For the first time since March, I'm setting up a new Mac OSX machine to run CLM. I'm using the CLM included in Rick's CM application, and I'm using the instructions I posted here in March, including installation of the X11 STK out of the OSX XTools installer. However, when I try to compile an instrument, I'm getting this error: ; Compiling "/Users/bbattey/04/clminst/grani/clm_grani.c" ld: warning can't open dynamic library: /usr/X11R6/lib/libX11.6.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) Tried to download a more recent CLM to compare results, but the CCRMA FTP server was not responding this evening (Sun 5:45 pm in Britain, whatever that makes it in Stanford...) -=Bret From taube at uiuc.edu Mon Aug 16 04:52:38 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Mon, 16 Aug 2004 06:52:38 -0500 Subject: [CM] What do I call a network drive Message-ID: <11d104c2.70be82b0.8209d00@expms6.cites.uiuc.edu> >In a terminal window, I can ls /Volumes/WORKGROUP\;EPS042002 but ls >/Network/WORKGROUP/EPS042002 just gives me /Network/WORKGROUP/EPS042002 >back again try: /Network/WORKGROUP/EPS042002/* From bbattey at dmu.ac.uk Mon Aug 16 08:01:35 2004 From: bbattey at dmu.ac.uk (Bret Battey) Date: Mon, 16 Aug 2004 16:01:35 +0100 Subject: [CM] CLM OSX x11 issue / FTP Server Down In-Reply-To: <739A69A8-EEDA-11D8-BA93-000D9369AD4E@dmu.ac.uk> References: <739A69A8-EEDA-11D8-BA93-000D9369AD4E@dmu.ac.uk> Message-ID: <2ACA32F1-EF95-11D8-9ECA-000D9369AD4E@dmu.ac.uk> Ah, I still needed to install X11 from the Apple web site. That took care of the problem. (Though I don't recall writing that step into the instructions I wrote in March.) Still can't connect to the CCRMA FTP server, however. On 15 Aug 2004, at 17:45, Bret Battey wrote: > Greetings, > > For the first time since March, I'm setting up a new Mac OSX machine > to run CLM. I'm using the CLM included in Rick's CM application, and > I'm using the instructions I posted here in March, including > installation of the X11 STK out of the OSX XTools installer. > > However, when I try to compile an instrument, I'm getting this error: > > ; Compiling "/Users/bbattey/04/clminst/grani/clm_grani.c" > ld: warning can't open dynamic library: /usr/X11R6/lib/libX11.6.dylib > (checking for undefined symbols may be affected) (No such file or > directory, errno = 2) > > > Tried to download a more recent CLM to compare results, but the CCRMA > FTP server was not responding this evening (Sun 5:45 pm in Britain, > whatever that makes it in Stanford...) > > -=Bret > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From k.s.matheussen at notam02.no Tue Aug 17 09:07:25 2004 From: k.s.matheussen at notam02.no (Kjetil Svalastog Matheussen) Date: Tue, 17 Aug 2004 18:07:25 +0200 (CEST) Subject: [CM] [ANN] Snd-ls V0.9.1 Message-ID: Download from http://www.notam02.no/arkiv/src/snd/ Screenshot: http://www.notam02.no/arkiv/src/snd/snd-ls-0.9.1.png Snd-ls v0.9.1 ------------- Released 17.8.2004 Contains -------- Snd v7.6 from 2.8.2004 About ----- Snd-ls is a distribution of the sound editor Snd. Its target is people that don't know scheme very well, and don't want to spend too much time configuring Snd. It can also serve as a quick introduction to Snd and how it can be set up. Install ------- 1. Edit the file config.scm, for configuration settings. 2. Run ./build 3. Run ./install as root. Its not necessarry to uninstall any previously installed versions of Snd. Snd-ls should not interfere with already installed versions. After installing, the name of the executable is "snd-ls". To uninstall, run ./uninstall Required packages ----------------- guile gtk-2 jack libsamplerate ladspa liblrdf fftw3 (guile-devel, gtk-2-devel and liblrdf-devel is also needed at runtime) Changes ------- 0.9.0 -> 0.9.1: -Official announced. -Upgraded SND from 20.7.2004 to 2.8.2004 -Huge amount of testing at Notam by 14 unexperienced guinea pigs for a whole week; many bugs fixed. Links ----- Snd: http://ccrma.stanford.edu/software/snd/ Guile: http://www.gnu.org/software/guile/guile.html Credits ------- Snd is made by Bill Schottstaedt. This small package is put together by Kjetil Matheussen / Notam, with consulting help from Bill Schottstaedt. -- From bigswift at ufl.edu Tue Aug 17 11:13:53 2004 From: bigswift at ufl.edu (shreeswifty) Date: Tue, 17 Aug 2004 14:13:53 -0400 (EDT) Subject: [CM] [ANN] Snd-ls V0.9.1 Message-ID: <558630343.1092766433708.JavaMail.osg@osgjas04.cns.ufl.edu> I cannot help but hope/request for a SND.pkg for OSX is on the way soon?? it would be a joy if i could just install snd without a week of stuff On Tue Aug 17 12:07:25 EDT 2004, Kjetil Svalastog Matheussen wrote: > > > > Download from http://www.notam02.no/arkiv/src/snd/ > Screenshot: http://www.notam02.no/arkiv/src/snd/snd-ls-0.9.1.png > > > > > Snd-ls v0.9.1 > ------------- > Released 17.8.2004 > > > > Contains > -------- > Snd v7.6 from 2.8.2004 > > > > About > ----- > Snd-ls is a distribution of the sound editor Snd. Its target is > people that don't know scheme very well, and don't want > to spend too much time configuring Snd. It can also serve > as a quick introduction to Snd and how it can be set up. > > > > Install > ------- > 1. Edit the file config.scm, for configuration settings. > 2. Run ./build > 3. Run ./install as root. > > Its not necessarry to uninstall any previously installed versions > of > Snd. Snd-ls should not interfere with already installed versions. > After installing, the name of the executable is "snd-ls". > > To uninstall, run ./uninstall > > > > Required packages > ----------------- > guile > gtk-2 > jack > libsamplerate > ladspa > liblrdf > fftw3 > > (guile-devel, gtk-2-devel and liblrdf-devel is also needed at > runtime) > > > Changes > ------- > 0.9.0 -> 0.9.1: > -Official announced. > -Upgraded SND from 20.7.2004 to 2.8.2004 > -Huge amount of testing at Notam by 14 unexperienced guinea pigs > for > a whole week; many bugs fixed. > > > Links > ----- > Snd: http://ccrma.stanford.edu/software/snd/ > Guile: http://www.gnu.org/software/guile/guile.html > > > Credits > ------- > Snd is made by Bill Schottstaedt. This small package is put > together by Kjetil Matheussen / Notam, with consulting > help from Bill Schottstaedt. > > > > -- _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > Patrick Pagano, B.S.,M.F.A Candidate Research And Development Assistant Digital Worlds Institute University Of Florida (352) 294-2070 From oded at ccrma.Stanford.EDU Tue Aug 17 04:15:28 2004 From: oded at ccrma.Stanford.EDU (Oded Ben-Tal) Date: Tue, 17 Aug 2004 04:15:28 -0700 (PDT) Subject: [CM] fm and transposition Message-ID: I'm using clms fm-bell instrument to produce sounds to be used in an experiment. Each short sound is presented in 3 transpositions. I'm extracting two numbers out of the sounds RMS amplitude and a mean frequency.(*) So here is my question: RMS amplitude and mean frequency values of the transposed sounds are not simple transpositions. in other words if 1a and 1b are two sounds using fundamental freq. f0, 2a and 2b are copies of the clm code with f0 shifted up. the RMS amplitude of 1a is larger than 1b but the reverse is true of 2a and 2b. (and similarly for mean frequency). I'm trying to understand why is that so. Or if it shouldn't be to track my error. thanks Oded (*)For the mean frequency I'm averaging windowed fft of the sound weighted by local amplitude (the trail end of the sound is soft such that the average frequency is that of the noise; the sounds are not single pitch so I'm not using fundamental frequency). From juanig at ccrma.Stanford.EDU Tue Aug 17 21:08:28 2004 From: juanig at ccrma.Stanford.EDU (Juan Reyes) Date: 17 Aug 2004 21:08:28 -0700 Subject: [CM] fm and transposition In-Reply-To: References: Message-ID: <1092802108.13636.83.camel@cmn30.stanford.edu> I am not sure but this might bring back the old issue of Phase Modulation and why Phase Modulation is a good implementation of FM. In FM, if remember well, the carrier frequency is not always the fundamental and also if you have a modulation index which is not an integer and greater than 1 you might have "fold-over" of lateral frequencies which might be the case of the fm-bell and low frequencies. Therefore the spectra is not the same at different frequencies. A good guess might be to try changing the modulation index or the C:M ratio so that the spectra (amplitudes of partials) remains the same at different frequencies. --* Juan On Tue, 2004-08-17 at 04:15, Oded Ben-Tal wrote: > I'm using clms fm-bell instrument to produce sounds to be used in an > experiment. Each short sound is presented in 3 transpositions. I'm > extracting two numbers out of the sounds RMS amplitude and a mean > frequency.(*) So here is my question: RMS > amplitude and mean frequency values of the transposed sounds are not > simple transpositions. in other words if 1a and 1b are two sounds using > fundamental freq. f0, 2a and 2b are copies of the clm code with f0 shifted > up. the RMS amplitude of 1a is larger than 1b but the reverse is true of > 2a and 2b. (and similarly for mean frequency). > I'm trying to understand why is that so. Or if it shouldn't be to track my > error. > > thanks > Oded > > (*)For the mean frequency I'm averaging windowed fft of the > sound > weighted by local amplitude (the trail end of the sound is soft such that > the average frequency is that of the noise; the sounds are not single > pitch so I'm not using fundamental frequency). > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From rbastian at club-internet.fr Tue Aug 17 17:40:50 2004 From: rbastian at club-internet.fr (=?iso-8859-15?q?Ren=E9=20Bastian?=) Date: Wed, 18 Aug 2004 02:40:50 +0200 Subject: [CM] (quit), (exit) ? Message-ID: <04081802405001.00763@rbastian> Hello, I installed CMN on the computer of my friend Stephane. It works with clisp. To exit from clisp, I enter (exit) or (quit). But how to exit from CMN ? (on my older version of CMN, (exit) or (quit) stop all). Thanks for your answer and thanks for CMN ! -- Ren? Bastian http://www.musiques-rb.org : Musique en Python From taube at uiuc.edu Wed Aug 18 06:20:31 2004 From: taube at uiuc.edu (Rick Taube) Date: Wed, 18 Aug 2004 08:20:31 -0500 Subject: [CM] (quit), (exit) ? In-Reply-To: <04081802405001.00763@rbastian> References: <04081802405001.00763@rbastian> Message-ID: <616DE0F8-F119-11D8-8F6D-000A95CA28FC@uiuc.edu> To quit CLISP from inside the CMN package you can do: [1]> (ext::quit) Bye. pinhead:~ hkt$ On Aug 17, 2004, at 7:40 PM, Ren? Bastian wrote: > Hello, > > I installed CMN on the computer of my friend Stephane. > It works with clisp. > > To exit from clisp, I enter (exit) or (quit). > > But how to exit from CMN ? > > (on my older version of CMN, (exit) or (quit) stop all). > > Thanks for your answer and thanks for CMN ! > -- > Ren? Bastian > http://www.musiques-rb.org : Musique en Python > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From bil at ccrma.Stanford.EDU Wed Aug 18 06:29:26 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 18 Aug 2004 06:29:26 -0700 Subject: [CM] fm and transposition In-Reply-To: References: Message-ID: <412359B6.8020403@ccrma> Sound complicated enough that anything could go wrong, but my first guess is that it's caused by the bell's fm-to-cm ratios like 1.41 -- these won't give simple integer ratio sidebands, and the various fm indices are dependent on frequency. From baker at charlieb.com Wed Aug 18 07:01:32 2004 From: baker at charlieb.com (Charlieb) Date: Wed, 18 Aug 2004 14:01:32 +0000 (GMT) Subject: [CM] fm and transposition In-Reply-To: <412359B6.8020403@ccrma> Message-ID: Perceived frequency of timbres that contain non-harmonically related components is not simple: although the gestalt principle of "common-fate" or "common-origin" clearly identifies your bell sound as a unified sound, the mechanisms of determining pitch of the sound are all confused: our brains just can't make the upper partials fit the lower, if they are not harmonically related: result is that the lowest strong component is often selected as the pitch by the ear. Or any set of components that re-inforce each other harmonically...or ? . What with FM foldover around nyquist&'0'Hz, you can have a perceived pitch that is not even related to the pitches of the waves modulated together!! Ok, I guess this is pretty well known. I wonder if John Chowning could get permissions to re-write the Yamaha FM book, with corrections , later research, etc...and get it re-published. Boy, what a benefit that would be to the community! (Can one even obtain a copy of book these days?) l&k - from an academic reject who still follows his field ;-). char lieb ********************************************* Charlie Baker baker at charlieb.com "when everything isn't roses, you don't get any headroom" - Thomas Dolby "New Toy" ********************************************* On Wed, 18 Aug 2004, Bill Schottstaedt wrote: > Sound complicated enough that anything could go wrong, but > my first guess is that it's caused by the bell's fm-to-cm ratios > like 1.41 -- these won't give simple integer ratio sidebands, > and the various fm indices are dependent on frequency. > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From bil at ccrma.Stanford.EDU Wed Aug 18 07:09:25 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 18 Aug 2004 07:09:25 -0700 Subject: [CM] fm and transposition In-Reply-To: References: Message-ID: <41236315.8030302@ccrma> > (Can one even obtain a copy of book these days?) Are you thinking of: Chowning J, Bristow D, 1985, "FM Theory and Applications -- by Musicians for Musicians", Tokyo, Yamaha Music Foundation I don't think it's in print. From baker at charlieb.com Wed Aug 18 07:16:43 2004 From: baker at charlieb.com (Charlieb) Date: Wed, 18 Aug 2004 14:16:43 +0000 (GMT) Subject: [CM] fm and transposition In-Reply-To: <41236315.8030302@ccrma> Message-ID: Yes, I really enjoyed the book, and not withstanding a few errors I had pointed out to me, I found it invaluable in learning FM theory for musical manipulation. I used it in the non-linear section of our synthesis class (known as the "modulation" section back then). I have no idea what it taught these days. I wonder if there is a clearer explanation of FM extant. Certainly no other source with the pedigree...:). Sorry to hear it is out of print (I somehow knew that...) Charlie B. ********************************************* Charlie Baker baker at charlieb.com "when everything isn't roses, you don't get any headroom" - Thomas Dolby "New Toy" ********************************************* On Wed, 18 Aug 2004, Bill Schottstaedt wrote: > > (Can one even obtain a copy of book these days?) > > Are you thinking of: > > Chowning J, Bristow D, 1985, "FM Theory and Applications -- > by Musicians for Musicians", Tokyo, Yamaha Music Foundation > > I don't think it's in print. > > From epsobolik at rcn.com Sat Aug 21 13:10:36 2004 From: epsobolik at rcn.com (Phil Sobolik) Date: Sat, 21 Aug 2004 16:10:36 -0400 Subject: [CM] How do I reference a network share? Message-ID: <5.2.1.1.2.20040821154641.019e6958@pop.rcn.com> More info on my network share problem: I have a Windows XP and an OS X computer on a home network. The XP computer has an external USB hard drive that is shared. I can see the drive on the Mac and mount it (SMB) and view the files in the GUI. In a terninal, ls /Volumes shows the shared drive as WORKSTATION;EPS042002 - WORKSTATION is the name of the workstation and EPS042002 is the network name for the computer in XP. ls /Volumes/WORKSTATION\;EPS042002 gives a list of the files on the drive. In CCL (dppccl), (load "/Volumes/WORKSTATION\;EPS042002/test.cm") gives 'Illegal directory string "/Volumes/WORKSTATION;EPS042002/" while executing: CCL::%DIRECTORY-STRING-LIST Also in CCL, (load "/Volumes/WORKSTATION\\;EPS042002/test.cm") works - #P"/Volumes/WORKGROUP\\;EPS042002/test.cm" and a test fn in test.cm works as expected. However, in CM (load "/Volumes/WORKSTATION\;EPS042002/test.cm") gives 'Error in process listener(2): File "/Volumes/WORKSTATION\\;EPS042002/test.cm" does not exist' So, it doesn't look like an OpenMCL problem. Phil Sobolik From bil at ccrma.Stanford.EDU Mon Aug 23 03:17:44 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 23 Aug 2004 03:17:44 -0700 Subject: [CM] Snd 7.6 Message-ID: <4129C448.2030106@ccrma> Snd 7.6 Most of the work in this period went into clm-3, but there were some changes to Snd: numerous improvements and bugfixes from Kjetil Matheussen, including the snd-ls package. added mixer-scale, mixer+, make-scalar-mixer, continue-frame->file run-safety, clm-table-size (filling in a few CLM gaps, making the Scheme version of with-sound the same as the CL version) new run-time function args to phase-vocoder and granulate (and run support) channel-distance in dsp.scm configure switches: --with-midi include midi.o (sndlib midi module), default: no --with-hobbit include arity check support for hobbit, default: no --with-builtin-gtkrc include built-in fallback gtkrc, default: yes out-chan argument to add-player so that channel data can be sent to any audio channel (also play, play-and-wait, play-channel, play-mono-as-stereo example in extsnd.html) added players (a list of currently active players) new tools directory with various Snd development scripts forward/back buttons on the help dialog removed built-in Hadamard transform Checked: Fedora Core 2, gsl 1.5, gtk 2.4.4/2.5.0/2.5.1, Ruby 1.8.2, sbcl 0.8.12/0.8.13 also many changes reflecting those in recent versions of Guile With much help from: Cris Ewing, Kjetil S. Matheussen, Mike Scholz, Anders Vinjar, Robert Jonsson, Guillaume Germain, Oded Ben Tal From mlists at lapsley.ukshells.co.uk Mon Aug 23 03:34:52 2004 From: mlists at lapsley.ukshells.co.uk (Michael Lapsley) Date: Mon, 23 Aug 2004 11:34:52 +0100 Subject: [CM] Can snd do this? Message-ID: <20040823103452.GA2027@rift.ukshells.net> I hope some of the snd experts can advise me on this. I have some language learning materials that I want to convert to 'hands free'. This entails recording myself reading out the prompts for the drills from the book and inserting these into the sound file which consists of the instructors replies only. This is a massive and boring job and it needs to be as efficient as possible otherwise I will never complete it. Using normal cut and paste is just too time consuming. What I envisage is playing the wav file through snd, pressing a key (, say), have the playback stop and switch to record mode, read into the microphone to insert, release the key and have a silence of a few seconds inserted, then continue playback. Ideally one could skip longer passages with the mouse. I've had a look at the docs and I don't know where to start. Even knowing that it is possible and a few tips on how to start would be really helpful. I've never used lisp, but I've done a fair bit of perl work and scripting doesn't scare me. If snd cannot do it, if another application springs to mind I'd be grateful for other suggestions. Thanks, Michael From ml at lapsley.ukshells.co.uk Sun Aug 22 02:43:38 2004 From: ml at lapsley.ukshells.co.uk (Michael Lapsley) Date: Sun, 22 Aug 2004 10:43:38 +0100 Subject: [CM] Can snd do this? Message-ID: <20040822094338.GA32124@rift.ukshells.net> I hope some of the snd experts can advise me on this. I have some language learning materials that I want to convert to 'hands free'. This entails recording myself reading out the prompts for the drills from the book and inserting these into the sound file which consists of the instructors replies only. This is a massive and boring job and it needs to be as efficient as possible otherwise I will never complete it. Using normal cut and paste is just too time consuming. What I envisage is playing the wav file through snd, pressing a key (, say), have the playback stop and switch to record mode, read into the microphone to insert, release the key and have a silence of a few seconds inserted, then continue playback. Ideally one could skip longer passages with the mouse. I've had a look at the docs and I don't know where to start. Even knowing that it is possible and a few tips on how to start would be really helpful. I've never used lisp, but I've done a fair bit of perl work and scripting doesn't scare me. If snd cannot do it, if another application springs to mind I'd be grateful for other suggestions. Thanks, Michael From taube at uiuc.edu Mon Aug 23 09:59:00 2004 From: taube at uiuc.edu (Rick Taube) Date: Mon, 23 Aug 2004 11:59:00 -0500 Subject: [CM] How do I reference a network share? In-Reply-To: <5.2.1.1.2.20040821154641.019e6958@pop.rcn.com> References: <5.2.1.1.2.20040821154641.019e6958@pop.rcn.com> Message-ID: hmmm. CM does not touch CLtL's 'load' function nor does it do anything to pathname functions or pathname variables. So I dont know what the difference that you report could be due to. However i notice that the string that fails in CM: "/Volumes/WORKSTATION\;EPS042002/test.cm" is the same one that causes you problems in the first case: > In CCL (dppccl), (load "/Volumes/WORKSTATION\;EPS042002/test.cm") > gives 'Illegal directory string "/Volumes/WORKSTATION;EPS042002/" > while executing: CCL::%DIRECTORY-STRING-LIST [..] > However, in CM (load "/Volumes/WORKSTATION\;EPS042002/test.cm") gives > 'Error in process listener(2): File > "/Volumes/WORKSTATION\\;EPS042002/test.cm" does not exist' what happens when you use the double \\ as in the case that succeeded, ie please send me (load "/Volumes/WORKSTATION\\;EPS042002/test.cm") Im also very confuced as to why you are getting different error messages for the same problem in the same lisp -- Exactly waht Lisp implmentation version are you using? Maybe you coud include the value of (lisp-implementation-version) in each error you report so I can understand better exacltly which lisp you are using. From epsobolik at rcn.com Mon Aug 23 15:58:08 2004 From: epsobolik at rcn.com (Phil Sobolik) Date: Mon, 23 Aug 2004 18:58:08 -0400 Subject: [CM] How do I reference a network share? In-Reply-To: References: <5.2.1.1.2.20040821154641.019e6958@pop.rcn.com> <5.2.1.1.2.20040821154641.019e6958@pop.rcn.com> Message-ID: <5.2.1.1.2.20040823184325.019e66d0@pop.rcn.com> The cm command was a typo on my part (sorry). The 2 commands are identical. In cm, (lisp-implementation-version) gives: "Version (Alpha: Darwin) 0.14-031108" In dppccl: "Version (Beta: Darwin) 0.14.2-p1) So, that would seem to be one difference. I may have downloaded OpenMCL from SourceForge (thinking that it was necessary). Is there a way to tell CM which one to use? Is there a way to tell where each one is? At 11:59 AM 8/23/2004 -0500, you wrote: >hmmm. CM does not touch CLtL's 'load' function nor does it do anything to >pathname functions or pathname variables. >So I dont know what the difference that you report could be due to. >However i notice that the string that fails in CM: > "/Volumes/WORKSTATION\;EPS042002/test.cm" > >is the same one that causes you problems in the first case: > >>In CCL (dppccl), (load "/Volumes/WORKSTATION\;EPS042002/test.cm") >>gives 'Illegal directory string "/Volumes/WORKSTATION;EPS042002/" while >>executing: CCL::%DIRECTORY-STRING-LIST >[..] >>However, in CM (load "/Volumes/WORKSTATION\;EPS042002/test.cm") gives >>'Error in process listener(2): File >>"/Volumes/WORKSTATION\\;EPS042002/test.cm" does not exist' > > >what happens when you use the double \\ as in the case that succeeded, ie >please send me > >(load "/Volumes/WORKSTATION\\;EPS042002/test.cm") > >Im also very confuced as to why you are getting different error messages >for the same problem in the same lisp -- Exactly waht Lisp implmentation >version are you using? Maybe you coud include the value >of (lisp-implementation-version) in each error you report so I can >understand better exacltly which lisp you are using. From taube at uiuc.edu Mon Aug 23 17:19:49 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Mon, 23 Aug 2004 19:19:49 -0500 Subject: [CM] How do I reference a network share? Message-ID: <5215578c.749dbfd4.81cb100@expms6.cites.uiuc.edu> >So, that would seem to be one difference. I may have downloaded OpenMCL >from SourceForge (thinking that it was necessary). Is there a way to tell >CM which one to use? Is there a way to tell where each one is? if you mean it works in one version of openmcl and not in another then you can certainly build cm in the version you want to use. bascically all you need to make sure the 'openmcl' unix command installed on your system starts the openmcl version you want (you should NOT be involking dppccl directly in any case -- see the openmcl docs on how to install their 'openmcl commend.) once you know that 'openmcl' starts the version you want to use, do this: $ cd /path/to/cm $ bin/cm.sh thats it. cm should compile and load in the openmcl that you want to use. see cm/doc/install.html for more info -rick From anthony.kozar at utoledo.edu Mon Aug 23 19:17:44 2004 From: anthony.kozar at utoledo.edu (Anthony Kozar) Date: Mon, 23 Aug 2004 22:17:44 -0400 Subject: [CM] CLM-3 -> back to CLM-2 In-Reply-To: <40FE4D9E.6090805@ccrma> Message-ID: On 7/21/04 7:03 AM, Bill Schottstaedt etched in stone: > I hate to say this, but I think you need to either get OSX > or use some other program -- the problems you mention appear > to be caused by the lack of a real config.h (i.e. one that > reflects your setup). I am trying to load the last CLM-2 on MacOS 9 (MCL 4.3.1) again. I created a config.h that works and got clmLib to compile. Now I am stuck with this: ? (load "Applications:MCL 4.3.1:clm-2.1:all.lisp") ; running ./configure --quiet -with-doubles --with-float-samples ;Loading #4P"ccl:library;loop.pfsl"... ;Loading #P"Applications:MCL 4.3.1:clm-2.1:walk.pfsl"... ;Loading #P"Applications:MCL 4.3.1:clm-2.1:clm-package.pfsl"... ;Loading #P"Applications:MCL 4.3.1:clm-2.1:initmus.pfsl"... ;Loading #P"Applications:MCL 4.3.1:clm-2.1:sndlib2clm.pfsl"... ;Loading #P"Applications:MCL 4.3.1:clm-2.1:defaults.pfsl"... ;Loading #P"Applications:MCL 4.3.1:clm-2.1:mcl-doubles.pfsl"... ;Loading #P"Applications:MCL 4.3.1:clm-2.1:aiff.pfsl"... ;Loading #P"Applications:MCL 4.3.1:clm-2.1:ToolServer.pfsl"... ;Loading #P"Applications:MCL 4.3.1:clm-2.1:mac.pfsl"... ;Loading #P"Applications:MCL 4.3.1:clm-2.1:maclib.pfsl"... ;Loading #P"Applications:MCL 4.3.1:clm-2.1:aiff.pfsl"... "compiling Applications:MCL 4.3.1:clm-2.1:clmLib..." "Copying clmLib to Adam:System Folder:Extensions:..." ;Compiling "Applications:MCL 4.3.1:clm-2.1:ffi.lisp"... ; Warning: Can't find entry point "clm_sound_maxamp" in shared library "clmLib" ; While executing: ccl::get-shared-library-entry-point ; Error: :int is not a known Macintosh type ; While executing: ccl:find-mactype ; Type Command-. to abort. The symbol clm_sound_maxamp IS in the exports list file and I can find it in a binary dump of the library. So I am once again not sure how to proceed. Thanks. Anthony Kozar anthony.kozar at utoledo.edu http://akozar.spymac.net/ PS. Here is what I did to compile clmLib: 1. I started with a config.h generated on OS X and modified it until it matched the configuration of MPW (see below). 2. I couldn't compile without errors unless I used Float == double. This is because the following functions try to pass double* arguments to functions that take Float* arguments: clm_table_interp clm_fft clm_convolve clm_spectrum fill_locsig 3. I had to add the file clm.c to the makefile. I wasn't sure if this was correct but it made the link errors go away. Here is the config.h that I created: /* config.h. Generated by configure. */ #ifndef CONFIG_H_LOADED #define CONFIG_H_LOADED /* #undef const */ /* #undef CLOSEDIR_VOID */ #define RETSIGTYPE void /* Define to `int' or something if doesn't define. */ #define mode_t long /* not defined with MPW - akozar */ #define pid_t long /* not defined with MPW - akozar */ /* #undef size_t */ /* #undef off_t */ #define WORDS_BIGENDIAN 1 /* #define HAVE_GETCWD 1 /\* not with MPW - akozar */ #define HAVE_STRFTIME 1 #define HAVE_STRERROR 1 #define HAVE_VPRINTF 1 /* #define HAVE_READLINK 1 /\* not with MPW - akozar */ #define HAVE_SETLOCALE 1 /* #define HAVE_SLEEP 1 /\* not with MPW - akozar */ /* #define HAVE_ACCESS 1 /\* not with MPW - akozar */ /* #define HAVE_OPENDIR 1 /\* not with MPW - akozar */ #define HAVE_SIGNAL 1 /* #define HAVE_FINITE 1 /\* not with MPW - akozar */ #define HAVE_ISNAN 1 /* #define HAVE_FSTATFS 1 /\* not with MPW - akozar */ #define HAVE_CLOCK 1 /* #define HAVE_VSNPRINTF 1 /\* not with MPW - akozar */ /* #define HAVE_SNPRINTF 1 /\* not with MPW - akozar */ #define HAVE_MEMMOVE 1 /* #define HAVE_STRDUP 1 /\* not with MPW - akozar */ #define HAVE_FILENO 1 /* see stdio.h for how to define this - akozar */ /* #define HAVE_LSTAT 1 /\* not with MPW - akozar */ /* #undef HAVE_COMPLEX_TRIG */ #define STDC_HEADERS 1 /* #undef TM_IN_SYS_TIME */ /* #define HAVE_SYS_MOUNT_H 1 /\* not with MPW - akozar */ /* #define HAVE_DIRENT_H 1 /\* not with MPW - akozar */ /* #undef HAVE_NDIR_H */ /* #undef HAVE_SYS_DIR_H */ /* #undef HAVE_SYS_NDIR_H */ #define HAVE_FCNTL_H 1 #define HAVE_LIMITS_H 1 #define HAVE_STRING_H 1 /* #define HAVE_UNISTD_H 1 /\* not with MPW - akozar */ /* #define HAVE_STDBOOL_H 1 /\* not with MPW - akozar */ /* #undef HAVE_SYS_TIME_H */ /* #undef HAVE_DLFCN_H */ /* #undef HAVE_SOUNDCARD_H */ /* #undef HAVE_SYS_SOUNDCARD_H */ /* #undef HAVE_MACHINE_SOUNDCARD_H */ /* #undef HAVE_SYS_MIXER_H */ /* #undef USR_LIB_OSS */ /* #undef USR_LOCAL_LIB_OSS */ /* #undef OPT_OSS */ /* #undef VAR_LIB_OSS */ /* #define HAVE_LIBC_H 1 /\* not with MPW - akozar */ /* #undef HAVE_SYS_VFS_H */ /* #undef HAVE_SYS_STATFS_H */ /* #undef HAVE_FPU_CONTROL_H */ #define HAVE_SETJMP_H 1 /* #define TIME_WITH_SYS_TIME 1 /\* not with MPW - akozar */ /* #undef HAVE_GNU_LIBC_VERSION_H */ /* #define HAVE_PWD_H 1 /\* not with MPW - akozar */ #define HAVE_LOCALE_H 1 /* #undef HAVE_SYS_FPU_H */ /* #define HAVE_SYS_PARAM_H 1 /\* not with MPW - akozar */ /* #undef HAVE_ALSA_ASOUNDLIB_H */ /* #undef HAVE_BYTESWAP_H */ #define SIZEOF_INT 4 #define SIZEOF_CHAR 1 #define SIZEOF_LONG 4 #define SIZEOF_SHORT 2 #define SIZEOF_INT_P 4 #define SIZEOF_FLOAT 4 #define SIZEOF_VOID_P 4 #define SIZEOF_OFF_T 4 /* off_t is long with MPW - akozar */ /* #undef LINUX */ /* #undef SGI */ /* #undef ALPHA */ /* #undef HPUX */ /* #undef SUN */ /* #undef SOLARIS */ /* #undef SCO5 */ /* #undef OPENBSD */ /* #undef WINDOZE */ /* #undef HAVE_OSS */ /* #undef HAVE_ALSA */ /* #undef HAVE_JACK */ /* #undef HAVE_SAM_9407 */ /* #define MAC_OSX 1 */ /* #undef ESD */ /* #undef BSDI */ #define HAVE_EXTENSION_LANGUAGE 0 /* #undef SND_CONFIG_GET_ID_ARGS */ #define Float double /* #undef HAVE_GSL */ /* #undef HAVE_GSL_DHT_NEW */ /* #undef GSL_VERSION */ /* #undef SNDLIB_USE_FLOATS */ /* #undef MUS_SAMPLE_BITS */ /* #undef ESD_VERSION */ /* #undef AUDIOFILE_VERSION */ /* #undef WITH_MODULES */ #define HAVE_KAUDIODEVICEPROPERTYTRANSPORTTYPE 1 #define HAVE_KLINEARPCMFORMATFLAGISNONINTERLEAVED 1 #define USE_SND 0 #define CLM 1 #endif From michael at klingbeil.com Tue Aug 24 00:03:05 2004 From: michael at klingbeil.com (Michael Klingbeil) Date: Tue, 24 Aug 2004 03:03:05 -0400 Subject: [CM] clm-2 OS X woes Message-ID: Tried to load the last version of clm-2 on my MacOS X setup and things are not going well. Perhaps someone can offer some advice. My configuration is OS 10.3.5 with all the latest developer tools, Apple X11 (including SDK), and OpenMCL latest from CVS. When I load all.lisp, everything appears to be chugging along and compiling, but I'm not getting any output. Configue didn't generate a config.h and the only .o files I got were lispcall.o and sc.o It seems that the build script doesn't recognize if anything has failed? Perhaps there is a problem with the latest OpenMCL ccl:run-progream So just to avoid any weird lisp environment problems I did everything by hand :( When finally getting to the link part I get the following: mkling$ cc -dynamiclib -o /Users/mkling/lisp/clm-2/libclm.dylib /Users/mkling/lisp/clm-2/lispcall.o /Users/mkling/lisp/clm-2/headers.o /Users/mkling/lisp/clm-2/audio.o /Users/mkling/lisp/clm-2/io.o /Users/mkling/lisp/clm-2/sound.o /Users/mkling/lisp/clm-2/clm.o /Users/mkling/lisp/clm-2/cmus.o /Users/mkling/lisp/clm-2/sc.o -L/usr/X11R6/lib -lX11 -lm -lc -framework CoreAudio ld: Undefined symbols: _cacos _cacosh _ccos _ccosh _cexp /usr/bin/libtool: internal link edit command failed Any suggestions before I start ripping things apart? Should I be using clm-3? From michael at klingbeil.com Tue Aug 24 00:25:38 2004 From: michael at klingbeil.com (Michael Klingbeil) Date: Tue, 24 Aug 2004 03:25:38 -0400 Subject: [CM] CLM-3 -> back to CLM-2 In-Reply-To: References: Message-ID: Perhaps an better option would be to revert to a slightly older version of clm-2? On OS 9 I have been using a version from Nov. 18, 2002 (plus fixes which have since been incorporated). Yeah I know that sounds old, but has worked well! Based on HISTORY.clm, perhaps the version from June 14, 2004 would be good. This is before all of the config changes but includes all of the last clm-2 improvements. I thought there were old versions available on ccrma-ftp, but I didn't seem them. Bill, are the old tarballs around anywhere? If not I think the last archive I have is from September 29, 2003. You could start from there and then merge in parts from from the latest. Ugly I know, but it might just work! >On 7/21/04 7:03 AM, Bill Schottstaedt etched in >stone: > >> I hate to say this, but I think you need to either get OSX >> or use some other program -- the problems you mention appear >> to be caused by the lack of a real config.h (i.e. one that >> reflects your setup). > > >I am trying to load the last CLM-2 on MacOS 9 (MCL 4.3.1) again. I created >a config.h that works and got clmLib to compile. Now I am stuck with this: > >? (load "Applications:MCL 4.3.1:clm-2.1:all.lisp") >; running ./configure --quiet -with-doubles --with-float-samples >;Loading #4P"ccl:library;loop.pfsl"... >;Loading #P"Applications:MCL 4.3.1:clm-2.1:walk.pfsl"... >;Loading #P"Applications:MCL 4.3.1:clm-2.1:clm-package.pfsl"... >;Loading #P"Applications:MCL 4.3.1:clm-2.1:initmus.pfsl"... >;Loading #P"Applications:MCL 4.3.1:clm-2.1:sndlib2clm.pfsl"... >;Loading #P"Applications:MCL 4.3.1:clm-2.1:defaults.pfsl"... >;Loading #P"Applications:MCL 4.3.1:clm-2.1:mcl-doubles.pfsl"... >;Loading #P"Applications:MCL 4.3.1:clm-2.1:aiff.pfsl"... >;Loading #P"Applications:MCL 4.3.1:clm-2.1:ToolServer.pfsl"... >;Loading #P"Applications:MCL 4.3.1:clm-2.1:mac.pfsl"... >;Loading #P"Applications:MCL 4.3.1:clm-2.1:maclib.pfsl"... >;Loading #P"Applications:MCL 4.3.1:clm-2.1:aiff.pfsl"... >"compiling Applications:MCL 4.3.1:clm-2.1:clmLib..." >"Copying clmLib to Adam:System Folder:Extensions:..." >;Compiling "Applications:MCL 4.3.1:clm-2.1:ffi.lisp"... >; Warning: Can't find entry point "clm_sound_maxamp" in shared library >"clmLib" >; While executing: ccl::get-shared-library-entry-point >; Error: :int is not a known Macintosh type >; While executing: ccl:find-mactype >; Type Command-. to abort. > > >The symbol clm_sound_maxamp IS in the exports list file and I can find it in >a binary dump of the library. > >So I am once again not sure how to proceed. Thanks. > >Anthony Kozar >anthony.kozar at utoledo.edu >http://akozar.spymac.net/ > > >PS. Here is what I did to compile clmLib: > >1. I started with a config.h generated on OS X and modified it until it >matched the configuration of MPW (see below). > >2. I couldn't compile without errors unless I used Float == double. This >is because the following functions try to pass double* arguments to >functions that take Float* arguments: > > clm_table_interp > clm_fft > clm_convolve > clm_spectrum > fill_locsig > >3. I had to add the file clm.c to the makefile. I wasn't sure if this was >correct but it made the link errors go away. > >Here is the config.h that I created: > >/* config.h. Generated by configure. */ >#ifndef CONFIG_H_LOADED >#define CONFIG_H_LOADED > >/* #undef const */ > >/* #undef CLOSEDIR_VOID */ >#define RETSIGTYPE void > >/* Define to `int' or something if doesn't define. */ >#define mode_t long /* not defined with MPW - akozar */ >#define pid_t long /* not defined with MPW - akozar */ >/* #undef size_t */ >/* #undef off_t */ > >#define WORDS_BIGENDIAN 1 > >/* #define HAVE_GETCWD 1 /\* not with MPW - akozar */ >#define HAVE_STRFTIME 1 >#define HAVE_STRERROR 1 >#define HAVE_VPRINTF 1 >/* #define HAVE_READLINK 1 /\* not with MPW - akozar */ >#define HAVE_SETLOCALE 1 >/* #define HAVE_SLEEP 1 /\* not with MPW - akozar */ >/* #define HAVE_ACCESS 1 /\* not with MPW - akozar */ >/* #define HAVE_OPENDIR 1 /\* not with MPW - akozar */ >#define HAVE_SIGNAL 1 >/* #define HAVE_FINITE 1 /\* not with MPW - akozar */ >#define HAVE_ISNAN 1 >/* #define HAVE_FSTATFS 1 /\* not with MPW - akozar */ >#define HAVE_CLOCK 1 >/* #define HAVE_VSNPRINTF 1 /\* not with MPW - akozar */ >/* #define HAVE_SNPRINTF 1 /\* not with MPW - akozar */ >#define HAVE_MEMMOVE 1 >/* #define HAVE_STRDUP 1 /\* not with MPW - akozar */ >#define HAVE_FILENO 1 /* see stdio.h for how to define this - akozar */ >/* #define HAVE_LSTAT 1 /\* not with MPW - akozar */ >/* #undef HAVE_COMPLEX_TRIG */ > >#define STDC_HEADERS 1 >/* #undef TM_IN_SYS_TIME */ >/* #define HAVE_SYS_MOUNT_H 1 /\* not with MPW - akozar */ >/* #define HAVE_DIRENT_H 1 /\* not with MPW - akozar */ >/* #undef HAVE_NDIR_H */ >/* #undef HAVE_SYS_DIR_H */ >/* #undef HAVE_SYS_NDIR_H */ >#define HAVE_FCNTL_H 1 >#define HAVE_LIMITS_H 1 >#define HAVE_STRING_H 1 >/* #define HAVE_UNISTD_H 1 /\* not with MPW - akozar */ >/* #define HAVE_STDBOOL_H 1 /\* not with MPW - akozar */ >/* #undef HAVE_SYS_TIME_H */ >/* #undef HAVE_DLFCN_H */ >/* #undef HAVE_SOUNDCARD_H */ >/* #undef HAVE_SYS_SOUNDCARD_H */ >/* #undef HAVE_MACHINE_SOUNDCARD_H */ >/* #undef HAVE_SYS_MIXER_H */ >/* #undef USR_LIB_OSS */ >/* #undef USR_LOCAL_LIB_OSS */ >/* #undef OPT_OSS */ >/* #undef VAR_LIB_OSS */ >/* #define HAVE_LIBC_H 1 /\* not with MPW - akozar */ >/* #undef HAVE_SYS_VFS_H */ >/* #undef HAVE_SYS_STATFS_H */ >/* #undef HAVE_FPU_CONTROL_H */ >#define HAVE_SETJMP_H 1 >/* #define TIME_WITH_SYS_TIME 1 /\* not with MPW - akozar */ >/* #undef HAVE_GNU_LIBC_VERSION_H */ >/* #define HAVE_PWD_H 1 /\* not with MPW - akozar */ >#define HAVE_LOCALE_H 1 >/* #undef HAVE_SYS_FPU_H */ >/* #define HAVE_SYS_PARAM_H 1 /\* not with MPW - akozar */ >/* #undef HAVE_ALSA_ASOUNDLIB_H */ >/* #undef HAVE_BYTESWAP_H */ > >#define SIZEOF_INT 4 >#define SIZEOF_CHAR 1 >#define SIZEOF_LONG 4 >#define SIZEOF_SHORT 2 >#define SIZEOF_INT_P 4 >#define SIZEOF_FLOAT 4 >#define SIZEOF_VOID_P 4 >#define SIZEOF_OFF_T 4 /* off_t is long with MPW - akozar */ > >/* #undef LINUX */ >/* #undef SGI */ >/* #undef ALPHA */ >/* #undef HPUX */ >/* #undef SUN */ >/* #undef SOLARIS */ >/* #undef SCO5 */ >/* #undef OPENBSD */ >/* #undef WINDOZE */ >/* #undef HAVE_OSS */ >/* #undef HAVE_ALSA */ >/* #undef HAVE_JACK */ >/* #undef HAVE_SAM_9407 */ >/* #define MAC_OSX 1 */ >/* #undef ESD */ >/* #undef BSDI */ > >#define HAVE_EXTENSION_LANGUAGE 0 >/* #undef SND_CONFIG_GET_ID_ARGS */ >#define Float double >/* #undef HAVE_GSL */ >/* #undef HAVE_GSL_DHT_NEW */ >/* #undef GSL_VERSION */ >/* #undef SNDLIB_USE_FLOATS */ >/* #undef MUS_SAMPLE_BITS */ >/* #undef ESD_VERSION */ >/* #undef AUDIOFILE_VERSION */ >/* #undef WITH_MODULES */ >#define HAVE_KAUDIODEVICEPROPERTYTRANSPORTTYPE 1 >#define HAVE_KLINEARPCMFORMATFLAGISNONINTERLEAVED 1 > >#define USE_SND 0 >#define CLM 1 >#endif > > >_______________________________________________ >Cmdist mailing list >Cmdist at ccrma.stanford.edu >http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From bil at ccrma.Stanford.EDU Tue Aug 24 03:51:45 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 24 Aug 2004 03:51:45 -0700 Subject: [CM] Can snd do this? In-Reply-To: <20040823103452.GA2027@rift.ukshells.net> References: <20040823103452.GA2027@rift.ukshells.net> Message-ID: <412B1DC1.3030509@ccrma> > What I envisage is playing the wav file through snd, pressing a key > (, say), have the playback stop and switch to record mode, > read into the microphone to insert, release the key and have a > silence of a few seconds inserted, then continue playback. I think you could write such a function in Snd, but it sounds tricky. My guess is that it would be faster, and less error-prone, to take a less high-tech approach: first record the prompts, either as one long file or a bunch of short files, then set marks to guide the mixing process, then do all the mixing in one step, then (probably the longest step), clean it all up, adding silences and so on. By taking it one-step-at-a-time, you make it easy to back up and try again, and you know that you're actually making progress. From bil at ccrma.Stanford.EDU Tue Aug 24 04:04:16 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 24 Aug 2004 04:04:16 -0700 Subject: [CM] clm-2 OS X woes In-Reply-To: References: Message-ID: <412B20B0.6060104@ccrma> > _ccos > ... > Any suggestions before I start ripping things apart? Should I be using clm-3? Yes to the latter, but if you want to use CLM-2, the error has to do with the HAVE_COMPLEX_TRIG switch -- set it to 0 or undefined and the code that depends on it should be omitted. (ccos is "complex cosine" -- it's in current versions of gcc as part of the built-in, but not well publicized complex number support. It's needed by the Dolph-Chebychev window because the algorithm sometimes needs values such as the arc-cosine of a number greater than 1.0 -- i.e. it has wandered off the real line and into the trackless wastes of the complex plane.) From bil at ccrma.Stanford.EDU Tue Aug 24 04:08:40 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 24 Aug 2004 04:08:40 -0700 Subject: [CM] CLM-3 -> back to CLM-2 In-Reply-To: References: Message-ID: <412B21B8.5080905@ccrma> > Perhaps an better option would be to revert to a slightly older > version of clm-2? On OS 9 I have been using a version from Nov. 18, 2002 > (plus fixes which have since been incorporated). Yeah I know that sounds > old, but has worked well! > > Based on HISTORY.clm, perhaps the version from June 14, 2004 would be good. > This is before all of the config changes but includes all of the last clm-2 > improvements. I thought there were old versions available on ccrma-ftp, > but I didn't seem them. Bill, are the old tarballs around anywhere? I don't have older versions of the tarball, but I'd be happy to store any version you like on ccrma-ftp -- whatever works I always say. We probably have the previous versions on backup tapes. (I didn't plan the transition very well because it sort of fell on me unexpectedly -- my original intention was to make a couple minor tweaks). From bbattey at dmu.ac.uk Tue Aug 24 04:37:02 2004 From: bbattey at dmu.ac.uk (Bret Battey) Date: Tue, 24 Aug 2004 12:37:02 +0100 Subject: [CM] CLM-3 -> back to CLM-2 In-Reply-To: <412B21B8.5080905@ccrma> References: <412B21B8.5080905@ccrma> Message-ID: If I remember rightly from the thread, the intent is to run CLM-2 on OSX. I've been having no problems using Rick's CM.app and the version of CLM-2 that comes with it (27 jan 2004): http://sourceforge.net/projects/commonmusic/ -=Bret On 24 Aug 2004, at 12:08, Bill Schottstaedt wrote: > > Perhaps an better option would be to revert to a slightly older > > version of clm-2? On OS 9 I have been using a version from Nov. 18, > 2002 > > (plus fixes which have since been incorporated). Yeah I know that > sounds > > old, but has worked well! > > > > Based on HISTORY.clm, perhaps the version from June 14, 2004 would > be good. > > This is before all of the config changes but includes all of the > last clm-2 > > improvements. I thought there were old versions available on > ccrma-ftp, > > but I didn't seem them. Bill, are the old tarballs around anywhere? > > I don't have older versions of the tarball, but I'd be happy to store > any version you like on ccrma-ftp -- whatever works I always say. > We probably have the previous versions on backup tapes. > > (I didn't plan the transition very well because it sort of fell on me > unexpectedly -- my original intention was to make a couple minor > tweaks). > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From anthony.kozar at utoledo.edu Tue Aug 24 22:07:54 2004 From: anthony.kozar at utoledo.edu (Anthony Kozar) Date: Wed, 25 Aug 2004 01:07:54 -0400 Subject: [CM] CLM-3 -> back to CLM-2 In-Reply-To: Message-ID: On 8/24/04 3:25 AM, Michael Klingbeil etched in stone: > Perhaps an better option would be to revert to a slightly older > version of clm-2? On OS 9 I have been using a version from Nov. 18, > 2002 (plus fixes which have since been incorporated). Yeah I know > that sounds old, but has worked well! Well, it looks like I have been using a version from June 5, 2002. I just thought that I would update a little, you know :) I have been saving various downloads of CLM though for over a year, so I have about a dozen different versions that I can try. I probably could get the last CLM-2 to work eventually, but it probably isn't worth the time. So, I was already considering your suggestion. > Based on HISTORY.clm, perhaps the version from June 14, 2004 would be > good. This is before all of the config changes but includes all of > the last clm-2 improvements. Thanks for the info. I have tarballs from May 19th and June 15th. So, it looks like maybe I should use the May 19th one. > If not I think the last archive I have is from September 29, 2003. Thanks, but I will be able to salvage something :) Anthony Kozar anthony.kozar at utoledo.edu http://akozar.spymac.net/ From anthony.kozar at utoledo.edu Tue Aug 24 22:13:57 2004 From: anthony.kozar at utoledo.edu (Anthony Kozar) Date: Wed, 25 Aug 2004 01:13:57 -0400 Subject: [CM] CLM-3 -> back to CLM-2 In-Reply-To: <412B21B8.5080905@ccrma> Message-ID: On 8/24/04 7:08 AM, Bill Schottstaedt etched in stone: >> Based on HISTORY.clm, perhaps the version from June 14, 2004 would be good. >> This is before all of the config changes but includes all of the last clm-2 >> improvements. I thought there were old versions available on ccrma-ftp, >> but I didn't seem them. Bill, are the old tarballs around anywhere? > > I don't have older versions of the tarball, but I'd be happy to store > any version you like on ccrma-ftp -- whatever works I always say. > We probably have the previous versions on backup tapes. Are you looking for someone to send you an older version, or can you retrieve a specific version from backup if requested? Michael's suggestion of the June 14th version sounds good. I have the June 15th version but that is too late. The last version that I have without configure is May 19th. I could send it to you if you want. Thanks again for your help. Anthony Kozar anthony.kozar at utoledo.edu http://akozar.spymac.net/ From bigswift at ufl.edu Tue Aug 24 23:43:02 2004 From: bigswift at ufl.edu (shreeswifty) Date: Wed, 25 Aug 2004 02:43:02 -0400 Subject: [CM] cheaters snd In-Reply-To: Message-ID: <0336997E-F662-11D8-89BD-000A95CEA24A@ufl.edu> Hi folks i had a problem with my old G4 laptop (10.2.8) and got a new G4 powerbook with panther and i was having a difficult time installing and frankly have lost faith in Fink quite a bit. So i grabbed a binary version off of my old machine and simply built from source fftw 3.0, guile1.4 and libsndfile copied the binary over and voila --snd runs now i am sure for alot of things it might not be ideal but for simple editing it works fine i would still love to see a snd.pkg at some point but for now this was the cheaters way out :-) From michael at klingbeil.com Wed Aug 25 00:40:19 2004 From: michael at klingbeil.com (Michael Klingbeil) Date: Wed, 25 Aug 2004 03:40:19 -0400 Subject: [CM] clm-2 OS X woes In-Reply-To: <412B20B0.6060104@ccrma> References: <412B20B0.6060104@ccrma> Message-ID: Thanks for the config suggestion. In fact there were a bunch of other configuration problems that needed to be sorted out. The last version of clm-2 (June 30, 2004) expected that the working directory was set to the clm-2 directory so config.h was never getting built and then it was dumped into the wrong place. Also *cflags* in all.lisp needed " -I" clm-directory and similar changes were needed in defins.lisp. I noticed that most of these things made their way into clm-3 [ although I think line 160 in defins.lisp for clm-3 5-Aug still needs the following: (defvar *cflags* (concatenate 'string " -I" clm-directory " -O2 -g" ; the -O2 is needed! strange errors from ACL if it's omitted ] In any case since things have branched to clm-3 perhaps these clm-2 fixes are less relevant. I thought I would send this to the list anyway in case people are still doing clm-2 stuff. > > _ccos >> ... >> Any suggestions before I start ripping things apart? Should I be >>using clm-3? > >Yes to the latter, but if you want to use CLM-2, the error >has to do with the HAVE_COMPLEX_TRIG switch -- set it to >0 or undefined and the code that depends on it should be >omitted. > >(ccos is "complex cosine" -- it's in current versions of >gcc as part of the built-in, but not well publicized complex >number support. It's needed by the Dolph-Chebychev window >because the algorithm sometimes needs values such as the >arc-cosine of a number greater than 1.0 -- i.e. it has >wandered off the real line and into the trackless wastes >of the complex plane.) From epsobolik at rcn.com Wed Aug 25 20:23:26 2004 From: epsobolik at rcn.com (Phil Sobolik) Date: Wed, 25 Aug 2004 23:23:26 -0400 Subject: [CM] How do I reference a network share? In-Reply-To: <5215578c.749dbfd4.81cb100@expms6.cites.uiuc.edu> Message-ID: <5.2.1.1.2.20040825231643.019ec710@pop.rcn.com> Well, that seems to have done it. I had to: 1. create a .profile in ~ with: export PATH=".;$PATH:/Macintosh HD/Applications/ccl" 2. create a script, runcm, with: cd /Applications/CM.app/Contents/MACOS/cm-2.4.2 bin/cm.sh -e EMACS Now: runcm (cd "/Volumes/WORKGROPU\\\;EPS042002") (load "test.cm") (test) gives expected results with no errors. Whew!!! Thanks for holding my hand through that. Now, I can start working!! :Phil Sobolik At 07:19 PM 8/23/2004 -0500, you wrote: > >So, that would seem to be one difference. I may have downloaded OpenMCL > >from SourceForge (thinking that it was necessary). Is there a way to tell > >CM which one to use? Is there a way to tell where each one is? > >if you mean it works in one version of openmcl and not in another then you can >certainly build cm in the version you want to use. >bascically all you need to make sure the 'openmcl' unix command installed on >your system starts the openmcl version you want (you should NOT be involking >dppccl directly in any case -- see the openmcl docs on how to install >their 'openmcl > commend.) > >once you know that 'openmcl' starts the version you want to use, do this: > $ cd /path/to/cm > $ bin/cm.sh > >thats it. cm should compile and load in the openmcl that you want to use. >see cm/doc/install.html for more info > >-rick From kroegerlistas at pedrokroeger.net Wed Aug 25 17:10:10 2004 From: kroegerlistas at pedrokroeger.net (Pedro Kroger) Date: Wed, 25 Aug 2004 21:10:10 -0300 Subject: [CM] sndlib in guile error In-Reply-To: (Anthony Kozar's message of "Mon, 23 Aug 2004 22:17:44 -0400") References: Message-ID: <871xht97yb.fsf@pedrokroeger.net> Hi, I'm trying to use sndlib inside guile (1.6.4 and 1.7) but I get this error: guile> (define lib (dynamic-link "/usr/local/lib/libsndlib.so")) Backtrace: In current input: 1: 0* (define lib (dynamic-link "/usr/local/lib/libsndlib.so")) 1: 1* [dynamic-link "/usr/local/lib/libsndlib.so"] :1:13: In procedure dynamic-link in expression (dynamic-link "/usr/local/lib/libsndlib.so"): :1:13: file: "/usr/local/lib/libsndlib.so", message: "/usr/local/lib/libsndlib.so: undefined symbol: copy_string" ABORT: (misc-error) guile> Any ideas? TiA Pedro Kroger From bil at ccrma.Stanford.EDU Fri Aug 27 04:11:04 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 27 Aug 2004 04:11:04 -0700 Subject: [CM] re: sndlib in guile error Message-ID: <412F16C8.4060407@ccrma> > :1:13: file: "/usr/local/lib/libsndlib.so", > message: "/usr/local/lib/libsndlib.so: undefined symbol: copy_string" oops -- I thought I fixed this -- copy_string is a Snd-ism, as I keep forgetting -- it should be strdup in sndlib. I'll check later today. From kroegerlistas at pedrokroeger.net Sat Aug 28 04:31:09 2004 From: kroegerlistas at pedrokroeger.net (Pedro Kroger) Date: Sat, 28 Aug 2004 08:31:09 -0300 Subject: [CM] Re: sndlib in guile error In-Reply-To: <412F16C8.4060407@ccrma> (Bill Schottstaedt's message of "Fri, 27 Aug 2004 04:11:04 -0700") References: <412F16C8.4060407@ccrma> Message-ID: <87pt5bijnm.fsf@pedrokroeger.net> Bill Schottstaedt writes: > > :1:13: file: "/usr/local/lib/libsndlib.so", > > message: "/usr/local/lib/libsndlib.so: undefined symbol: copy_string" > > oops -- I thought I fixed this -- copy_string is a Snd-ism, as > I keep forgetting -- it should be strdup in sndlib. I'll check later > today. Thanks for the information. The fix is trivial. I'm sending a small patch. Pedro -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-kroger Type: application/octet-stream Size: 819 bytes Desc: not available URL: From kroegerlistas at pedrokroeger.net Sat Aug 28 11:08:28 2004 From: kroegerlistas at pedrokroeger.net (Pedro Kroger) Date: Sat, 28 Aug 2004 15:08:28 -0300 Subject: [CM] using sndlib in guile In-Reply-To: <3D1F3F46.1070503@web.de> (Achim Christian Bornhoeft's message of "Sun, 30 Jun 2002 17:26:30 +0000") References: <3D1F3F46.1070503@web.de> Message-ID: <873c27gmoz.fsf@pedrokroeger.net> Hi, so, I could load sndlib inside guile but I don't know what to do next! I want to play some frequencies to dac, I did: (dynamic-call "mus_xen_init" lib) (define osc (make-oscil 440)) (oscil osc) but I get no sound. Could anyone help me? TIA, Pedro From bil at ccrma.Stanford.EDU Mon Aug 30 03:38:50 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 30 Aug 2004 03:38:50 -0700 Subject: [CM] CLM-3 -> back to CLM-2 In-Reply-To: References: Message-ID: <413303BA.1000404@ccrma> Anthony Kozar had an old version of clm-2 which I have placed in the ccrma-ftp directory as clm-2.0.tar.gz. (This is for Mac OS 9 users). From bil at ccrma.Stanford.EDU Mon Aug 30 03:40:42 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 30 Aug 2004 03:40:42 -0700 Subject: [CM] re: sndlib in guile error In-Reply-To: <412F16C8.4060407@ccrma> References: <412F16C8.4060407@ccrma> Message-ID: <4133042A.9040908@ccrma> > (dynamic-call "mus_xen_init" lib) > (define osc (make-oscil 440)) > (oscil osc) > but I get no sound. Could anyone help me? (oscil osc) just gets the next sample from the oscillator -- you need to call it repeatedly, writing the output to the DAC. The hard part is opening the DAC. I added a complete example to sndlib.html, taken with some changes from Snd's play.scm: (use-modules (ice-9 format) (ice-9 optargs)) (define lib (dynamic-link "/home/bil/test/sndlib/sndlib.so")) (dynamic-call "mus_sndlib_xen_initialize" lib) (dynamic-call "mus_xen_init" lib) (define* (open-play-output #:optional out-chans out-srate out-format out-bufsize) ;; returns (list audio-fd chans frames) (let* ((outchans (or out-chans 1)) (cur-srate (or out-srate (and (not (null? (sounds))) (srate)) 22050)) (pframes (or out-bufsize 256)) (frm (or out-format mus-lshort)) (outbytes (* pframes 2)) ; 2 here since we'll first try to send short (16-bit) data to the DAC (audio-fd ;; ALSA throws an error where the rest of the audio cases simply report failure ;; so we turn off the "error" printout, catch the error itself, and toss it (let ((val (catch #t (lambda () (mus-audio-open-output mus-audio-default cur-srate outchans frm outbytes)) (lambda args -1)))) ; -1 returned in case of error val))) (if (= audio-fd -1) ;; ask card what it wants -- ALSA with some cards, for example, insists on 10 (virtual) channels and mus-lintn data! (let ((vals (make-vector 32))) (mus-audio-mixer-read mus-audio-default mus-audio-format 32 vals) (let ((fmt (inexact->exact (vector-ref vals 1)))) (mus-audio-mixer-read mus-audio-default mus-audio-channel 32 vals) (set! outchans (inexact->exact (vector-ref vals 0))) (let ((err (mus-audio-mixer-read mus-audio-default mus-audio-samples-per-channel 2 vals))) (if (not (= err -1)) (set! pframes (inexact->exact (vector-ref vals 0)))) (let* ((bps (mus-bytes-per-sample fmt))) (set! outbytes (* bps pframes outchans)) (set! audio-fd (catch #t (lambda () (mus-audio-open-output mus-audio-default cur-srate outchans fmt outbytes)) (lambda args -1)))))))) (list audio-fd outchans pframes))) (define* (play-sine freq amp) "(play-sine freq amp) plays a 1 second sinewave at freq and amp" (let* ((audio-info (open-play-output 1 22050 #f 256)) (audio-fd (car audio-info)) (outchans (cadr audio-info)) (pframes (caddr audio-info))) (if (not (= audio-fd -1)) (let ((len 22050) (osc (make-oscil freq)) (data (make-sound-data outchans pframes))) (do ((beg 0 (+ beg pframes))) ((> beg len)) (do ((i 0 (1+ i))) ((= i pframes)) (sound-data-set! data 0 i (* amp (oscil osc)))) ; here is our oscillator (mus-audio-write audio-fd data pframes)) (mus-audio-close audio-fd)) #f))) From andersvi at extern.uio.no Mon Aug 30 08:06:09 2004 From: andersvi at extern.uio.no (Anders Vinjar) Date: Mon, 30 Aug 2004 17:06:09 +0200 Subject: [CM] env-interp Message-ID: There seems to be a bug in the code connected with the 'base-slot of env's when given to #'env-interp (only tested outside run-loops in cmucl): (let ((crescendo (make-env '(0 0.0 1.0 1.0) :duration 1.0 :base 0.1))) (loop for i from 0 to 1.0 by .1 collect i collect (env-interp i crescendo))) => (0 0.0 0.1 -0.11111112 0.2 -0.22222224 0.3 -0.33333337 0.4 -0.44444448 0.5 -0.5555556 0.6 -0.66666675 0.70000005 -0.77777785 0.8000001 -0.888889 0.9000001 -1.0000001) (let ((crescendo (make-env '(0 0.0 1.0 1.0) :duration 1.0 :base 8.0))) (loop for i from 0 to 1.0 by .1 collect i collect (env-interp i crescendo))) => (0 0.0 0.1 0.014285715 0.2 0.02857143 0.3 0.042857148 0.4 0.05714286 0.5 0.071428575 0.6 0.085714296 0.70000005 0.10000001 0.8000001 0.11428573 0.9000001 0.12857145) when the env-struct is given to (env..) it behaves as expected: (let ((e (make-env '(0 0.0 1.0 1.0) :duration 1.0 :base 0.2))) (dotimes (i *srate*) (env e)) (env e)) => 1.0000418 From andersvi at extern.uio.no Tue Aug 31 02:04:22 2004 From: andersvi at extern.uio.no (Anders Vinjar) Date: Tue, 31 Aug 2004 11:04:22 +0200 Subject: [CM] loading of .cminit Message-ID: Observing some weirdness connected with loading of ~/.cminit.lisp here. Using cmucl. As the function load-cminit is defined now in level1.lisp it starts loading ~/.cminit.lisp upon startup (cm.sh), but quits halfway through, once theres some kind of output printed it seems. Heres output from a run where .cminit.lisp is called to load clms all.lisp: > cm.sh ; using existing configuration file config.h /\\\ ---\\\--------- ----\\\-------- ----/\\\------- Common Music 2.5.0 ---/--\\\------ --/----\\\----- / \\\/ * If i change #'load-cminit to use #'load instead of #'safe-load it loads allright at startup. > cm.sh ; Loading #p"/div/notam02/u1/andersvi/localdomain/.cminit.lisp". ;; Loading #p"/div/notam02/site/cm-sys/clm-3/all.lisp". ; using existing configuration file config.h ;;; Loading #p"/div/notam02/site/cm-sys/clm-3-bins/clm-package.x86f". Warning: CLM also exports the following symbols: (MUS-RIFF FINISH-WITH-SOUND CLM-LOAD INIT-WITH-SOUND MUS-NEXT WSDAT-PLAY *CLM-CHANNELS* CLM:DEFINSTRUMENT *CLM-WITH-SOUND-DEPTH* SRC MUS-LSHORT MUS-AIFC MUS-BSHORT *CLM-SRATE* SPECTRUM *DEFINSTRUMENT-HOOK* ENV) ;;; Loading #p"/div/notam02/site/cm-sys/clm-3-bins/initmus.x86f". ;;; Opening shared library /site/uio/cm-sys/clm-3-bins/libclm.so ... ;;; Done. ;;; Loading #p"/div/notam02/site/cm-sys/clm-3-bins/sndlib2clm.x86f". ;;; Loading #p"/div/notam02/site/cm-sys/clm-3-bins/defaults.x86f". ;;; (output truncated) From andersvi at extern.uio.no Tue Aug 31 02:11:09 2004 From: andersvi at extern.uio.no (Anders Vinjar) Date: Tue, 31 Aug 2004 11:11:09 +0200 Subject: [CM] configure in CLM In-Reply-To: (Anders Vinjar's message of "Thu, 08 Jul 2004 17:32:01 +0200") References: <40CECC73.2070500@ccrma> Message-ID: the current all.lisp in clm-3 takes care to cd to clm-directory before running configure, leaving config.h in clm-directory, which is good. However, the check for existing config.h is done in clm-bin-directory, forcing all.lisp to always "reconfigure". Heres a diff checking in clm-directory instead: *** /tmp/andersvi/all.lispUVAxKo 2004-08-31 09:22:48.000000000 +0200 --- /tmp/andersvi/all.lisp~UVA-Uu 2004-08-31 09:22:48.000000000 +0200 *************** *** 123,129 **** (defvar reconfigure #+reconfigure t #-reconfigure nil) ;;; (if (not (probe-file "config.h")) ! (if (not (probe-file (concatenate 'string clm-directory "config.h"))) (setf reconfigure t)) (defvar configure nil) (if reconfigure --- 123,129 ---- (defvar reconfigure #+reconfigure t #-reconfigure nil) ;;; (if (not (probe-file "config.h")) ! (if (not (probe-file (concatenate 'string clm-bin-directory "config.h"))) (setf reconfigure t)) (defvar configure nil) (if reconfigure From m3ha11 at rcn.com Mon Aug 30 19:11:06 2004 From: m3ha11 at rcn.com (Mike Hall) Date: Mon, 30 Aug 2004 21:11:06 -0500 Subject: [CM] OT: Notes from the Metalevel available? Message-ID: <042DC062-FAF3-11D8-823F-000393D984EA@rcn.com> Hi, all. My apologies for the off-topic-ness of this. I'm just wondering what the best way is to order the paperback for US delivery. I tried the S&Z web page at http://www.szp.swets.nl/szp/orderbooks/subscr_19575.htm and got a verification email, but after one week, the charge card is still un-charged and there's been no response to an email requesting status. I called the 800 number for Taylor and Francis, KY, and they didn't recognize the ISBN for the paperback, although they said that Amazon knew about the HB. Is the best way to paper-mail the credit card number to Taylor and Francis? Thanks for any tips! -- Mike Hall users.rcn.com/m3ha11 From taube at uiuc.edu Tue Aug 31 04:43:46 2004 From: taube at uiuc.edu (Rick Taube) Date: Tue, 31 Aug 2004 06:43:46 -0500 Subject: [CM] loading of .cminit In-Reply-To: References: Message-ID: <04D5B73D-FB43-11D8-9FB2-000A95674CE4@uiuc.edu> how odd! is it perhaps due to an error that cmu is trapping and then aborting? what happens if there is no warning? -rick On Aug 31, 2004, at 4:04 AM, Anders Vinjar wrote: > > Observing some weirdness connected with loading of ~/.cminit.lisp > here. > > Using cmucl. > > As the function load-cminit is defined now in level1.lisp it > starts loading ~/.cminit.lisp upon startup (cm.sh), but quits > halfway through, once theres some kind of output printed it > seems. From andersvi at extern.uio.no Tue Aug 31 06:18:31 2004 From: andersvi at extern.uio.no (Anders Vinjar) Date: Tue, 31 Aug 2004 15:18:31 +0200 Subject: [CM] loading of .cminit In-Reply-To: <04D5B73D-FB43-11D8-9FB2-000A95674CE4@uiuc.edu> (Rick Taube's message of "Tue, 31 Aug 2004 06:43:46 -0500") References: <04D5B73D-FB43-11D8-9FB2-000A95674CE4@uiuc.edu> Message-ID: It was the warning about: Warning: CLM also exports the following symbols: (MUS-RIFF FINISH-WITH-SOUND CLM-LOAD INIT-WITH-SOUND MUS-NEXT WSDAT-PLAY throwing out of the loading of all.lisp wrapping it inside a (handler-bind ((simple-warning #'(lambda (c) (declare (ignore c))))) (load-clm-here)) made everything work as expected using #'safe-load. >>> "RT" == Rick Taube writes: RT> RT> how odd! is it perhaps due to an error that cmu is trapping and then RT> aborting? what happens if there is no warning? RT> -rick RT> RT> On Aug 31, 2004, at 4:04 AM, Anders Vinjar wrote: RT> >> >> Observing some weirdness connected with loading of ~/.cminit.lisp >> here. >> >> Using cmucl. >> >> As the function load-cminit is defined now in level1.lisp it >> starts loading ~/.cminit.lisp upon startup (cm.sh), but quits >> halfway through, once theres some kind of output printed it >> seems. RT> From taube at uiuc.edu Tue Aug 31 06:59:43 2004 From: taube at uiuc.edu (Rick Taube) Date: Tue, 31 Aug 2004 08:59:43 -0500 Subject: [CM] loading of .cminit In-Reply-To: References: <04D5B73D-FB43-11D8-9FB2-000A95674CE4@uiuc.edu> Message-ID: <027E05F0-FB56-11D8-B488-000A95674CE4@uiuc.edu> safe-load is needed because -- in some perverse situations -- a load may break due to permissions, or a changed file system or a moved image, etc. I think maybe my handler condition 't' needs to be more specific but im not really up on the cltl error system -- it may take me a bit to figure out what conditions my handler should really be testing for! > wrapping it inside a > > (handler-bind ((simple-warning > #'(lambda (c) (declare (ignore c))))) > (load-clm-here)) > >