From rbastian at free.fr Mon Dec 1 03:00:08 2014 From: rbastian at free.fr (=?UTF-8?B?UmVuw6k=?= Bastian) Date: Mon, 1 Dec 2014 12:00:08 +0100 Subject: [CM] snd Message-ID: <20141201120008.768490ce@lenovo> Hello, I installed snd from the tarball (on Debian 7.6 & Xfce): This is Snd version 15.1 of 5-Nov-14: s7: 3.14 (18-Sep-14), Xen: 3.22 ALSA 1.0.25 Sndlib 24.1 (10-Aug-14) CLM 6.5 (31-Oct-14) without any graphics system <=== Compiled Dec 1 2014 11:39:21 C: 4.7.2 Linux 3.2.0-4-amd64 x86_64 How to add a graphics system? Thanks, ren? -- Ren? Bastian www.pythoneon.org From bil at ccrma.Stanford.EDU Mon Dec 1 07:50:52 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 1 Dec 2014 07:50:52 -0800 Subject: [CM] snd In-Reply-To: <20141201120008.768490ce@lenovo> References: <20141201120008.768490ce@lenovo> Message-ID: <20141201154619.M80333@ccrma.Stanford.EDU> > How to add a graphics system? In debian I think you need to install gtk3 and maybe gtk3-dev, or some such names. (apt-get install... but I forget the names). Then if the configure script doesn't automatically find gtk (it is the default now), try --with-gtk. If that doesn't work, there's probably some problem with paths which I might be able to see if you send me config.log. Motif also is available in debian, but you have to go through a "non-free" package site, or something like that. From rbastian at free.fr Mon Dec 1 10:01:02 2014 From: rbastian at free.fr (=?UTF-8?B?UmVuw6k=?= Bastian) Date: Mon, 1 Dec 2014 19:01:02 +0100 Subject: [CM] snd In-Reply-To: <20141201154619.M80333@ccrma.Stanford.EDU> References: <20141201120008.768490ce@lenovo> <20141201154619.M80333@ccrma.Stanford.EDU> Message-ID: <20141201190102.2765c85a@lenovo> Le Mon, 1 Dec 2014 07:50:52 -0800, "Bill Schottstaedt" a ?crit : > > How to add a graphics system? > > In debian I think you need to install gtk3 and maybe gtk3-dev, or > some such names. (apt-get install... but I forget the names). > Then if the configure script doesn't automatically find gtk (it is > the default now), try --with-gtk. If that doesn't work, there's > probably some problem with paths which I might be able to > see if you send me config.log. > The graphics work (installed ...gtk3... with synaptic and then ./configure --with-gtk). But I cannot get sound from within snd. The sound works with sox or aplay. rb > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > -- Ren? Bastian www.pythoneon.org From bil at ccrma.Stanford.EDU Mon Dec 1 12:42:59 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 1 Dec 2014 12:42:59 -0800 Subject: [CM] snd In-Reply-To: <20141201190102.2765c85a@lenovo> References: <20141201120008.768490ce@lenovo> <20141201154619.M80333@ccrma.Stanford.EDU> <20141201190102.2765c85a@lenovo> Message-ID: <20141201204014.M61898@ccrma.Stanford.EDU> > But I cannot get sound from within snd. I don't use Debian except through Virtualbox, and I get sound from snd in that context. README.Snd has some suggestions -- let me know if you figure out what the problem is. From anders.vinjar at bek.no Mon Dec 1 13:56:04 2014 From: anders.vinjar at bek.no (anders.vinjar at bek.no) Date: Mon, 01 Dec 2014 22:56:04 +0100 Subject: [CM] snd References: <20141201120008.768490ce@lenovo> <20141201154619.M80333@ccrma.Stanford.EDU> <20141201190102.2765c85a@lenovo> Message-ID: <87lhmr6nm3.fsf@bek.no> R> But I cannot get sound from within snd. The sound works with sox R> or aplay. Hi Ren?. Please provide some more info. Paste in the command you type when configuring snd, (ie. how you run ./configure), plus the last 20 or so lines of the output, at least from where it says "Options selected" and below, it may be someone spots what's going on. -anders From rbastian at free.fr Tue Dec 2 01:19:57 2014 From: rbastian at free.fr (=?UTF-8?B?UmVuw6k=?= Bastian) Date: Tue, 2 Dec 2014 10:19:57 +0100 Subject: [CM] Fw: snd Message-ID: <20141202101957.68ec4de5@lenovo> ----- Message Transf?r? ----- Date: Tue, 2 Dec 2014 10:03:33 +0100 De: Ren? Bastian ?: cmdist at ccrma.stanford.edu Sujet: Re: [CM] snd Le Mon, 01 Dec 2014 22:56:04 +0100, anders.vinjar at bek.no a ?crit : > R> But I cannot get sound from within snd. The sound works with > R> sox or aplay. > > Hi Ren?. > > Please provide some more info. > > Paste in the command you type when configuring snd, (ie. how you run > ./configure), plus the last 20 or so lines of the output, at least > from where it says "Options selected" and below, it may be someone > spots what's going on. > > -anders Hi Anders, I configured --with-gtk --with-pulseaudio; now the sound is working. (actually, I dont need real-time). rb > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist -- Ren? Bastian www.pythoneon.org -- Ren? Bastian www.pythoneon.org From rbastian at musiques-rb.org Tue Dec 2 01:03:33 2014 From: rbastian at musiques-rb.org (=?UTF-8?B?UmVuw6k=?= Bastian) Date: Tue, 2 Dec 2014 10:03:33 +0100 Subject: [CM] snd In-Reply-To: <87lhmr6nm3.fsf@bek.no> References: <20141201120008.768490ce@lenovo> <20141201154619.M80333@ccrma.Stanford.EDU> <20141201190102.2765c85a@lenovo> <87lhmr6nm3.fsf@bek.no> Message-ID: <20141202100333.5707ec1f@lenovo> Le Mon, 01 Dec 2014 22:56:04 +0100, anders.vinjar at bek.no a ?crit : > R> But I cannot get sound from within snd. The sound works with > R> sox or aplay. > > Hi Ren?. > > Please provide some more info. > > Paste in the command you type when configuring snd, (ie. how you run > ./configure), plus the last 20 or so lines of the output, at least > from where it says "Options selected" and below, it may be someone > spots what's going on. > > -anders Hi Anders, I configured --with-gtk --with-pulseaudio; now the sound is working. (actually, I dont need real-time). rb > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist -- Ren? Bastian www.pythoneon.org From Torsten.Anders at beds.ac.uk Sun Dec 7 17:09:47 2014 From: Torsten.Anders at beds.ac.uk (Torsten Anders) Date: Mon, 8 Dec 2014 01:09:47 +0000 Subject: [CM] [Algorithmic composition] Looking for examples for a book chapter Message-ID: <83E63A66-F4CB-4965-A496-32D54893CC50@beds.ac.uk> [Apologies for a bit of cross posting] Dear friends and colleagues, For a forthcoming Handbook on Algorithmic Music I have been invited to write a chapter on knowledge-based algorithmic composition. In this chapter I would like to focus on actual compositions that employ techniques like grammars, constraint programming, techniques from machine learning like Markov chains or artificial neural networks etc., and then discuss technical details in the light of such examples. I am looking for material on relevant compositions. I am particularly looking for compositions that use these or other relevant algorithmic composition techniques in a characteristic way. For example, there exist compositions where filter movements are controlled with rhythmic constraints, where multiphonics are composed with a constraint-based system, where rules control the resulting formats of an overall orchestral sound to make the orchestra ?speak?? So, on the one hand, pieces that use such techniques in a somewhat unconventional way by going beyond the generation of mere note pitches and/or durations are interesting for me. On the other hand, of course also the generation of note pitches and/or durations can of course be characteristic, e.g., by further developing an underlying technique (e.g., by combining some knowledge-based technique with another technique), or simply the resulting music is convincing. You get the idea. So, I would be grateful if you point out relevant compositions. If this is a composition of your own, I would welcome informative details (e.g., score/recording, and a description of your algorithmic composition technique(s)). I am looking forward to your responses. Thank you very much! Best wishes, Torsten -- Dr Torsten Anders Course Leader, Music Technology University of Bedfordshire Park Square, Room A315 http://www.torsten-anders.de From mjkoskin at kolumbus.fi Mon Dec 8 04:41:09 2014 From: mjkoskin at kolumbus.fi (Matti Koskinen) Date: Mon, 8 Dec 2014 14:41:09 +0200 Subject: [CM] [Algorithmic composition] Looking for examples for a book chapter In-Reply-To: <83E63A66-F4CB-4965-A496-32D54893CC50@beds.ac.uk> References: <83E63A66-F4CB-4965-A496-32D54893CC50@beds.ac.uk> Message-ID: <116D4195-F877-4DD6-8802-B75CA55CC0F8@kolumbus.fi> > On 8 Dec 2014, at 3:09 am, Torsten Anders wrote: > > [Apologies for a bit of cross posting] > > Dear friends and colleagues, > > For a forthcoming Handbook on Algorithmic Music I have been invited to write a chapter on knowledge-based algorithmic composition. In this chapter I would like to focus on actual compositions that employ techniques like grammars, constraint programming, techniques from machine learning like Markov chains or artificial neural networks etc., and then discuss technical details in the light of such examples. > > I am looking for material on relevant compositions. I am particularly looking for compositions that use these or other relevant algorithmic composition techniques in a characteristic way. For example, there exist compositions where filter movements are controlled with rhythmic constraints, where multiphonics are composed with a constraint-based system, where rules control the resulting formats of an overall orchestral sound to make the orchestra ?speak?? So, on the one hand, pieces that use such techniques in a somewhat unconventional way by going beyond the generation of mere note pitches and/or durations are interesting for me. On the other hand, of course also the generation of note pitches and/or durations can of course be characteristic, e.g., by further developing an underlying technique (e.g., by combining some knowledge-based technique with another technique), or simply the resulting music is convincing. You get the idea. > > So, I would be grateful if you point out relevant compositions. If this is a composition of your own, I would welcome informative details (e.g., score/recording, and a description of your algorithmic composition technique(s)). > > I am looking forward to your responses. Thank you very much! > > Best wishes, > Torsten > > -- > Dr Torsten Anders > Course Leader, Music Technology > University of Bedfordshire > Park Square, Room A315 > http://www.torsten-anders.de > > > > > > > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > I don?t know, if simulated annealing process (Maxanneal by Iazzetta et al) I have the paper somewhere, but couldn?t find it now on my Macbook. It had c-code of the program, I grabbed it from ps-file. It works, and I?m just about to put it on github. I modified the code, and it writes scheme-file. Been testing it with Grace, and something it does. Also I have code for jMusic using simulated annealing, but it uses different kind of qualification (much more elaborate). And, somewhere on my disks is a genetic algorithm with jMusic... Do contact me, if you?re interested in these. mit vielen gr?ssen -m From mjkoskin at kolumbus.fi Tue Dec 9 13:15:56 2014 From: mjkoskin at kolumbus.fi (Matti Koskinen) Date: Tue, 9 Dec 2014 23:15:56 +0200 Subject: [CM] algo comp on github Message-ID: <91EF1421-C4A8-49AB-B395-06CBCA95B140@kolumbus.fi> Don?t know if someone is interested, but the Grace-maxanneal -code is now on github https://github.com/holgfreak Was a good way of learning git commands :-) -m -------------- next part -------------- An HTML attachment was scrubbed... URL: From mjkoskin at kolumbus.fi Tue Dec 9 15:56:35 2014 From: mjkoskin at kolumbus.fi (Matti Koskinen) Date: Wed, 10 Dec 2014 01:56:35 +0200 Subject: [CM] algo comp on github In-Reply-To: References: <91EF1421-C4A8-49AB-B395-06CBCA95B140@kolumbus.fi> Message-ID: <54878C33.6020109@kolumbus.fi> On 12/10/2014 12:50 AM, Torsten Anders wrote: > Dear Matti, > > Thanks for sharing, but that link seemingly does not work. > > Best wishes, > Torsten > > -- > Dr Torsten Anders > Course Leader, Music Technology > University of Bedfordshire > Park Square, Room A315 > http://www.torsten-anders.de > > > > On 9 Dec 2014, at 21:15, Matti Koskinen wrote: >> Don?t know if someone is interested, but the Grace-maxanneal -code is now on github >> https://github.com/holgfreak >> >> Was a good way of learning git commands :-) >> >> -m sorry, a typo https://github.com/holgafreak -----------------------A -m >> _______________________________________________ >> Cmdist mailing list >> Cmdist at ccrma.stanford.edu >> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From orm.finnendahl at selma.hfmdk-frankfurt.de Sat Dec 13 03:08:31 2014 From: orm.finnendahl at selma.hfmdk-frankfurt.de (Orm Finnendahl) Date: Sat, 13 Dec 2014 12:08:31 +0100 Subject: [CM] deconvolution in snd Message-ID: <20141213110831.GA3465@x1-orm> Hi, before doing it myself in a probably less than optimal and computationally inefficient way: Has anybody implemented functions to perform deconvolution in some straightforward way (with given two files) in snd, similar to "convolve-files" and would be willing to share them, or does somebody have some insights about how to use snd's internal machinery for implementing it efficiently? The files are fairly big (200-300 MB). -- Orm From nando at ccrma.Stanford.EDU Tue Dec 16 22:49:17 2014 From: nando at ccrma.Stanford.EDU (Fernando Lopez-Lezcano) Date: Tue, 16 Dec 2014 22:49:17 -0800 Subject: [CM] snd & inf-snd.el: multiple lines Message-ID: <5491276D.7020802@localhost> Hi all, Anyone working with the aforementioned combination? (snd as an emacs subprocess through if-snd.el). If I evaluate single lines all is well. If I highlight a region and try to get it evaluated in the snd listener through "Send Region" I get errors. Line breaks split the region in multiple subregions that of course don't make sense individually to the scheme interpreter. Any way around this? Thanks, -- Fernando From tito.01beta at gmail.com Wed Dec 17 07:10:17 2014 From: tito.01beta at gmail.com (Tito Latini) Date: Wed, 17 Dec 2014 16:10:17 +0100 Subject: [CM] snd & inf-snd.el: multiple lines In-Reply-To: <5491276D.7020802@localhost> References: <5491276D.7020802@localhost> Message-ID: <20141217151017.GA1690@rhk.homenet.telecomitalia.it> Hi, On Tue, Dec 16, 2014 at 10:49:17PM -0800, Fernando Lopez-Lezcano wrote: > Hi all, > > Anyone working with the aforementioned combination? (snd as an emacs > subprocess through if-snd.el). If I evaluate single lines all is well. > If I highlight a region and try to get it evaluated in the snd listener > through "Send Region" I get errors. Line breaks split the region in > multiple subregions that of course don't make sense individually to the > scheme interpreter. > > Any way around this? > Thanks, > -- Fernando it's a problem with the parser when Snd (s7) is compiled without gui support. A workaround in `snd-scheme-mode' is to rewrite `snd-send-region': (setq inf-snd-prompt "") ;; i.e. tmpfs in /dev/shm (setq snd-send-eval-file "/dev/shm/snd-tmp.scm") (defun snd-send-region (start end) "Send the current region to the inferior Snd process. START and END define the region." (interactive "r") (write-region start end snd-send-eval-file nil 0) (comint-send-string (snd-proc) (format "(load %S)\n" snd-send-eval-file))) Tito From bil at ccrma.Stanford.EDU Wed Dec 17 08:17:40 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 17 Dec 2014 08:17:40 -0800 Subject: [CM] snd & inf-snd.el: multiple lines In-Reply-To: <20141217151017.GA1690@rhk.homenet.telecomitalia.it> References: <5491276D.7020802@localhost> <20141217151017.GA1690@rhk.homenet.telecomitalia.it> Message-ID: <20141217161148.M53345@ccrma.Stanford.EDU> Thanks very much! There must be a way to do the same thing as XtAppAddInput or g_io_add_watch_full in the no-gui case. I'll add it to my TODO list. It also should be possible in inf-snd.el to recognize the no-gui case (*features* won't include 'gtk or 'motif, I think), so your work-around could be invoked automatically. From bil at ccrma.Stanford.EDU Wed Dec 17 08:25:00 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 17 Dec 2014 08:25:00 -0800 Subject: [CM] snd & inf-snd.el: multiple lines In-Reply-To: <20141217151017.GA1690@rhk.homenet.telecomitalia.it> References: <5491276D.7020802@localhost> <20141217151017.GA1690@rhk.homenet.telecomitalia.it> Message-ID: <20141217162419.M61711@ccrma.Stanford.EDU> Or maybe just do paren matching and strcat in xen_repl in xen.c. From k.s.matheussen at gmail.com Wed Dec 17 08:25:02 2014 From: k.s.matheussen at gmail.com (Kjetil Matheussen) Date: Wed, 17 Dec 2014 17:25:02 +0100 Subject: [CM] snd & inf-snd.el: multiple lines In-Reply-To: <20141217161148.M53345@ccrma.Stanford.EDU> References: <5491276D.7020802@localhost> <20141217151017.GA1690@rhk.homenet.telecomitalia.it> <20141217161148.M53345@ccrma.Stanford.EDU> Message-ID: Another alternative is to use the s7webserver code. It should just be a matter of calling "s7webserver_create(s7, 5080, true);" right after calling s7_init() in snd. Then you can use s7webserver/s7webserver_repl.py as the snd scheme binary. One advantage of doing this is that you don't have to run snd as a emacs subprocess. Another advantage is that if snd is restarted, you don't have to restart the emacs subprocess as well. On Wed, Dec 17, 2014 at 5:17 PM, Bill Schottstaedt wrote: > > Thanks very much! There must be a way to do the same thing > as XtAppAddInput or g_io_add_watch_full in the no-gui case. > I'll add it to my TODO list. It also should be possible in > inf-snd.el to recognize the no-gui case (*features* won't include > 'gtk or 'motif, I think), so your work-around could be invoked > automatically. > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bil at ccrma.Stanford.EDU Wed Dec 17 08:32:44 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 17 Dec 2014 08:32:44 -0800 Subject: [CM] snd & inf-snd.el: multiple lines In-Reply-To: References: <5491276D.7020802@localhost> <20141217151017.GA1690@rhk.homenet.telecomitalia.it> <20141217161148.M53345@ccrma.Stanford.EDU> Message-ID: <20141217163042.M59562@ccrma.Stanford.EDU> I think Snd (or s7?) needs a --with-s7webserver configuration switch -- besides the xen.c change do I need to add any others? From k.s.matheussen at gmail.com Wed Dec 17 08:33:53 2014 From: k.s.matheussen at gmail.com (Kjetil Matheussen) Date: Wed, 17 Dec 2014 17:33:53 +0100 Subject: [CM] snd & inf-snd.el: multiple lines In-Reply-To: References: <5491276D.7020802@localhost> <20141217151017.GA1690@rhk.homenet.telecomitalia.it> <20141217161148.M53345@ccrma.Stanford.EDU> Message-ID: Sorry, not so simple. The s7webserver runs in the qt event loop. So you have to compile snd with qtnetwork support, and call qcore:processevents (or something like that) very often. Bill's suggestion is likely to be less work. On Wed, Dec 17, 2014 at 5:25 PM, Kjetil Matheussen wrote: > > Another alternative is to use the s7webserver code. It should just be a > matter of calling "s7webserver_create(s7, 5080, true);" right after calling > s7_init() in snd. Then you can use s7webserver/s7webserver_repl.py as the > snd scheme binary. > > One advantage of doing this is that you don't have to run snd as a emacs > subprocess. Another advantage is that if snd is restarted, you don't have > to restart the emacs subprocess as well. > > > > On Wed, Dec 17, 2014 at 5:17 PM, Bill Schottstaedt > wrote: >> >> Thanks very much! There must be a way to do the same thing >> as XtAppAddInput or g_io_add_watch_full in the no-gui case. >> I'll add it to my TODO list. It also should be possible in >> inf-snd.el to recognize the no-gui case (*features* won't include >> 'gtk or 'motif, I think), so your work-around could be invoked >> automatically. >> >> _______________________________________________ >> Cmdist mailing list >> Cmdist at ccrma.stanford.edu >> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From k.s.matheussen at gmail.com Wed Dec 17 08:36:28 2014 From: k.s.matheussen at gmail.com (Kjetil Matheussen) Date: Wed, 17 Dec 2014 17:36:28 +0100 Subject: [CM] snd & inf-snd.el: multiple lines In-Reply-To: <20141217163042.M59562@ccrma.Stanford.EDU> References: <5491276D.7020802@localhost> <20141217151017.GA1690@rhk.homenet.telecomitalia.it> <20141217161148.M53345@ccrma.Stanford.EDU> <20141217163042.M59562@ccrma.Stanford.EDU> Message-ID: I guess a --s7webserver-portnumber switch would be useful too. But as I wrote, it's more work than just calling the init function. I'll see if I can make a patch later for snd. On Wed, Dec 17, 2014 at 5:32 PM, Bill Schottstaedt wrote: > > I think Snd (or s7?) needs a --with-s7webserver configuration switch -- > besides the xen.c change do I need to add any others? > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bil at ccrma.Stanford.EDU Thu Dec 18 04:18:04 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 18 Dec 2014 04:18:04 -0800 Subject: [CM] Snd 15.2 Message-ID: <20141218121505.M11491@ccrma.Stanford.EDU> Snd 15.2 Mike Scholz fixed bugs in clm and the NetBSD audio code, and updated many of the scripts. Anders Vinjar added lispworks code for gnuplot in dlocsig.lisp. all the motif stuff (xm.c, snd-motif.scm etc) has moved to the *motif* environment, OpenGL (gl.c, snd-gl.scm) to *gl*, and gtk (xg.c, snd-gtk.scm etc) to *gtk*. mus-copy (or copy) copies a generator. added snd15.scm (old vct names) checked: gtk 3.15.2|3, FC 21, sbcl 1.2.6 Thanks!: Mike Scholz, Matti Koskinen, Kjetil Matheussen, Anders Vinjar, Tito Latini From bil at ccrma.Stanford.EDU Thu Dec 18 09:56:43 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 18 Dec 2014 09:56:43 -0800 Subject: [CM] snd & inf-snd.el: multiple lines In-Reply-To: <20141217161148.M53345@ccrma.Stanford.EDU> References: <5491276D.7020802@localhost> <20141217151017.GA1690@rhk.homenet.telecomitalia.it> <20141217161148.M53345@ccrma.Stanford.EDU> Message-ID: <20141218175420.M41303@ccrma.Stanford.EDU> I changed the no-gui repl (if not using readline) to wait for a complete expression (in the current tarball, not in 15.2). From nando at ccrma.Stanford.EDU Thu Dec 18 18:07:02 2014 From: nando at ccrma.Stanford.EDU (Fernando Lopez-Lezcano) Date: Thu, 18 Dec 2014 18:07:02 -0800 Subject: [CM] snd & inf-snd.el: multiple lines In-Reply-To: <20141218175420.M41303@ccrma.Stanford.EDU> References: <5491276D.7020802@localhost> <20141217151017.GA1690@rhk.homenet.telecomitalia.it> <20141217161148.M53345@ccrma.Stanford.EDU> <20141218175420.M41303@ccrma.Stanford.EDU> Message-ID: <54938846.3060006@localhost> On 12/18/2014 09:56 AM, Bill Schottstaedt wrote: > I changed the no-gui repl (if not using readline) to wait for a complete > expression (in the current tarball, not in 15.2). Thanks Bill (and all others)! The latest tarball seems to be working fine! I configured it like this: ./configure --with-jack --with-gsl --with-fftw --with-gmp --without-gui Then run "run-snd-scheme" and in the scheme code buffer "snd-scheme-mode", now I can ctrl-meta-x and send whole definitions automagically to the "inferior" snd process. Old (emacs) habits die hard.... -- Fernando From nando at ccrma.Stanford.EDU Sat Dec 20 11:59:09 2014 From: nando at ccrma.Stanford.EDU (Fernando Lopez-Lezcano) Date: Sat, 20 Dec 2014 11:59:09 -0800 Subject: [CM] snd & inf-snd.el: multiple lines In-Reply-To: <54938846.3060006@localhost> References: <5491276D.7020802@localhost> <20141217151017.GA1690@rhk.homenet.telecomitalia.it> <20141217161148.M53345@ccrma.Stanford.EDU> <20141218175420.M41303@ccrma.Stanford.EDU> <54938846.3060006@localhost> Message-ID: <5495D50D.5040100@localhost> On 12/18/2014 06:07 PM, Fernando Lopez-Lezcano wrote: > On 12/18/2014 09:56 AM, Bill Schottstaedt wrote: >> I changed the no-gui repl (if not using readline) to wait for a complete >> expression (in the current tarball, not in 15.2). > > Thanks Bill (and all others)! The latest tarball seems to be working fine! > > I configured it like this: > ./configure --with-jack --with-gsl --with-fftw --with-gmp --without-gui > > Then run "run-snd-scheme" and in the scheme code buffer > "snd-scheme-mode", now I can ctrl-meta-x and send whole definitions > automagically to the "inferior" snd process. > > Old (emacs) habits die hard.... Hmmm, it would be nice to have a way to interrupt a currently running calculation from emacs (or sound playback). "ctrl-g" does not seem to have the same effect that it has in snd. And a double "ctrl-c" in the scheme buffer causes the interpreter to quit. -- Fernando From bil at ccrma.Stanford.EDU Sun Dec 21 05:35:55 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Sun, 21 Dec 2014 05:35:55 -0800 Subject: [CM] snd & inf-snd.el: multiple lines In-Reply-To: <5495D50D.5040100@localhost> References: <5491276D.7020802@localhost> <20141217151017.GA1690@rhk.homenet.telecomitalia.it> <20141217161148.M53345@ccrma.Stanford.EDU> <20141218175420.M41303@ccrma.Stanford.EDU> <54938846.3060006@localhost> <5495D50D.5040100@localhost> Message-ID: <20141221132824.M61849@ccrma.Stanford.EDU> > Hmmm, it would be nice to have a way to interrupt a currently running > calculation from emacs (or sound playback). "ctrl-g" does not seem to > have the same effect that it has in snd. And a double "ctrl-c" in the > scheme buffer causes the interpreter to quit. To interrupt the s7 evaluator, you need to set up the s7 begin_hook to watch for some signal from emacs (I don't know how this works), then return true so that s7 internally calls s7_quit, which on a good day will return s7 to a clean state awaiting the next expression. To interrupt playback requires that the begin_hook and the no-gui playback process cooperate as in C-g in the gui case. It seems easier to have the gui, but just ignore it -- you can set :to-snd to #f in with-sound to turn off the automatic display (or *to-snd* to change the default). From j_hearon at hotmail.com Fri Dec 26 11:19:35 2014 From: j_hearon at hotmail.com (James Hearon) Date: Fri, 26 Dec 2014 19:19:35 +0000 Subject: [CM] defvar global list In-Reply-To: References: Message-ID: Hi, Working in CLM with a .clm file, getting confused with lisp, and I was hoping I could get some help from lisp experts here. I'm confused why collecting into a global list is not available from the second loop, in ex. 1. I'm wondering if I'm not understanding something about scope. Should the loops from ex. 1 be wrapped with something else like a "let" statement? I can access the global list by defining a function in ex. 2, but curious where I'm going wrong in ex. 1? ex. 1 (defvar mylist '(0.5 100.0 200.25 4000.0 1.0 0.33)) (defvar *test* '(nil)) (loop for i from 0 to 10 by 1 for xx in mylist collect (random-element mylist) into *test* finally (return *test*)) ) (loop for i from 0 to 10 by 1 for yy in *test* ;the randomized list above does not seem available as global here do (format t " ~A" yy) ) ------------------ ex. 2 (defvar mylist '(0.5 100.0 200.25 4000.0 1.0 0.33)) (defvar *test* '(nil)) (defun myfunc (somelist) (loop for i from 0 to 10 by 1 for xx in somelist collect (random-element somelist) into *test* finally (return *test*)) ) (loop for i from 0 to 10 by 1 for yy in (myfunc mylist) do (format t " ~A" yy) ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bil at ccrma.Stanford.EDU Fri Dec 26 12:37:54 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 26 Dec 2014 12:37:54 -0800 Subject: [CM] defvar global list In-Reply-To: References: Message-ID: <20141226203428.M16921@ccrma.Stanford.EDU> I think the variable used by collect in loop is local to the loop (it is handled like "with" according to cltl2), so the *test* global is not touched. In the second example, you're using the value returned by the function (i.e. the first loop), which is the value of local variable *test* -- once again the global *test* is ignored, but it is irrelevant in the second case. You could (setf *test* ...loop...) to change the global *test*'s value. From j_hearon at hotmail.com Sun Dec 28 19:42:40 2014 From: j_hearon at hotmail.com (James Hearon) Date: Mon, 29 Dec 2014 03:42:40 +0000 Subject: [CM] defvar global list In-Reply-To: References: Message-ID: Hi, Thank you folks for the hints. I think I may have it working now using setf. (defun random-element (list) (nth (random (length list)) list)) (defvar mylist '(0.5 100.0 200.25 4000.0 1.0 0.33 0.1 0.2 5000.0 2.0)) (defvar *test* '(nil)) ;global list (loop for i from 0 to 9 by 1 for xx in mylist collect (random-element mylist) into atest ;collect into local list finally (setf *test* atest) ;setf local list to global one ) (loop for i from 0 to 9 by 1 for xx in *test* ;access global list do (format t " ~A" xx) ) -------------- next part -------------- An HTML attachment was scrubbed... URL: