Re: [CM] snd inf-snd.el: multiple lines

2014-12-21 Thread Bill Schottstaedt
 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).

___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] snd inf-snd.el: multiple lines

2014-12-20 Thread Fernando Lopez-Lezcano
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

___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] snd inf-snd.el: multiple lines

2014-12-18 Thread Bill Schottstaedt
I changed the no-gui repl (if not using readline) to wait for a complete
expression (in the current tarball, not in 15.2).


___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] snd inf-snd.el: multiple lines

2014-12-18 Thread Fernando Lopez-Lezcano
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

___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] snd inf-snd.el: multiple lines

2014-12-17 Thread Bill Schottstaedt
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@ccrma.stanford.edu
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] snd inf-snd.el: multiple lines

2014-12-17 Thread Bill Schottstaedt
I think Snd (or s7?) needs a --with-s7webserver configuration switch --
besides the xen.c change do I need to add any others?

___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] snd inf-snd.el: multiple lines

2014-12-17 Thread Kjetil Matheussen
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 k.s.matheus...@gmail.com
 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 b...@ccrma.stanford.edu
  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@ccrma.stanford.edu
 http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist


___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist


Re: [CM] snd inf-snd.el: multiple lines

2014-12-17 Thread Kjetil Matheussen
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 b...@ccrma.stanford.edu
wrote:

 I think Snd (or s7?) needs a --with-s7webserver configuration switch --
 besides the xen.c change do I need to add any others?



___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist