From errordeveloper at gmail.com Sun Nov 2 21:04:40 2008 From: errordeveloper at gmail.com (ilya .d) Date: Mon, 3 Nov 2008 05:04:40 +0000 Subject: [CM] external processing of selection/region and trasparent replacment .. Message-ID: <20081103050440.GA28766@00110101.errordevlopment.0> hi. as i was mentioning earlier, i have project to get snd to send pcm data to be processed by pd, os it'd save a selection (region) as a separate file, send a msg to pd and then after pd is done snd will try to apply changes too .. i have tryed to change a region file externaly, and actually snd still had it the same ;( in fact i want to get a little version control over it, just one step undo/rendo, "play original" / "play processed" option .. i'm going to try a basic like: (if (selection?) (save-selection "/tmp/file-01:orig.sf") (define point01 (selection-position)) (delete-selection)) ;; here we do the processing and end up with "/tmp/file-01:edit.sf" (insert-sound "/tmp/file-01:edit.sf" :beg p1) ;; might also (view-sound "/tmp/file-01:edit.sf") ;; and (view-sound "tmp/file-01:orig.sf") to see them both ;)) a better way would be to use regions .. can a region be edited externaly ? is there any hook for that?? cheers, best regards, -- ilya .? From errordeveloper at gmail.com Sun Nov 2 21:16:24 2008 From: errordeveloper at gmail.com (errordeveloper at gmail.com) Date: Mon, 3 Nov 2008 05:16:24 +0000 Subject: [CM] trouble with snd using X11 on mac tiger In-Reply-To: <559c00e00810311132m1323f419oaa24513ddc87ec2c@mail.gmail.com> References: <559c00e00810311132m1323f419oaa24513ddc87ec2c@mail.gmail.com> Message-ID: <20081103051624.GB28766@00110101.errordevlopment.0> i think this is a XServer problem, what is the exact implementation on 10.4? is it still an apple one or it's now Xorg? i remember getting similar msg trying to run gtk/pango apps remotely on Xsun display on solaris 8 .. that x11 implementation is very old so that was it to me .. apple used to have some old x11 implementation too .. did you say that you ran snd off the same server but sshing from a different machine/OS ? On Fri, Oct 31, 2008 at 02:32:34PM -0400, Bingxin Shen wrote: > Hi all, > I am new to snd. > My laptop is Mac OS 10.4.11, and the X11 version is 1.1.3. > I am trying to remote access the snd on the sever using ssh -X connection. > BTW the server is Debian. > > Whenever I remote logged in with ssh, if I run snd, I could only get the > graphic interference, but when I clicked on the menu it just died... > with such error info: > "The program 'snd' received an X Window System error. > This probably reflects a bug in the program. > The error was 'BadWindow (invalid Window parameter)'. > (Details: serial 256 error_code 3 request_code 38 minor_code 0) > (Note to programmers: normally, X errors are reported asynchronously; > that is, you will receive the error a while after causing it. > To debug your program, run it with the --sync command line > option to change this behavior. You can then get a meaningful > backtrace from your debugger if you break on the gdk_x_error() > function.)" > The serial number changes... > > I could not figure out what is wrong. > Could any one help me out? > > I know the other guy using Mac OS 10.5.1 has no problem with the connection. > I think all the other settings/hardwares for me are the same as his. > Does snd only work with Leopad(10.5) but not with tiger(10.4)? > > Any comments? > Thanks a lot! > > > -- > Best, > > Bing > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From errordeveloper at gmail.com Mon Nov 3 05:36:54 2008 From: errordeveloper at gmail.com (errordeveloper at gmail.com) Date: Mon, 3 Nov 2008 13:36:54 +0000 Subject: [CM] data format conversion (mus-lfloat -> mus-short or mus-l24int) with dithering or without ? Message-ID: <20081103133654.GC28766@00110101.errordevlopment.0> hello, i am wondering if Snd does dithering when you save-sound-as with different data-format (i.e. smaller wordlenght) ? From bil at ccrma.Stanford.EDU Mon Nov 3 05:50:45 2008 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 3 Nov 2008 05:50:45 -0800 Subject: [CM] external processing of selection/region and trasparent replacment .. In-Reply-To: <20081103050440.GA28766@00110101.errordevlopment.0> References: <20081103050440.GA28766@00110101.errordevlopment.0> Message-ID: <20081103134748.M30952@ccrma.Stanford.EDU> > can a region be edited externaly ? The region browser has an "edit" button that loads the region's file into Snd. You can then treat it as any other sound. It's suupposed to be the case that if you then save your edits, the changes are reflected wherever the region is in use, but it doesn't seem to be working -- it's been a very long time since I checked this feature, and GUI-based stuff like this is hard to test in my "regression" tests. I'll try to track down the problem later today. From bil at ccrma.Stanford.EDU Mon Nov 3 05:53:46 2008 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 3 Nov 2008 05:53:46 -0800 Subject: [CM] data format conversion (mus-lfloat -> mus-short or mus-l24int) with dithering or without ? In-Reply-To: <20081103133654.GC28766@00110101.errordevlopment.0> References: <20081103133654.GC28766@00110101.errordevlopment.0> Message-ID: <20081103135059.M68610@ccrma.Stanford.EDU> > i am wondering if Snd does dithering when you save-sound-as with > different data-format (i.e. smaller wordlenght) ? No. I personally do not believe in dithering, and it seems like a bad idea in any case to change the data without being asked. From errordeveloper at gmail.com Mon Nov 3 06:16:37 2008 From: errordeveloper at gmail.com (errordeveloper at gmail.com) Date: Mon, 3 Nov 2008 14:16:37 +0000 Subject: [CM] data format conversion (mus-lfloat -> mus-short or mus-l24int) with dithering or without ? In-Reply-To: <20081103135059.M68610@ccrma.Stanford.EDU> References: <20081103133654.GC28766@00110101.errordevlopment.0> <20081103135059.M68610@ccrma.Stanford.EDU> Message-ID: <20081103141637.GD28766@00110101.errordevlopment.0> On Mon, Nov 03, 2008 at 05:53:46AM -0800, Bill Schottstaedt wrote: > > i am wondering if Snd does dithering when you save-sound-as with > > different data-format (i.e. smaller wordlenght) ? > > No. I personally do not believe in dithering, and it seems like a bad > idea in any case to change the data without being asked. > pardon, but what do you mean by saying "it's a bad idea"? changing the data-format is bad? ..well, but you need it to compress to mp3 or ogg, and flac needs at least 24bit integers too .. From bsack23 at gmail.com Mon Nov 3 13:48:28 2008 From: bsack23 at gmail.com (Bill Sack) Date: Mon, 3 Nov 2008 16:48:28 -0500 Subject: [CM] clm/cm3 in s7 scheme In-Reply-To: <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> Message-ID: <2eb2318a0811031348k295dcd0ob49e4e89e58cacd0@mail.gmail.com> i'm very excited about the prospect of clm running within Grace. i downloaded the source and it was indeed easy to build. i have it going as an inferior-lisp in emacs right now which makes playing with it a little easier. thanks Rick and Bill! b On Thu, Oct 30, 2008 at 5:41 AM, Heinrich Taube wrote: > thanks to heavy lifting by bill -- who got sndlib/s7 building in g++ -- i > have cm3 and clm running in s7 scheme. the executable is a juce console app > statically linked against sndlib/s7. its fully relocatable and contains all > the clm and cm scheme sources inside it, sources are autoloaded when you > start the app so you dont have to do anything except load snd instruments! > the repl is really crappy right now but you can load fm-violin and make > toots, and the entire cm3 toolkit (patterns, loop etc) is working modulo > unfound bugs. if you want to play with it ive saved a source tarball that > should build on linux and osx: > http://camil.music.uiuc.edu/Software/grace/downloads/cm3.tar.gz > > its a snap to build -- see the cm3/readme.text for how to do it. I dont > have midi or grace ports or realtime yet, the next step is to get ports > going, ill see if i cant add ketjils osc port while im at it. I dont know if > s7 will run in realtime, but regardless getting clm going in Grace should be > very easy now. > > dhcp204a:cm3 hkt$ bin/cm > S7 Scheme (c) 2008, William Schottstaedt > /\\\ > ---\\\--------- > ----\\\-------- > ----/\\\------- Common Music 3.2.0 > ---/--\\\------ > --/----\\\----- > / \\\/ > cm> (load "/Users/hkt/Software/snd-10/v.scm") > fm-violin > cm> (with-sound () (fm-violin 0 1 440 .1)) > "test.aiff" > cm> (define pat (make-heap (hz '(c4 d ef f g af bf c5)))) > pat > cm> (with-sound () (loop repeat 20 for t from 0 by .1 for f = (next pat) do > (fm-violin t .2 f .1))) > "test.aiff" > cm> (quit) > Bye! > dhcp204a:cm3 hkt$ > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > From taube at uiuc.edu Mon Nov 3 15:34:27 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Mon, 3 Nov 2008 17:34:27 -0600 Subject: [CM] clm/cm3 in s7 scheme In-Reply-To: <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> Message-ID: <80963BE4-A090-4F0D-954B-A68AB00C1E8F@uiuc.edu> its coming along, yesterday i got s7 running in the scheduling thread, trying now to get processes going. if bill will be able to get the (run ) optimizer working in sndlib tthe clm calls will be fast. so im pretty hopeful! On Nov 3, 2008, at 3:47 PM, Bill Sack wrote: > i'm very excited about the prospect of clm running within Grace. i > downloaded the source and it was indeed easy to build. i have it going > as an inferior-lisp in emacs right now which makes playing with it a > little easier. thanks Rick and Bill! > > b > > > On Thu, Oct 30, 2008 at 5:41 AM, Heinrich Taube > wrote: >> thanks to heavy lifting by bill -- who got sndlib/s7 building in g+ >> + -- i >> have cm3 and clm running in s7 scheme. the executable is a juce >> console app >> statically linked against sndlib/s7. its fully relocatable and >> contains all >> the clm and cm scheme sources inside it, sources are autoloaded >> when you >> start the app so you dont have to do anything except load snd >> instruments! >> the repl is really crappy right now but you can load fm-violin and >> make >> toots, and the entire cm3 toolkit (patterns, loop etc) is working >> modulo >> unfound bugs. if you want to play with it ive saved a source >> tarball that >> should build on linux and osx: >> http://camil.music.uiuc.edu/Software/grace/downloads/cm3.tar.gz >> >> its a snap to build -- see the cm3/readme.text for how to do it. I >> dont >> have midi or grace ports or realtime yet, the next step is to get >> ports >> going, ill see if i cant add ketjils osc port while im at it. I >> dont know if >> s7 will run in realtime, but regardless getting clm going in Grace >> should be >> very easy now. >> >> dhcp204a:cm3 hkt$ bin/cm >> S7 Scheme (c) 2008, William Schottstaedt >> /\\\ >> ---\\\--------- >> ----\\\-------- >> ----/\\\------- Common Music 3.2.0 >> ---/--\\\------ >> --/----\\\----- >> / \\\/ >> cm> (load "/Users/hkt/Software/snd-10/v.scm") >> fm-violin >> cm> (with-sound () (fm-violin 0 1 440 .1)) >> "test.aiff" >> cm> (define pat (make-heap (hz '(c4 d ef f g af bf c5)))) >> pat >> cm> (with-sound () (loop repeat 20 for t from 0 by .1 for f = (next >> pat) do >> (fm-violin t .2 f .1))) >> "test.aiff" >> cm> (quit) >> Bye! >> dhcp204a:cm3 hkt$ >> >> _______________________________________________ >> Cmdist mailing list >> Cmdist at ccrma.stanford.edu >> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >> >> From b0ef at esben-stien.name Mon Nov 3 20:16:32 2008 From: b0ef at esben-stien.name (Esben Stien) Date: Tue, 04 Nov 2008 05:16:32 +0100 Subject: [CM] JACK Transport Message-ID: <87zlkgktwf.fsf@quasar.esben-stien.name> Any plans for JACK Transport support in Snd? -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From b0ef at esben-stien.name Mon Nov 3 20:20:44 2008 From: b0ef at esben-stien.name (Esben Stien) Date: Tue, 04 Nov 2008 05:20:44 +0100 Subject: [CM] JACK MIDI (CM) In-Reply-To: (Rick Taube's message of "Tue, 13 Mar 2007 13:29:32 -0500") References: <87zm6nvua8.fsf@esben-stien.name> Message-ID: <87k5bkgm03.fsf@quasar.esben-stien.name> Rick Taube writes: > I have very little time now to do this. Any updates on this?;) -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From b0ef at esben-stien.name Mon Nov 3 20:23:36 2008 From: b0ef at esben-stien.name (Esben Stien) Date: Tue, 04 Nov 2008 05:23:36 +0100 Subject: [CM] Display Scheme Buffer (snd-rt) In-Reply-To: <871wjcp4fs.fsf@esben-stien.name> (Esben Stien's message of "Mon, 26 Mar 2007 14:36:23 +0200") References: <871wjcp4fs.fsf@esben-stien.name> Message-ID: <87fxm8glvb.fsf@quasar.esben-stien.name> Esben Stien writes: > Is there any key bound to display the scheme buffer? > I'm doing C-x 2 and C-x o and then change this buffer to the scheme > buffer, but I guess there is a key bound to this?. > In sclang mode, there is C-c < and it's quite handy;). This C-c < pops up the scheme buffer as the second buffer at the bottom. Is there no command that does this when using Snd with emacs? -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From bil at ccrma.Stanford.EDU Tue Nov 4 02:50:41 2008 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 4 Nov 2008 02:50:41 -0800 Subject: [CM] clm/cm3 in s7 scheme In-Reply-To: <80963BE4-A090-4F0D-954B-A68AB00C1E8F@uiuc.edu> References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> <80963BE4-A090-4F0D-954B-A68AB00C1E8F@uiuc.edu> Message-ID: <20081104104801.M10486@ccrma.Stanford.EDU> > if bill will be able to get the > (run ) optimizer working in sndlib the clm calls will be fast. I'll tackle it today (this is the 3rd big project I've promised to do today, not counting voting --the more promises I make, the better the beach looks). From bil at ccrma.Stanford.EDU Tue Nov 4 02:51:40 2008 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 4 Nov 2008 02:51:40 -0800 Subject: [CM] JACK Transport In-Reply-To: <87zlkgktwf.fsf@quasar.esben-stien.name> References: <87zlkgktwf.fsf@quasar.esben-stien.name> Message-ID: <20081104105105.M93498@ccrma.Stanford.EDU> > Any plans for JACK Transport support in Snd? Doesn't it already exist? Kjetil implemented Jack as an audio option a long time ago. From k.s.matheussen at notam02.no Tue Nov 4 06:18:30 2008 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Tue, 4 Nov 2008 15:18:30 +0100 (CET) Subject: [CM] JACK Transport In-Reply-To: <20081104105105.M93498@ccrma.Stanford.EDU> References: <87zlkgktwf.fsf@quasar.esben-stien.name> <20081104105105.M93498@ccrma.Stanford.EDU> Message-ID: On Tue, 4 Nov 2008, Bill Schottstaedt wrote: >> Any plans for JACK Transport support in Snd? > > Doesn't it already exist? Kjetil implemented Jack as an audio > option a long time ago. > I haven't used jack transport myself, but I think it's used for synchronizing more than one program, so that if you press start in one program, all the others start to play as well. So I haven't implemented that part of jack. (I'm not sure if it was even a part of jack back then) From b0ef at esben-stien.name Thu Nov 6 16:57:08 2008 From: b0ef at esben-stien.name (Esben Stien) Date: Fri, 07 Nov 2008 01:57:08 +0100 Subject: [CM] Interactive Selection Message-ID: <87mygcfj4r.fsf@quasar.esben-stien.name> Any way to do selection a little more interactive? What I mean, is f.ex dragging the selection window handles. After you've made a selection, if you want to adjust one handle of the selection, it's impossible; you have to make a totally new selection. -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From b0ef at esben-stien.name Thu Nov 6 16:59:26 2008 From: b0ef at esben-stien.name (Esben Stien) Date: Fri, 07 Nov 2008 01:59:26 +0100 Subject: [CM] Play (snd-ls RT) Message-ID: <87iqr0fj0x.fsf@quasar.esben-stien.name> When I call (play), it seems to call another function than when I hit space inside Snd. I know this because if I evaluate (play), I get very choppy audio, but if I hit space inside Snd, everything is alot more smoother. I'm running snd-ls with scheme. -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From b0ef at esben-stien.name Thu Nov 6 17:12:40 2008 From: b0ef at esben-stien.name (Esben Stien) Date: Fri, 07 Nov 2008 02:12:40 +0100 Subject: [CM] Loop Selection Message-ID: <87ej1ofiev.fsf@quasar.esben-stien.name> In loop mode, I have (make-selection 1000 2000) ..so that it loops between these sample points. If I update the selection while playing, Snd will not loop the new selection, but continue with the old selection. I have to stop first and then hit play for the change to take effect. Any way to avoid this? -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From k.s.matheussen at notam02.no Thu Nov 6 15:44:58 2008 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Fri, 7 Nov 2008 00:44:58 +0100 (CET) Subject: [CM] Loop Selection In-Reply-To: <87ej1ofiev.fsf@quasar.esben-stien.name> References: <87ej1ofiev.fsf@quasar.esben-stien.name> Message-ID: On Fri, 7 Nov 2008, Esben Stien wrote: > In loop mode, I have > > (make-selection 1000 2000) > > ..so that it loops between these sample points. > > If I update the selection while playing, Snd will not loop the new > selection, but continue with the old selection. I have to stop first > and then hit play for the change to take effect. > > Any way to avoid this? > I think the function c-set-selection! should fix this problem: (define* (c-set-selection! snd ch start end #:optional (dassync (c-sync? snd))) (c-set-selection-position! snd ch start dassync) (c-set-selection-frames! snd ch (- end start -1) dassync)) You can make a c-make-selection function like this: (define (c-make-selection start end) (c-set-selection! (c-selected-sound) (selected-channel (c-selected-sound)) start end)) From k.s.matheussen at notam02.no Thu Nov 6 15:59:18 2008 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Fri, 7 Nov 2008 00:59:18 +0100 (CET) Subject: [CM] Interactive Selection In-Reply-To: <87mygcfj4r.fsf@quasar.esben-stien.name> References: <87mygcfj4r.fsf@quasar.esben-stien.name> Message-ID: On Fri, 7 Nov 2008, Esben Stien wrote: > Any way to do selection a little more interactive? > > What I mean, is f.ex dragging the selection window handles. > > After you've made a selection, if you want to adjust one handle of the > selection, it's impossible; you have to make a totally new selection. > If you're using snd-ls, you can press ctrl to adjust the handles. From k.s.matheussen at notam02.no Thu Nov 6 15:59:37 2008 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Fri, 7 Nov 2008 00:59:37 +0100 (CET) Subject: [CM] Play (snd-ls RT) In-Reply-To: <87iqr0fj0x.fsf@quasar.esben-stien.name> References: <87iqr0fj0x.fsf@quasar.esben-stien.name> Message-ID: On Fri, 7 Nov 2008, Esben Stien wrote: > When I call (play), it seems to call another function than when I hit > space inside Snd. > > I know this because if I evaluate (play), I get very choppy audio, but > if I hit space inside Snd, everything is alot more smoother. > > I'm running snd-ls with scheme. > (play) is snd's built in playing function. snd-ls doesn't use that one, at least not when running jack, but instead uses the player in rt-player.scm The following wrapper-functions provided by snd_conffile.scm automatically selects the best player: (define* (c-play #:optional samp) (-> (c-p) play samp)) (define (c-stop) (-> (c-p) stop)) (define (c-pause) (-> (c-p) pause)) (define (c-continue) (-> (c-p) continue)) (define (c-play-selection) (-> (c-p) play-selection)) So you probably want to use (c-play) instead of (play). From k.s.matheussen at notam02.no Thu Nov 6 16:13:28 2008 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Fri, 7 Nov 2008 01:13:28 +0100 (CET) Subject: [CM] Loop Selection In-Reply-To: References: <87ej1ofiev.fsf@quasar.esben-stien.name> Message-ID: On Fri, 7 Nov 2008, Kjetil S. Matheussen wrote: > > > On Fri, 7 Nov 2008, Esben Stien wrote: > >> In loop mode, I have >> >> (make-selection 1000 2000) >> >> ..so that it loops between these sample points. >> >> If I update the selection while playing, Snd will not loop the new >> selection, but continue with the old selection. I have to stop first >> and then hit play for the change to take effect. >> >> Any way to avoid this? >> > > > I think the function c-set-selection! should fix this problem: > > (define* (c-set-selection! snd ch start end #:optional (dassync (c-sync? snd))) > (c-set-selection-position! snd ch start dassync) > (c-set-selection-frames! snd ch (- end start -1) dassync)) > > > You can make a c-make-selection function like this: > > (define (c-make-selection start end) > (c-set-selection! (c-selected-sound) (selected-channel (c-selected-sound)) start end)) Sorry, here's a working function: (define* (c-make-selection start end :optional (snd (c-selected-sound))) (c-set-selection! snd (selected-channel snd) start end) (-> (c-p snd) selection-is-changed)) From taube at uiuc.edu Fri Nov 7 04:00:07 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Fri, 7 Nov 2008 06:00:07 -0600 Subject: [CM] clm/cm3 in s7 scheme In-Reply-To: <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> Message-ID: <6AA2F619-7C86-4ABC-98D6-90A8BCBA0D85@uiuc.edu> a new tarball of clm+cm in s7 scheme is available at http://camil.music.uiuc.edu/Software/grace/downloads/cm3.tar.gz new feature: 1. bil's run loop optimizer now available in latest sndlib (yay!) 2. scheme now runs in its own juce thread 3. real time processes working (not heavily tested yet) 4. improved repl (multiline input ) 5. builds in chicken 3.0.0 (no sndlib) pass --chicken /path/to/ chicken-3.0.0 to premake the clm+cm app is fully relocatable and requires no runtime sources. to use the app in emacs do (setq scheme-program-name "/path/to/cm3/bin/cm") M-x run-scheme building is a snap: wget ftp://ccrma-ftp.stanford.edu/pub/Lisp/sndlib.tar.gz tar -zxf sndlib.tar.gz cd sndlib ./configure CC=g++ make cd .. wget http://camil.music.uiuc.edu/Software/grace/downloads/cm3.tar.gz tar -zxf cm3.tar.gz cd cm3 premake --verbose --target gnu --juce /path/to/juce --sndlib ../sndlib make bin/cm S7 Scheme 1.2, (c) 2008 William Schottstaedt SNDLIB 20.10, (c) 2008 William Schottstaedt /\\\ ---\\\--------- ----\\\-------- ----/\\\------- Common Music 3.2.0 ---/--\\\------ --/----\\\----- / \\\/ Type 'q' to quit. cm> (list 1 2 3) (1 2 3) cm> (load "/Users/hkt/Software/snd-10/v.scm") fm-violin cm> (with-sound () (fm-violin 0 1 440 .1)) "test.aiff" cm> (define (foo n ) (process for i below n do (display (list i (elapsed))) (newline) (wait .5))) foo cm> (sprout (foo 10)) (0 0.0) (1 0.5000870000124) (2 1.0009470000267) (3 1.5018830000162) (4 2.0025049999952) (5 2.5038330000043) (6 3.0042760000229) (7 3.5051180000305) (8 4.006182000041) (9 4.5074370000362) cm> q Killing scheme thread...quitting Scheme Bye! Process scheme finished From k.s.matheussen at notam02.no Thu Nov 6 15:32:50 2008 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Fri, 07 Nov 2008 00:32:50 +0100 (CET) Subject: [CM] Play (snd-ls RT) In-Reply-To: <87iqr0fj0x.fsf@quasar.esben-stien.name> References: <87iqr0fj0x.fsf@quasar.esben-stien.name> Message-ID: On Fri, 7 Nov 2008, Esben Stien wrote: > When I call (play), it seems to call another function than when I hit > space inside Snd. > > I know this because if I evaluate (play), I get very choppy audio, but > if I hit space inside Snd, everything is alot more smoother. > > I'm running snd-ls with scheme. > (play) is snd's built in playing function. snd-ls doesn't use that one, at least not when running jack, but instead uses the player in rt-player.scm The following wrapper-functions provided by snd_conffile.scm automatically selects the best player: (define* (c-play #:optional samp) (-> (c-p) play samp)) (define (c-stop) (-> (c-p) stop)) (define (c-pause) (-> (c-p) pause)) (define (c-continue) (-> (c-p) continue)) (define (c-play-selection) (-> (c-p) play-selection)) So you probably want to use (c-play) instead of (play). From bsack23 at gmail.com Fri Nov 7 13:42:31 2008 From: bsack23 at gmail.com (Bill Sack) Date: Fri, 7 Nov 2008 16:42:31 -0500 Subject: [CM] clm/cm3 in s7 scheme In-Reply-To: <6AA2F619-7C86-4ABC-98D6-90A8BCBA0D85@uiuc.edu> References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> <6AA2F619-7C86-4ABC-98D6-90A8BCBA0D85@uiuc.edu> Message-ID: <2eb2318a0811071342t13cd3639ta607548712c458a4@mail.gmail.com> hello, i just tried to build and got this error: ==== Building cm ==== mkdir -p obj/Release g++ -MMD -D "SNDLIB=1" -D "LINUX=1" -I "../juce/" -I "src" -I "../sndlib/" -O2 -o obj/Release/CmSupport.o -c src/CmSupport.cpp src/Scheme.h:79: error: extra qualification ???Scheme::??? on member ???Scheme??? make[1]: *** [obj/Release/CmSupport.o] Error 1 make: *** [cm] Error 2 b On Fri, Nov 7, 2008 at 7:00 AM, Heinrich Taube wrote: > a new tarball of clm+cm in s7 scheme is available at > > http://camil.music.uiuc.edu/Software/grace/downloads/cm3.tar.gz > > new feature: > > 1. bil's run loop optimizer now available in latest sndlib (yay!) > 2. scheme now runs in its own juce thread > 3. real time processes working (not heavily tested yet) > 4. improved repl (multiline input ) > 5. builds in chicken 3.0.0 (no sndlib) pass --chicken /path/to/ > chicken-3.0.0 to premake > > the clm+cm app is fully relocatable and requires no runtime sources. > to use the app in emacs do > > (setq scheme-program-name "/path/to/cm3/bin/cm") > M-x run-scheme > > building is a snap: > > wget ftp://ccrma-ftp.stanford.edu/pub/Lisp/sndlib.tar.gz > tar -zxf sndlib.tar.gz > cd sndlib > ./configure CC=g++ > make > cd .. > > wget http://camil.music.uiuc.edu/Software/grace/downloads/cm3.tar.gz > tar -zxf cm3.tar.gz > cd cm3 > premake --verbose --target gnu --juce /path/to/juce --sndlib ../sndlib > make > bin/cm > > S7 Scheme 1.2, (c) 2008 William Schottstaedt > SNDLIB 20.10, (c) 2008 William Schottstaedt > /\\\ > ---\\\--------- > ----\\\-------- > ----/\\\------- Common Music 3.2.0 > ---/--\\\------ > --/----\\\----- > / \\\/ > Type 'q' to quit. > cm> (list 1 2 3) > (1 2 3) > cm> (load "/Users/hkt/Software/snd-10/v.scm") > fm-violin > cm> (with-sound () (fm-violin 0 1 440 .1)) > "test.aiff" > cm> (define (foo n ) > (process for i below n > do (display (list i (elapsed))) > (newline) > (wait .5))) > > foo > cm> (sprout (foo 10)) > (0 0.0) > (1 0.5000870000124) > (2 1.0009470000267) > (3 1.5018830000162) > (4 2.0025049999952) > (5 2.5038330000043) > (6 3.0042760000229) > (7 3.5051180000305) > (8 4.006182000041) > (9 4.5074370000362) > cm> q > Killing scheme thread...quitting Scheme > Bye! > > Process scheme finished > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From taube at uiuc.edu Fri Nov 7 16:27:32 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Fri, 7 Nov 2008 18:27:32 -0600 Subject: [CM] clm/cm3 in s7 scheme In-Reply-To: <2eb2318a0811071342t13cd3639ta607548712c458a4@mail.gmail.com> References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> <6AA2F619-7C86-4ABC-98D6-90A8BCBA0D85@uiuc.edu> <2eb2318a0811071342t13cd3639ta607548712c458a4@mail.gmail.com> Message-ID: <4D6987B4-9B39-460B-80DF-D1B1F657A92B@uiuc.edu> i cant imagine what that is. ill poke around. what linux are you on? On Nov 7, 2008, at 3:42 PM, Bill Sack wrote: > hello, > i just tried to build and got this error: > > ==== Building cm ==== > mkdir -p obj/Release > g++ -MMD -D "SNDLIB=1" -D "LINUX=1" -I "../juce/" -I "src" -I > "../sndlib/" -O2 -o obj/Release/CmSupport.o -c src/CmSupport.cpp > src/Scheme.h:79: error: extra qualification ???Scheme::??? on member > ???Scheme??? > make[1]: *** [obj/Release/CmSupport.o] Error 1 > make: *** [cm] Error 2 > > b From bsack23 at gmail.com Fri Nov 7 16:38:10 2008 From: bsack23 at gmail.com (Bill Sack) Date: Fri, 7 Nov 2008 19:38:10 -0500 Subject: [CM] clm/cm3 in s7 scheme In-Reply-To: <2eb2318a0811071636y2f5f8e45m41731fa80036a3fc@mail.gmail.com> References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> <6AA2F619-7C86-4ABC-98D6-90A8BCBA0D85@uiuc.edu> <2eb2318a0811071342t13cd3639ta607548712c458a4@mail.gmail.com> <4D6987B4-9B39-460B-80DF-D1B1F657A92B@uiuc.edu> <2eb2318a0811071636y2f5f8e45m41731fa80036a3fc@mail.gmail.com> Message-ID: <2eb2318a0811071638u37a79031yefc692ae5a339d7b@mail.gmail.com> this is fedora 8 gcc version 4.1.2 20070925 (Red Hat 4.1.2-33) what else might be relevant? On Fri, Nov 7, 2008 at 7:27 PM, Heinrich Taube wrote: > i cant imagine what that is. ill poke around. what linux are you on? > > On Nov 7, 2008, at 3:42 PM, Bill Sack wrote: > >> hello, >> i just tried to build and got this error: >> >> ==== Building cm ==== >> mkdir -p obj/Release >> g++ -MMD -D "SNDLIB=1" -D "LINUX=1" -I "../juce/" -I "src" -I >> "../sndlib/" -O2 -o obj/Release/CmSupport.o -c src/CmSupport.cpp >> src/Scheme.h:79: error: extra qualification ???Scheme::??? on member >> ???Scheme??? >> make[1]: *** [obj/Release/CmSupport.o] Error 1 >> make: *** [cm] Error 2 >> >> b > > From bsack23 at gmail.com Fri Nov 7 17:01:50 2008 From: bsack23 at gmail.com (Bill Sack) Date: Fri, 7 Nov 2008 20:01:50 -0500 Subject: [CM] clm/cm3 in s7 scheme In-Reply-To: <2eb2318a0811071638u37a79031yefc692ae5a339d7b@mail.gmail.com> References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> <6AA2F619-7C86-4ABC-98D6-90A8BCBA0D85@uiuc.edu> <2eb2318a0811071342t13cd3639ta607548712c458a4@mail.gmail.com> <4D6987B4-9B39-460B-80DF-D1B1F657A92B@uiuc.edu> <2eb2318a0811071636y2f5f8e45m41731fa80036a3fc@mail.gmail.com> <2eb2318a0811071638u37a79031yefc692ae5a339d7b@mail.gmail.com> Message-ID: <2eb2318a0811071701r110f3f4dm1c2ec43188c5c6eb@mail.gmail.com> ok, so i did what i shoulda done in the first place and googled the error. turns out it is a gcc v4.1 issue. i found this blogpost: http://www.fourmilab.ch/fourmilog/archives/2006-05/000699.html so i changed the source accordingly at line src/Scheme.h, line 79: class Scheme : public Thread { public: // Scheme::Scheme() ; commented out this Scheme() ;// added this line Scheme(String name, ConsoleWindow *win); (sorry for not doing a diff & patch - i don't really know how to do that) anyway it builds and seems to work, at least so far. b On Fri, Nov 7, 2008 at 7:38 PM, Bill Sack wrote: > this is fedora 8 > gcc version 4.1.2 20070925 (Red Hat 4.1.2-33) > > what else might be relevant? > > On Fri, Nov 7, 2008 at 7:27 PM, Heinrich Taube wrote: >> i cant imagine what that is. ill poke around. what linux are you on? >> >> On Nov 7, 2008, at 3:42 PM, Bill Sack wrote: >> >>> hello, >>> i just tried to build and got this error: >>> >>> ==== Building cm ==== >>> mkdir -p obj/Release >>> g++ -MMD -D "SNDLIB=1" -D "LINUX=1" -I "../juce/" -I "src" -I >>> "../sndlib/" -O2 -o obj/Release/CmSupport.o -c src/CmSupport.cpp >>> src/Scheme.h:79: error: extra qualification ???Scheme::??? on member >>> ???Scheme??? >>> make[1]: *** [obj/Release/CmSupport.o] Error 1 >>> make: *** [cm] Error 2 >>> >>> b >> >> > From k.s.matheussen at notam02.no Thu Nov 6 15:29:31 2008 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Fri, 07 Nov 2008 00:29:31 +0100 (CET) Subject: [CM] Interactive Selection In-Reply-To: <87mygcfj4r.fsf@quasar.esben-stien.name> References: <87mygcfj4r.fsf@quasar.esben-stien.name> Message-ID: On Fri, 7 Nov 2008, Esben Stien wrote: > Any way to do selection a little more interactive? > > What I mean, is f.ex dragging the selection window handles. > > After you've made a selection, if you want to adjust one handle of the > selection, it's impossible; you have to make a totally new selection. > If you're using snd-ls, you can press ctrl to adjust the handles. From k.s.matheussen at notam02.no Sat Nov 8 01:59:57 2008 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Sat, 8 Nov 2008 10:59:57 +0100 (CET) Subject: [CM] Interactive Selection In-Reply-To: References: <87mygcfj4r.fsf@quasar.esben-stien.name> Message-ID: On Fri, 7 Nov 2008, Kjetil S. Matheussen wrote: > > > On Fri, 7 Nov 2008, Esben Stien wrote: > >> Any way to do selection a little more interactive? >> >> What I mean, is f.ex dragging the selection window handles. >> >> After you've made a selection, if you want to adjust one handle of the >> selection, it's impossible; you have to make a totally new selection. >> > > If you're using snd-ls, you can press ctrl to adjust the handles. > Sorry about the double posts. My ISP's smtp server isn't working very well. From taube at uiuc.edu Sat Nov 8 04:41:28 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Sat, 8 Nov 2008 06:41:28 -0600 Subject: [CM] clm/cm3 in s7 scheme In-Reply-To: <2eb2318a0811071701r110f3f4dm1c2ec43188c5c6eb@mail.gmail.com> References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> <6AA2F619-7C86-4ABC-98D6-90A8BCBA0D85@uiuc.edu> <2eb2318a0811071342t13cd3639ta607548712c458a4@mail.gmail.com> <4D6987B4-9B39-460B-80DF-D1B1F657A92B@uiuc.edu> <2eb2318a0811071636y2f5f8e45m41731fa80036a3fc@mail.gmail.com> <2eb2318a0811071638u37a79031yefc692ae5a339d7b@mail.gmail.com> <2eb2318a0811071701r110f3f4dm1c2ec43188c5c6eb@mail.gmail.com> Message-ID: <14584C57-A8C9-4FA2-8D8B-405B4331354D@uiuc.edu> thank you for finding this. ill make a new tarball later today. now on to midi ports! On Nov 7, 2008, at 7:01 PM, Bill Sack wrote: > ok, so i did what i shoulda done in the first place and googled the > error. turns out it is a gcc v4.1 issue. i found this blogpost: > http://www.fourmilab.ch/fourmilog/archives/2006-05/000699.html > > so i changed the source accordingly at line src/Scheme.h, line 79: > > > class Scheme : public Thread > { > public: > // Scheme::Scheme() ; commented out this > Scheme() ;// added this line > Scheme(String name, ConsoleWindow *win); > > (sorry for not doing a diff & patch - i don't really know how to do > that) > > anyway it builds and seems to work, at least so far. > > b > > On Fri, Nov 7, 2008 at 7:38 PM, Bill Sack wrote: >> this is fedora 8 >> gcc version 4.1.2 20070925 (Red Hat 4.1.2-33) >> >> what else might be relevant? >> >> On Fri, Nov 7, 2008 at 7:27 PM, Heinrich Taube >> wrote: >>> i cant imagine what that is. ill poke around. what linux are you on? >>> >>> On Nov 7, 2008, at 3:42 PM, Bill Sack wrote: >>> >>>> hello, >>>> i just tried to build and got this error: >>>> >>>> ==== Building cm ==== >>>> mkdir -p obj/Release >>>> g++ -MMD -D "SNDLIB=1" -D "LINUX=1" -I "../juce/" -I "src" -I >>>> "../sndlib/" -O2 -o obj/Release/CmSupport.o -c src/CmSupport.cpp >>>> src/Scheme.h:79: error: extra qualification ???Scheme::??? on >>>> member >>>> ???Scheme??? >>>> make[1]: *** [obj/Release/CmSupport.o] Error 1 >>>> make: *** [cm] Error 2 >>>> >>>> b >>> >>> >> > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From sandysj at juno.com Sat Nov 8 16:11:11 2008 From: sandysj at juno.com (Jeff Sandys) Date: Sat, 8 Nov 2008 16:11:11 -0800 (PST) Subject: [CM] clm/cm3 in s7 scheme In-Reply-To: <2eb2318a0811071701r110f3f4dm1c2ec43188c5c6eb@mail.gmail.com> References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <6AA2F619-7C86-4ABC-98D6-90A8BCBA0D85@uiuc.edu> <2eb2318a0811071342t13cd3639ta607548712c458a4@mail.gmail.com> <4D6987B4-9B39-460B-80DF-D1B1F657A92B@uiuc.edu> <2eb2318a0811071638u37a79031yefc692ae5a339d7b@mail.gmail.com> <2eb2318a0811071701r110f3f4dm1c2ec43188c5c6eb@mail.gmail.com> Message-ID: <20401955.post@talk.nabble.com> Bill, thanks for the fix, I finally got cm3 running on CCRMA/fc8. -- Jeff Sandys Bill Sack-2 wrote: > > ... > so i changed the source accordingly at line src/Scheme.h, line 79: > > > class Scheme : public Thread > { > public: > // Scheme::Scheme() ; commented out this > Scheme() ;// added this line > Scheme(String name, ConsoleWindow *win); > > ... >>> On Nov 7, 2008, at 3:42 PM, Bill Sack wrote: > ... >>>> i just tried to build and got this error: >>>> >>>> ==== Building cm ==== >>>> mkdir -p obj/Release >>>> g++ -MMD -D "SNDLIB=1" -D "LINUX=1" -I "../juce/" -I "src" -I >>>> "../sndlib/" -O2 -o obj/Release/CmSupport.o -c src/CmSupport.cpp >>>> src/Scheme.h:79: error: extra qualification ???Scheme::??? on member >>>> ???Scheme??? >>>> make[1]: *** [obj/Release/CmSupport.o] Error 1 >>>> make: *** [cm] Error 2 > -- View this message in context: http://www.nabble.com/clm-cm3-in-s7-scheme-tp20244275p20401955.html Sent from the CCRMA - CMdist mailing list archive at Nabble.com. From taube at uiuc.edu Sun Nov 9 11:47:51 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Sun, 9 Nov 2008 13:47:51 -0600 Subject: [CM] clm/cm3 in s7 scheme In-Reply-To: <20401955.post@talk.nabble.com> References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <6AA2F619-7C86-4ABC-98D6-90A8BCBA0D85@uiuc.edu> <2eb2318a0811071342t13cd3639ta607548712c458a4@mail.gmail.com> <4D6987B4-9B39-460B-80DF-D1B1F657A92B@uiuc.edu> <2eb2318a0811071638u37a79031yefc692ae5a339d7b@mail.gmail.com> <2eb2318a0811071701r110f3f4dm1c2ec43188c5c6eb@mail.gmail.com> <20401955.post@talk.nabble.com> Message-ID: sorry i just updated the cm3 tarball with that fix and removed a possible conflict with the (run) macro in sndlib. i hope to have midi ports working in the next tarball. http://camil.music.uiuc.edu/Software/grace/downloads/cm3.tar.gz On Nov 8, 2008, at 6:11 PM, Jeff Sandys wrote: > > Bill, thanks for the fix, I finally got cm3 running on CCRMA/fc8. > -- Jeff Sandys > > > Bill Sack-2 wrote: >> >> ... >> so i changed the source accordingly at line src/Scheme.h, line 79: >> >> >> class Scheme : public Thread >> { >> public: >> // Scheme::Scheme() ; commented out this >> Scheme() ;// added this line >> Scheme(String name, ConsoleWindow *win); >> >> ... >>>> On Nov 7, 2008, at 3:42 PM, Bill Sack wrote: >> ... >>>>> i just tried to build and got this error: >>>>> >>>>> ==== Building cm ==== >>>>> mkdir -p obj/Release >>>>> g++ -MMD -D "SNDLIB=1" -D "LINUX=1" -I "../juce/" -I "src" -I >>>>> "../sndlib/" -O2 -o obj/Release/CmSupport.o -c src/CmSupport.cpp >>>>> src/Scheme.h:79: error: extra qualification ???Scheme::??? on >>>>> member >>>>> ???Scheme??? >>>>> make[1]: *** [obj/Release/CmSupport.o] Error 1 >>>>> make: *** [cm] Error 2 >> > > -- > View this message in context: http://www.nabble.com/clm-cm3-in-s7-scheme-tp20244275p20401955.html > Sent from the CCRMA - CMdist mailing list archive at Nabble.com. > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From b0ef at esben-stien.name Sun Nov 9 14:37:12 2008 From: b0ef at esben-stien.name (Esben Stien) Date: Sun, 09 Nov 2008 23:37:12 +0100 Subject: [CM] Interactive Selection In-Reply-To: (Kjetil S. Matheussen's message of "Fri, 7 Nov 2008 00:59:18 +0100 (CET)") References: <87mygcfj4r.fsf@quasar.esben-stien.name> Message-ID: <87od0ocyqv.fsf@quasar.esben-stien.name> "Kjetil S. Matheussen" writes: > If you're using snd-ls, you can press ctrl to adjust the handles. hehe, excellent;) - thanks -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From taube at uiuc.edu Mon Nov 10 17:47:26 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Mon, 10 Nov 2008 19:47:26 -0600 Subject: [CM] midi ports/clm/cm3 in s7 scheme In-Reply-To: <2eb2318a0811071701r110f3f4dm1c2ec43188c5c6eb@mail.gmail.com> References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> <6AA2F619-7C86-4ABC-98D6-90A8BCBA0D85@uiuc.edu> <2eb2318a0811071342t13cd3639ta607548712c458a4@mail.gmail.com> <4D6987B4-9B39-460B-80DF-D1B1F657A92B@uiuc.edu> <2eb2318a0811071636y2f5f8e45m41731fa80036a3fc@mail.gmail.com> <2eb2318a0811071638u37a79031yefc692ae5a339d7b@mail.gmail.com> <2eb2318a0811071701r110f3f4dm1c2ec43188c5c6eb@mail.gmail.com> Message-ID: the latest tarball has the midi ports/thread working in s7. i ran a few processes, including the double process reich example in real time and s7 seems to keep up fine. since there is no gui ive added some stuff to cm3 to manage ports, and ill extend it to files in the next tarball so cm3 will seem much more like cm2. at that point i dont think there is any reason to use the cm2 branch unless common lisp itself if important. here are the two main additions to cm3: (ports) returns info about ports and devices (only the midi port right now) (open "name.port" ...) opens port i dont have the send macro yet, but you can use all the underlying functions. here is an example, see cm3/scm/example.scm for more info zippy:cm3 hkt$ bin/cm S7 Scheme 1.2, (c) 2008 William Schottstaedt SNDLIB 20.10, (c) 2008 William Schottstaedt /\\\ ---\\\--------- ----\\\-------- ----/\\\------- Common Music 3.2.0 ---/--\\\------ --/----\\\----- / \\\/ Type 'q' to quit. cm> (ports) (("midiout.port" ("IAC Driver Bus 1" 0 #f)) ("midiin.port" ("IAC Driver Bus 1" 0 #f) ("Musical Typing Keyboard" 1 #f))) cm> (open "midiout.port" 0) CoreMidi - opening out: Bus 1 cm> (mp:midi 0 1 60 .8) cm> (define (simp n r lb ub) (process repeat n do (mp:midi :key (between lb ub)) (wait r))) simp cm> (sprout (simp 10 .25 60 72)) cm> From oded at ccrma.Stanford.EDU Tue Nov 11 02:19:23 2008 From: oded at ccrma.Stanford.EDU (Oded Ben-Tal) Date: Tue, 11 Nov 2008 02:19:23 -0800 (PST) Subject: [CM] style warning and other minor problems In-Reply-To: References: Message-ID: I installed the latest cm/clm-sbcl from the planet. I'm running cm/clm in emacs mode and it's basically working but when I load instruments (grani.ins strad.ins ...) I get these warnings: STYLE-WARNING: Undefined alien: "current_thread" STYLE-WARNING: Undefined alien: "osc_recv_stop" STYLE-WARNING: Undefined alien: "osc_recv_state" STYLE-WARNING: Undefined alien: "osc_recv_start" STYLE-WARNING: Undefined alien: "osc_priority_min" STYLE-WARNING: Undefined alien: "osc_priority_max" another interesting feature is that I can't quit the interpreter. (quit) doesn't seem to do anything. Not major issues fortunately. Oded -- ___________________________________________________ Oded Ben-Tal http://ccrma.stanford.edu/~oded oded at ccrma.stanford.edu From rpmohn at waxandwane.org Tue Nov 11 07:01:24 2008 From: rpmohn at waxandwane.org (Ross Mohn) Date: Tue, 11 Nov 2008 10:01:24 -0500 Subject: [CM] midi ports/clm/cm3 in s7 scheme In-Reply-To: References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> <6AA2F619-7C86-4ABC-98D6-90A8BCBA0D85@uiuc.edu> <2eb2318a0811071342t13cd3639ta607548712c458a4@mail.gmail.com> <4D6987B4-9B39-460B-80DF-D1B1F657A92B@uiuc.edu> <2eb2318a0811071636y2f5f8e45m41731fa80036a3fc@mail.gmail.com> <2eb2318a0811071638u37a79031yefc692ae5a339d7b@mail.gmail.com> <2eb2318a0811071701r110f3f4dm1c2ec43188c5c6eb@mail.gmail.com> Message-ID: <20081111150124.GA24847@fisher.waxandwane.org> On Mon, Nov 10, 2008 at 07:47:26PM -0600, Heinrich Taube wrote: > the latest tarball has the midi ports/thread working in s7. i ran a > few processes, including the double process reich example in real > time and s7 seems to keep up fine. > > since there is no gui ive added some stuff to cm3 to manage ports, and > ill extend it to files in the next tarball so cm3 will seem much more > like cm2. at that point i dont think there is any reason to use the > cm2 branch unless common lisp itself if important. here are the two I haven't tried the latest standalone cm3 yet, but I think one important piece that is still missing is Fomus. -Ross From taube at uiuc.edu Tue Nov 11 07:59:33 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Tue, 11 Nov 2008 09:59:33 -0600 Subject: [CM] midi ports/clm/cm3 in s7 scheme In-Reply-To: <20081111150124.GA24847@fisher.waxandwane.org> References: <8D558D76-916D-4ECC-BFE8-BA69A1F7327D@uiuc.edu> <2eb2318a0811031347k6f84daddh3b60f90922bdd435@mail.gmail.com> <6AA2F619-7C86-4ABC-98D6-90A8BCBA0D85@uiuc.edu> <2eb2318a0811071342t13cd3639ta607548712c458a4@mail.gmail.com> <4D6987B4-9B39-460B-80DF-D1B1F657A92B@uiuc.edu> <2eb2318a0811071636y2f5f8e45m41731fa80036a3fc@mail.gmail.com> <2eb2318a0811071638u37a79031yefc692ae5a339d7b@mail.gmail.com> <2eb2318a0811071701r110f3f4dm1c2ec43188c5c6eb@mail.gmail.com> <20081111150124.GA24847@fisher.waxandwane.org> Message-ID: <73A925E5-00FA-44A7-8E54-EBD4A6249967@uiuc.edu> i dont know whats up with fomus, last i heard from David he thought he would have something this fall. once he has a libfomus.a i can write a scheme binding to it. On Nov 11, 2008, at 9:01 AM, Ross Mohn wrote: > On Mon, Nov 10, 2008 at 07:47:26PM -0600, Heinrich Taube wrote: >> the latest tarball has the midi ports/thread working in s7. i ran a >> few processes, including the double process reich example in real >> time and s7 seems to keep up fine. >> >> since there is no gui ive added some stuff to cm3 to manage ports, >> and >> ill extend it to files in the next tarball so cm3 will seem much more >> like cm2. at that point i dont think there is any reason to use the >> cm2 branch unless common lisp itself if important. here are the two > > I haven't tried the latest standalone cm3 yet, but I think one > important > piece that is still missing is Fomus. > > -Ross > From bsack23 at gmail.com Sat Nov 15 08:31:44 2008 From: bsack23 at gmail.com (Bill Sack) Date: Sat, 15 Nov 2008 11:31:44 -0500 Subject: [CM] cm3 & s7 in xemacs? Message-ID: <2eb2318a0811150831j4650dcf3l6d2938e612d52f91@mail.gmail.com> hi all, this is not really a cm problem, but i'm curious: i've tried a few different ways to get the new cm3/s7 thing running interactively in xemacs, but each time only succeed in getting a prompt that doesn't evaluate input - i can type at the prompt, but hitting 'enter' doesn't produce the expected interaction. i've tried the following in my .xemacs/init.el (setq scheme-program-name "/usr/local/bin/cm3") ;;M-x run-scheme (setq cm3 "/usr/local/bin/cm3") (defun cm3s7 () (inferior-lisp cm3)) ;;M-: (cm3s7) (defun cm3s7 () "Runs cm3 in s7 scheme" (interactive) (run-scheme "/usr/local/bin/cm3 -emacs") (process-kill-without-query (get-process "scheme"))) ;;M-: (cm3s7) each of these has pretty much the same effect. but any of these work perfectly in emacs ... any thoughts? b -------------- next part -------------- An HTML attachment was scrubbed... URL: From taube at uiuc.edu Sat Nov 15 08:57:04 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Sat, 15 Nov 2008 10:57:04 -0600 Subject: [CM] cm3 & s7 in xemacs? In-Reply-To: <2eb2318a0811150831j4650dcf3l6d2938e612d52f91@mail.gmail.com> References: <2eb2318a0811150831j4650dcf3l6d2938e612d52f91@mail.gmail.com> Message-ID: <03510C7F-9D7E-4A62-95F5-F1D1FBF3B27E@uiuc.edu> Im using Aquamacs (a fabulous emacs) this is what i have in my .emacs (defun cm3 () (run-scheme "/Users/hkt/Software/cm3/bin/cm")) Then i type: M-: (cm3) and i get a buffer running cm3 that work fine, at least with my limited testing. what happens if you start a shell and then invoke cm3t by hand?? M-x: shell /usr/local/bin/cm3 i hope to have a new tarball later today or tomorrow with file output working a la cm2. From bsack23 at gmail.com Sun Nov 16 14:46:06 2008 From: bsack23 at gmail.com (Bill Sack) Date: Sun, 16 Nov 2008 17:46:06 -0500 Subject: [CM] cm3 & s7 in xemacs? In-Reply-To: <03510C7F-9D7E-4A62-95F5-F1D1FBF3B27E@uiuc.edu> References: <2eb2318a0811150831j4650dcf3l6d2938e612d52f91@mail.gmail.com> <03510C7F-9D7E-4A62-95F5-F1D1FBF3B27E@uiuc.edu> Message-ID: <2eb2318a0811161446i5612e929xfe81de9e93d9d13@mail.gmail.com> > what happens if you start a shell and then invoke cm3t by hand?? > > M-x: shell > /usr/local/bin/cm3 this works! it'll do fine for now. > i hope to have a new tarball later today or tomorrow with file output working a la cm2. what are the chances at this point for clm output a la cm2? or even (dare i ask) cmn? is real-time cm3->clm/snd a possibility? that'd be pretty cool ... maybe i should look at the sources and inform myself. b From taube at uiuc.edu Sun Nov 16 16:13:48 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Sun, 16 Nov 2008 18:13:48 -0600 Subject: [CM] cm3 & s7 in xemacs? In-Reply-To: <2eb2318a0811161446i5612e929xfe81de9e93d9d13@mail.gmail.com> References: <2eb2318a0811150831j4650dcf3l6d2938e612d52f91@mail.gmail.com> <03510C7F-9D7E-4A62-95F5-F1D1FBF3B27E@uiuc.edu> <2eb2318a0811161446i5612e929xfe81de9e93d9d13@mail.gmail.com> Message-ID: <52A08CA6-0C7F-4F6A-97D9-7FCA97F4EDCE@uiuc.edu> > what are the chances at this point for clm output a la cm2? i now have processes transparently generating to audio and midi files, all you do is pass a file name to (sprout ...), in which case the scheduler opens a file and automatically kicks into faster-than-real time, so cm> (sprout (foo) ) runs in real time and cm> (sprout (foo) "test.mid") is like calling 'events' in cm2. it works for SndLib instruments too so clm audio file output is there right now! i havent relased a tarball today because i cant adquately protect againt errors under callbacks yet, i hope this will be working soon. > > or even (dare i ask) cmn? cmn uses common lisp's object system, that would be very difficult to port to scheme. but if Fomus ever appears as a C lib it would be "easy" to send data to it. it looks like david is still hacking on it at sourceforge so i havent given up hope yet. > is real-time cm3->clm/snd a possibility? that'd be pretty cool ... > maybe i should look at the sources and inform myself. realtime sndlib instruments would be awesome. it might be possible, i may have a go at it over christmas. From paulreiners1685 at mac.com Sun Nov 16 11:11:23 2008 From: paulreiners1685 at mac.com (Paul Reiners) Date: Sun, 16 Nov 2008 13:11:23 -0600 Subject: [CM] Fwd: GUIs on Mac OS X References: <38414882-9AC3-4AF9-880F-E30EEC570DA6@gmail.com> Message-ID: <1EB15FC3-EFBE-40A1-807D-9E6425E307DF@mac.com> What's the easiest way to create GUIs on Mac OS X for programs I write using Common Music? From bsack23 at gmail.com Mon Nov 17 06:35:01 2008 From: bsack23 at gmail.com (Bill Sack) Date: Mon, 17 Nov 2008 09:35:01 -0500 Subject: [CM] cm3 & s7 in xemacs? In-Reply-To: <52A08CA6-0C7F-4F6A-97D9-7FCA97F4EDCE@uiuc.edu> References: <2eb2318a0811150831j4650dcf3l6d2938e612d52f91@mail.gmail.com> <03510C7F-9D7E-4A62-95F5-F1D1FBF3B27E@uiuc.edu> <2eb2318a0811161446i5612e929xfe81de9e93d9d13@mail.gmail.com> <52A08CA6-0C7F-4F6A-97D9-7FCA97F4EDCE@uiuc.edu> Message-ID: <2eb2318a0811170635x147edbf6r5096c1340a229910@mail.gmail.com> >> or even (dare i ask) cmn? > > cmn uses common lisp's object system, that would be very difficult to port > to scheme. yes, i remembered this five minutes after i sent the message, oops. > realtime sndlib instruments would be awesome. it might be possible, i may > have a go at it over christmas. fantastic! b From taube at uiuc.edu Mon Nov 17 07:02:29 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Mon, 17 Nov 2008 09:02:29 -0600 Subject: [CM] cm3 & s7 in xemacs? In-Reply-To: <2eb2318a0811170635x147edbf6r5096c1340a229910@mail.gmail.com> References: <2eb2318a0811150831j4650dcf3l6d2938e612d52f91@mail.gmail.com> <03510C7F-9D7E-4A62-95F5-F1D1FBF3B27E@uiuc.edu> <2eb2318a0811161446i5612e929xfe81de9e93d9d13@mail.gmail.com> <52A08CA6-0C7F-4F6A-97D9-7FCA97F4EDCE@uiuc.edu> <2eb2318a0811170635x147edbf6r5096c1340a229910@mail.gmail.com> Message-ID: >> have a go at it over christmas. > fantastic! this is what bil wrote to me: > If there were code to take arrays of samples, > and interleave them for the DAC, each clm instrument could > write its note to such an array, then pass it to the interleaver, > or something like that. ive not tackled juce audio before, maybe this could be done with juce's audioSampleBuffer.addFrom() . iif someone has an idea it would be great to hear! :) From andersvi at extern.uio.no Mon Nov 17 12:05:33 2008 From: andersvi at extern.uio.no (andersvi at extern.uio.no) Date: Mon, 17 Nov 2008 21:05:33 +0100 Subject: [CM] cm3 & s7 in xemacs? In-Reply-To: <2eb2318a0811161446i5612e929xfe81de9e93d9d13@mail.gmail.com> (Bill Sack's message of "Sun, 16 Nov 2008 17:46:06 -0500") References: <2eb2318a0811150831j4650dcf3l6d2938e612d52f91@mail.gmail.com> <03510C7F-9D7E-4A62-95F5-F1D1FBF3B27E@uiuc.edu> <2eb2318a0811161446i5612e929xfe81de9e93d9d13@mail.gmail.com> Message-ID: >>>>> "B" == Bill Sack writes: B> or even (dare i ask) cmn? Some years ago i made a guile-translation of cmn. It sort of worked at the time, but checking now i cant make it compile any output-files. It might be a good place to start for brave souls. As i remember it now, the CLOS-part was easy to port to guiles various ways. The main showstopper at the time were 2: very slow CMN heavily using multiple name-spaces (ie. 'staff and 'staff are both a function and a variable) and only a single name-space in scheme. The translation from 2003 used capitalized variable-names to distinguis them ie. '(staff ...) and 'Staff You can download it here, and see how far you get: http://www.notam02.no/~andersvi/cmn-guile.tar.bz2 -anders From bil at ccrma.Stanford.EDU Mon Nov 17 12:33:55 2008 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 17 Nov 2008 12:33:55 -0800 Subject: [CM] cm3 & s7 in xemacs? In-Reply-To: References: <2eb2318a0811150831j4650dcf3l6d2938e612d52f91@mail.gmail.com> <03510C7F-9D7E-4A62-95F5-F1D1FBF3B27E@uiuc.edu> <2eb2318a0811161446i5612e929xfe81de9e93d9d13@mail.gmail.com> Message-ID: <20081117202815.M1181@ccrma.Stanford.EDU> I also have Anders' code and vaguely remember working on it a long time ago -- a good idea that got pushed so far down my queue that it fell off. I now think the CLOS stuff was a mistake, but when I started, it seemed like a natural approach. The other major problem is that people doing notation are calligraphers, and I was aiming the thing at composers who were tired of reading notelists -- music notation is instantaneous, whereas a notelist is a headache. So, it got caught in the same bog that the Snd recorder got mired in -- featuritis to the point of unusability. From k.s.matheussen at notam02.no Mon Nov 17 13:11:44 2008 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Mon, 17 Nov 2008 22:11:44 +0100 (CET) Subject: [CM] cm3 & s7 in xemacs? In-Reply-To: <20081117202815.M1181@ccrma.Stanford.EDU> References: <2eb2318a0811150831j4650dcf3l6d2938e612d52f91@mail.gmail.com> <03510C7F-9D7E-4A62-95F5-F1D1FBF3B27E@uiuc.edu> <2eb2318a0811161446i5612e929xfe81de9e93d9d13@mail.gmail.com> <20081117202815.M1181@ccrma.Stanford.EDU> Message-ID: On Mon, 17 Nov 2008, Bill Schottstaedt wrote: > I also have Anders' code and vaguely remember working on it a long > time ago -- a good idea that got pushed so far down my queue that > it fell off. I now think the CLOS stuff was a mistake, but when I started, > it seemed like a natural approach. The other major problem is that > people doing notation are calligraphers, and I was aiming the thing > at composers who were tired of reading notelists -- music notation > is instantaneous, whereas a notelist is a headache. So, it got caught > in the same bog that the Snd recorder got mired in -- featuritis > to the point of unusability. > Well, My experience with CMN is very positive, perhaps it has even changed my life... Not only does CMN have the prettiest score notation syntax, at least I think so, and I've seen many of them, but in 1998, CMN was also my first exposure to lisp. Before that I only new about BEGIN, {, [], etc., but I still thought those paranthesis were really beautiful and easy to understand. And they could even be used for making scores! From taube at uiuc.edu Tue Nov 18 04:13:47 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Tue, 18 Nov 2008 06:13:47 -0600 Subject: [CM] cm3/sndlib with audio and midi file generation Message-ID: <35FBD5DA-76FD-43E9-946B-C0B2B072E191@uiuc.edu> the new cm3 tarball has sndlib audio file and midi file output working for processes. you need the lastest sndlib for this. http://camil.music.uiuc.edu/Software/grace/downloads/cm3.tar.gz to generate a file just pass the file name to (sprout ...) See cm3/scm/ examples.scm for some examples of realtime and the new file based, faster-than-real time generation. ive also added a simple SNDLIB instrument called 'wave' to the runtime sources (sine with amp and gliss control) so no need to load anything, you can generate audio immediately: $ bin/cm3 cm> (with-sound() (wave 0 1 440 .1)) "test.aiff" cm> (define (simpwav n r d lb ub) (process repeat n for k = (between lb ub) for t = (elapsed #t) do (wave t d (hz k) .1) (wait r))) simpwav cm> (sprout (simpwav 10 .2 .1 60 80) "test.aiff") Output: "test.aiff" Channels: 1 Srate: 44100.0 cm> note that, since sprout returns immediatly, you will know that the sound file computation is done when the file info is printed to the screen. also you can use (elapsed #t) to get the true score time of the process to pass to a clm insrument (calling just (elapsed) continues to return the relative run time since the process started) right now the :play option to with-sound or sprout doesnt work. still alot to do, but its basically working. way cool! From errordeveloper at gmail.com Sun Nov 23 13:21:47 2008 From: errordeveloper at gmail.com (errordeveloper at gmail.com) Date: Sun, 23 Nov 2008 21:21:47 +0000 Subject: [CM] remastering with Snd Message-ID: <20081123212146.GC10844@00110101.errordevlopment.0> Hello list. I wonder if anyone had used Snd for remasteriing .. I'm very interested to learn how to do it! the main thing (as i undertand are GATES and filters, band gates and such stuff) .. i'm not too keen on using plugins, but if there any good for linux i'd like to see what they do as well ;) From taube at uiuc.edu Thu Nov 27 06:24:25 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Thu, 27 Nov 2008 08:24:25 -0600 Subject: [CM] SAL in S7 Message-ID: <19FDC171-A9EB-4CE4-8682-98062959BB04@uiuc.edu> The latest cm3 tarball has SAL working in S7/SndLib: http://camil.music.uiuc.edu/Software/grace/downloads/cm3.tar.gz The tarball includes Sal-mode for Emacs for evalling/highlighting in sal buffers. See m3/readme.text for the tiny snippet to add to your .emacs file. (It also colorizes definstrument, run etc in scheme mode) Then start cm and edit a .sal buffer M-x: cm C-xC-f: test.sal the use C-xC-e to eval sal commands (Command-Return works on Mac, too). See etc/examples.sal and examples.scm for more info ;------------------------test.sal print "hiho!" ; try the built in wave instrument define process simpwav( n, r, d, lb, ub) run repeat n for k = between( lb, ub) for t = elapsed(#t) send wave, t, d, hz( k), .1 wait r end sprout simpwav( 10, .2, .1, 60, 80) , "~/test.aiff" ;----------- since SndLib has interpreted instruments ill add a 'define instrument ' in sal, i think maybe i just need to add statements for 'outa' and friends. Gobble gobble! --rick From nando at ccrma.Stanford.EDU Thu Nov 27 13:53:33 2008 From: nando at ccrma.Stanford.EDU (Fernando Lopez-Lezcano) Date: Thu, 27 Nov 2008 13:53:33 -0800 Subject: [CM] cm3/sndlib with audio and midi file generation In-Reply-To: <35FBD5DA-76FD-43E9-946B-C0B2B072E191@uiuc.edu> References: <35FBD5DA-76FD-43E9-946B-C0B2B072E191@uiuc.edu> Message-ID: <1227822813.26391.39.camel@localhost.localdomain> On Tue, 2008-11-18 at 06:13 -0600, Heinrich Taube wrote: > the new cm3 tarball has sndlib audio file and midi file output working > for processes. you need the lastest sndlib for this. > > http://camil.music.uiuc.edu/Software/grace/downloads/cm3.tar.gz Trying to build (on Linux)... Needs premake, so got it and compiled it, needs juce, got a newer package going and installed it. Got the current sndlib: ./configure --prefix=/usr --with-alsa --with-jack --with-s7 make (configure is not entirely happy: ./configure: line 14998: jack: command not found ./configure: line 15003: jack: command not found ./configure: line 15004: jack: command not found but it finishes and the result can be "made") then cd ../cm3 ./premake --verbose --target gnu --sndlib ../sndlib --juce /usr/share/juce then a make which finishes with: g++: ../sndlib/sndlib.a: No such file or directory and of course there is no sndlib static library available. Nor (apparently) a way to enable it in sndlib's configure or make (AFAICT - --enable-static did not get recognized). How was this tested?? So, try to hand compile a sndlib.a in the sndlib dir: gcc headers.o audio.o io.o sound.o xen.o vct.o clm.o sndlib2xen.o clm2xen.o midi.o run.o s7.o -o sndlib.a -shared -lsamplerate -lgsl -lgslcblas -lm -ljack probably not the right invocation but what do I know (NOTE: I had to add the -ljack by hand, it is not added by sndlib and you get undefined references if it is not there). So then go back and try again: $ make ==== Building cm ==== mkdir -p bin mkdir -p . mkdir -p bin g++ -o bin/cm obj/Release/Scanner.o obj/Release/Syntax.o obj/Release/CmSupport.o obj/Release/Console.o obj/Release/Scheme.o obj/Release/SchemeSources.o obj/Release/Midi.o obj/Release/Main.o obj/Release/SndLib.o obj/Release/SndLibBridge.o -Lbin -L. -s -L"/usr/share/juce/bin" -L"/usr/X11R6/lib/" -ljuce -l freetype -l pthread -l rt -l X11 -l GL -l GLU -l Xinerama -l asound ../sndlib/sndlib.a obj/Release/SndLib.o: In function `g_random_w(s7_scheme*, s7_cell*)': SndLib.cpp:(.text+0x325): undefined reference to `xen_s7_c_to_xen_string' obj/Release/SndLib.o: In function `g_delete_file_w(s7_scheme*, s7_cell*)': SndLib.cpp:(.text+0x425): undefined reference to `xen_s7_c_to_xen_string' obj/Release/SndLib.o: In function `g_file_exists_p_w(s7_scheme*, s7_cell*)': SndLib.cpp:(.text+0x525): undefined reference to `xen_s7_c_to_xen_string' collect2: ld returned 1 exit status make[1]: *** [bin/cm] Error 1 make: *** [cm] Error 2 ARGH... appears to be internal to sndlib? ... _And_, what is the problem with having VERSIONS??? Why is it that, cm3 is just "cm3.tar.gz"? And there is no way to know if it is newer, has been updated and has changed save for looking at the date of the file in the filesystem, provided you kept the date of the old one handy. I'll probably roll out a package if it ever builds, what is it going to be the version? If you don't like version numbers 'cause of a "rolling release" thing, just use a date as part of the tarball (say, "cm3-2008.11.26.tar.gz") and then keep it consistent from release to release, please. Thanks for listening... -- Fernando > to generate a file just pass the file name to (sprout ...) See cm3/scm/ > examples.scm for some examples of realtime and the new file based, > faster-than-real time generation. ive also added a simple SNDLIB > instrument called 'wave' to the runtime sources (sine with amp and > gliss control) so no need to load anything, you can generate audio > immediately: > > $ bin/cm3 > cm> (with-sound() (wave 0 1 440 .1)) > "test.aiff" > > cm> (define (simpwav n r d lb ub) > (process repeat n > for k = (between lb ub) > for t = (elapsed #t) > do > (wave t d (hz k) .1) > (wait r))) > simpwav > > cm> (sprout (simpwav 10 .2 .1 60 80) "test.aiff") > Output: "test.aiff" > Channels: 1 > Srate: 44100.0 > > cm> > > note that, since sprout returns immediatly, you will know that the > sound file computation is done when the file info is printed to the > screen. also you can use (elapsed #t) to get the true score time of > the process to pass to a clm insrument (calling just (elapsed) > continues to return the relative run time since the process started) > > right now the :play option to with-sound or sprout doesnt work. still > alot to do, but its basically working. way cool! From taube at uiuc.edu Thu Nov 27 15:02:00 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Thu, 27 Nov 2008 17:02:00 -0600 Subject: [CM] cm3/sndlib with audio and midi file generation In-Reply-To: <1227822813.26391.39.camel@localhost.localdomain> References: <35FBD5DA-76FD-43E9-946B-C0B2B072E191@uiuc.edu> <1227822813.26391.39.camel@localhost.localdomain> Message-ID: <31426D5C-C453-4E44-8720-D591C8C5E657@uiuc.edu> nando ill have a go on my linux (ubuntu) it was building last week so its something simple. > Got the current sndlib: > ./configure --prefix=/usr --with-alsa --with-jack --with-s7 > make but for starters I dont thing thats the way to build sndlib for c++, you need to pass CC=g++ to configure if you look in my readme.text i have this: cd /path/to/sndlib ./configure CC=g++ make cd /path/to/cm3 premake --verbose --target gnu --juce /path/to/juce --sndlib /path/ to/sndlib make bin/cm ill reply to your other issues once I test build on ubuntu. i have to travel tomorrow so it may take a day to get back to you. its cm3.tar.gz while im still porting the code. once its stable ill check everyting into a new svn repostiory at sourceforge From taube at uiuc.edu Thu Nov 27 15:21:04 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Thu, 27 Nov 2008 17:21:04 -0600 Subject: [CM] cm3/sndlib with audio and midi file generation In-Reply-To: <31426D5C-C453-4E44-8720-D591C8C5E657@uiuc.edu> References: <35FBD5DA-76FD-43E9-946B-C0B2B072E191@uiuc.edu> <1227822813.26391.39.camel@localhost.localdomain> <31426D5C-C453-4E44-8720-D591C8C5E657@uiuc.edu> Message-ID: <5A1D7AAA-3A56-4073-BF62-433045DE55A1@uiuc.edu> there is a problem with me using #:keywords in the very latest s7 so dont try building until i know what to do. ill post a note when its safe to compile on linux. On Nov 27, 2008, at 5:02 PM, Heinrich Taube wrote: > linux From nando at ccrma.Stanford.EDU Thu Nov 27 15:54:31 2008 From: nando at ccrma.Stanford.EDU (Fernando Lopez-Lezcano) Date: Thu, 27 Nov 2008 15:54:31 -0800 Subject: [CM] cm3/sndlib with audio and midi file generation In-Reply-To: <31426D5C-C453-4E44-8720-D591C8C5E657@uiuc.edu> References: <35FBD5DA-76FD-43E9-946B-C0B2B072E191@uiuc.edu> <1227822813.26391.39.camel@localhost.localdomain> <31426D5C-C453-4E44-8720-D591C8C5E657@uiuc.edu> Message-ID: <1227830071.26391.53.camel@localhost.localdomain> On Thu, 2008-11-27 at 17:02 -0600, Heinrich Taube wrote: > nando ill have a go on my linux (ubuntu) it was building last week so > its something simple. > > > Got the current sndlib: > > ./configure --prefix=/usr --with-alsa --with-jack --with-s7 > > make > > but for starters I dont thing thats the way to build sndlib for c++, > you need to pass CC=g++ to configure thanks... > if you look in my readme.text i have this: > > cd /path/to/sndlib > ./configure CC=g++ that build an OSS version... So you should be at least: ./configure CC=g++ --with-alsa (that works, creates a sndlib.a) but (desirable to have jack support): ./configure CC=g++ --with-alsa --with-jack stops with: $ make g++ -c -DHAVE_CONFIG_H -I. -g -O2 -fPIC -I/usr/include headers.c g++ -c -DHAVE_CONFIG_H -I. -g -O2 -fPIC -I/usr/include audio.c audio.c: In function ?int sndjack_read(void*, int, int)?: audio.c:8350: error: invalid conversion from ?void*? to ?float*? audio.c:8351: error: invalid conversion from ?void*? to ?short int*? audio.c:8352: error: invalid conversion from ?void*? to ?char*? audio.c: In function ?int sndjack_init()?: audio.c:8497: error: invalid conversion from ?void*? to ?SndjackChannel*? audio.c:8498: error: invalid conversion from ?void*? to ?SndjackChannel*? audio.c:8501: error: invalid conversion from ?void*? to ?sample_t*? audio.c:8504: error: invalid conversion from ?void*? to ?sample_t*? audio.c: In function ?int jack_mus_audio_initialize()?: audio.c:8703: error: invalid conversion from ?void*? to ?sample_t**? audio.c:8705: error: invalid conversion from ?void*? to ?sample_t*? audio.c:8706: error: invalid conversion from ?void*? to ?sample_t*? audio.c:8708: error: invalid conversion from ?void*? to ?SRC_STATE**? audio.c: In function ?char* jack_mus_audio_system_name(int)?: audio.c:9082: warning: deprecated conversion from string constant to ?char*? audio.c: In function ?char* jack_mus_audio_moniker()?: audio.c:9083: warning: deprecated conversion from string constant to ?char*? make: *** [audio.o] Error 1 > make > cd /path/to/cm3 > premake --verbose --target gnu --juce /path/to/juce --sndlib /path/ > to/sndlib > make depends on how you built sndlib, if with alsa and you have gsl installed then you need to add `gsl-config --libs` to the libs you link against (did that manually). > bin/cm It then builds but there are problems as you note in the other message - a bunch of 'undefined sharp expression' messages. Thanks for the help. (and have a good trip!) -- Fernando > ill reply to your other issues once I test build on ubuntu. i have to > travel tomorrow so it may take a day to get back to you. > > > its cm3.tar.gz while im still porting the code. once its stable ill > check everyting into a new svn repostiory at sourceforge From bil at ccrma.Stanford.EDU Fri Nov 28 03:52:16 2008 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 28 Nov 2008 03:52:16 -0800 Subject: [CM] Snd 10.2 Message-ID: <20081128115136.M16723@ccrma.Stanford.EDU> Snd 10.2 added osc.scm thanks to Kjetil. many improvements thanks to Mike and Rick. removed Gauche support. moved the run macro from snd-run.c to run.c and put it in sndlib. removed s7-format.scm -- format is now built-in. removed s7-optargs.scm -- define* is also built-in. The main difference between the two versions of define* is that the s7 version does not (currently anyway) accept expressions as default values. checked: gtk 2.14.4|5, clisp 2.47, sbcl 1.0.22, fftw 3.2 Thanks!: Rick, Kjetil, Meino Cramer, Mike Scholz, David Lowenfels, Hayahiko Moro. From bil at ccrma.Stanford.EDU Fri Nov 28 04:17:12 2008 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 28 Nov 2008 04:17:12 -0800 Subject: [CM] cm3/sndlib with audio and midi file generation In-Reply-To: <1227830071.26391.53.camel@localhost.localdomain> References: <35FBD5DA-76FD-43E9-946B-C0B2B072E191@uiuc.edu> <1227822813.26391.39.camel@localhost.localdomain> <31426D5C-C453-4E44-8720-D591C8C5E657@uiuc.edu> <1227830071.26391.53.camel@localhost.localdomain> Message-ID: <20081128121534.M23663@ccrma.Stanford.EDU> > SndLib.cpp:(.text+0x525): undefined reference to `xen_s7_c_to_xen_string' I think this would happen if you used gcc to make sndlib, then tried to load it into something built with g++. That's the reason for the #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus } #endif wrappers in the header files. > [UTF-8?]audio.c:8350: error: invalid conversion from ???void*??? to ???floa t*??? The JACK section of audio.c needs a bunch of explicit type conversions to make C++ happy --I'll try to get around to it today. > there is a problem with me using #:keywords > [...] > a bunch of 'undefined sharp expression' messages. Geez... what a bunch of forgetful grumps! I'll add code to the s7 reader to automatically change #: to : (I think #: is ugly). From k.s.matheussen at notam02.no Fri Nov 28 04:25:13 2008 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Fri, 28 Nov 2008 13:25:13 +0100 (CET) Subject: [CM] cm3/sndlib with audio and midi file generation In-Reply-To: <20081128121534.M23663@ccrma.Stanford.EDU> References: <35FBD5DA-76FD-43E9-946B-C0B2B072E191@uiuc.edu> <1227822813.26391.39.camel@localhost.localdomain> <31426D5C-C453-4E44-8720-D591C8C5E657@uiuc.edu> <1227830071.26391.53.camel@localhost.localdomain> <20081128121534.M23663@ccrma.Stanford.EDU> Message-ID: On Fri, 28 Nov 2008, Bill Schottstaedt wrote: >> SndLib.cpp:(.text+0x525): undefined reference to `xen_s7_c_to_xen_string' > > I think this would happen if you used gcc to make sndlib, then > tried to load it into something built with g++. That's the reason > for the > > #ifdef __cplusplus > extern "C" { > #endif > > #ifdef __cplusplus > } > #endif > > wrappers in the header files. > > > >> [UTF-8?]audio.c:8350: error: invalid conversion from ???void*??? to ???floa > t*??? > > The JACK section of audio.c needs a bunch of explicit type conversions to > make C++ happy --I'll try to get around to it today. > Please don't... (it's ugly enough as it is.) How about just doing extern "C" { } instead ? From bil at ccrma.Stanford.EDU Fri Nov 28 04:45:26 2008 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 28 Nov 2008 04:45:26 -0800 Subject: [CM] cm3/sndlib with audio and midi file generation In-Reply-To: References: <35FBD5DA-76FD-43E9-946B-C0B2B072E191@uiuc.edu> <1227822813.26391.39.camel@localhost.localdomain> <31426D5C-C453-4E44-8720-D591C8C5E657@uiuc.edu> <1227830071.26391.53.camel@localhost.localdomain> <20081128121534.M23663@ccrma.Stanford.EDU> Message-ID: <20081128124315.M87059@ccrma.Stanford.EDU> > How about just doing > > extern "C" { > > } > > instead ? I believe audio.c still needs the casts, but I'm no C++ expert -- the "extern" business is for the declarations in the header file. Will check... From nando at ccrma.Stanford.EDU Fri Nov 28 11:48:21 2008 From: nando at ccrma.Stanford.EDU (Fernando Lopez-Lezcano) Date: Fri, 28 Nov 2008 11:48:21 -0800 Subject: [CM] cm3/sndlib with audio and midi file generation In-Reply-To: <20081128121534.M23663@ccrma.Stanford.EDU> References: <35FBD5DA-76FD-43E9-946B-C0B2B072E191@uiuc.edu> <1227822813.26391.39.camel@localhost.localdomain> <31426D5C-C453-4E44-8720-D591C8C5E657@uiuc.edu> <1227830071.26391.53.camel@localhost.localdomain> <20081128121534.M23663@ccrma.Stanford.EDU> Message-ID: <1227901701.23794.7.camel@localhost.localdomain> On Fri, 2008-11-28 at 04:17 -0800, Bill Schottstaedt wrote: > > SndLib.cpp:(.text+0x525): undefined reference to `xen_s7_c_to_xen_string' > > I think this would happen if you used gcc to make sndlib, then > tried to load it into something built with g++. That was a mistake on my part, feel free to ignore... -- Fernando > That's the reason > for the > > #ifdef __cplusplus > extern "C" { > #endif > > #ifdef __cplusplus > } > #endif > > wrappers in the header files.