From jwmatthys at yahoo.com Tue Jul 1 13:18:48 2014 From: jwmatthys at yahoo.com (Joel Matthys) Date: Tue, 01 Jul 2014 15:18:48 -0500 Subject: [CM] compareLexicographically() changed in JUCE Message-ID: <53B317A8.2040907@yahoo.com> I just tried to compile Grace on Linux, and got these errors: src/SndLib.cpp: In member function ?int InstrumentTable::DemoDataSorter::compareElements(juce::XmlElement*, juce::XmlElement*) const?: src/SndLib.cpp:455:9: error: ?const class juce::String? has no member named ?compareLexicographically? compareLexicographically(&second->getStringAttribute(attributeToSort)); ^ src/SndLib.cpp:458:57: error: ?const class juce::String? has no member named ?compareLexicographically? result = first->getStringAttribute(indexString).compareLexicographically(second->getStringAttribute(indexString)); -- It looks like compareLexicographically() has been replaced with compareNatural() in latest JUCE: https://github.com/julianstorer/JUCE/commit/3b8855514033e242febc5ae923b34ef44b522bc0 Joel From lb at zkm.de Wed Jul 2 08:54:48 2014 From: lb at zkm.de (=?iso-8859-1?Q?ludger_br=FCmmer?=) Date: Wed, 2 Jul 2014 17:54:48 +0200 Subject: [CM] Several questions In-Reply-To: <1256D120-1F7F-4719-BA7D-CC884F021ECE@illinois.edu> References: <1256D120-1F7F-4719-BA7D-CC884F021ECE@illinois.edu> Message-ID: Hi all, I tried to use a reverb and I think there seems to be something wrong in the way how the function nrev is called. Is it due to different quoting? I checked with "with-sound" and through a CM process both with a similar result. all the best Ludger (with-sound (:statistics #t :scaled-to 0.95 :output "test.aiff" :reverb 'nrev) (fm 0 1 440 .1 :reverb 0.1)) (define (simpwav n r lb ub) (process repeat n for i from 0 for k = (between lb ub) do (fm i 1.5 k .1 :reverb .01) (wait r) )) (sprout (simpwav 10 .2 440 881) "test.wav" :scaled-to 0.95 :reverb 'nrev) >>> Error: attempt to apply the symbol nrev to ()? finish-with-sound: (apply reverb reverb-data) ; reverb: nrev ; reverb-data: () finish-with-sound: ((mus-close *reverb*)) finish-with-sound: ((if (mus-output? *output*)... ; old-srate: 44100 ; output: "/Users/ludil/test.wav" snd:close-output-file: ((do ((tail *sfdat* (cd... ; wsdat: (with-sound-data "/Users/l... snd:close-output-file: ((void)) (snd:close-output-file) Prof. Ludger Br?mmer Head of ZKM|Institute for Music and Acoustics Lorenzstr. 19 76135 Karlsruhe tel.: +49 721 8100 1600 Am 28 May 2014 um 13:49 schrieb Heinrich Taube : >> Not the case on the Mac. Every time I rerun Grace, and display the working directory, it is set to "". > > thanks, Ill try to fix this soon, its not misbehaving on my mac so Ill have to try a machine that doesn't have grace running on it. > >> >> This page https://ccrma.stanford.edu/software/snd/snd/sndscm.html#withsound shows all sort of sound manipulations with Snd. I wonder if it is possible to run Snd from Grace or if it is an independant application. >> > > Snd is a different app than Grace.YOu could probably start the Snd app running while inside Grace (shell "/usr/local/snd") or whatever, but it would run in an entirely different process than Grace. > > but your link was pointing to with-sound , which is a scheme macro for generating sound in clm if you are asking about using with-sound in Grace then the answer is yes, its built into Grace: > > (load "v.scm") > > (with-sound () > (loop for i to 10 > do > (fm-violin (* .5 i) .75 (between 110 880) .2 )) > > I hope Im answering your Question! > > > > > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist -------------- next part -------------- An HTML attachment was scrubbed... URL: From taube at illinois.edu Wed Jul 2 12:11:18 2014 From: taube at illinois.edu (Rick Taube) Date: Wed, 2 Jul 2014 14:11:18 -0500 Subject: [CM] Several questions In-Reply-To: References: <1256D120-1F7F-4719-BA7D-CC884F021ECE@illinois.edu> Message-ID: <8A3DE4EA-A082-4506-B2F4-0219576BC20A@illinois.edu> hi ludi! try passing nrev not ?nrev (because scheme uses variables to hold functions...) for example this works for me in a lisp buffer : (load "nrev.scm") (load "v.scm") (with-sound (:statistics #t :scaled-to 0.95 :output "test.aiff" :reverb nrev) (fm-violin 0 1 440 .1 :reverb-amount 0.1)) On fomus, when I built the app I wasnt sure if it legal for me to link to it on the app store (im checking?) regardless you can build the system from sources very easily and include fomus there without any problem, i know it works because thats what I used to teach last semesters hope all is well with you! ?rick On Jul 2, 2014, at 10:54 AM, ludger br?mmer wrote: > Hi all, > > I tried to use a reverb and I think there seems to be something wrong in the way how the function nrev is called. Is it due to different quoting? > I checked with "with-sound" and through a CM process both with a similar result. > > all the best > Ludger > > > (with-sound (:statistics #t :scaled-to 0.95 :output "test.aiff" :reverb 'nrev) (fm 0 1 440 .1 :reverb 0.1)) > > (define (simpwav n r lb ub) > (process repeat n > for i from 0 > for k = (between lb ub) > do > (fm i 1.5 k .1 :reverb .01) > (wait r) > )) > > (sprout (simpwav 10 .2 440 881) "test.wav" :scaled-to 0.95 :reverb 'nrev) > > >>> Error: attempt to apply the symbol nrev to ()? > finish-with-sound: (apply reverb reverb-data) ; reverb: nrev > ; reverb-data: () > finish-with-sound: ((mus-close *reverb*)) > finish-with-sound: ((if (mus-output? *output*)... ; old-srate: 44100 > ; output: "/Users/ludil/test.wav" > snd:close-output-file: ((do ((tail *sfdat* (cd... ; wsdat: (with-sound-data "/Users/l... > snd:close-output-file: ((void)) > (snd:close-output-file) > > > > Prof. Ludger Br?mmer > Head of ZKM|Institute for Music and Acoustics > Lorenzstr. 19 > 76135 Karlsruhe > tel.: +49 721 8100 1600 > > Am 28 May 2014 um 13:49 schrieb Heinrich Taube : > >>> Not the case on the Mac. Every time I rerun Grace, and display the working directory, it is set to "". >> >> thanks, Ill try to fix this soon, its not misbehaving on my mac so Ill have to try a machine that doesn't have grace running on it. >> >>> >>> This page https://ccrma.stanford.edu/software/snd/snd/sndscm.html#withsound shows all sort of sound manipulations with Snd. I wonder if it is possible to run Snd from Grace or if it is an independant application. >>> >> >> Snd is a different app than Grace.YOu could probably start the Snd app running while inside Grace (shell "/usr/local/snd") or whatever, but it would run in an entirely different process than Grace. >> >> but your link was pointing to with-sound , which is a scheme macro for generating sound in clm if you are asking about using with-sound in Grace then the answer is yes, its built into Grace: >> >> (load "v.scm") >> >> (with-sound () >> (loop for i to 10 >> do >> (fm-violin (* .5 i) .75 (between 110 880) .2 )) >> >> I hope Im answering your Question! >> >> >> >> >> >> >> _______________________________________________ >> Cmdist mailing list >> Cmdist at ccrma.stanford.edu >> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist -------------- next part -------------- An HTML attachment was scrubbed... URL: From bil at ccrma.Stanford.EDU Wed Jul 9 14:47:59 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 9 Jul 2014 14:47:59 -0700 Subject: [CM] Snd 14.8 Message-ID: <20140709214641.M73347@ccrma.Stanford.EDU> Snd 14.8: s7: symbol-table function now returns a list of all known symbols. require added removed unoptimize and reader-expand Display macro in stuff.scm added ~< expr ~> in format as a sort of "here-string" escape -- any s7 code in the brackets is evaluated in the current environment, and the result is inserted at that point in the output string (using object->string if the result is not a string). This is similar to {var} or $var in various shell languages. also added ~| as a smarter ~^ for all output functions, #f as port means no output (/dev/null in effect) Snd: the numbering for dialog-widgets has changed -- the unused entries were removed. checked: sbcl 1.2.1, gtk 3.13.3 Thanks!: Greg Santucci From j_hearon at hotmail.com Thu Jul 10 10:55:14 2014 From: j_hearon at hotmail.com (James Hearon) Date: Thu, 10 Jul 2014 17:55:14 +0000 Subject: [CM] type double-float In-Reply-To: References: Message-ID: Hi, I'm trying to figure out how to solve a double-float undefined error for the mapcar statement in Fernando's moog.lisp instrument in sbcl, emacs, slime, clm. Should I try to define the double-float type in moog.lisp or is it something I need to be doing from sbcl, or clm? (defparameter moog-gaincoeffs '(0.999969 0.990082 0.980347 0.970764 0.961304 0.951996 0.94281 0.933777 0.924866 0.916077 0.90741 0.898865 0.890442 0.882141 ... )) (defparameter moog-gaintable (make-double-float-array (length moog-gaincoeffs) :initial-contents (mapcar #'double-float moog-gaincoeffs))) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bil at ccrma.Stanford.EDU Thu Jul 10 12:15:03 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 10 Jul 2014 12:15:03 -0700 Subject: [CM] type double-float In-Reply-To: References: Message-ID: <20140710191228.M52427@ccrma.Stanford.EDU> Is it possible that you forgot to load all.lisp? In sbcl (load "all.lisp") (compile-file "moog.lisp") (load "moog") (compile-file "filter-noise.ins") (load "filter-noise") then try the example in filter-noise.ins. This doesn't work in clisp (some loop-finish complaint), but it's been about 20 years since I last looked at it, and I can't remember what the clisp problem was. From francisderive at me.com Thu Jul 17 02:13:40 2014 From: francisderive at me.com (Francis Derive) Date: Thu, 17 Jul 2014 11:13:40 +0200 Subject: [CM] Beginner with open-sound. Message-ID: Bonjour la liste ! A lot to say, as a lot comes out to my face as revisiting Unix, Emacs-like env before enjoying lisp/s7 scheme dev language while playing audio. My environment is Mac OS X mountain 10.8.5, XQuartz 2.7.6 (latest), even JackPilot which may help or not - not sure, we may see this later. Anyway, my question : > >*load-path* > ("/Users/fdiMac/Documents/DEV/fdiDev/Snd-S7/medias" "/Users/fdiMac" "/usr/local/share/snd") > > In the above "medias" folder does sit the file "harpe.aif". > ? medias pwd > /Users/fdiMac/Documents/DEV/fdiDev/Snd-S7/medias > ? medias ls -l > total 254712 > -rw-r--r--@ 1 fdiMac admin 129397690 9 d?c 2011 harpe.aif > ? medias I can open this file in snd with the Open menu from the listener window, but I can't open it like that : > >*load-path* > ("/Users/fdiMac/Documents/DEV/fdiDev/Snd-S7/medias" "/Users/fdiMac" "/usr/local/share/snd") > >(open-sound "harpe.aif") > ;no-such-file: open-sound "harpe.aif": No such file or directory > ; > ; (open-sound "harpe.aif") > ; (open-sound "harpe.aif") > > > > neither : > > >(open-sound "harpe") > ;no-such-file: open-sound "harpe": No such file or directory > ; > ; (open-sound "harpe") > ; (open-sound "harpe") However, "harpe.aif" or "harp" is there - somewhere along the *load-path* tree ! Hard times. Cheers, Francis. From bil at ccrma.Stanford.EDU Thu Jul 17 06:24:13 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 17 Jul 2014 06:24:13 -0700 Subject: [CM] Beginner with open-sound. In-Reply-To: References: Message-ID: <20140717132038.M66400@ccrma.Stanford.EDU> Hi! *load-path* refers to s7's load function, not open-sound. I thought there was a directory search list for open-sound, but now I can't find it! I could either add a new one (*sound-path*?) or tie open-sound into the *load-path* list -- I'm not sure what is best. You could also wrap open-sound in a catch and search a list of directories, but this seems like something that ought to be built-in. From francisderive at me.com Thu Jul 17 09:46:12 2014 From: francisderive at me.com (Francis Derive) Date: Thu, 17 Jul 2014 18:46:12 +0200 Subject: [CM] Beginner with open-sound. In-Reply-To: <20140717132038.M66400@ccrma.Stanford.EDU> References: <20140717132038.M66400@ccrma.Stanford.EDU> Message-ID: <331BA70C-E704-4446-84BE-44CCE000DD01@me.com> Hi Bill ! Thanks for the quick answer. At first, I must admit that open-sound does find the sound file sitting in the directory from where snd has been launched - but nothing apart from there. More, revisiting my old-timed dot zshrc I think I could have been a bit carefulness : "paths" are environment variables where to find executable files, and the *load-paths* has same semantic which can't allow for data files. I feel sorry for the inconvenience of my demand. But - would I persist in the soundness of my my query - I would consider for considering the catch. I think the subject is closed. Thanks a lot. On 17 juil. 2014, at 15:24, Bill Schottstaedt wrote: > Hi! *load-path* refers to s7's load function, not open-sound. > I thought there was a directory search list for open-sound, but > now I can't find it! I could either add a new one (*sound-path*?) > or tie open-sound into the *load-path* list -- I'm not sure > what is best. You could also wrap open-sound in a catch > and search a list of directories, but this seems like something > that ought to be built-in. > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From bil at ccrma.Stanford.EDU Fri Jul 18 08:39:00 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 18 Jul 2014 08:39:00 -0700 Subject: [CM] Beginner with open-sound. In-Reply-To: <331BA70C-E704-4446-84BE-44CCE000DD01@me.com> References: <20140717132038.M66400@ccrma.Stanford.EDU> <331BA70C-E704-4446-84BE-44CCE000DD01@me.com> Message-ID: <20140718153700.M77429@ccrma.Stanford.EDU> I added mus-sound-path (and the variable *mus-sound-path*), but it's only minimally tested. It's a list of directories to search for sound files. From francisderive at me.com Fri Jul 18 10:17:17 2014 From: francisderive at me.com (Francis Derive) Date: Fri, 18 Jul 2014 19:17:17 +0200 Subject: [CM] Beginner with open-sound. In-Reply-To: <20140718153700.M77429@ccrma.Stanford.EDU> References: <20140717132038.M66400@ccrma.Stanford.EDU> <331BA70C-E704-4446-84BE-44CCE000DD01@me.com> <20140718153700.M77429@ccrma.Stanford.EDU> Message-ID: >> It's a list of directories to search >> for sound files. I will take it soon for sure - many thanks for making Unix life easier. Francis. On 18 juil. 2014, at 17:39, Bill Schottstaedt wrote: > I added mus-sound-path (and the variable *mus-sound-path*), > but it's only minimally tested. It's a list of directories to search > for sound files. > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From bil at ccrma.Stanford.EDU Sat Jul 19 13:16:26 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Sat, 19 Jul 2014 13:16:26 -0700 Subject: [CM] Beginner with open-sound. In-Reply-To: References: <20140717132038.M66400@ccrma.Stanford.EDU> <331BA70C-E704-4446-84BE-44CCE000DD01@me.com> <20140718153700.M77429@ccrma.Stanford.EDU> Message-ID: <20140719200217.M71950@ccrma.Stanford.EDU> > (let ((*mus-sound-path* ... You're thinking of special variables in Common Lisp, but s7 is (or is pretending to be) a version of Scheme. So, the let above just shadows the global variable of the same name. From francisderive at me.com Sat Jul 19 12:14:49 2014 From: francisderive at me.com (Francis Derive) Date: Sat, 19 Jul 2014 21:14:49 +0200 Subject: [CM] Beginner with open-sound. In-Reply-To: <20140718153700.M77429@ccrma.Stanford.EDU> References: <20140717132038.M66400@ccrma.Stanford.EDU> <331BA70C-E704-4446-84BE-44CCE000DD01@me.com> <20140718153700.M77429@ccrma.Stanford.EDU> Message-ID: Yes, I like it, and feel more comfortable. Thanks a lot. >*mus-sound-path* ("/Users/fdiMac/Documents/DEV/fdiDev/AUDIO-DEV/Snd-Cvs/medias") I agree, a global variable requires dignity - but, just for a while : >(let ((*mus-sound-path* `("/Users/fdiMac/Documents/DEV/fdiDev/AUDIO-DEV/Snd-Cvs/medias/sous-dir" . ,*mus-sound-path*))) *mus-sound-path*) ("/Users/fdiMac/Documents/DEV/fdiDev/AUDIO-DEV/Snd-Cvs/medias/sous-dir" "/Users/fdiMac/Documents/DEV/fdiDev/AUDIO-DEV/Snd-Cvs/medias") Nice, it could help for the future, ? Not so much (file "harp-1.aif" is inside the sub-directory) : >(let ((*mus-sound-path* `("/Users/fdiMac/Documents/DEV/fdiDev/AUDIO-DEV/Snd-Cvs/medias/sous-dir" . ,*mus-sound-path*))) (open-sound "harpe-1.aif")) ;no-such-file: open-sound "harpe-1.aif": No such file or directory ; ; (open-sound "harpe-1.aif") ; (let ((*mus-sound-path* ({append} ({list}... I believe it is a S7 question, and I am not sure what would be the answer of any scheme to give what I wish. On 18 juil. 2014, at 17:39, Bill Schottstaedt wrote: > I added mus-sound-path (and the variable *mus-sound-path*), > but it's only minimally tested. It's a list of directories to search > for sound files. > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From francisderive at me.com Sun Jul 20 12:34:03 2014 From: francisderive at me.com (Francis Derive) Date: Sun, 20 Jul 2014 21:34:03 +0200 Subject: [CM] Beginner with open-sound. In-Reply-To: <20140719200217.M71950@ccrma.Stanford.EDU> References: <20140717132038.M66400@ccrma.Stanford.EDU> <331BA70C-E704-4446-84BE-44CCE000DD01@me.com> <20140718153700.M77429@ccrma.Stanford.EDU> <20140719200217.M71950@ccrma.Stanford.EDU> Message-ID: "just shadows" : that's the point at which I leap awoken, and laugh at me. Again, mus-sound-path is quite useful to me as it is. Thanks. On 19 juil. 2014, at 22:16, Bill Schottstaedt wrote: >> (let ((*mus-sound-path* ... > > You're thinking of special variables in Common Lisp, but s7 is > (or is pretending to be) a version of Scheme. So, the let above > just shadows the global variable of the same name. > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >