Re: [CM] Snd inf-snd.el

2016-03-11 Thread bil

I'm glad you got it working.  If you or Mike
have any instructions or clarifications about this
that might help others, I'll include them in README.Snd.

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



[CM] Snd inf-snd.el

2016-03-11 Thread James Hearon
Hi,
I finally got Snd working as an emacs subjob with help from Micahel Scholz.  
Some of it had to do with the way the .emacs file was being called, which meant 
the load-path variable was not being completed properly.

It's neat to be able to load a .scm script, edit it, and hear and see the 
results in the Snd motif gui by controlling the code from emacs.

I've tried reading all the Snd documentation to figure out how you might load a 
.scm file in the lisp listener, edit it in the lisp listener, and evaluate it 
in the lisp listener, but I haven't yet found how you would do something like 
the inf-snd.el snd-scheme-mode to bind the usual key commands for use within 
the Snd lisp listener without writing your own listener.  I must be missing 
something important, someplace.

Regards,
Jim

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



Re: [CM] snd inf-snd.el

2016-03-01 Thread bil

s7 doesn't know how to communicate with slime (or geiser), and it's not
Common Lisp, so loading quicklisp code, or running sbcl has no effect.
Snd can communicate with emacs through s7, forth, or ruby,
and inf-snd.el has instructions.  I use the built-in repls (and a
separate emacs); in that case you load a file with (load "a-file.scm"),
and evaluate s7 code by typing it at the prompt, just as in any
other repl.

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



[CM] snd inf-snd.el

2016-03-01 Thread James Hearon

Hi,
I trying to get inf-snd.el going for more REPL with .scm files.  I'm just 
trying to load , edit, and evaluate a .scm file, and couldn't seem to figure 
out how to do that using the snd listener.  I have clm working with fedora, 
quicklisp, emacs, and slime, but not sure how to get inf-snd.el working for 
more REPL with .scm in snd.

I tried this from .emacs, but it doesn't find any inf-snd key bindings such as 
C-c C-l   snd-load-file, for ex.

(load (expand-file-name "/opt/quicklisp/slime-helper.el"))
(load (expand-file-name "/opt/snd-16/inf-snd.el"))
(setq inferior-lisp-program "/usr/bin/sbcl")

I'm wondering if anyone has experience with this similar environment and knows 
how to get it to run?  

Thanks,
Jim
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



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


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

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

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