From j_hearon at hotmail.com Mon Oct 7 10:31:17 2013 From: j_hearon at hotmail.com (James Hearon) Date: Mon, 7 Oct 2013 17:31:17 +0000 Subject: [CM] emacs, slime fancy commands, clm In-Reply-To: References: Message-ID: Hi, It took me a while to finally grok this--to be able to write code in a .lisp file and compile and load it, but it seems something called slime fancy commands provides an answer. M-x slime-compile-and-load-file (definstrument examp1 (start-time duration frequency amplitude) (let* ((beg (floor (* start-time *srate*))) (end (+ beg (floor (* duration *srate*)))) (j 0)) (run (loop for i from beg below end do (outa i (* amplitude (sin (* j 2.0 pi (/ frequency *srate*))))) (incf j))))) (with-sound () (examp1 0 3.25 440.0 0.75)) So I can do this all in one step in emacs now (after M-x slime, then (load "all.lisp")), and that helps with tweaking the instrument code in the buffer as opposed to loading and compiling an .ins file. I guessing that's probably going backwards in terms of how/why those files (.ins, .fasl, .clm) developed, and once the instrument is tweaked out, then I can see it's probably best to go ahead and create an .ins file out of the .lisp file, but the .lisp file seems to make it easier for designing instruments in the emacs editor. Am I on the right track here, or is there some compelling reason to employ .ins files in CLM for designing an instrument in the emacs editor? Regards, Jim > 1. emacs, slime, sbcl, clm (James Hearon) > 2. Re: emacs, slime, sbcl, clm (Bill Schottstaedt) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 6 Sep 2013 18:08:25 +0000 > From: James Hearon > Subject: [CM] emacs, slime, sbcl, clm > To: "cmdist at ccrma.Stanford.EDU" > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > I'm getting myself confused about how to evaluate a clm .lisp file in emacs. > > I tried evaluating the inst below but get a lisp error: (void-function with-sound). > > (definstrument examp1 (start-time duration frequency amplitude) > (let* ((beg (floor (* start-time *srate*))) > (end (+ beg (floor (* duration *srate*)))) > (j 0)) > (run > (loop for i from beg below end do > (outa i (* amplitude (sin (* j 2.0 pi (/ frequency *srate*))))) > (incf j))))) > > (with-sound () (examp1 0 3.25 440.0 0.75)) > > I did a load all.lisp before evaluating and all the .fasl files are generated etc. Also the compile-file, then load, and finally with-sound approach is working o.k. for .ins files, but I was trying to code an inst using a .lisp file and evaluating from emacs so I could play then edit(tweak) from the buffer. Does that approach not work? > > Regards, > Jim > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://ccrma-mail.stanford.edu/mailman/private/cmdist/attachments/20130906/2a94fa56/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Fri, 6 Sep 2013 11:48:33 -0700 > From: "Bill Schottstaedt" > Subject: Re: [CM] emacs, slime, sbcl, clm > To: James Hearon , "cmdist at ccrma.Stanford.EDU" > > Message-ID: <20130906184636.M74072 at ccrma.Stanford.EDU> > Content-Type: text/plain; charset=iso-8859-1 > > You do need to compile the instrument code in the CL clm -- the compiler > forces the run macro to expand fully, or something like that. > > > > ------------------------------ > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > > End of Cmdist Digest, Vol 65, Issue 1 > ************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From bil at ccrma.Stanford.EDU Mon Oct 7 12:11:15 2013 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 7 Oct 2013 12:11:15 -0700 Subject: [CM] emacs, slime fancy commands, clm In-Reply-To: References: Message-ID: <20131007190944.M10549@ccrma.Stanford.EDU> The *.ins files are just a convenience. The ins extension goes back to the ancients -- the real ancients! -- before my time. From Michael.Rogulla at SIZ.DE Sun Oct 13 04:10:44 2013 From: Michael.Rogulla at SIZ.DE (Michael.Rogulla at SIZ.DE) Date: Sun, 13 Oct 2013 13:10:44 +0200 Subject: [CM] Examples for Grace? Message-ID: Hello all, is there a site (or are there many sites?) dedicated to pieces written for Grace? Or even longer examples? I hope that there must be some kind of community of people, working with Grace. Mikel -------------- next part -------------- An HTML attachment was scrubbed... URL: From bil at ccrma.Stanford.EDU Mon Oct 14 16:28:00 2013 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 14 Oct 2013 16:28:00 -0700 Subject: [CM] Snd 14.1 Message-ID: <20131014232648.M76009@ccrma.Stanford.EDU> Snd 14.1: removed frame.scm and mixer.scm (frames and mixers have been replaced by float-vectors in s7-clm). checked: gtk 3.9.16, 3.10.0|1, sbcl 1.1.12. Thanks!: Mike Scholz. From schiv at archaudio.org Sun Oct 27 14:04:44 2013 From: schiv at archaudio.org (Ray Rashif) Date: Mon, 28 Oct 2013 05:04:44 +0800 Subject: [CM] [Snd] 14.x build failure with ladspa, incomplete type error Message-ID: On 15 October 2013 07:28, Bill Schottstaedt wrote: > Snd 14.1: > > removed frame.scm and mixer.scm (frames and mixers have been replaced > by float-vectors in s7-clm). > > checked: gtk 3.9.16, 3.10.0|1, sbcl 1.1.12. Hi Bill I couldn't locate a bug tracker so I'm filing this here. Ever since 14.0 I've not had success building snd --with-ladspa: snd-ladspa.c: In function 'g_ladspa_connect_port': snd-ladspa.c:1194:32: error: dereferencing pointer to incomplete type double_to_float(samples->data, samples->length) ^ snd-ladspa.c:1194:47: error: dereferencing pointer to incomplete type double_to_float(samples->data, samples->length) Here 'samples' is of type vct*. Upon further investigation it appears the struct definition for vct moved from vct.h to vct.c in 14.0. There must be a reason for this, but it is beyond my knowledge. For the meantime, an interim solution is to bring the definition back into the header. Patch for workaround inline (copies 13.9 verbatim): --- snd-14.1.orig/vct.h 2013-10-28 02:22:35.073798054 +0800 +++ snd-14.1/vct.h 2013-10-28 02:45:27.166364791 +0800 @@ -1,11 +1,11 @@ #ifndef VCT_H #define VCT_H -#if HAVE_SCHEME - typedef struct s7_cell vct; -#else -typedef struct vct vct; -#endif +typedef struct { + mus_long_t length; + mus_float_t *data; + bool dont_free; +} vct; #ifdef __cplusplus extern "C" { -- GPG/PGP ID: C0711BF1 From bil at ccrma.Stanford.EDU Sun Oct 27 16:59:34 2013 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Sun, 27 Oct 2013 16:59:34 -0700 Subject: [CM] [Snd] 14.x build failure with ladspa, incomplete type error In-Reply-To: References: Message-ID: <20131027235803.M83517@ccrma.Stanford.EDU> Thanks very much for the bug report! I must have messed up my ladpsa test. I think the right way to fix this is to use if (descriptor->connect_port) descriptor->connect_port(XEN_TO_C_Ladspa_Handle(ptr), XEN_TO_C_ULONG(port), ! double_to_float(mus_vct_data(samples), mus_vct_length(samples)) ); From schiv at archaudio.org Mon Oct 28 03:24:02 2013 From: schiv at archaudio.org (Ray Rashif) Date: Mon, 28 Oct 2013 18:24:02 +0800 Subject: [CM] [Snd] 14.x build failure with ladspa, incomplete type error In-Reply-To: <20131027235803.M83517@ccrma.Stanford.EDU> References: <20131027235803.M83517@ccrma.Stanford.EDU> Message-ID: On 28 October 2013 07:59, Bill Schottstaedt wrote: > Thanks very much for the bug report! I must have messed > up my ladpsa test. I think the right way to fix this is to > use > > if (descriptor->connect_port) > descriptor->connect_port(XEN_TO_C_Ladspa_Handle(ptr), > XEN_TO_C_ULONG(port), > ! double_to_float(mus_vct_data(samples), mus_vct_length(samples)) > ); Thanks for the proper fix! Confirmed to be working. -- GPG/PGP ID: C0711BF1 From anders.vinjar at bek.no Mon Oct 28 11:46:36 2013 From: anders.vinjar at bek.no (anders.vinjar at bek.no) Date: Mon, 28 Oct 2013 19:46:36 +0100 Subject: [CM] linux-port of OpenMusic Message-ID: <874n81p71v.fsf@notam02.no> Hi all. Ive been working on a linux-port of IRCAMs OpenMusic lately, and think its approaching a useful state now. I would very much appreciate it if some of the brave ones out there did some testing and sent me feedback: http://forge.ircam.fr/p/OM6/downloads/label/421/ The tarball you'll find there includes the OM-6.7 image, source code, a README and the various resources it uses (.so's, libs, fonts, icons, help-files, tutorials, other). This beta is not prepared to be installed anywhere, only to be run from inside the directory where you unpack it (type ./OM_6.7_beta_4 ... ). Plan is to make an installable version once the dust settles some. Theres one thing which needs installing to work however, the music-fonts used in the various editors and factories etc. Theres an .rpm here: http://forge.ircam.fr/p/OM6/downloads/get/omfonts-1.0-1.noarch.rpm.zip - which hopefully takes care of the fonts (theyre also available for manual install in the tarball). The .rpm installs them (4 .ttf-files) inside its own folder /usr/share/fonts/omfonts/* The present version uses JACK for audio + midi I/O, and will try to start a JACK server if its not already running. To get any sound from the usual midi-ports, the linux-port uses libfluidsynth, and attempts to load one of the standard soundfonts into it. However you should be able to route midi-output to any client you prefer (with jack-midi support). Thanks for any feedback. Cheers, -anders From dlphillips at woh.rr.com Mon Oct 28 12:13:14 2013 From: dlphillips at woh.rr.com (Dave Phillips) Date: Mon, 28 Oct 2013 15:13:14 -0400 Subject: [CM] linux-port of OpenMusic In-Reply-To: <874n81p71v.fsf@notam02.no> References: <874n81p71v.fsf@notam02.no> Message-ID: <526EB74A.5080907@woh.rr.com> On 10/28/2013 02:46 PM, anders.vinjar at bek.no wrote: > Hi all. > > Ive been working on a linux-port of IRCAMs OpenMusic lately, and think > its approaching a useful state now. > Hi Anders, Great news ! I will *definitely* check it out this evening after teaching. I tried and reported on older versions for Linux, but nothing was really usable then. Best regards, dp From k.s.matheussen at gmail.com Mon Oct 28 13:42:51 2013 From: k.s.matheussen at gmail.com (Kjetil Matheussen) Date: Mon, 28 Oct 2013 21:42:51 +0100 Subject: [CM] linux-port of OpenMusic In-Reply-To: <874n81p71v.fsf@notam02.no> References: <874n81p71v.fsf@notam02.no> Message-ID: Congratulations, It works! I had to do this first on my fedora box: yum install fluidsynth-libs.i686 yum install jack-audio-connection-kit.i686 Loading a sound using the Class->Audio->SOUND object causes a segfault for me though: Error: Segmentation violation(11) [code 0] at 22527186 {Offset 1852 inside #} eax 0 ; ebx 0 ; ecx 200 ; edx 200DDE30 esp 1CEFD5B0 ; ebp 1CEFD690 ; esi 56 ; edi 0 1 (continue) Remove display-callback from # 2 Remove display-callback from # 3 (abort) Return to event loop. Type :b for backtrace or :c