From bigswift at ufl.edu Sun Feb 1 09:37:04 2004 From: bigswift at ufl.edu (Patrick Pagano) Date: Sun, 1 Feb 2004 12:37:04 -0500 Subject: [CM] Getting started again In-Reply-To: Message-ID: <40115328-54DD-11D8-877E-000A95D78358@ufl.edu> Hello there I am endeavoring to begin again with CLM, I spent a few months on it about a year and a half ago with ATS, and ATSH for some major cool sounds. Now that Rick has made it so usable for OSX i would like to get started again. I am getting some funkiness with playback (dac) will usually give an audible click (the resulting test.aiff is fine) is (dac) calling sndplay? Patrick Pagano,B.S. M.F.A candidate http://www.digitalworlds.ufl.edu http://www.screwmusicforever.com/SHREESWIFT From taube at uiuc.edu Sun Feb 1 10:05:26 2004 From: taube at uiuc.edu (Rick Taube) Date: Sun, 1 Feb 2004 12:05:26 -0600 Subject: [CM] Getting started again References: <40115328-54DD-11D8-877E-000A95D78358@ufl.edu> Message-ID: <004f01c3e8ed$f87f4790$13f91644@galen> yes on osx dac is calling sndplay. if you are using cm.app its located in the bin/ directory under the app. you can test it by hand. cd /Application/CM.app/Contents/MacOS/bin/ ./sndplay foo.aiff sending bill the output of (clm::mus-audio-describe) might also help From joshp at u.washington.edu Sun Feb 1 12:54:03 2004 From: joshp at u.washington.edu (joshua d parmenter) Date: Sun, 1 Feb 2004 12:54:03 -0800 (PST) Subject: [CM] CM and X11? In-Reply-To: <20040131200003.2729.40361.Mailman@cm-mail.stanford.edu> References: <20040131200003.2729.40361.Mailman@cm-mail.stanford.edu> Message-ID: I don't know if this helps at all, but I was able to make an old CM 2.4.0 xcm script open X11, and open Xemacs there (in Panther). Double clicking the script prompted the Finder to ask me which progam should open it, and I chose X11. Now, it opens X11 and runs the xcm script. I don't know if this will help solve the double click CM and have it open CM in Xemacs problem or not... but I thought I would share it. Thanks, Josh ****************************************** Joshua D. Parmenter Graduate Student, Music Composition "...Some people think a composer's supposed to please them, but in a way a composer is a chronicler... He's supposed to report on what he's seen and lived." -Charles Mingus From taube at uiuc.edu Sun Feb 1 13:08:03 2004 From: taube at uiuc.edu (Rick Taube) Date: Sun, 1 Feb 2004 15:08:03 -0600 Subject: [CM] CM and X11? References: <20040131200003.2729.40361.Mailman@cm-mail.stanford.edu> Message-ID: <006c01c3e907$7b7ba710$13f91644@galen> Thanks -- I will try again for a bit tommorow to get it working. I know its possible to start xemacs/x11 by double-clicking an applescript applet -- perhaps thats what CM.app could call to launch cm in xmacs. dunno > I don't know if this helps at all, but I was able to make an old CM 2.4.0 > xcm script open X11, and open Xemacs there (in Panther). Double clicking > the script prompted the Finder to ask me which progam should open it, and > I chose X11. Now, it opens X11 and runs the xcm script. I don't know if > this will help solve the double click CM and have it open CM in Xemacs > problem or not... but I thought I would share it. From nando at ccrma.Stanford.EDU Sun Feb 1 17:46:04 2004 From: nando at ccrma.Stanford.EDU (Fernando Pablo Lopez-Lezcano) Date: 01 Feb 2004 17:46:04 -0800 Subject: [CM] Planet CCRMA, ALSA, and SB PCI 512 In-Reply-To: <000901c3e862$a7bd5cb0$0200a8c0@xp1> References: <000901c3e862$a7bd5cb0$0200a8c0@xp1> Message-ID: <1075686363.19523.67.camel@cmn37.stanford.edu> > Slightly off topic, I'm trying to transition to Planet CCRMA from Windows > XP. I've upgraded my XP drivers and can hear my SB PCI 512 card under > Windows just fine, so I know the hardware's OK. But under Planet > CCRMA/Fedora Core 1, I can't hear the card at all. I'm at the "upgrade > kernel and install ALSA" stage. And no, I didn't check whether I could hear > the card under OSS before installing ALSA. The instructions were clear > enough that I thought it would just work. > > Anyone have ideas about how I can track down the problem? There do *not* > seem to be any OSS modules running, at least as far as modules.conf says or > I can see from /sbin/lsmod. All the alsa modules seem to have been loaded > and are running. alsamixer seems to think the volumes are up and noone is > muted. It looks like you have already done all the right things. It _may_ be that that particular version of the card is not well supported by alsa. AFAIK that card has tons of controls in alsamixer (or gamix if you prefer a GUI mixer)... could you send me the output of "amixer"? Maybe there is some control you have not touched yet that is the key... -- Fernando From bil at ccrma.Stanford.EDU Tue Feb 3 04:17:06 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 03 Feb 2004 04:17:06 -0800 Subject: [CM] Getting started again In-Reply-To: <40115328-54DD-11D8-877E-000A95D78358@ufl.edu> References: <40115328-54DD-11D8-877E-000A95D78358@ufl.edu> Message-ID: <401F9142.2020808@ccrma> > (dac) will usually give an audible click (the resulting test.aiff is fine) > is (dac) calling sndplay? Normally yes. I can't get any click either from the built-in device or the emagic card. From johannes.quint at web.de Wed Feb 4 15:59:30 2004 From: johannes.quint at web.de (Johannes Quint) Date: Thu, 5 Feb 2004 00:59:30 +0100 Subject: [CM] cmn-datas in a process Message-ID: <2C2BFA95-576E-11D8-B6AD-000393B906B6@web.de> this is a basic question, sorry, but i find no solution: how can i handle cmn-datas in a process, which are not provided by object->cmn. let us say key-signature: (defprocess xy () (process repeat 100 with n = (new heap :of '(0 2 4 5 7 9 11 12)) and keys = (new cycle :of '(c-major cs-major d-major))) and transpose = (new cycle :of '(0 1 2)) and transposer = 2 and transpose? = (new line :of (list nil (new random :of (list '(nil weight 5) '(t weight 1))))) do (when (next transpose?) (setf tranposer (next tranpose)) ; transpose notes = key (output (new key time (now) signature (next keys)))) ; something like this for cmn output (new midi time (now) duration .25 keynum (note (+ transposer 60 (next n)))) wait .25))) and now, both should work: (events (xy) "xy.mid") (events (xy) "xy.cmn") ; should show the changing key-signatures thanks very much for hints. johannes quint From taube at uiuc.edu Wed Feb 4 16:55:45 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Wed, 4 Feb 2004 18:55:45 -0600 Subject: [CM] cmn-datas in a process Message-ID: <592d8ca3.d1db9e5.81bc500@expms1.cites.uiuc.edu> object->cmn is a generic function, the idea is that you can specialize this by adding methods to do whatever you want. so you could define an event called keysig (or whatver) and add a method to pass it to cmn. there is also some discussion of it in the dictionary: http://commonmusic.sourceforge.net/doc/dict/object-gtcmn-fn.html ---- Original message ---- >Date: Thu, 5 Feb 2004 00:59:30 +0100 >From: Johannes Quint >Subject: [CM] cmn-datas in a process >To: cmdist at ccrma.Stanford.EDU > >this is a basic question, sorry, but i find no solution: >how can i handle cmn-datas in a process, which are not provided by >object->cmn. > From finnendahl at folkwang-hochschule.de Fri Feb 6 06:34:40 2004 From: finnendahl at folkwang-hochschule.de (Orm Finnendahl) Date: Fri, 6 Feb 2004 15:34:40 +0100 Subject: [CM] snd-file-type in "save selection" Message-ID: <20040206143439.GB1191@finnendahl.de> Hello, I have to save lots of short excerpts of a large soundfile as seperate files. Using the keyboard shortcut C-x w to save the current region results in a mus-next formatted soundfile although the default type is set to mus-riff and the format and samplerate are also set accordingly in my .snd file. If I use the menu, everything works as expected and the wav format is displayed as the default. Am I doing something wrong, or is there any way to avoid using the mouse and file dialogs or is there a straightforward way to convert the files afterwards? Sox complains about invalid headers with the mus-next files. Thanks for ideas, Orm From finnendahl at folkwang-hochschule.de Fri Feb 6 06:59:21 2004 From: finnendahl at folkwang-hochschule.de (Orm Finnendahl) Date: Fri, 6 Feb 2004 15:59:21 +0100 Subject: [CM] snd-file-type in "save selection" Message-ID: <20040206145921.GA1806@finnendahl.de> Hello, I completely forgot to mention that the problem refers to snd-7. The version is: audio:~# snd --help Snd is a sound editor; see http://www-ccrma.stanford.edu/software/snd/.This is Snd version 7.2 of 21-Jan-04: Xen: 1.9, Guile: 1.6.4 jack, with Jack Sndlib 18.13 (19-Dec-03, int24 samples) CLM 2.39 (5-Jan-04) fftw-3.0.1-sse2 Motif 2.2.2 X11R6 Xpm 3.4.11 with large file support with gettext: C Compiled Jan 21 2004 14:54:21 C: 3.3.3 20031229 (prerelease) (Debian) Libc: 2.3.2.stable audio:~# -- Orm From sgsofia at u.washington.edu Fri Feb 6 21:31:33 2004 From: sgsofia at u.washington.edu (sal g sofia) Date: Fri, 6 Feb 2004 21:31:33 -0800 (PST) Subject: [CM] [OT] DMA Recital. Message-ID: Hello All, Doctoral Recital - Sal Sofia presents Computer Realized Music and Video in partial fulfillment of the Doctor of Musical Arts degree in composition. Saturday, February 14, 2004, 8:00 PM Brechemin Auditorium, University of Washington School of Music. Admission free. Listen and see more at: http://students.washington.edu/sgsofia/DMA_Recital/Sal_Recital/Recital_page.html From taube at uiuc.edu Sat Feb 7 06:21:38 2004 From: taube at uiuc.edu (Rick Taube) Date: Sat, 7 Feb 2004 08:21:38 -0600 Subject: [CM] CM.app / xemacs Message-ID: I fixed CM.app so that it can now launch CM under xemacs on OS X. If you want the fix send me a note and ill email you two small script files and directions on how to install them under the app (its easy...) -rick From lt at westnet.com Sat Feb 7 11:08:17 2004 From: lt at westnet.com (Larry Troxler) Date: Sat, 07 Feb 2004 14:08:17 -0500 Subject: [CM] CM+CLM and definstrument object-time Message-ID: <200402071408.17392.lt@westnet.com> Hello, (I had this figured out once before, but no longer have that hard drive and forgot to save it.) What's need to get the object-time method working for classes created with definstrument in CM? In the sources, it seems like I need a :time-parameter somewhere in the definstrument form, but so far I haven't got this to work. Thanks Larry Troxler From lt at westnet.com Sat Feb 7 12:25:13 2004 From: lt at westnet.com (Larry Troxler) Date: Sat, 07 Feb 2004 15:25:13 -0500 Subject: [CM] CM+CLM object-time solved (maybe) Message-ID: <200402071525.13693.lt@westnet.com> (I was having a problem where the object-time method didn't work on an object created with "definstrument" in CM) Ok, it looks like CM::*time-slots* tries to keep a list of all common start-time slot names. However, a couple of CLM instruments use "begin-time", which isn't in thie list. I added it, and now object-time works. As far as the ":time-parameter" stuff goes in the *definstrument-hook* : I have to guess that this is some obsolete code, because I can't find any other references to this name in either the CM or CLM sources. Well, thanks for listening - maybe this will help some future searcher of the cmdist archives. Larry Troxler From lt at westnet.com Sat Feb 7 12:32:37 2004 From: lt at westnet.com (Larry Troxler) Date: Sat, 07 Feb 2004 15:32:37 -0500 Subject: [CM] [OT] Re: CM+CLM object-time solved (maybe) In-Reply-To: <200402071525.13693.lt@westnet.com> References: <200402071525.13693.lt@westnet.com> Message-ID: <200402071532.37566.lt@westnet.com> > Ok, it looks like CM::*time-slots* tries to keep a list of all common > start-time slot names. However, a couple of CLM instruments use > "begin-time", which isn't in thie list. I added it, and now object-time > works. Oh, yeah, I can't help but wonder how the name "startime" vs. "starttime" came about. I do this kind of thing all the time by accident, but in this case it seems like a number of the instruments in the clm directory use the single-t version, so it would seem to be not just a case of an isolated typo. Is this an inside joke at CCRMA? Not complaining at all, just wondering. Larry From taube at uiuc.edu Sat Feb 7 13:50:03 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Sat, 7 Feb 2004 15:50:03 -0600 Subject: [CM] CM+CLM object-time solved (maybe) Message-ID: <1a3bcd96.e98393c.8194600@expms1.cites.uiuc.edu> >As far as the ":time-parameter" stuff goes in the *definstrument-hook* : I >have to guess that this is some obsolete code, because I can't find any other >references to this name in either the CM or CLM sources. i think pushing your slot onto *time-slots* is the best way -- I will add 'begin-time' to the list next release. the :time-parameter business is quite old and assumes that cm shadows clm:definstrument. but if clm doent complain about it then it still might work if you do something like: (definstrument (foo :time-parameter whatever) (whatever dur frq amp) ...) From bil at ccrma.Stanford.EDU Mon Feb 9 05:22:10 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 09 Feb 2004 05:22:10 -0800 Subject: [CM] [OT] Re: CM+CLM object-time solved (maybe) In-Reply-To: <200402071532.37566.lt@westnet.com> References: <200402071525.13693.lt@westnet.com> <200402071532.37566.lt@westnet.com> Message-ID: <40278982.4080602@ccrma> > I can't help but wonder how the name "startime" vs. "starttime" came > about. [...] Is this > an inside joke at CCRMA? I never noticed! I have similar blind spots with words like "accommodate" and "description" -- brain short circuit. Surely "startime" is more aesthetically pleasing? From bil at ccrma.Stanford.EDU Mon Feb 9 05:35:38 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 09 Feb 2004 05:35:38 -0800 Subject: [CM] telephone noise spectrum Message-ID: <40278CAA.6030502@ccrma> I was goofing around lately trying to clean up a recorded telephone conversation (see sndscm.html, the last section), and was wondering if anyone knows the source/characteristics of the loud background tone -- it's not 60 cycle hum harmonics as far as I can tell; sounds like a high-voltage tranformer. I tried to notch it out, but I'm not really having great success so far. I tried to check the net, and wasted a lot of time... From anders.vinjar at notam02.no Mon Feb 9 13:39:41 2004 From: anders.vinjar at notam02.no (Anders Vinjar) Date: 09 Feb 2004 22:39:41 +0100 Subject: [CM] file size limit in clm Message-ID: A couple of years ago, Snd was extended to be able to work with 2Gb+ file-sizes. When trying to make very large files in clm (cmucl-18e), an error about "file size limit" is hit when the filesize gets somewhere near 2Gb. Is it possible to get away with this limit in clm? -anders From bil at ccrma.Stanford.EDU Tue Feb 10 03:31:39 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 10 Feb 2004 03:31:39 -0800 Subject: [CM] snd-file-type in "save selection" In-Reply-To: <20040206143439.GB1191@finnendahl.de> References: <20040206143439.GB1191@finnendahl.de> Message-ID: <4028C11B.5080601@ccrma> > Using the keyboard shortcut C-x w to save the current region > results in a mus-next formatted soundfile although the default type is > set to mus-riff and the format and samplerate are also set accordingly This was a bug -- thanks very much! I think it's fixed in the current Snd tarball. From bil at ccrma.Stanford.EDU Tue Feb 10 03:32:32 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 10 Feb 2004 03:32:32 -0800 Subject: [CM] sox and snd headers In-Reply-To: <20040206143439.GB1191@finnendahl.de> References: <20040206143439.GB1191@finnendahl.de> Message-ID: <4028C150.5070005@ccrma> > Sox complains about invalid headers with the mus-next files. Was it something like this? /home/bil/cl/ sox test.snd test.wav sox: Failed reading test.snd: Unsupported encoding in Sun/NeXT header. Only U-law, signed bytes, signed words, and ADPCM are supported. This is a sox bug. Float output in Next/Sun files has been standard for at least 15 years. They even include it in their code: see sox/au.c. From bil at ccrma.Stanford.EDU Tue Feb 10 04:37:03 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 10 Feb 2004 04:37:03 -0800 Subject: [CM] file size limit in clm In-Reply-To: References: Message-ID: <4028D06F.7030806@ccrma> > Is it possible to get away with this limit in clm? This has been on my "todo" list for a long time. The main problem is dealing with bignum/off_t in the various lisp FFI's (the underlying sndlib code already has the support). I'm not sure how hard it is in cmucl -- I'll try to find time to look at it soon. From finnendahl at folkwang-hochschule.de Wed Feb 11 06:39:06 2004 From: finnendahl at folkwang-hochschule.de (Orm Finnendahl) Date: Wed, 11 Feb 2004 15:39:06 +0100 Subject: [CM] sox and snd headers In-Reply-To: <4028C150.5070005@ccrma> References: <20040206143439.GB1191@finnendahl.de> <4028C150.5070005@ccrma> Message-ID: <20040211143906.GB1331@finnendahl.de> Am 10. Februar 2004, 03:32 Uhr (-0800) schrieb Bill Schottstaedt: > > Sox complains about invalid headers with the mus-next files. > > Was it something like this? > > /home/bil/cl/ sox test.snd test.wav > sox: Failed reading test.snd: Unsupported encoding in Sun/NeXT header. > Only U-law, signed bytes, signed words, and ADPCM are supported. Yes. Thanks a lot for the info and for fixing snd-save-region. -- Orm From name1432 at hotmail.com Thu Feb 12 23:14:41 2004 From: name1432 at hotmail.com (some dude) Date: Fri, 13 Feb 2004 07:14:41 +0000 Subject: [CM] to Snd contributors: thanks Message-ID: quick note to say Thank You to all contributing to Snd. I'm studying the code now, hope to contribute eventually -- grad CCRMA, M.S.T. _________________________________________________________________ Get some great ideas here for your sweetheart on Valentine's Day - and beyond. http://special.msn.com/network/celebrateromance.armx From alinweiller at caramail.com Sat Feb 14 13:04:04 2004 From: alinweiller at caramail.com (alin weiller ) Date: Sat, 14 Feb 2004 22:04:04 +0100 Subject: [CM] To define a specific treatement Message-ID: <1076796244032291@lycos-europe.com> Hi, I want to program a specific treatement for a set of samples. for instance take a sound file in input (for instance piano1.aiff, with blank at the begining and at the end) and apply a pre-programed treatement (for instance, trimming it or adding the right loop). Then apply this threatement to the whole set. Is there any easy way to do that with snd or CM or both? and how? (just a clue for the beginner because I don't know CM) Thank's A-LIN Les noms de domaine les moins chers du march? : 6,49 euros HT sur http://www.lycos.fr/pro . From lt at westnet.com Sat Feb 14 18:13:12 2004 From: lt at westnet.com (Larry Troxler) Date: Sat, 14 Feb 2004 21:13:12 -0500 Subject: [CM] seeking CM documentation Message-ID: <200402142113.12643.lt@westnet.com> For the current release of CM, it seems that all I can find that is published by CCRMA, is the CM dictionary. While this is very usefull, it doesn't explain a lot of things, and I miss the general background documentation that used to be published with previous versions of CM. So: is there a kind soul somewhere who has made a sort of manual or tutorial for the current Common Music? A google search turns up nothing for me (other than the tutorial for the old Stella version), so it seems that for the time being I'm stuck with detective work, between looking at the source code and the Common Music dictionary. Larry Troxler From bigswift at ufl.edu Sat Feb 14 18:52:15 2004 From: bigswift at ufl.edu (Patrick Pagano) Date: Sat, 14 Feb 2004 21:52:15 -0500 Subject: [CM] seeking CM documentation In-Reply-To: <200402142113.12643.lt@westnet.com> Message-ID: Larry apparently there is a very cool book on the way to do just that. On Saturday, February 14, 2004, at 09:13 PM, Larry Troxler wrote: > For the current release of CM, it seems that all I can find that is > published > by CCRMA, is the CM dictionary. While this is very usefull, it doesn't > explain a lot of things, and I miss the general background > documentation that > used to be published with previous versions of CM. > > So: is there a kind soul somewhere who has made a sort of manual or > tutorial > for the current Common Music? > > A google search turns up nothing for me (other than the tutorial for > the old > Stella version), so it seems that for the time being I'm stuck with > detective > work, between looking at the source code and the Common Music > dictionary. > > Larry Troxler > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > Patrick Pagano,B.S. M.F.A candidate http://www.digitalworlds.ufl.edu http://www.screwmusicforever.com/SHREESWIFT From perticone at infovia.com.ar Sat Feb 14 20:12:39 2004 From: perticone at infovia.com.ar (M. Perticone) Date: Sun, 15 Feb 2004 01:12:39 -0300 Subject: [CM] accessing data in seq References: Message-ID: <000501c3f379$f46d9300$0100a8c0@pertip4> hello listers, i need some help or clarification on the following: after importing events, is there a way to access the data inside #&whatever-track ? just as an example, what should i do to transpose all :keynumber, or say, to add a number to each :time ? excuse me if this is obvious but i couldn't find how to access and modify existing data in a seq, apart from set! thanks in advance, marcelo From lt at westnet.com Sat Feb 14 21:01:43 2004 From: lt at westnet.com (Larry Troxler) Date: Sun, 15 Feb 2004 00:01:43 -0500 Subject: [CM] seeking CM documentation In-Reply-To: References: Message-ID: <200402150001.43222.lt@westnet.com> On Saturday 14 February 2004 21:52, Patrick Pagano wrote: > Larry > apparently there is a very cool book on the way to do just that. > Are you referring to Rick Taube's upcoming book? If so, then just the same, it would be nice to have an online tutorial or general reference, as there were with previous versions of CM. For one thing, I don't know if Rick's book is supposed to serve as a CM manual or not (Rick?). For the other thing, it doesn't seem to be on line any more. Larry Troxler From johannes.quint at web.de Sun Feb 15 04:11:34 2004 From: johannes.quint at web.de (Johannes Quint) Date: Sun, 15 Feb 2004 13:11:34 +0100 Subject: [CM] accessing data in seq In-Reply-To: <000501c3f379$f46d9300$0100a8c0@pertip4> References: <000501c3f379$f46d9300$0100a8c0@pertip4> Message-ID: <18DEB4F4-5FB0-11D8-8959-000393B906B6@web.de> Am 15.02.2004 um 05:12 schrieb M. Perticone: > hello listers, > > i need some help or clarification on the following: after importing > events, > is there a way to access the data inside #&whatever-track ? just as an > example, what should i do to transpose all :keynumber, or say, to add a > number to each :time ? > excuse me if this is obvious but i couldn't find how to access and > modify > existing data in a seq, apart from set! > thanks in advance, > marcelo > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > look at 'map-subobjects' in the dictionary. johannes -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 747 bytes Desc: not available URL: From taube at uiuc.edu Sun Feb 15 05:14:00 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Sun, 15 Feb 2004 07:14:00 -0600 Subject: [CM] accessing data in seq Message-ID: >i need some help or clarification on the following: after importing events, >is there a way to access the data inside #&whatever-track ? just as an >example, what should i do to transpose all :keynumber, or say, to add a >number to each :time ? you can use 'subobjects' or 'map-subobjects' to access the data and then 'sv' or a slot accessor to set the slot value (dolist (x (subobjects #&myseq)) (sv x keynum (+ (sv x keynum) 1))) both subobjects and map-subobjects are in the dictionary, SV is not. its not there because im not happy about its syntax. if you want to avoid 'sv' then you can use the object's slot accessors: (dolist (x (subobjects #&myseq)) (setf (midi-keynum x) (+ (midi-keynum x) 1)) or whatever else your Lisp gives your (slot-value, slot-ref etc) (dolist (x (subobjects #&myseq)) (setf (slot-value x 'keynum) (+ (slot-value x 'keynum)))) there are not any more 'heigher level' algorithmic editing tools because that is what plotter is for. i hope to be able to get plotter going again sometime this year. but of course ive been saying that for two years now! From taube at uiuc.edu Sun Feb 15 05:27:00 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Sun, 15 Feb 2004 07:27:00 -0600 Subject: [CM] seeking CM documentation Message-ID: <11840a5.1288d59c.8189500@expms1.cites.uiuc.edu> > For one thing, I don't know if Rick's book is supposed to > serve as a CM manual or not (Rick?). the book is not a manual but certain chapters, like Patterns and Composition could certainly qualify as a "tutorial". to be honest, an on-line tutorial is a great idea but after finishing that 340 page book im pretty burned out on writing (english, not music) -- ill leave it to someone else to do! > For the other thing, it doesn't seem to be on line any more. the book is still there, at least what I am legally allowed to post (examples, interactions and lisp code): http://pinhead.music.uiuc.edu/~hkt/nm/ From taube at uiuc.edu Sun Feb 15 05:41:45 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Sun, 15 Feb 2004 07:41:45 -0600 Subject: [CM] To define a specific treatement Message-ID: <35e1adf8.128a2f8e.8192700@expms1.cites.uiuc.edu> Hi, Im not exactly sure what it is that you want to accomplish, but you can certainly do it withs clm or snd. for clm, you would define an instrument (definstument) that performed your editing "treatment" for a specfied input file. for example you might create an 'add-blank' instrument: (definstrument add-blank (sndfile ...) ...) Once you have your add-blank instument you would call it on your input file(s): (with-sound (:output "blankpiano.aiff") (add-blank "piano1.aiff")) (loop for f in (all-my-sound-files) do (with-sound (...) (add-blank f ))) and so on. it would be trivial to define your add-blank instrument in clm -- look at the docs on 'mix-sound' or look in the file "clm-2/ins" for a list of pre-defined sound-file processing insturments. -rick ---- Original message ---- >Hi, I want to program a specific treatement for a set of samples. > >for instance take a sound file in input (for instance piano1.aiff, with blank at the begining and at the end) and >apply a pre-programed treatement (for instance, trimming it or adding the right loop). Then apply this threatement >to the whole set. > >Is there any easy way to do that with snd or CM or both? > >and how? (just a clue for the beginner because I don't know CM) > >Thank's > >A-LIN > >Les noms de domaine les moins chers du march? : 6,49 euros HT sur http://www.lycos.fr/pro . > From bil at ccrma.Stanford.EDU Sun Feb 15 08:42:14 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Sun, 15 Feb 2004 08:42:14 -0800 Subject: [CM] To define a specific treatement In-Reply-To: <1076796244032291@lycos-europe.com> References: <1076796244032291@lycos-europe.com> Message-ID: <402FA166.3040103@ccrma> > for instance take a sound file in input (for instance piano1.aiff, > with blank at the begining and at the end) and apply a pre-programed > treatement (for instance, trimming it or adding the right loop). > Then apply this threatement to the whole set. To trim silence at the start: (define (trim-mono-silence file) ;; in-place trim of opening silence (let* ((snd (open-sound file)) (music-location (find (lambda (y) (not (= y 0.0)))))) (if (and music-location (> (cadr music-location) 0)) (begin (delete-samples 0 (cadr music-location)) (save-sound snd))) (close-sound snd))) If the files might have any number of channels: (define (trim-silence file) ;; in-place trim of opening silence (let* ((snd (open-sound file)) (music-location #f)) (do ((chn 0 (1+ chn))) ((= chn (chans snd))) (let* ((location-info (find (lambda (y) (not (= y 0.0))) 0 snd chn)) (location (and location-info (cadr location-info)))) (if (or (not music-location) (< location music-location)) (set! music-location location)))) (if (and music-location (> music-location 0)) (begin (do ((chn 0 (1+ chn))) ((= chn (chans snd))) (delete-samples 0 music-location snd chn)) (save-sound snd))) (close-sound snd))) To run this over a bunch of sounds, use the "script" stuff described in grfsnd.html: #!snd -b !# (if (= (length (script-args)) 2) (display "usage: script file-name...\n") (do ((arg (+ (script-arg) 1) (1+ arg))) ((= arg (length (script-args)))) (let ((name (list-ref (script-args) arg))) (trim-silence name)))) (exit) From perticone at infovia.com.ar Wed Feb 18 13:16:36 2004 From: perticone at infovia.com.ar (M. Perticone) Date: Wed, 18 Feb 2004 18:16:36 -0300 Subject: [CM] :time slot-values and midi files Message-ID: <002d01c3f664$a486b540$0100a8c0@pertip4> hello listers, this is to check if it's the expected. i've been toying with time slot-values'. you can see below that some 'events' have an earlier time than its predecessor. after writing events to a midi file i see that those earlier events are placed at their predecessor time. also some durations are changed into longer ones. am i misunderstanding how to handle the time value-slot data? thanks in advance, marcelo please compare the following outputs: CM[48]> (see qq) 0. #i(midi keynum 60 duration 0.666667 amplitude 0.78740156 channel 0 time 2) 1. #i(midi keynum 62 duration 0.666667 amplitude 0.78740156 channel 0 time 2.666667) 2. #i(midi keynum 64 duration 0.666667 amplitude 0.78740156 channel 0 time 3.333334) 3. #i(midi keynum 65 duration 0.666667 amplitude 0.78740156 channel 0 time 5.000001) 4. #i(midi keynum 67 duration 0.666667 amplitude 0.78740156 channel 0 time 4.666668) 5. #i(midi keynum 69 duration 0.666667 amplitude 0.78740156 channel 0 time 4.333335) 6. #i(midi keynum 71 duration 0.666667 amplitude 0.78740156 channel 0 time 8.000002) 7. #i(midi keynum 72 duration 0.666667 amplitude 0.78740156 channel 0 time 9.666669) 8. #i(midi keynum 74 duration 0.666667 amplitude 0.78740156 channel 0 time 7.333336) 9. #i(midi keynum 76 duration 0.666667 amplitude 0.78740156 channel 0 time 11.000003) 10. #i(midi keynum 77 duration 0.666667 amplitude 0.78740156 channel 0 time 8.66667) CM[49]> (events qq "h:/myscore.mid") these are taken from cakewalk. only time, note and duration in ticks are retained here. 1:03:000 c5 320 1:03:320 d5 320 1:04:160 e5 320 2:02:000 f5 1:160 <--- this should go after the next a5 2:02:000 g5 1:000 2:02:000 a5 320 <--- this should go after the first (previous) e5 3:01:320 b5 320 3:03:160 c6 3:000 3:03:160 d6 320 4:03:000 e6 3:000 4:03:000 f6 320 From alinweiller at caramail.com Thu Feb 19 14:29:40 2004 From: alinweiller at caramail.com (alin weiller ) Date: Thu, 19 Feb 2004 22:29:40 GMT Subject: [CM] Path for scm files Message-ID: <1077229780022001@lycos-europe.com> Hi, is there any variable path to avoid giving the complete path when one wants to load a scm file in Snd. (load "new-effects.scm") instead of (load "/usr/lib/snd/scheme/new-effects.scm") Thank's A-LIN Pour gagner une Playstation 2, envoyez un SMS avec le code PS au 61321 (0,35 euro hors co?t du SMS). From alinweiller at caramail.com Thu Feb 19 15:41:15 2004 From: alinweiller at caramail.com (alin weiller ) Date: Thu, 19 Feb 2004 23:41:15 GMT Subject: [CM] new-effects.scm : too low resolution Message-ID: <1077234075023551@lycos-europe.com> Hi, I want to use the Gate effect in new-effects.scm in Snd but the resolution of the threshold is too low for my needs : 0.00 Is there any way to change the resolution (I noticed that in LADSPA plug-in it's the same resolution) or to use the function on the command line in the listener. Thank's A-LIN Pour gagner une Playstation 2, envoyez un SMS avec le code PS au 61321 (0,35 euro hors co?t du SMS). From taube at uiuc.edu Thu Feb 19 16:48:00 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Thu, 19 Feb 2004 18:48:00 -0600 Subject: [CM] Re: cm-2.4.2/clm-2 with OpenMCL Message-ID: > ? (compile-file "/Users/terossi/Lisp/temp/clm_ins/v.ins") > > Error: While compiling an anonymous function : > > DECLARE not expected in (DECLARE (TYPE FLOAT NOISE-AMOUNT > FUZZ IND-FUZZ AMP-FUZZ MODULATION FM1-RAT FM2-RAT FM3-RAT VIB)). >This occurs when l load clm before loading cm and doesn't occur >if I load cm first. Should I load clm after loading cm? Hi, if you want to load CLM before CM and you want to use clm symbols inside CM then you must execute a (use-package :clm) so you do: (load "clm-2/all.lisp") (load "cm/src/cm.lisp") (cm) (use-package :clm) (compile-file "clm-2/v.ins") >Also I got some problems on installing Midishare. >In "Installing Common Music" it is said: you cannot use midishare until midishare releases their framworks to the public. i dont know why this hasnt happend yet. From taube at uiuc.edu Thu Feb 19 17:11:01 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Thu, 19 Feb 2004 19:11:01 -0600 Subject: [CM] :time slot-values and midi files Message-ID: <4dc01777.14d89eed.8196f00@expms1.cites.uiuc.edu> This looks like a bug to me. To work around it, use events to write your "qq" seq to another seq (say, "rr") and then write out "rr" to the midi file, ie (new seq :name 'rr) (events #&qq #&rr) (events #&rr "test.midi") ---- Original message ---- >Date: Wed, 18 Feb 2004 18:16:36 -0300 >From: "M. Perticone" >Subject: [CM] :time slot-values and midi files >To: cmdist at ccrma.Stanford.EDU > >hello listers, > >this is to check if it's the expected. i've been toying with time >slot-values'. >you can see below that some 'events' have an earlier time than its >predecessor. after writing events to a midi file i see that those earlier >events are placed at their predecessor time. also some durations are changed >into longer ones. am i misunderstanding how to handle the time value-slot >data? >thanks in advance, >marcelo > >please compare the following outputs: > >CM[48]> (see qq) > 0. #i(midi keynum 60 duration 0.666667 amplitude 0.78740156 channel 0 >time 2) > 1. #i(midi keynum 62 duration 0.666667 amplitude 0.78740156 channel 0 >time 2.666667) > 2. #i(midi keynum 64 duration 0.666667 amplitude 0.78740156 channel 0 >time 3.333334) > 3. #i(midi keynum 65 duration 0.666667 amplitude 0.78740156 channel 0 >time 5.000001) > 4. #i(midi keynum 67 duration 0.666667 amplitude 0.78740156 channel 0 >time 4.666668) > 5. #i(midi keynum 69 duration 0.666667 amplitude 0.78740156 channel 0 >time 4.333335) > 6. #i(midi keynum 71 duration 0.666667 amplitude 0.78740156 channel 0 >time 8.000002) > 7. #i(midi keynum 72 duration 0.666667 amplitude 0.78740156 channel 0 >time 9.666669) > 8. #i(midi keynum 74 duration 0.666667 amplitude 0.78740156 channel 0 >time 7.333336) > 9. #i(midi keynum 76 duration 0.666667 amplitude 0.78740156 channel 0 >time 11.000003) > 10. #i(midi keynum 77 duration 0.666667 amplitude 0.78740156 channel 0 >time 8.66667) > >CM[49]> (events qq "h:/myscore.mid") > >these are taken from cakewalk. only time, note and duration in ticks are >retained here. >1:03:000 c5 320 >1:03:320 d5 320 >1:04:160 e5 320 >2:02:000 f5 1:160 <--- this should go after the next a5 >2:02:000 g5 1:000 >2:02:000 a5 320 <--- this should go after the first (previous) e5 >3:01:320 b5 320 >3:03:160 c6 3:000 >3:03:160 d6 320 >4:03:000 e6 3:000 >4:03:000 f6 320 > > > > >_______________________________________________ >Cmdist mailing list >Cmdist at ccrma.stanford.edu >http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From petemoss at petemoss.org Thu Feb 19 17:09:16 2004 From: petemoss at petemoss.org (pete moss) Date: Thu, 19 Feb 2004 17:09:16 -0800 Subject: [CM] time sig and instrument assignment Message-ID: <40355E3C.4080201@petemoss.org> is there are way to alter, measure by measure, the time signature of a midi file being output from (events)? is there any way to execute a program change on a given channel in the same midi file? tia :P From taube at uiuc.edu Thu Feb 19 18:11:43 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Thu, 19 Feb 2004 20:11:43 -0600 Subject: [CM] time sig and instrument assignment Message-ID: <26d4c72f.14de2d96.843e500@expms1.cites.uiuc.edu> >is there are way to alter, measure by measure, the time signature of a >midi file being output from (events)? > >is there any way to execute a program change on a given channel in the >same midi file? Hi, the easiest way is to define functions that make time sigs and program change events and then call them in a score. In this example I use a seq but you could output via a a process just as easily. ? (define (tsig time num1 num2) (multiple-value-bind (m d) (make-time-signature num1 num2) (new midimsg :time time :msg m :data d))) ? (define (pchange time chan ins) (new midimsg :time time :msg (make-program-change chan ins))) ? (new seq :name 'test :subobjects (list (tsig 0 4 4) (pchange 0 0 0) (new midi :time 0 :duration 4 :keynum 60) (tsig 4 3 4) (pchange 4 1 2) (new midi :time 4 :duration 3 :channel 1))) # ? (events #&test "test.mid") "test.mid" ? (midi-file-print "test.mid") File: test.mid Format: 0 Tracks: 1 Division: 480 Track 0, length 51 0 # 0 #