From mjkoskin at kolumbus.fi Sat Apr 2 10:59:43 2016 From: mjkoskin at kolumbus.fi (Matti Koskinen) Date: Sat, 2 Apr 2016 20:59:43 +0300 Subject: [CM] cm2 on GracCL Message-ID: <20F51412-12A1-4B20-B5B9-35F11D37A132@kolumbus.fi> hi, speaking of new cm.asd for cm2,I?d really like to build GraceCL. I once succeeded building GCL. Hunting the correct version of juice was quite of a pain, but finally found a correct version.GCL works, but some lisp (clozure, sbcl, clisp) crashes occurred frequently, probable these were too new versions. So using cm.asd, might help. There?s nothing wrong with Grace, but lisp is lisp and scheme is scheme, scheme is good, a big thanks to Bill for excellent S7. Of course if there are some clos equivavelent add-ons I?d like to add them, or are they added already? setters and getters are great. I remember something on this list mentions of them. Have to look closely clm-5. I?ve more than pissed with csound, and will change again to cm-clm. I don?t know enough of spectral processing with clm, so anything (examples,docs) will gladly be received. tnx -m From bil at ccrma.Stanford.EDU Sat Apr 2 12:14:27 2016 From: bil at ccrma.Stanford.EDU (bil at ccrma.Stanford.EDU) Date: Sat, 02 Apr 2016 12:14:27 -0700 Subject: [CM] cm2 on GracCL In-Reply-To: <20F51412-12A1-4B20-B5B9-35F11D37A132@kolumbus.fi> References: <20F51412-12A1-4B20-B5B9-35F11D37A132@kolumbus.fi> Message-ID: <15c46f39ab73ecd554c98c94912d1151@ccrma.stanford.edu> s7 getters and setters are handled via either procedure-setter (settable), or dilambda (equivalent to Guile's procedure-with-setter). Generic functions and CLOS-like objects are handled through environments (known as lets in s7). You can use define-class and all that ancient clanking machinery, but I've never found a need for it. Inheritance is just a matter of chaining lets together, and methods are just fields (bindings) in the let (and all built-in functions can handle them, so in that sense, every function in s7 is generic). Setters and getters here come "for free" via the implicit indexing syntax. There are examples in s7.html. There are lots of spectral processing functions in Snd, (in the scheme/forth files); I think you could use these in a Snd-less clm without trouble. Although I keep clm going in sbcl and clisp, I really don't want to debug anything in CL. From mjkoskin at kolumbus.fi Sat Apr 2 14:39:35 2016 From: mjkoskin at kolumbus.fi (Matti Koskinen) Date: Sun, 3 Apr 2016 00:39:35 +0300 Subject: [CM] cm2 on GracCL Message-ID: <667FA90D-B8DE-4242-8172-8E72195ABFD3@kolumbus.fi> > On 2 Apr 2016, at 10:14 pm, bil at ccrma.Stanford.EDU wrote: > > s7 getters and setters are handled via either procedure-setter (settable), > or dilambda (equivalent to Guile's procedure-with-setter). Generic functions and CLOS-like objects are handled through environments (known as lets in s7). You can use define-class and all that ancient clanking machinery, but I've never found a need for it. Inheritance is just a matter of chaining lets together, and methods are just fields (bindings) in the let (and all built-in functions can handle them, so in that sense, every function in s7 is generic). Setters and getters here come "for free" via the implicit indexing syntax. There are examples in s7.html. > > There are lots of spectral processing functions in Snd, > (in the scheme/forth files); I think you could use these in > a Snd-less clm without trouble. > > Although I keep clm going in sbcl and clisp, I really don't > want to debug anything in CL. > > > thnaks, Torsten, I?ve tried sometime SuperCollider, but newer got interested enough to learn it more profoundly. Bill, I remember your mail long ago why you changed from lisp to scheme :-) My one problem is that I should really learn scheme as well as my(poor) knowledge of lisp. Today I recorded more than three hours of outdoor sounds, mostly cars passing by. I downgraded this Mac back to Yosemite, and of course I can?t activate Wavelab Elements 8. As my photographer poor career needs Adobe CC, I installed Audition CC, and something can be extracted between the car sounds, but Audition is really not comparable wit Wlab ynx -m ps sorry Bill, first went to hou only -------------- next part -------------- An HTML attachment was scrubbed... URL: From mjkoskin at kolumbus.fi Sun Apr 3 17:12:08 2016 From: mjkoskin at kolumbus.fi (Matti Koskinen) Date: Mon, 4 Apr 2016 03:12:08 +0300 Subject: [CM] clm & ATS Message-ID: dear all, I asked ?bout spectral processing earlier. and as I?ve used ATS with csound, Mpw I?m struggling with the clm-ATSA -lisp version. No problem building clm-5 or clm-4 with Clozure (I like the ide). sbcl works also fine, but the readline in clisp should be on sbcl, or Clozure, too. Whatever I?ve changed in ATS not to use acl, every time I get error of EXCL, which is an acl package. It?s been so long, since I?ve coded more than (+ 1 1) in lisp actually , so any help would be more than welcome. Sorry of typos and foolishness, but my sciatics made me visit a doctor yesterday and a nurse injected my first ever opioid injection, which I very reluctantly accepted to get rid of the dreadful pain. Double-vision now makes me look text with one eye only. tnx -m From juan at ccrma.Stanford.EDU Sun Apr 3 18:53:03 2016 From: juan at ccrma.Stanford.EDU (Juan Pampin) Date: Sun, 3 Apr 2016 18:53:03 -0700 Subject: [CM] clm & ATS In-Reply-To: References: Message-ID: Dear Matti, I've stopped supporting ATS in CLM when def-clm-struct was changed in version CLM-3 and stopped allowing arrays as fields. I've sent a request to Bill at the time but he apparently had good reasons to do this. It would have required a whole rewrite of my code to get things to work again so I decided to drop the ball and focus on porting things to C (atsa/ATSH, the tools I presume you are using for the analysis of the sounds you synthesize in csound; there are also interfaces to Supercollider and PD). Cheers, JUAN On Sun, Apr 3, 2016 at 5:12 PM, Matti Koskinen wrote: > dear all, > > I asked ?bout spectral processing earlier. and as I?ve used ATS with > csound, Mpw I?m struggling with the clm-ATSA -lisp version. No problem > building clm-5 or clm-4 with Clozure (I like the ide). sbcl works also > fine, but the readline in clisp should be on sbcl, or Clozure, too. > > Whatever I?ve changed in ATS not to use acl, every time I get error of > EXCL, which is an acl package. It?s been so long, since I?ve coded more > than (+ 1 1) in lisp actually , so any help would be more than welcome. > > Sorry of typos and foolishness, but my sciatics made me visit a doctor > yesterday and a nurse injected my first ever opioid injection, which I > very reluctantly accepted to get rid of the dreadful pain. Double-vision > now makes me look text with one eye only. > > tnx > > -m > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > https://cm-mail.stanford.edu/mailman/listinfo/cmdist > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From juanig at ccrma.Stanford.EDU Mon Apr 4 11:37:32 2016 From: juanig at ccrma.Stanford.EDU (Juan Reyes) Date: Mon, 4 Apr 2016 11:37:32 -0700 Subject: [CM] Common Music 2 and PWGL Message-ID: <5702B46C.9040709@ccrma.stanford.edu> Hi Torsten, In regards to PWGL. Maybe I am wrong, but for what I can tell your example requires PWGL on a Lisp system on OSX or windoze. Has anyone tried it on Linux and SBCL?. For a while I've been willing to try constrained based composition on CM or a package other than Open Music. I am not hundred percent in favor of the 'black-box-connect paradigm'. Now that you mention direct Lisp code hacking, it sounds appealing to try several constrained based examples from PWGL or Op. Music adapted to cm2 or even plain CL or Scheme. -Better said-, could we use some of PWGL functionality inside CM perhaps on Linux and SBCL?. Am I too optimistic or could this be accomplished in some way?. Btw, there is a good introduction to Constrained Based Programming and Music by Torsten himself on [1]. Thanks, -Juan [1] https://www.youtube.com/watch?v=8_2SFwXNU68 > What is most interesting from a PWGL perspective, however, is that > all CM patters are available (though only for direct Lisp code > hacking, no boxes, at least yet). It could be interesting to use > these in other PWGL patches to generate musical data for whatever > purpose. From antoinedaurat at gmail.com Tue Apr 5 01:25:19 2016 From: antoinedaurat at gmail.com (Antoine Daurat) Date: Tue, 5 Apr 2016 10:25:19 +0200 Subject: [CM] building Grace with OSC and FOMUS and saving files Message-ID: Hello, since the release of Grace 3.9.0 I?m experiencing a lot of problems with the Grace.app. Until a few weeks ago, I could build the app from source, with FOMUS and OSC because I was still running 10.7 on my mac ? and I had to build it from source because with the app from the App Store, I couldn?t save any files, like everybody I know who downloaded it? Lately, I updated my system to 10.10 and nothing works any more. The app from the App Store still can?t save anything AND it doesn?t have FOMUS any way. I can save files with the old app I built under 10.7 but it doesn?t open with Oscpack available in it any more?. If I try to build a new app from the source without "premake4 --with-oscpack", I get this error : cc1objplus: error: unrecognized command line option "-Wno-c++11-extensions" make[1]: *** [obj/juce/Debug/juce_audio_basics.o] Error 1 make: *** [juce] Error 2 and with "premake4 --with-oscpack ?, I get all those errors : couldn't understand kern.osversion `14.5.0' In file included from oscpack/osc/OscOutboundPacketStream.cpp:37: oscpack/osc/OscOutboundPacketStream.h:40:29: warning: cstring: No such file or directory In file included from oscpack/osc/OscOutboundPacketStream.h:43, from oscpack/osc/OscOutboundPacketStream.cpp:37: oscpack/osc/OscException.h:40:21: warning: exception: No such file or directory oscpack/osc/OscOutboundPacketStream.cpp:43:62: warning: stdlib.h: No such file or directory oscpack/osc/OscOutboundPacketStream.cpp:46:19: warning: cassert: No such file or directory oscpack/osc/OscOutboundPacketStream.cpp:48:32: warning: cstddef: No such file or directory In file included from oscpack/osc/OscOutboundPacketStream.h:43, from oscpack/osc/OscOutboundPacketStream.cpp:37: oscpack/osc/OscException.h:44: error: expected class-name before ?{? token oscpack/osc/OscException.h: In copy constructor ?osc::Exception::Exception(const osc::Exception&)?: oscpack/osc/OscException.h:50: error: expected class-name before ?(? token In file included from oscpack/osc/OscOutboundPacketStream.cpp:37: oscpack/osc/OscOutboundPacketStream.h: At global scope: oscpack/osc/OscOutboundPacketStream.h:78: error: ?std::size_t? has not been declared oscpack/osc/OscOutboundPacketStream.h:83: error: ?size_t? in namespace ?std? does not name a type oscpack/osc/OscOutboundPacketStream.h:86: error: ?size_t? in namespace ?std? does not name a type oscpack/osc/OscOutboundPacketStream.h:135: error: ?std::size_t? has not been declared oscpack/osc/OscOutboundPacketStream.cpp:149: error: ?size_t? in namespace ?std? does not name a type oscpack/osc/OscOutboundPacketStream.cpp:155: error: ?std::size_t? has not been declared oscpack/osc/OscOutboundPacketStream.cpp: In constructor ?osc::OutboundPacketStream::OutboundPacketStream(char*, int)?: oscpack/osc/OscOutboundPacketStream.cpp:166: error: ?assert? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp: In member function ?void osc::OutboundPacketStream::EndElement(char*)?: oscpack/osc/OscOutboundPacketStream.cpp:202: error: ?assert? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:218: error: ?ptrdiff_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:218: error: expected `;' before ?d? oscpack/osc/OscOutboundPacketStream.cpp:221: error: ?d? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp: In member function ?void osc::OutboundPacketStream::CheckForAvailableBundleSpace()?: oscpack/osc/OscOutboundPacketStream.cpp:238: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:238: error: expected `;' before ?required? oscpack/osc/OscOutboundPacketStream.cpp:240: error: ?required? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:240: error: ?Capacity? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp: In member function ?void osc::OutboundPacketStream::CheckForAvailableMessageSpace(const char*)?: oscpack/osc/OscOutboundPacketStream.cpp:248: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:248: error: expected `;' before ?required? oscpack/osc/OscOutboundPacketStream.cpp:251: error: ?required? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:251: error: ?Capacity? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp: At global scope: oscpack/osc/OscOutboundPacketStream.cpp:256: error: variable or field ?CheckForAvailableArgumentSpace? declared void oscpack/osc/OscOutboundPacketStream.cpp:256: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:277: error: ?size_t? in namespace ?std? does not name a type oscpack/osc/OscOutboundPacketStream.cpp:283: error: ?size_t? in namespace ?std? does not name a type oscpack/osc/OscOutboundPacketStream.cpp: In member function ?osc::OutboundPacketStream& osc::OutboundPacketStream::operator<<(const osc::BundleInitiator&)?: oscpack/osc/OscOutboundPacketStream.cpp:329: error: ?memcpy? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp: In member function ?osc::OutboundPacketStream& osc::OutboundPacketStream::operator<<(const osc::BeginMessage&)?: oscpack/osc/OscOutboundPacketStream.cpp:363: error: ?strcpy? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:364: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:364: error: expected `;' before ?rhsLength? oscpack/osc/OscOutboundPacketStream.cpp:365: error: ?rhsLength? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:368: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:368: error: expected `;' before ?i? oscpack/osc/OscOutboundPacketStream.cpp:369: error: ?i? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp: In member function ?osc::OutboundPacketStream& osc::OutboundPacketStream::operator<<(const osc::MessageTerminator&)?: oscpack/osc/OscOutboundPacketStream.cpp:390: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:390: error: expected `;' before ?typeTagsCount? oscpack/osc/OscOutboundPacketStream.cpp:392: error: ?typeTagsCount? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:394: error: ?alloca? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:395: error: ?memcpy? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:398: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:398: error: expected `;' before ?typeTagSlotSize? oscpack/osc/OscOutboundPacketStream.cpp:400: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:400: error: expected `;' before ?argumentsSize? oscpack/osc/OscOutboundPacketStream.cpp:402: error: ?memmove? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:402: error: ?typeTagSlotSize? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:402: error: ?argumentsSize? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:406: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:406: error: expected `;' before ?i? oscpack/osc/OscOutboundPacketStream.cpp:406: error: ?i? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:410: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:410: error: expected `;' before ?i? oscpack/osc/OscOutboundPacketStream.cpp:410: error: ?i? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:420: error: ?memcpy? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp: In member function ?osc::OutboundPacketStream& osc::OutboundPacketStream::operator<<(const char*)?: oscpack/osc/OscOutboundPacketStream.cpp:602: error: ?strlen? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:602: error: ?RoundUp4? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:605: error: ?strcpy? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:606: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:606: error: expected `;' before ?rhsLength? oscpack/osc/OscOutboundPacketStream.cpp:607: error: ?rhsLength? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:610: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:610: error: expected `;' before ?i? oscpack/osc/OscOutboundPacketStream.cpp:611: error: ?i? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp: In member function ?osc::OutboundPacketStream& osc::OutboundPacketStream::operator<<(const osc::Symbol&)?: oscpack/osc/OscOutboundPacketStream.cpp:622: error: ?strlen? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:622: error: ?RoundUp4? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:625: error: ?strcpy? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:626: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:626: error: expected `;' before ?rhsLength? oscpack/osc/OscOutboundPacketStream.cpp:627: error: ?rhsLength? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:630: error: ?size_t? is not a member of ?std? oscpack/osc/OscOutboundPacketStream.cpp:630: error: expected `;' before ?i? oscpack/osc/OscOutboundPacketStream.cpp:631: error: ?i? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp: In member function ?osc::OutboundPacketStream& osc::OutboundPacketStream::operator<<(const osc::Blob&)?: oscpack/osc/OscOutboundPacketStream.cpp:642: error: ?RoundUp4? was not declared in this scope oscpack/osc/OscOutboundPacketStream.cpp:648: error: ?memcpy? is not a member of ?std? make[1]: *** [obj/oscpack/Debug/OscOutboundPacketStream.o] Error 1 make: *** [oscpack] Error 2 I?d be extremely grateful for any help on how to build Grace with FOMUS, OSCpack, and a working ? Save ? function. Thank you and best regards, Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From mjkoskin at kolumbus.fi Tue Apr 5 18:05:42 2016 From: mjkoskin at kolumbus.fi (Matti Koskinen) Date: Wed, 6 Apr 2016 04:05:42 +0300 Subject: [CM] building Grace with OSC and FOMUS and saving files In-Reply-To: References: Message-ID: hi Antoine, I tried to compile too, but oscpack goes fine. I built it first configuring with cmake (mkdir build ;cd build; cmake;) Im stuck with undefined Point, I didn?t look closely enough why, but it?s deep inside in include CarbonCore/Finder.h included from Framework to Framework from juce.h I remember from Juce-forums, that there were some incompatibilities with some version of Juce and 10.10, because Apple had changed something in audio again. Now Juce-website gives ?under maintenance? so can?t check it for sure, or get a compatible juce-version. ??? sorry, first one went directly Antoine, always forget the reply-all button. But trying with Juce, somewhere in the code found version numbered 3.1.1 (there isn?t any version in juce.h), and after changing 2 compareLexicographically-calls to compareNatural (sounded natural :-) in Sndlib.cpp the app was built. Don?t have midi connected now, but tried clm.scm, which uses s7 and Sndlib.cpp, test.wav was written and played too. Didn?t try to save from the editor, so that?s for later today, it?s 4am already here. All cats are gray at night and they?re also nocturnal animals. Code gives tons of warnings, but no errors or segfaults so far. best regards, -m From Torsten.Anders at beds.ac.uk Wed Apr 6 15:24:36 2016 From: Torsten.Anders at beds.ac.uk (Torsten Anders) Date: Wed, 6 Apr 2016 22:24:36 +0000 Subject: [CM] Common Music 2 and PWGL In-Reply-To: <5702B46C.9040709@ccrma.stanford.edu> References: <5702B46C.9040709@ccrma.stanford.edu> Message-ID: Dear Juan, > Has anyone tried it on Linux and SBCL?. PWGL had once plans for a release on Linux, but AFAIK that never materialised. If I remember correctly, they had problems with OpenGL within LispWorks at Linux. Anyway, you best ask Mika Kuuskankare such a question. > constrained based composition on CM or a package other than Open Music. I am not hundred percent in > favor of the 'black-box-connect paradigm'. In Open Music you have several constraint-based composition systems (Situation, OMClouds, some subset of PWConstraint, OMRC, a predecessor of later PWGL libraries by ?rjan Sandred), and I thought you meanwhile have the code for all of them available? On PWGL there are also multiple constraint-based composition systems available. The old PWConstraint engine/solver by Mikael Laurson is still working, and has been extended in many ways since his PhD thesis, which is still its best description nevertheless. However, there are no sources available. Some library by Jacopo Schilingi provides an graphical interface for the textual PWConstraint engine, jbs-constraints (http://baboni-schilingi.com/index.php/research). Then, there are several libraries by ?rjan Sandred, http://sandred.com/CAC.html, http://sandred.com/Downloads.html I extended the latest library of ?rjan (https://github.com/tanders/cluster-rules). > constrained based composition on CM A very long time ago, I extended CM 1 with constraint programming facilities based on the Lisp constraint solver Screamer ? but I would not recommend using that anymore? > it sounds appealing to try several constrained based examples from PWGL or Op. Music adapted > to cm2 or even plain CL or Scheme. The code of most of them is available. There are a few dependencies to the graphics programming of OpenMusic and/or PWGL, but at least in the case of ?rjan?s libraries that seems to be limited to a few files, and you can clearly tell the dependencies by the Lisp packages. His solver by default outputs to a convenient PWGL score object, but by setting an argument you can also get the music represented as a list close to the internal representation of the solver, AFAIK (never needed that). Best wishes, Torsten -- Dr Torsten Anders Course Leader, Music Technology University of Bedfordshire Park Square, Room A315 http://www.torsten-anders.de On 4 Apr 2016, at 19:37, Juan Reyes wrote: > Hi Torsten, > > In regards to PWGL. Maybe I am wrong, but for what I can tell your > example requires PWGL on a Lisp system on OSX or windoze. Has anyone > tried it on Linux and SBCL?. > > For a while I've been willing to try constrained based composition on > CM or a package other than Open Music. I am not hundred percent in > favor of the 'black-box-connect paradigm'. > > Now that you mention direct Lisp code hacking, it sounds appealing > to try several constrained based examples from PWGL or Op. Music adapted > to cm2 or even plain CL or Scheme. > > -Better said-, could we use some of PWGL functionality inside CM perhaps > on Linux and SBCL?. > > Am I too optimistic or could this be accomplished in some way?. > > Btw, there is a good introduction to Constrained Based Programming and > Music by Torsten himself on [1]. > > Thanks, > > -Juan > > [1] https://www.youtube.com/watch?v=8_2SFwXNU68 > > > >> What is most interesting from a PWGL perspective, however, is that >> all CM patters are available (though only for direct Lisp code >> hacking, no boxes, at least yet). It could be interesting to use >> these in other PWGL patches to generate musical data for whatever >> purpose. > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > https://cm-mail.stanford.edu/mailman/listinfo/cmdist > From juanig at ccrma.Stanford.EDU Thu Apr 7 11:10:01 2016 From: juanig at ccrma.Stanford.EDU (Juan Reyes) Date: Thu, 7 Apr 2016 13:10:01 -0500 Subject: [CM] Common Music 2 and PWGL In-Reply-To: References: <5702B46C.9040709@ccrma.stanford.edu> Message-ID: <5706A279.4000402@ccrma.stanford.edu> Dear Torsten, Thanks a lot for your response. I couldn't hope for a better and more detailed answer on the state of Constrained Based Composition. Now I have a clearer view on this state of affairs. I see I should first get my hands on an OSX machine to try PWGL to test ?rjan?s libraries and your extensions. On the other hand, while watching your presentation, and from a user's standpoint, it looks like PWGL has a similar functionality as Open Music, where users don't worry much about inner workings of constrained programming. Instead people concentrate on rules to 'search' options for musical goals. Rules are in libraries like legacy PWConstraints. Being so, programming would only be needed in case a library is being developed or extended. Like they say on HCI and design contexts, "there are different hammers in the toolbox and you pick the right one for the job you are pursuing". Best wishes, -- Juan > The code of most of them is available. There are a few dependencies > to the graphics programming of OpenMusic and/or PWGL, but at least > in the case of ?rjan?s libraries that seems to be limited to a few > files, and you can clearly tell the dependencies by the Lisp > packages. > > His solver by default outputs to a convenient PWGL score object, but > by setting an argument you can also get the music represented as a > list close to the internal representation of the solver, AFAIK > (never needed that). From Torsten.Anders at beds.ac.uk Thu Apr 7 11:36:15 2016 From: Torsten.Anders at beds.ac.uk (Torsten Anders) Date: Thu, 7 Apr 2016 18:36:15 +0000 Subject: [CM] Common Music 2 and PWGL In-Reply-To: <5706A279.4000402@ccrma.stanford.edu> References: <5702B46C.9040709@ccrma.stanford.edu> <5706A279.4000402@ccrma.stanford.edu> Message-ID: <1BFD5E8F-BD21-483F-B807-9B6E3F390C02@beds.ac.uk> Dear Juan, > it looks like PWGL has a similar functionality as OpenMusic Both OpenMusic and PWGL are decedents of PatchWork by Mikael Laurson, so as quasi siblings their close similarities are no surprise (much like Pd and Max are siblings, also both stemming from IRCAM). > where users don't worry much about inner workings of constrained programming. Instead people concentrate on rules to 'search' options for musical goals. Actually, that is a main motivation of constraint programming in general, beyond computer music: the user states a problem without having an algorithm, but the computer solves it regardless ? by search. > Rules are in libraries like legacy PWConstraints. Being so, programming would only be needed in case a library is being developed or extended. Sorry, I don?t quite understand. Developing the rules (constraints) is also programming, but it is (at least ideally, there are borderline cases) purely declarative ? the rules describe features the result should have. Best wishes, Torsten PS: Not sure if it is appropriate to continue this off-topic discussion at the CM mailing list. Just let us know if we better stop that. On 7 Apr 2016, at 19:10, Juan Reyes wrote: > Dear Torsten, > > Thanks a lot for your response. I couldn't hope for a better and more > detailed answer on the state of Constrained Based Composition. Now I > have a clearer view on this state of affairs. > > I see I should first get my hands on an OSX machine to try PWGL to test > ?rjan?s libraries and your extensions. > > On the other hand, while watching your presentation, and from a user's > standpoint, it looks like PWGL has a similar functionality as Open > Music, where users don't worry much about inner workings of constrained > programming. Instead people concentrate on rules to 'search' options for > musical goals. Rules are in libraries like legacy PWConstraints. Being > so, programming would only be needed in case a library is being > developed or extended. > > Like they say on HCI and design contexts, "there are different hammers > in the toolbox and you pick the right one for the job you are pursuing". > > Best wishes, > > -- Juan > > >> The code of most of them is available. There are a few dependencies >> to the graphics programming of OpenMusic and/or PWGL, but at least >> in the case of ?rjan?s libraries that seems to be limited to a few >> files, and you can clearly tell the dependencies by the Lisp >> packages. >> >> His solver by default outputs to a convenient PWGL score object, but >> by setting an argument you can also get the music represented as a >> list close to the internal representation of the solver, AFAIK >> (never needed that). > > From juanig at ccrma.Stanford.EDU Fri Apr 8 09:12:30 2016 From: juanig at ccrma.Stanford.EDU (Juan Reyes) Date: Fri, 8 Apr 2016 11:12:30 -0500 Subject: [CM] Common Music 2 and PWGL In-Reply-To: <1BFD5E8F-BD21-483F-B807-9B6E3F390C02@beds.ac.uk> References: <5702B46C.9040709@ccrma.stanford.edu> <5706A279.4000402@ccrma.stanford.edu> <1BFD5E8F-BD21-483F-B807-9B6E3F390C02@beds.ac.uk> Message-ID: <5707D86E.3080601@ccrma.stanford.edu> Dear Torsten, I have been interested in the work of Camilo Rueda and Mikael Laurson for years now. That's why you caught my attention when you pointed out that CM2 was working inside PWGL. I appreciate your points and response because for some of us not in CBP circles your updates are worthful. > >> Rules are in libraries like legacy PWConstraints. Being so, >> programming would only be needed in case a library is being >> developed or extended. > > > Sorry, I don?t quite understand. > > Developing the rules (constraints) is also programming, but it is > (at least ideally, there are borderline cases) purely declarative ? > the rules describe features the result should have. > This is what I meant. Agree, we are getting a bit off-topic. Best regards, -- Juan From benmca at gmail.com Sat Apr 9 15:39:31 2016 From: benmca at gmail.com (Ben McAllister) Date: Sat, 9 Apr 2016 15:39:31 -0700 Subject: [CM] building Grace with OSC and FOMUS and saving files In-Reply-To: References: Message-ID: Hi all - I'm no help in getting oscpack or fomus building, but did manage to get Juce building by modifying the #define on line 55 of juce/modules/juce_audio_basics/juce_audio_basics.cpp like so: #if (JUCE_MAC || JUCE_IOS) && JUCE_USE_VDSP_FRAMEWORK #define Point CarbonDummyPointName // (workaround to avoid definition of "Point" by old Carbon headers) #include #undef Point #else #undef JUCE_USE_VDSP_FRAMEWORK #endif Note - Juce website just updated their forums, so google indexing looks pretty jacked up right now. The relevant post Matti mentions (well, maybe not the only post) is at: http://forum.juce.com/t/build-problem-using-xcode-6/13729 Any advice on moving forward with FOMUS on mac much appreciated. Trying to build FOMUS from sources fails with a missing Boost definition: /usr/local/include/boost/ptr_container/detail/map_iterator.hpp:121:12: > error: no matching constructor for initialization of > > 'boost::iterator_adaptor void *>, > __tree_node<__value_type, void *> *, long> >, int, > const set, allocator > *const>, > __map_const_iterator<__tree_const_iterator<__value_type *>, __tree_node<__value_type, void *> *, > long> >, ptr_container_detail::ref_pair less, allocator > *const>, use_default, > ptr_container_detail::ref_pair, > allocator > *const> >' > : base_type(r.base()) Maybe an older version of Boost is req'd to build FOMUS, but I haven't dug into that issue yet. Lastly, you guys know about the archive of Grace builds here, right? http://camil.music.illinois.edu/software/grace/ List: is there a known good build for mac here including FOMUS support? On Tue, Apr 5, 2016 at 6:05 PM, Matti Koskinen wrote: > > hi Antoine, > > I tried to compile too, but oscpack goes fine. I built it first configuring with cmake (mkdir build ;cd build; cmake;) > > Im stuck with undefined Point, I didn?t look closely enough why, but it?s deep inside in include CarbonCore/Finder.h included from Framework to Framework from juce.h > > I remember from Juce-forums, that there were some incompatibilities with some version of Juce and 10.10, because Apple had changed something in audio again. > > Now Juce-website gives ?under maintenance? so can?t check it for sure, or get a compatible juce-version. > > ??? > > sorry, first one went directly Antoine, always forget the reply-all button. > > But trying with Juce, somewhere in the code found version numbered 3.1.1 (there isn?t any version in juce.h), and after changing 2 compareLexicographically-calls to compareNatural (sounded natural :-) in Sndlib.cpp the app was built. Don?t have midi connected now, but tried clm.scm, which uses s7 and Sndlib.cpp, test.wav was written and played too. Didn?t try to save from the editor, so that?s for later today, it?s 4am already here. > > All cats are gray at night and they?re also nocturnal animals. > > Code gives tons of warnings, but no errors or segfaults so far. > > best regards, > > -m > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > https://cm-mail.stanford.edu/mailman/listinfo/cmdist -- Ben McAllister | listenfaster.com | @listenfaster | tuktuband.com | c: 206.849.3183 -------------- next part -------------- An HTML attachment was scrubbed... URL: From taube at illinois.edu Sat Apr 9 15:54:01 2016 From: taube at illinois.edu (Taube, Heinrich K) Date: Sat, 9 Apr 2016 22:54:01 +0000 Subject: [CM] building Grace with OSC and FOMUS and saving files In-Reply-To: References: Message-ID: <74585D1F-9DE0-4407-9A85-AA0FAA87C7F9@illinois.edu> hi the best way to do this might be to move to the latest juce, which has osc support, and then reimplement the osc api in term of those underlying functions, which include OscSender and OscReceiver. if you move to the latest osc then grabbing the current s7 would also be a good idea. i might have time for this after august, but until then im hammered with school and a phase 2 nsf application, im sorry! > On Apr 9, 2016, at 5:39 PM, Ben McAllister wrote: > > Hi all - > > I'm no help in getting oscpack or fomus building, but did manage to get Juce building by modifying the #define on line 55 of juce/modules/juce_audio_basics/juce_audio_basics.cpp like so: > > #if (JUCE_MAC || JUCE_IOS) && JUCE_USE_VDSP_FRAMEWORK > #define Point CarbonDummyPointName // (workaround to avoid definition of "Point" by old Carbon headers) > #include > #undef Point > #else > #undef JUCE_USE_VDSP_FRAMEWORK > #endif > > Note - Juce website just updated their forums, so google indexing looks pretty jacked up right now. The relevant post Matti mentions (well, maybe not the only post) is at: > http://forum.juce.com/t/build-problem-using-xcode-6/13729 > > Any advice on moving forward with FOMUS on mac much appreciated. Trying to build FOMUS from sources fails with a missing Boost definition: > > > /usr/local/include/boost/ptr_container/detail/map_iterator.hpp:121:12: error: no matching constructor for initialization of > 'boost::iterator_adaptor, > __tree_node<__value_type, void *> *, long> >, int, const set, allocator > *const>, > __map_const_iterator<__tree_const_iterator<__value_type, __tree_node<__value_type, void *> *, > long> >, ptr_container_detail::ref_pair, allocator > *const>, use_default, > ptr_container_detail::ref_pair, allocator > *const> >' > : base_type(r.base()) > Maybe an older version of Boost is req'd to build FOMUS, but I haven't dug into that issue yet. > > Lastly, you guys know about the archive of Grace builds here, right? http://camil.music.illinois.edu/software/grace/ > > List: is there a known good build for mac here including FOMUS support? > > On Tue, Apr 5, 2016 at 6:05 PM, Matti Koskinen wrote: > > > > hi Antoine, > > > > I tried to compile too, but oscpack goes fine. I built it first configuring with cmake (mkdir build ;cd build; cmake;) > > > > Im stuck with undefined Point, I didn?t look closely enough why, but it?s deep inside in include CarbonCore/Finder.h included from Framework to Framework from juce.h > > > > I remember from Juce-forums, that there were some incompatibilities with some version of Juce and 10.10, because Apple had changed something in audio again. > > > > Now Juce-website gives ?under maintenance? so can?t check it for sure, or get a compatible juce-version. > > > > ??? > > > > sorry, first one went directly Antoine, always forget the reply-all button. > > > > But trying with Juce, somewhere in the code found version numbered 3.1.1 (there isn?t any version in juce.h), and after changing 2 compareLexicographically-calls to compareNatural (sounded natural :-) in Sndlib.cpp the app was built. Don?t have midi connected now, but tried clm.scm, which uses s7 and Sndlib.cpp, test.wav was written and played too. Didn?t try to save from the editor, so that?s for later today, it?s 4am already here. > > > > All cats are gray at night and they?re also nocturnal animals. > > > > Code gives tons of warnings, but no errors or segfaults so far. > > > > best regards, > > > > -m > > > > > > _______________________________________________ > > Cmdist mailing list > > Cmdist at ccrma.stanford.edu > > https://cm-mail.stanford.edu/mailman/listinfo/cmdist > > > > -- > Ben McAllister | listenfaster.com | @listenfaster | tuktuband.com | c: 206.849.3183 > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > https://cm-mail.stanford.edu/mailman/listinfo/cmdist From taube at illinois.edu Sat Apr 9 16:09:47 2016 From: taube at illinois.edu (Taube, Heinrich K) Date: Sat, 9 Apr 2016 23:09:47 +0000 Subject: [CM] building Grace with OSC and FOMUS and saving files In-Reply-To: <74585D1F-9DE0-4407-9A85-AA0FAA87C7F9@illinois.edu> References: <74585D1F-9DE0-4407-9A85-AA0FAA87C7F9@illinois.edu> Message-ID: <15D54551-6B6B-41A1-9C8B-EDB131C01BB0@illinois.edu> >> Any advice on moving forward with FOMUS on mac much appreciated. Trying to build FOMUS from sources fails with a missing Boost definition: you shouldnt have to build fomus, you should download its dmg from the sourceforge fomus site and install it. are you saying the dmg doesnt exist any more? i can run grace 3.9.0 with FOMUS 0.1.18-alpha on OSX 10.11.1 and everything works fine... > On Apr 9, 2016, at 5:54 PM, Taube, Heinrich K wrote: > > hi the best way to do this might be to move to the latest juce, which has osc support, and then reimplement the osc api in term of those underlying functions, which include OscSender and OscReceiver. if you move to the latest osc then grabbing the current s7 would also be a good idea. i might have time for this after august, but until then im hammered with school and a phase 2 nsf application, im sorry! > > >> On Apr 9, 2016, at 5:39 PM, Ben McAllister wrote: >> >> Hi all - >> >> I'm no help in getting oscpack or fomus building, but did manage to get Juce building by modifying the #define on line 55 of juce/modules/juce_audio_basics/juce_audio_basics.cpp like so: >> >> #if (JUCE_MAC || JUCE_IOS) && JUCE_USE_VDSP_FRAMEWORK >> #define Point CarbonDummyPointName // (workaround to avoid definition of "Point" by old Carbon headers) >> #include >> #undef Point >> #else >> #undef JUCE_USE_VDSP_FRAMEWORK >> #endif >> >> Note - Juce website just updated their forums, so google indexing looks pretty jacked up right now. The relevant post Matti mentions (well, maybe not the only post) is at: >> http://forum.juce.com/t/build-problem-using-xcode-6/13729 >> >> Any advice on moving forward with FOMUS on mac much appreciated. Trying to build FOMUS from sources fails with a missing Boost definition: >> >> >> /usr/local/include/boost/ptr_container/detail/map_iterator.hpp:121:12: error: no matching constructor for initialization of >> 'boost::iterator_adaptor, >> __tree_node<__value_type, void *> *, long> >, int, const set, allocator > *const>, >> __map_const_iterator<__tree_const_iterator<__value_type, __tree_node<__value_type, void *> *, >> long> >, ptr_container_detail::ref_pair, allocator > *const>, use_default, >> ptr_container_detail::ref_pair, allocator > *const> >' >> : base_type(r.base()) >> Maybe an older version of Boost is req'd to build FOMUS, but I haven't dug into that issue yet. >> >> Lastly, you guys know about the archive of Grace builds here, right? http://camil.music.illinois.edu/software/grace/ >> >> List: is there a known good build for mac here including FOMUS support? >> >> On Tue, Apr 5, 2016 at 6:05 PM, Matti Koskinen wrote: >>> >>> hi Antoine, >>> >>> I tried to compile too, but oscpack goes fine. I built it first configuring with cmake (mkdir build ;cd build; cmake;) >>> >>> Im stuck with undefined Point, I didn?t look closely enough why, but it?s deep inside in include CarbonCore/Finder.h included from Framework to Framework from juce.h >>> >>> I remember from Juce-forums, that there were some incompatibilities with some version of Juce and 10.10, because Apple had changed something in audio again. >>> >>> Now Juce-website gives ?under maintenance? so can?t check it for sure, or get a compatible juce-version. >>> >>> ??? >>> >>> sorry, first one went directly Antoine, always forget the reply-all button. >>> >>> But trying with Juce, somewhere in the code found version numbered 3.1.1 (there isn?t any version in juce.h), and after changing 2 compareLexicographically-calls to compareNatural (sounded natural :-) in Sndlib.cpp the app was built. Don?t have midi connected now, but tried clm.scm, which uses s7 and Sndlib.cpp, test.wav was written and played too. Didn?t try to save from the editor, so that?s for later today, it?s 4am already here. >>> >>> All cats are gray at night and they?re also nocturnal animals. >>> >>> Code gives tons of warnings, but no errors or segfaults so far. >>> >>> best regards, >>> >>> -m >>> >>> >>> _______________________________________________ >>> Cmdist mailing list >>> Cmdist at ccrma.stanford.edu >>> https://cm-mail.stanford.edu/mailman/listinfo/cmdist >> >> >> >> -- >> Ben McAllister | listenfaster.com | @listenfaster | tuktuband.com | c: 206.849.3183 >> _______________________________________________ >> Cmdist mailing list >> Cmdist at ccrma.stanford.edu >> https://cm-mail.stanford.edu/mailman/listinfo/cmdist > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > https://cm-mail.stanford.edu/mailman/listinfo/cmdist From benmca at gmail.com Sat Apr 9 16:22:16 2016 From: benmca at gmail.com (Ben McAllister) Date: Sat, 9 Apr 2016 16:22:16 -0700 Subject: [CM] building Grace with OSC and FOMUS and saving files In-Reply-To: <15D54551-6B6B-41A1-9C8B-EDB131C01BB0@illinois.edu> References: <74585D1F-9DE0-4407-9A85-AA0FAA87C7F9@illinois.edu> <15D54551-6B6B-41A1-9C8B-EDB131C01BB0@illinois.edu> Message-ID: Yeah, unfortunately there's no 64-bit build up at the FOMUS site. 'Coming soon'. On Saturday, April 9, 2016, Taube, Heinrich K wrote: > >> Any advice on moving forward with FOMUS on mac much appreciated. Trying > to build FOMUS from sources fails with a missing Boost definition: > > > you shouldnt have to build fomus, you should download its dmg from the > sourceforge fomus site and install it. are you saying the dmg doesnt exist > any more? > > i can run grace 3.9.0 with FOMUS 0.1.18-alpha on OSX 10.11.1 and > everything works fine... > > > On Apr 9, 2016, at 5:54 PM, Taube, Heinrich K > wrote: > > > > hi the best way to do this might be to move to the latest juce, which > has osc support, and then reimplement the osc api in term of those > underlying functions, which include OscSender and OscReceiver. if you move > to the latest osc then grabbing the current s7 would also be a good idea. > i might have time for this after august, but until then im hammered with > school and a phase 2 nsf application, im sorry! > > > > > >> On Apr 9, 2016, at 5:39 PM, Ben McAllister > wrote: > >> > >> Hi all - > >> > >> I'm no help in getting oscpack or fomus building, but did manage to get > Juce building by modifying the #define on line 55 of > juce/modules/juce_audio_basics/juce_audio_basics.cpp like so: > >> > >> #if (JUCE_MAC || JUCE_IOS) && JUCE_USE_VDSP_FRAMEWORK > >> #define Point CarbonDummyPointName // (workaround to avoid definition > of "Point" by old Carbon headers) > >> #include > >> #undef Point > >> #else > >> #undef JUCE_USE_VDSP_FRAMEWORK > >> #endif > >> > >> Note - Juce website just updated their forums, so google indexing looks > pretty jacked up right now. The relevant post Matti mentions (well, maybe > not the only post) is at: > >> http://forum.juce.com/t/build-problem-using-xcode-6/13729 > >> > >> Any advice on moving forward with FOMUS on mac much appreciated. Trying > to build FOMUS from sources fails with a missing Boost definition: > >> > >> > >> /usr/local/include/boost/ptr_container/detail/map_iterator.hpp:121:12: > error: no matching constructor for initialization of > >> > 'boost::iterator_adaptor void *>, > >> __tree_node<__value_type, void *> *, long> >, int, > const set, allocator > *const>, > >> __map_const_iterator<__tree_const_iterator<__value_type *>, __tree_node<__value_type, void *> *, > >> long> >, ptr_container_detail::ref_pair less, allocator > *const>, use_default, > >> ptr_container_detail::ref_pair, > allocator > *const> >' > >> : base_type(r.base()) > >> Maybe an older version of Boost is req'd to build FOMUS, but I haven't > dug into that issue yet. > >> > >> Lastly, you guys know about the archive of Grace builds here, right? > http://camil.music.illinois.edu/software/grace/ > >> > >> List: is there a known good build for mac here including FOMUS support? > >> > >> On Tue, Apr 5, 2016 at 6:05 PM, Matti Koskinen > wrote: > >>> > >>> hi Antoine, > >>> > >>> I tried to compile too, but oscpack goes fine. I built it first > configuring with cmake (mkdir build ;cd build; cmake;) > >>> > >>> Im stuck with undefined Point, I didn?t look closely enough why, but > it?s deep inside in include CarbonCore/Finder.h included from Framework to > Framework from juce.h > >>> > >>> I remember from Juce-forums, that there were some incompatibilities > with some version of Juce and 10.10, because Apple had changed something in > audio again. > >>> > >>> Now Juce-website gives ?under maintenance? so can?t check it for > sure, or get a compatible juce-version. > >>> > >>> ??? > >>> > >>> sorry, first one went directly Antoine, always forget the reply-all > button. > >>> > >>> But trying with Juce, somewhere in the code found version numbered > 3.1.1 (there isn?t any version in juce.h), and after changing 2 > compareLexicographically-calls to compareNatural (sounded natural :-) in > Sndlib.cpp the app was built. Don?t have midi connected now, but tried > clm.scm, which uses s7 and Sndlib.cpp, test.wav was written and played too. > Didn?t try to save from the editor, so that?s for later today, it?s 4am > already here. > >>> > >>> All cats are gray at night and they?re also nocturnal animals. > >>> > >>> Code gives tons of warnings, but no errors or segfaults so far. > >>> > >>> best regards, > >>> > >>> -m > >>> > >>> > >>> _______________________________________________ > >>> Cmdist mailing list > >>> Cmdist at ccrma.stanford.edu > >>> https://cm-mail.stanford.edu/mailman/listinfo/cmdist > >> > >> > >> > >> -- > >> Ben McAllister | listenfaster.com | @listenfaster | tuktuband.com | > c: 206.849.3183 > >> _______________________________________________ > >> Cmdist mailing list > >> Cmdist at ccrma.stanford.edu > >> https://cm-mail.stanford.edu/mailman/listinfo/cmdist > > > > > > _______________________________________________ > > Cmdist mailing list > > Cmdist at ccrma.stanford.edu > > https://cm-mail.stanford.edu/mailman/listinfo/cmdist > > -- Ben McAllister | listenfaster.com | @listenfaster | tuktuband.com | c: 206.849.3183 -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielhensel at icloud.com Sun Apr 10 04:52:36 2016 From: danielhensel at icloud.com (Daniel Hensel) Date: Sun, 10 Apr 2016 13:52:36 +0200 Subject: [CM] Request Message-ID: <8FDCCF52-F44C-43DE-A03F-51E7AF36D428@icloud.com> Hello to the community, my name is Daniel Hensel, I am a german composer. At first I have to apologize bothering you! I recently downloaded ?Grace? and tried to play around a little, which led me to the website of Common Lisp Music. So I tried to use the clm-examples in Grace, until I found out, that Grace uses Scheme instead of Lisp. Is this the reason why cml-examples are not working? I got the following Errors for the following example entered in the Grace-Editor: (definstrument examp2 (start-time duration frequency amplitude &optional (amp-env '(0 0 50 1 100 0))) (let* ((beg (floor (* start-time sampling-rate))) (end (+ beg (floor (* duration sampling-rate)))) (sine-wave (make-oscil :frequency frequency)) (amp (make-env :envelope amp-env :scaler amplitude :start-time start-time :duration duration))) (Run (loop for i from beg to end do (outa i (* (env amp) (oscil sine-wave))))))) Error: >>> Error: car argument, examp2, is a symbol but should be a pair (car args) ; args: examp2 ((name (car args)) (targs (cdr args)) (utargs ... (examp2 (start-time duration frequency amplitu... (definstrument examp2 (start-time duration fre... >>> Error: beg: unbound variable ((beg (floor (* start-time sampling-rate))) (e... ((floor (* start-time sampling-rate))) ((end (+ beg (floor (* duration sampling-rate)... ((beg (floor (* start-time sampling-rate))) (e? Three years ago I worked with Csound, PD and SuperCollider. But then I discovered CLM and Common Music, so I wanted to give it a try, I admit, that I am a real Lisp-newbie. So I installed Clisp, Sbcl, Clozure-Cl via homebrew on my mac. But I cannot get Common Lisp Music working. I also cannot find a working ?how-to? for OS X 10.11.4. I put the folder clm-4 into my brew-cellar. I created a .swank-file, which should load clm for slime. It looks like this: (load "/usr/local/Cellar/clm-4/all.lisp") (in-package :clm) (compile-file "/usr/local/Cellar/clm-4/nrev.ins") (load "/usr/local/Cellar/clm-4/nrev.fasl") What would you recommend to do? To ignore CLM totally and just to work with Grace? I?d like to learn clm from scratch. When I try the CLM-Example in my Emacs, it looks like this: When I load CLM, it looks like this: CL-USER> (load "/usr/local/Cellar/clm-4/all.lisp") ; using existing configuration file mus-config.h ;loading /usr/local/Cellar/clm-4/clm-package.fasl ;loading /usr/local/Cellar/clm-4/initmus.fasl ;loading /usr/local/Cellar/clm-4/sndlib2clm.fasl ;loading /usr/local/Cellar/clm-4/defaults.fasl ;loading /usr/local/Cellar/clm-4/ffi.fasl ;loading /usr/local/Cellar/clm-4/mus.fasl ;loading /usr/local/Cellar/clm-4/run.fasl ;loading /usr/local/Cellar/clm-4/sound.fasl ;loading /usr/local/Cellar/clm-4/defins.fasl ;loading /usr/local/Cellar/clm-4/env.fasl ;loading /usr/local/Cellar/clm-4/export.fasl ;loading /usr/local/Cellar/clm-4/clm1.fasl T Later I tried: (definstrument auto (dur) (let ((os (make-oscil)) (need-close (not *output*)) (end (floor (* dur *srate*)))) (if (not *output*) (setf *output* (open-output "/zap/test.snd"))) (run (loop for i from 0 to end do (outa i (* .1 (oscil os))))) (when need-close (close-output *output*) (dac "/zap/test.snd")))) But I just got: ; Writing "/usr/local/Cellar/clm-4/clm_AUTO.c" Help! 11 nested errors. SB-KERNEL:*MAXIMUM-ERROR-DEPTH* exceeded. Backtrace for: # 0: (SB-INT:SIMPLE-EVAL-IN-LEXENV CM #) 1: (EVAL CM) 2: (SWANK::EVAL-REGION " cm ") 3: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL)) 4: (SWANK-REPL::TRACK-PACKAGE #) 5: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #) 6: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #) 7: (SWANK-REPL::REPL-EVAL " cm ") 8: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL " cm ") #) 9: (EVAL (SWANK-REPL:LISTENER-EVAL " cm ")) 10: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL " cm ") "COMMON-LISP-USER" 16) 11: (SWANK::SLDB-LOOP 3) 12: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGING-ENVIRONMENT :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") #) 13: (SWANK::DEBUG-IN-EMACS #) 14: (SWANK:INVOKE-SLIME-DEBUGGER #) 15: (SWANK/SBCL::CALL-WITH-BREAK-HOOK # #) 16: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") # #) 17: (SWANK:SWANK-DEBUGGER-HOOK # #) 18: (SB-DEBUG::RUN-HOOK *DEBUGGER-HOOK* #) 19: (INVOKE-DEBUGGER #) 20: (ERROR UNBOUND-VARIABLE :NAME CLM) 21: ("UNBOUND-SYMBOL-ERROR" CLM) 22: (SB-KERNEL:INTERNAL-ERROR #.(SB-SYS:INT-SAP #X05892000) #) 23: ("foreign function: call_into_lisp") 24: ("foreign function: funcall2") 25: ("foreign function: interrupt_internal_error") 26: ("foreign function: signal_emulation_wrapper") 27: ("foreign function: stack_allocation_recover") 28: ("foreign function: stack_allocation_recover") 29: (SB-INT:SIMPLE-EVAL-IN-LEXENV CLM #) 30: (EVAL CLM) 31: (SWANK::EVAL-REGION " clm ") 32: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL)) 33: (SWANK-REPL::TRACK-PACKAGE #) 34: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #) 35: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #) 36: (SWANK-REPL::REPL-EVAL " clm ") 37: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL " clm ") #) 38: (EVAL (SWANK-REPL:LISTENER-EVAL " clm ")) 39: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL " clm ") "COMMON-LISP-USER" 14) 40: (SWANK::SLDB-LOOP 2) 41: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGING-ENVIRONMENT :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") #) 42: (SWANK::DEBUG-IN-EMACS #) 43: (SWANK:INVOKE-SLIME-DEBUGGER #) 44: (SWANK/SBCL::CALL-WITH-BREAK-HOOK # #) 45: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") # #) 46: (SWANK:SWANK-DEBUGGER-HOOK # #) 47: (SB-DEBUG::RUN-HOOK *DEBUGGER-HOOK* #) 48: (INVOKE-DEBUGGER #) 49: (ERROR UNBOUND-VARIABLE :NAME CLM) 50: ("UNBOUND-SYMBOL-ERROR" CLM) 51: (SB-KERNEL:INTERNAL-ERROR #.(SB-SYS:INT-SAP #X05890000) #) 52: ("foreign function: call_into_lisp") 53: ("foreign function: funcall2") 54: ("foreign function: interrupt_internal_error") 55: ("foreign function: signal_emulation_wrapper") 56: ("foreign function: stack_allocation_recover") 57: ("foreign function: stack_allocation_recover") 58: (SB-INT:SIMPLE-EVAL-IN-LEXENV CLM #) 59: (EVAL CLM) 60: (SWANK::EVAL-REGION "clm ") 61: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL)) 62: (SWANK-REPL::TRACK-PACKAGE #) 63: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #) 64: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #) 65: (SWANK-REPL::REPL-EVAL "clm ") 66: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL "clm ") #) 67: (EVAL (SWANK-REPL:LISTENER-EVAL "clm ")) 68: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL "clm ") "COMMON-LISP-USER" 12) 69: (SWANK::SLDB-LOOP 1) 70: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGING-ENVIRONMENT :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") #) 71: (SWANK::DEBUG-IN-EMACS #) 72: (SWANK:INVOKE-SLIME-DEBUGGER #) 73: (SWANK/SBCL::CALL-WITH-BREAK-HOOK # #) 74: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") # #) 75: (SWANK:SWANK-DEBUGGER-HOOK # #) 76: (SB-DEBUG::RUN-HOOK *DEBUGGER-HOOK* #) 77: (INVOKE-DEBUGGER #) 78: (ERROR UNBOUND-VARIABLE :NAME CM) 79: ("UNBOUND-SYMBOL-ERROR" CM) 80: (SB-KERNEL:INTERNAL-ERROR #.(SB-SYS:INT-SAP #X0580E000) #) 81: ("foreign function: call_into_lisp") 82: ("foreign function: funcall2") 83: ("foreign function: interrupt_internal_error") 84: ("foreign function: signal_emulation_wrapper") 85: ("foreign function: stack_allocation_recover") 86: ("foreign function: stack_allocation_recover") 87: (SB-INT:SIMPLE-EVAL-IN-LEXENV CM #) 88: (EVAL CM) 89: (SWANK::EVAL-REGION "cm ") 90: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL)) 91: (SWANK-REPL::TRACK-PACKAGE #) 92: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #) 93: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #) 94: (SWANK-REPL::REPL-EVAL "cm ") 95: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL "cm ") #) 96: (EVAL (SWANK-REPL:LISTENER-EVAL "cm ")) 97: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL "cm ") "COMMON-LISP-USER" 5) 98: (SWANK::PROCESS-REQUESTS NIL) 99: ((LAMBDA NIL :IN SWANK::HANDLE-REQUESTS)) 100: ((LAMBDA NIL :IN SWANK::HANDLE-REQUESTS)) 101: (SWANK/SBCL::CALL-WITH-BREAK-HOOK # #) 102: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") # #) 103: (SWANK::CALL-WITH-BINDINGS ((*STANDARD-OUTPUT* . #1=#) (*STANDARD-INPUT* . #2=#) (*TRACE-OUTPUT* . #1#) (*ERROR-OUTPUT* . #1#) (*DEBUG-IO* . #3=#) (*QUERY-IO* . #3#) (*TERMINAL-IO* . #3#)) #) 104: (SWANK::HANDLE-REQUESTS # NIL) 105: ((FLET #:WITHOUT-INTERRUPTS-BODY-1174 :IN SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE)) 106: ((FLET SB-THREAD::WITH-MUTEX-THUNK :IN SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE)) 107: ((FLET #:WITHOUT-INTERRUPTS-BODY-359 :IN SB-THREAD::CALL-WITH-MUTEX)) 108: (SB-THREAD::CALL-WITH-MUTEX # #> NIL T NIL) 109: (SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE # NIL # (# # # {1004880143}> # # # {10045DAAD3}> #) NIL NIL NIL NIL) 110: ("foreign function: call_into_lisp") 111: ("foreign function: new_thread_trampoline") 112: ("foreign function: _pthread_body") 113: ("foreign function: _pthread_body") 114: ("foreign function: thread_sta Does anyone have an idea, how to get this working? Sincerely yours, Daniel Hensel From bil at ccrma.Stanford.EDU Sun Apr 10 08:22:54 2016 From: bil at ccrma.Stanford.EDU (bil at ccrma.Stanford.EDU) Date: Sun, 10 Apr 2016 08:22:54 -0700 Subject: [CM] Request In-Reply-To: <8FDCCF52-F44C-43DE-A03F-51E7AF36D428@icloud.com> References: <8FDCCF52-F44C-43DE-A03F-51E7AF36D428@icloud.com> Message-ID: <68621c540bdd1ce1ca1b20918e47c5b8@ccrma.stanford.edu> The T after loading CLM shows it was built successfully. I tried your auto instrument (you have to compile an instrument in the CL version of CLM), and ran it without problem. The error output you got is complaining about CM and CLM (functions?) -- I don't know where those come from. CLM works fine in Scheme, the CL version is no longer supported. If you insist however, start sbcl, (load "all.lisp"), (compile-file "auto.ins"), (load "auto"), (with-sound () (auto 1)). From benmca at gmail.com Sun Apr 10 11:59:24 2016 From: benmca at gmail.com (Ben McAllister) Date: Sun, 10 Apr 2016 11:59:24 -0700 Subject: [CM] building Grace with OSC and FOMUS and saving files In-Reply-To: References: <74585D1F-9DE0-4407-9A85-AA0FAA87C7F9@illinois.edu> <15D54551-6B6B-41A1-9C8B-EDB131C01BB0@illinois.edu> Message-ID: PS: this might be my ignorance, but is there a way to work around with the 32-bit installer on my 64-bit machine? I couldn't get the installer to run. On Saturday, April 9, 2016, Ben McAllister wrote: > Yeah, unfortunately there's no 64-bit build up at the FOMUS site. 'Coming > soon'. > > On Saturday, April 9, 2016, Taube, Heinrich K > wrote: > >> >> Any advice on moving forward with FOMUS on mac much appreciated. >> Trying to build FOMUS from sources fails with a missing Boost definition: >> >> >> you shouldnt have to build fomus, you should download its dmg from the >> sourceforge fomus site and install it. are you saying the dmg doesnt exist >> any more? >> >> i can run grace 3.9.0 with FOMUS 0.1.18-alpha on OSX 10.11.1 and >> everything works fine... >> >> > On Apr 9, 2016, at 5:54 PM, Taube, Heinrich K >> wrote: >> > >> > hi the best way to do this might be to move to the latest juce, which >> has osc support, and then reimplement the osc api in term of those >> underlying functions, which include OscSender and OscReceiver. if you move >> to the latest osc then grabbing the current s7 would also be a good idea. >> i might have time for this after august, but until then im hammered with >> school and a phase 2 nsf application, im sorry! >> > >> > >> >> On Apr 9, 2016, at 5:39 PM, Ben McAllister wrote: >> >> >> >> Hi all - >> >> >> >> I'm no help in getting oscpack or fomus building, but did manage to >> get Juce building by modifying the #define on line 55 of >> juce/modules/juce_audio_basics/juce_audio_basics.cpp like so: >> >> >> >> #if (JUCE_MAC || JUCE_IOS) && JUCE_USE_VDSP_FRAMEWORK >> >> #define Point CarbonDummyPointName // (workaround to avoid definition >> of "Point" by old Carbon headers) >> >> #include >> >> #undef Point >> >> #else >> >> #undef JUCE_USE_VDSP_FRAMEWORK >> >> #endif >> >> >> >> Note - Juce website just updated their forums, so google indexing >> looks pretty jacked up right now. The relevant post Matti mentions (well, >> maybe not the only post) is at: >> >> http://forum.juce.com/t/build-problem-using-xcode-6/13729 >> >> >> >> Any advice on moving forward with FOMUS on mac much appreciated. >> Trying to build FOMUS from sources fails with a missing Boost definition: >> >> >> >> >> >> /usr/local/include/boost/ptr_container/detail/map_iterator.hpp:121:12: >> error: no matching constructor for initialization of >> >> >> 'boost::iterator_adaptor> void *>, >> >> __tree_node<__value_type, void *> *, long> >, int, >> const set, allocator > *const>, >> >> __map_const_iterator<__tree_const_iterator<__value_type> *>, __tree_node<__value_type, void *> *, >> >> long> >, ptr_container_detail::ref_pair> less, allocator > *const>, use_default, >> >> ptr_container_detail::ref_pair, >> allocator > *const> >' >> >> : base_type(r.base()) >> >> Maybe an older version of Boost is req'd to build FOMUS, but I haven't >> dug into that issue yet. >> >> >> >> Lastly, you guys know about the archive of Grace builds here, right? >> http://camil.music.illinois.edu/software/grace/ >> >> >> >> List: is there a known good build for mac here including FOMUS support? >> >> >> >> On Tue, Apr 5, 2016 at 6:05 PM, Matti Koskinen >> wrote: >> >>> >> >>> hi Antoine, >> >>> >> >>> I tried to compile too, but oscpack goes fine. I built it first >> configuring with cmake (mkdir build ;cd build; cmake;) >> >>> >> >>> Im stuck with undefined Point, I didn?t look closely enough why, but >> it?s deep inside in include CarbonCore/Finder.h included from Framework to >> Framework from juce.h >> >>> >> >>> I remember from Juce-forums, that there were some incompatibilities >> with some version of Juce and 10.10, because Apple had changed something in >> audio again. >> >>> >> >>> Now Juce-website gives ?under maintenance? so can?t check it for >> sure, or get a compatible juce-version. >> >>> >> >>> ??? >> >>> >> >>> sorry, first one went directly Antoine, always forget the reply-all >> button. >> >>> >> >>> But trying with Juce, somewhere in the code found version numbered >> 3.1.1 (there isn?t any version in juce.h), and after changing 2 >> compareLexicographically-calls to compareNatural (sounded natural :-) in >> Sndlib.cpp the app was built. Don?t have midi connected now, but tried >> clm.scm, which uses s7 and Sndlib.cpp, test.wav was written and played too. >> Didn?t try to save from the editor, so that?s for later today, it?s 4am >> already here. >> >>> >> >>> All cats are gray at night and they?re also nocturnal animals. >> >>> >> >>> Code gives tons of warnings, but no errors or segfaults so far. >> >>> >> >>> best regards, >> >>> >> >>> -m >> >>> >> >>> >> >>> _______________________________________________ >> >>> Cmdist mailing list >> >>> Cmdist at ccrma.stanford.edu >> >>> https://cm-mail.stanford.edu/mailman/listinfo/cmdist >> >> >> >> >> >> >> >> -- >> >> Ben McAllister | listenfaster.com | @listenfaster | tuktuband.com | >> c: 206.849.3183 >> >> _______________________________________________ >> >> Cmdist mailing list >> >> Cmdist at ccrma.stanford.edu >> >> https://cm-mail.stanford.edu/mailman/listinfo/cmdist >> > >> > >> > _______________________________________________ >> > Cmdist mailing list >> > Cmdist at ccrma.stanford.edu >> > https://cm-mail.stanford.edu/mailman/listinfo/cmdist >> >> > > -- > Ben McAllister | listenfaster.com | @listenfaster | tuktuband.com | c: > 206.849.3183 > > -- Ben McAllister | listenfaster.com | @listenfaster | tuktuband.com | c: 206.849.3183 -------------- next part -------------- An HTML attachment was scrubbed... URL: From taube at illinois.edu Sun Apr 10 12:33:41 2016 From: taube at illinois.edu (Taube, Heinrich K) Date: Sun, 10 Apr 2016 19:33:41 +0000 Subject: [CM] Request In-Reply-To: <8FDCCF52-F44C-43DE-A03F-51E7AF36D428@icloud.com> References: <8FDCCF52-F44C-43DE-A03F-51E7AF36D428@icloud.com> Message-ID: <2AE19D85-F530-41BF-865F-E74576F5A616@illinois.edu> CLM is also scheme/C now and is built into Grace. You can get access to 95% of CLM instruments by just selecting ?Instrument Browser...? from the Audio menu -- you will have tons of instruements to explore, and you can sort them by type. > On Apr 10, 2016, at 6:52 AM, Daniel Hensel wrote: > > Hello to the community, > > my name is Daniel Hensel, I am a german composer. At first I have to apologize bothering you! I recently downloaded ?Grace? and tried to play around a little, which led me to the website of Common Lisp Music. So I tried to use the clm-examples in Grace, until I found out, that Grace uses Scheme instead of Lisp. Is this the reason why cml-examples are not working? I got the following Errors for the following example entered in the Grace-Editor: > > (definstrument examp2 (start-time duration frequency amplitude > &optional (amp-env '(0 0 50 1 100 0))) > (let* ((beg (floor (* start-time sampling-rate))) > (end (+ beg (floor (* duration sampling-rate)))) > (sine-wave (make-oscil :frequency frequency)) > (amp (make-env :envelope amp-env :scaler amplitude > :start-time start-time :duration duration))) > (Run > (loop for i from beg to end do > (outa i (* (env amp) (oscil sine-wave))))))) > > > Error: >>> Error: car argument, examp2, is a symbol but should be a pair > (car args) ; args: examp2 > ((name (car args)) (targs (cdr args)) (utargs ... > (examp2 (start-time duration frequency amplitu... > (definstrument examp2 (start-time duration fre... > >>>> Error: beg: unbound variable > ((beg (floor (* start-time sampling-rate))) (e... > ((floor (* start-time sampling-rate))) > ((end (+ beg (floor (* duration sampling-rate)... > ((beg (floor (* start-time sampling-rate))) (e? > > Three years ago I worked with Csound, PD and SuperCollider. But then I discovered CLM and Common Music, so I wanted to give it a try, I admit, that I am a real Lisp-newbie. > > So I installed Clisp, Sbcl, Clozure-Cl via homebrew on my mac. But I cannot get Common Lisp Music working. I also cannot find a working ?how-to? for OS X 10.11.4. I put the folder clm-4 into my brew-cellar. I created a .swank-file, which should load clm for slime. It looks like this: > > (load "/usr/local/Cellar/clm-4/all.lisp") > (in-package :clm) > (compile-file "/usr/local/Cellar/clm-4/nrev.ins") > (load "/usr/local/Cellar/clm-4/nrev.fasl") > > > What would you recommend to do? To ignore CLM totally and just to work with Grace? I?d like to learn clm from scratch. When I try the CLM-Example in my Emacs, it looks like this: > > When I load CLM, it looks like this: > CL-USER> (load "/usr/local/Cellar/clm-4/all.lisp") > ; using existing configuration file mus-config.h > > ;loading /usr/local/Cellar/clm-4/clm-package.fasl > ;loading /usr/local/Cellar/clm-4/initmus.fasl > ;loading /usr/local/Cellar/clm-4/sndlib2clm.fasl > ;loading /usr/local/Cellar/clm-4/defaults.fasl > ;loading /usr/local/Cellar/clm-4/ffi.fasl > ;loading /usr/local/Cellar/clm-4/mus.fasl > ;loading /usr/local/Cellar/clm-4/run.fasl > ;loading /usr/local/Cellar/clm-4/sound.fasl > ;loading /usr/local/Cellar/clm-4/defins.fasl > ;loading /usr/local/Cellar/clm-4/env.fasl > ;loading /usr/local/Cellar/clm-4/export.fasl > ;loading /usr/local/Cellar/clm-4/clm1.fasl > T > > Later I tried: > > (definstrument auto (dur) > (let ((os (make-oscil)) > (need-close (not *output*)) > (end (floor (* dur *srate*)))) > (if (not *output*) > (setf *output* (open-output "/zap/test.snd"))) > (run > (loop for i from 0 to end do (outa i (* .1 (oscil os))))) > (when need-close > (close-output *output*) > (dac "/zap/test.snd")))) > > > But I just got: > > ; Writing "/usr/local/Cellar/clm-4/clm_AUTO.c" > Help! 11 nested errors. SB-KERNEL:*MAXIMUM-ERROR-DEPTH* exceeded. > Backtrace for: # > 0: (SB-INT:SIMPLE-EVAL-IN-LEXENV CM #) > 1: (EVAL CM) > 2: (SWANK::EVAL-REGION " cm > ") > 3: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL)) > 4: (SWANK-REPL::TRACK-PACKAGE #) > 5: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #) > 6: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #) > 7: (SWANK-REPL::REPL-EVAL " cm > ") > 8: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL " cm > ") #) > 9: (EVAL (SWANK-REPL:LISTENER-EVAL " cm > ")) > 10: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL " cm > ") "COMMON-LISP-USER" 16) > 11: (SWANK::SLDB-LOOP 3) > 12: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGING-ENVIRONMENT :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") #) > 13: (SWANK::DEBUG-IN-EMACS #) > 14: (SWANK:INVOKE-SLIME-DEBUGGER #) > 15: (SWANK/SBCL::CALL-WITH-BREAK-HOOK # #) > 16: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") # #) > 17: (SWANK:SWANK-DEBUGGER-HOOK # #) > 18: (SB-DEBUG::RUN-HOOK *DEBUGGER-HOOK* #) > 19: (INVOKE-DEBUGGER #) > 20: (ERROR UNBOUND-VARIABLE :NAME CLM) > 21: ("UNBOUND-SYMBOL-ERROR" CLM) > 22: (SB-KERNEL:INTERNAL-ERROR #.(SB-SYS:INT-SAP #X05892000) #) > 23: ("foreign function: call_into_lisp") > 24: ("foreign function: funcall2") > 25: ("foreign function: interrupt_internal_error") > 26: ("foreign function: signal_emulation_wrapper") > 27: ("foreign function: stack_allocation_recover") > 28: ("foreign function: stack_allocation_recover") > 29: (SB-INT:SIMPLE-EVAL-IN-LEXENV CLM #) > 30: (EVAL CLM) > 31: (SWANK::EVAL-REGION " clm > ") > 32: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL)) > 33: (SWANK-REPL::TRACK-PACKAGE #) > 34: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #) > 35: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #) > 36: (SWANK-REPL::REPL-EVAL " clm > ") > 37: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL " clm > ") #) > 38: (EVAL (SWANK-REPL:LISTENER-EVAL " clm > ")) > 39: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL " clm > ") "COMMON-LISP-USER" 14) > 40: (SWANK::SLDB-LOOP 2) > 41: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGING-ENVIRONMENT :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") #) > 42: (SWANK::DEBUG-IN-EMACS #) > 43: (SWANK:INVOKE-SLIME-DEBUGGER #) > 44: (SWANK/SBCL::CALL-WITH-BREAK-HOOK # #) > 45: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") # #) > 46: (SWANK:SWANK-DEBUGGER-HOOK # #) > 47: (SB-DEBUG::RUN-HOOK *DEBUGGER-HOOK* #) > 48: (INVOKE-DEBUGGER #) > 49: (ERROR UNBOUND-VARIABLE :NAME CLM) > 50: ("UNBOUND-SYMBOL-ERROR" CLM) > 51: (SB-KERNEL:INTERNAL-ERROR #.(SB-SYS:INT-SAP #X05890000) #) > 52: ("foreign function: call_into_lisp") > 53: ("foreign function: funcall2") > 54: ("foreign function: interrupt_internal_error") > 55: ("foreign function: signal_emulation_wrapper") > 56: ("foreign function: stack_allocation_recover") > 57: ("foreign function: stack_allocation_recover") > 58: (SB-INT:SIMPLE-EVAL-IN-LEXENV CLM #) > 59: (EVAL CLM) > 60: (SWANK::EVAL-REGION "clm > ") > 61: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL)) > 62: (SWANK-REPL::TRACK-PACKAGE #) > 63: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #) > 64: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #) > 65: (SWANK-REPL::REPL-EVAL "clm > ") > 66: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL "clm > ") #) > 67: (EVAL (SWANK-REPL:LISTENER-EVAL "clm > ")) > 68: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL "clm > ") "COMMON-LISP-USER" 12) > 69: (SWANK::SLDB-LOOP 1) > 70: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGING-ENVIRONMENT :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") #) > 71: (SWANK::DEBUG-IN-EMACS #) > 72: (SWANK:INVOKE-SLIME-DEBUGGER #) > 73: (SWANK/SBCL::CALL-WITH-BREAK-HOOK # #) > 74: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") # #) > 75: (SWANK:SWANK-DEBUGGER-HOOK # #) > 76: (SB-DEBUG::RUN-HOOK *DEBUGGER-HOOK* #) > 77: (INVOKE-DEBUGGER #) > 78: (ERROR UNBOUND-VARIABLE :NAME CM) > 79: ("UNBOUND-SYMBOL-ERROR" CM) > 80: (SB-KERNEL:INTERNAL-ERROR #.(SB-SYS:INT-SAP #X0580E000) #) > 81: ("foreign function: call_into_lisp") > 82: ("foreign function: funcall2") > 83: ("foreign function: interrupt_internal_error") > 84: ("foreign function: signal_emulation_wrapper") > 85: ("foreign function: stack_allocation_recover") > 86: ("foreign function: stack_allocation_recover") > 87: (SB-INT:SIMPLE-EVAL-IN-LEXENV CM #) > 88: (EVAL CM) > 89: (SWANK::EVAL-REGION "cm > ") > 90: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL)) > 91: (SWANK-REPL::TRACK-PACKAGE #) > 92: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #) > 93: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #) > 94: (SWANK-REPL::REPL-EVAL "cm > ") > 95: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL "cm > ") #) > 96: (EVAL (SWANK-REPL:LISTENER-EVAL "cm > ")) > 97: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL "cm > ") "COMMON-LISP-USER" 5) > 98: (SWANK::PROCESS-REQUESTS NIL) > 99: ((LAMBDA NIL :IN SWANK::HANDLE-REQUESTS)) > 100: ((LAMBDA NIL :IN SWANK::HANDLE-REQUESTS)) > 101: (SWANK/SBCL::CALL-WITH-BREAK-HOOK # #) > 102: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "/Users/danielhensel/quicklisp/dists/quicklisp/software/slime-2.14/swank/sbcl.lisp") # #) > 103: (SWANK::CALL-WITH-BINDINGS ((*STANDARD-OUTPUT* . #1=#) (*STANDARD-INPUT* . #2=#) (*TRACE-OUTPUT* . #1#) (*ERROR-OUTPUT* . #1#) (*DEBUG-IO* . #3=#) (*QUERY-IO* . #3#) (*TERMINAL-IO* . #3#)) #) > 104: (SWANK::HANDLE-REQUESTS # NIL) > 105: ((FLET #:WITHOUT-INTERRUPTS-BODY-1174 :IN SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE)) > 106: ((FLET SB-THREAD::WITH-MUTEX-THUNK :IN SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE)) > 107: ((FLET #:WITHOUT-INTERRUPTS-BODY-359 :IN SB-THREAD::CALL-WITH-MUTEX)) > 108: (SB-THREAD::CALL-WITH-MUTEX # #> NIL T NIL) > 109: (SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE # NIL # (# # # {1004880143}> # # # {10045DAAD3}> #) NIL NIL NIL NIL) > 110: ("foreign function: call_into_lisp") > 111: ("foreign function: new_thread_trampoline") > 112: ("foreign function: _pthread_body") > 113: ("foreign function: _pthread_body") > 114: ("foreign function: thread_sta > > Does anyone have an idea, how to get this working? > > Sincerely yours, > Daniel Hensel > > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > https://cm-mail.stanford.edu/mailman/listinfo/cmdist From benmca at gmail.com Sat Apr 16 12:54:57 2016 From: benmca at gmail.com (Ben McAllister) Date: Sat, 16 Apr 2016 12:54:57 -0700 Subject: [CM] Csound sprout question In-Reply-To: References: Message-ID: Hi List! I've come up with a solution to the question I posted (below) previously by creating an OSC router in Csound, passing events over OSC from Scheme to a running Csound orchestra. I wrote a blog post about it here - maybe someone will find it useful: http://listenfaster.tumblr.com/post/142910737568/realtime-csound-from-grace-using-osc-routing Thanks! b On Wed, Mar 16, 2016 at 9:28 PM, Ben McAllister wrote: > Hi all, > > I'm stuck with a problem trying to sprout process with Csound. I'm > trying to do something more complex with a piece I'm working on, but > managed to boil down the problem I'm having by using the Csound Scheme > example. If you take a look at that example, you'll see a function > called ransco: > > (define (ransco len rhy lb ub amp) > (let ((dur (* rhy 2))) > (process repeat len > for t = (elapsed #t) ; get true score time > for k = lb then (between lb ub) > do > (cs:i 1 t dur k amp) > (wait rhy)))) > > > A bit further down in the example, there's some instruction on sprout > this bit multiple time, using :write #f to 'collect' the events > generated into one score: > > > ; This will generate a score without writing an audio file. execute > ; the expression several times and use the Audio>Csound>Export... item > ; to export all the score data in various formats > > (sprout (ransco 10 .2 60 72 1000) "test.sco" :write #f) > > I was assuming I'd be able to do this same thing from a process, but > I'm getting an error that Grace is unable to get a file handle to > "test.sco". Here's the function: > > (define (f1) > (process repeat 3 > do > (sprout (ransco 10 .2 60 72 1000) "test.sco" :write #f) > (wait 1))) > > ...and I try to execute it like so: > (sprout (f1)) > > > Is this one of those 'not yet implemented' features, or am I missing > something? Any help is very much appreciated - thanks! Complete > listing below: > > ;------------------------------------------------ > ; > ;; Csound output > ; > > ; To evaluate code put the cursor after each expression and press > ; Command-Return, then check the console window for any output. > > ; A process that sends csound data > > (define (ransco len rhy lb ub amp) > (let ((dur (* rhy 2))) > (process repeat len > for t = (elapsed #t) ; get true score time > for k = lb then (between lb ub) > do > (cs:i 1 t dur k amp) > (wait rhy)))) > > ; Write a score file > > (sprout (ransco 10 .2 60 72 1000) "test.sco") > > ; Options for csound scorefiles are: > ; play: if #t call csound after writing file > ; header: header string for scorefile > ; orchestra: path to .orc file > ; write: if #t write the scorefile (default #t) > ; These options are all 'sticky' and except for write: are saved in > ; your preferences file. > > ; This next command will call csound after generating the > ; file. Before executing it copy the simp.orc code below into your > ; home directory and use Audio>Csound>Settings... to assign your > ; Csound app. > > (sprout (ransco 10 .2 60 72 1000) "test.sco" :play #t > :orchestra "simp.orc") > > ; This will generate a score without writing an audio file. execute > ; the expression several times and use the Audio>Csound>Export... item > ; to export all the score data in various formats > > (sprout (ransco 10 .2 60 72 1000) "test.sco" :write #f) > > (define (f1) > (process repeat 3 > do > (sprout (ransco 10 .2 60 72 1000) "test.sco" :write #f) > (wait 1))) > > (sprout (f1)) > > Ben > -- Ben McAllister | listenfaster.com | @listenfaster | tuktuband.com | c: 206.849.3183 -------------- next part -------------- An HTML attachment was scrubbed... URL: From taube at illinois.edu Sat Apr 16 13:31:20 2016 From: taube at illinois.edu (Taube, Heinrich K) Date: Sat, 16 Apr 2016 20:31:20 +0000 Subject: [CM] Csound sprout question In-Reply-To: References: Message-ID: <0EF24227-F8B8-4FE8-A3B4-24A4597A916D@illinois.edu> soorry i didnt notice this post. if you ar using a mac perhaps the issue might be ?sandboxing? that apple forces on the app. you could try two experiments to see if either helps 1. when you start the app use the File>Set Working directory command to set a working directory for ?test.sco? to be written to. 2. use a full pathnam, eg for me it might be ?/Users/taube/test.sco? > On Apr 16, 2016, at 2:54 PM, Ben McAllister wrote: > > I was assuming I'd be able to do this same thing from a process, but > I'm getting an error that Grace is unable to get a file handle to > "test.sco". Here's the function: From j_hearon at hotmail.com Thu Apr 28 18:09:41 2016 From: j_hearon at hotmail.com (James Hearon) Date: Fri, 29 Apr 2016 01:09:41 +0000 Subject: [CM] scheme move-locsig In-Reply-To: References: Message-ID: Hi, I'm getting fouled up with trying to pan across a heap of notes using cm patterns. I was trying to use a panning enevelope for the move-locsig degree, but something's not quite right. I tried changing the pan-env, make-env to :duration seconds thinking that would work across the whole heap of notes, but I still can still only get left, right, or center. Not quite sure what I'm doing wrong. Wondering if someone sees my errors and can help. Thank You, Jim ------------------------------------ (provide 'snd-nrev.scm) (if (provided? 'snd) (require snd-ws.scm) (require sndlib-ws.scm)) (load "/opt/snd-16/CM_patterns.scm") ;move-locsig with pan envelope (definstrument (myinst start-time duration frequency amplitude sampling-rate revamt degree distance (panning-env '(0 0 6 90)) ) (let* ((beg (floor (* start-time sampling-rate))) (end (+ beg (floor (* duration sampling-rate)))) (loc (make-locsig :degree degree :distance distance :reverb revamt)) (pan-env (make-env panning-env :duration 12)) ;use seconds here? (sine-wave (make-oscil :frequency frequency))) (do ((i beg (+ i 1))) ((= i end)) (let ((x (* amplitude (oscil sine-wave)))) (locsig loc i x) (move-locsig loc (env pan-env) distance) )))) (define (round-off z n) (let ((power (expt 10 n))) (/ (round (* power z)) power))) (let ((aaa (make-heap '(160 600.345 1000 400))) (bbb (make-heap '(1 1 .75 .25 .20 .15 .10 .10 .10 .10)))) (with-sound (:output "/opt/snd-16/MyTest.wav" :srate 48000 :channels 2 :header-type mus-riff :statistics #t :play #t) (let ((i 0)) (do ((k 0 (+ k 1))) ((>= k 40)) (let ((v (next bbb))) (myinst i v (next aaa) .9 48000 0.01 0 1.0 '(0 90 5 0) ) (set! i (+ (round-off i 2) v)) ;(format #t "~s i: ~s v: ~s\n"k i v ) ))))) From andersvi at notam02.no Fri Apr 29 00:21:40 2016 From: andersvi at notam02.no (andersvi at notam02.no) Date: Fri, 29 Apr 2016 09:21:40 +0200 Subject: [CM] scheme move-locsig References: Message-ID: <87d1p8c22j.fsf@bek.no> Hi James. J> (myinst i v (next aaa) .9 48000 0.01 0 1.0 '(0 90 5 0) ) Seems you're setting the panning-envelope for every note to '(0 90 5 0), and scaling the duration of this env to the hard-coded 12 seconds in your make-env call. Given the short note-durations (0.1->1.0 sec.) this leaves all your notes close to 90 degrees. Btw, there seem to be different interfaces to the various *locsig functions in clm/snd. dlocsig uses 0? as front by default, while Bills locsig in snd uses 45? as center. Better check the docs. If you change the 12 seconds to durations in your ins: (make-env panning-env :duration duration) you may fool around more with the envelope in the calls, eg.: (myinst i v (next aaa) .9 48000 0.01 0 1.0 `(0 ,(random 90) ,v ,(random 90))) -anders From bil at ccrma.Stanford.EDU Fri Apr 29 05:47:03 2016 From: bil at ccrma.Stanford.EDU (bil at ccrma.Stanford.EDU) Date: Fri, 29 Apr 2016 05:47:03 -0700 Subject: [CM] scheme move-locsig In-Reply-To: <87d1p8c22j.fsf@bek.no> References: <87d1p8c22j.fsf@bek.no> Message-ID: <38b4a7baa2b4baca97a0b7e73dc930eb@ccrma.stanford.edu> The 45-degrees = center choice goes back before my time! John Chowning is to blame, I think. In MUS10 we used the (non-standard even then) speaker numbering 1 0 2 3 so 0 degrees was right-front.