Re: [CM] inf-snd.el

2016-03-02 Thread bil

"Fedora Core 5"! Wow, that documentation is archaic.
I can't find the files it talks about, xemacs is
long dead, buried, forgotten, and 2006 precedes s7.
That must have been Guile-related.

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



[CM] inf-snd.el

2016-03-02 Thread James Hearon


Message: 2
Date: Tue, 01 Mar 2016 10:36:06 -0800
From: b...@ccrma.stanford.edu
To: James Hearon 
Cc: "cmdist@ccrma.Stanford.EDU" 
Subject: Re: [CM] snd inf-snd.el
Message-ID: 
Content-Type: text/plain; charset=US-ASCII; format=flowed

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.


Hi,
Thank you.  This is a bit clearer now.  Since I don't need slime, quicklisp or 
sbcl, then maybe just a separate
.emacs file is best approach than trying to combine everything into one .emacs 
startup file?  Or maybe I'm getting confused about .emacs vs. .el files somehow?

I've read inf-snd.el , but not sure I understand it all yet.

For my .emacs, and just the scheme part,  I tried below using the snd 
customization and extension example from 
Bill's ~/.xemacs/init.el shown in the snd html manual for the inf-snd.el part, 
and then tried loading a .scm file from emacs but nothing is happening so I 
don't think I'm there yet.

(setq load-path
  (append (list 
"/opt/snd-16"
)
  load-path))

(autoload 'run-snd-scheme   "inf-snd" "Start inferior Snd-Scheme process" t)
(autoload 'snd-scheme-mode  "inf-snd" "Load snd-scheme-mode." t)
(setq inf-snd-scheme-program-name "/opt/snd-16/snd")
(setq inf-snd-working-directory "/opt/snd-16/")
(setq inf-snd-index-path "/opt/snd-16/")

Regards,
Jim

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



Re: [CM] inf-snd.el

2014-11-12 Thread Henrik Frisk
On Tue, Nov 11, 2014 at 2:12 PM, Michael Scholz  wrote:

> On Tue, 11 Nov 2014, Henrik Frisk wrote:
>
>  I've successfully loaded snd from emacs but now I can't seem to get it to
>> work. I'm using snd from planet ccrma (64) and emacs 24.3.1. Trying to run
>> M-x run-snd-scheme yields:
>>
>> Symbol's value as variable is void: $!
>>
>> Same for run-snd-ruby.
>>
>
> I wrote inf-snd.el but now I don't maintain it any longer (I switched
> editors).  You may try other lisp- or scheme-modes.
>
> Sorry,
> Mike
>

I see. No problem, thanks for the reply!
/Henrik
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist


Re: [CM] inf-snd.el

2014-11-11 Thread Michael Scholz
On Tue, 11 Nov 2014, Henrik Frisk wrote:

> I've successfully loaded snd from emacs but now I can't seem to get it to
> work. I'm using snd from planet ccrma (64) and emacs 24.3.1. Trying to run
> M-x run-snd-scheme yields:
>
> Symbol's value as variable is void: $!
>
> Same for run-snd-ruby.

I wrote inf-snd.el but now I don't maintain it any longer (I switched 
editors).  You may try other lisp- or scheme-modes.

Sorry,
Mike

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



[CM] inf-snd.el

2014-11-11 Thread Henrik Frisk
Hi!

I've successfully loaded snd from emacs but now I can't seem to get it to
work. I'm using snd from planet ccrma (64) and emacs 24.3.1. Trying to run
M-x run-snd-scheme yields:

Symbol's value as variable is void: $!

Same for run-snd-ruby.

Any help appreciated!
/Henrik
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist


Re: [CM] inf-snd.el Success!

2007-03-08 Thread Charles Turner
Hi Michael-

I hope you haven't been beating your head against the wall with the
debugging info I sent.

I was moving back home today, and had the time to pin my Fink
distribution to "unstable" and completely update my entire collection
of Fink packages. (It took 5 hours)

I also removed the glib I had in my /usr/local/lib so there was no
chance of accidentally compiling against it.

I've now upgraded to emacs-gtk 22.0.93.1 from the Fink distro, rebuilt
Snd using the updated Fink packages, and after installing the latest
gforth and ruby mode files, EVERYTHING SEEMS JUST FINE!

(I have some weirdness with emacs having a different idea about what
Snd's working directory is, and not saving .elc files, but that's
another matter!)

Thanks again for this wonderful emacs mode! I can hardly wait for Forth
scripting...

Best, Charles


Darwin spinoza 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep  8 17:18:57
PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh powerpc

powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build
5367)


<[EMAIL PROTECTED]>

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


Re: [CM] inf-snd.el?

2007-03-08 Thread Michael Scholz
> Debugger entered--Lisp error: (void-function t)
>   t("#f\n>")
>   comint-output-filter(# "#f\n")

Can you test inf-snd.el with changed function run-snd-scheme?  Comment
out the last line, `(snd-send-invisible "#f")))' (around line 899),
and fix the paren a line above. C-x C-e in Emacs after the function
compiles it new and now you can test it immediately.

Only for sure: you work with guile --with-gtk, okay?

Sorry for the trouble,

Mike

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


Re: [CM] inf-snd.el?

2007-03-07 Thread vze26m98
Michael Scholz wrote on 3/7/07 at 7:56 PM

>Hi, Charles.  I think, the easiest way to circumvent these errors is
>to install ruby-mode.el, inf-ruby.el (from Ruby distribution) and
>gforth.el (from Gforth distribution) because inf-snd-mode and snd-mode
>depend on them.  Can you show us an Emacs backtrace?  Activate it by
>Menu Options -> Enter Debugger on Error before starting inf-snd-mode.

Hi Michael-

Yes, I just looked on Fink for a ruby mode. The gforth I have.

If I run the debugger, I don't get as far as without it: it halts before
the menus are built and the snd buffer is activated:

Debugger entered--Lisp error: (void-function t)
  t("#f\n>")
  comint-output-filter(# "#f\n")

Hope this helps. I'll install the ruby modes and uncomment my hack and
let you know what's up...

Best, Charles

<[EMAIL PROTECTED]>

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


Re: [CM] inf-snd.el?

2007-03-07 Thread Michael Scholz
> I do get the following error(s):
>
>>error in process filter: Symbol's function definition is void: t
>>error in process filter: comint-output-filter: Symbol's function
> definition is void: t

Hi, Charles.  I think, the easiest way to circumvent these errors is
to install ruby-mode.el, inf-ruby.el (from Ruby distribution) and
gforth.el (from Gforth distribution) because inf-snd-mode and snd-mode
depend on them.  Can you show us an Emacs backtrace?  Activate it by
Menu Options -> Enter Debugger on Error before starting inf-snd-mode.

Mike

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


Re: [CM] inf-snd.el?

2007-03-07 Thread vze26m98
Bill Schottstaedt wrote on 3/7/07 at 6:59 PM

>I think I found the open-listener-if-separate-causes-segfault problem;
>I made a new snd-8.tar.gz and updated the CVS files.

Man! You're a whiz Bill!

My other problem(s) with emacs were mostly caused by using
Aquamacs-emacs, which is a standalone.

A quick Fink install of emacs works just fine, although I had to comment
out some stuff for it to get past the lack of a Ruby mode. That left a
bunch of undefined stuff...

I do get the following error(s):

>error in process filter: Symbol's function definition is void: t
>error in process filter: comint-output-filter: Symbol's function
definition is void: t

Which I'd ignore except they cause the system bell to ring at the
beginning and end of each file play. I'll try and track this down. Maybe
related to the above hacking...

This is really a powerful configuration of Snd, and well worth the minor
installation effort. Congratulations to you and Michael!

Thanks again, Charles

<[EMAIL PROTECTED]>

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


Re: [CM] inf-snd.el?

2007-03-07 Thread Bill Schottstaedt
I think I found the open-listener-if-separate-causes-segfault problem;
I made a new snd-8.tar.gz and updated the CVS files.  To fix it
without going to those sources, change handle_listener in snd-glistener.c
to:

void handle_listener(bool open)
{
  if ((open) && (!listener_text))
make_command_widget(100);

  if ((SOUND_PANE(ss)) && /* might be run -separate with no sound open */
  (sound_style(ss) != SOUNDS_IN_SEPARATE_WINDOWS))
{
  int hgt;
  hgt = widget_height(SOUND_PANE(ss));
  if (open)
{
  if (hgt > 100) /* we can get here before the sound window has opened, 
but with one pending.
  *   the position is in terms of current size, which 
is useless in this case.
  */
gtk_paned_set_position(GTK_PANED(SOUND_PANE(ss)), (gint)(hgt * 
.75));
}
  else gtk_paned_set_position(GTK_PANED(SOUND_PANE(ss)), hgt);
}
}

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


Re: [CM] inf-snd.el?

2007-03-07 Thread vze26m98
Bill Schottstaedt wrote on 3/7/07 at 10:44 AM

>I don't see any problem with gtk-snd in OSX using -separate -- you
>should get one window with Snd's main menu and optional listener, and
>a separate window for each open sound.

Hmm... My imperfect memory was that I can get a seperate window for any
file I open, but the "main" Snd window is blank. If I try to open the
listener from the menu, Snd crashes.

Of course, even without opening the listener, I get those reports and
the emacs sub-job fails...

I look into this some more.

Thanks! Charles

<[EMAIL PROTECTED]>

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


Re: [CM] inf-snd.el?

2007-03-07 Thread Bill Schottstaedt

> I haven't had luck with "snd -separate" as a command line; do I have to
> build a version of snd configured --nogui?

I don't see any problem with gtk-snd in OSX using -separate -- you should get
one window with Snd's main menu and optional listener, and a separate
window for each open sound.  The nogui option makes Snd without a user interface
(beyond the REPL).

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


[CM] inf-snd.el?

2007-03-06 Thread vze26m98
HI all-

Trying to get inf-snd.el working, and getting the following in my emacs
buffer:


(snd:1152): Gtk-WARNING **: cannot open display:  
>
Process Snd-Scheme exited abnormally with code 1


I've built snd-GTK on OSX.

I haven't had luck with "snd -separate" as a command line; do I have to
build a version of snd configured --nogui?

Many thanks, Charles

<[EMAIL PROTECTED]>

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


Re: [CM] inf-snd.el

2006-02-15 Thread Michael Scholz
> I would like to be able to use snd as the default sound file editor
> within emacs, the way that I am able to use emacs-w3m as the default
> url browser with the inclusion of the following in my .emacs
>
> (setq browse-url-browser-function 'w3m-browse-url)
>

Hi, Jonathan!  To use Snd as an Emacs sub job with inf-snd.el you can
set in your ~/.emacs.el file the variable:

(setq inf-snd-guile-program-name "/usr/bin/snd")

or even

(setq inf-snd-guile-program-name "snd -notebook")

or what else options you need.  If this was not what you want, let me
know.

Mike

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


[CM] inf-snd.el

2006-02-14 Thread Jonathan Murphy
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

One for the emacs gurus:

I would like to be able to use snd as the default sound file editor
within emacs, the way that I am able to use emacs-w3m as the default
url browser with the inclusion of the following in my .emacs

(setq browse-url-browser-function 'w3m-browse-url)

I have inf-snd.el working (which is great, thankyou Michael). I use 
csound-x, and snd to edit the files that I'm working on. This is the 
relevant section of csound-csd.el:

(defcustom cscsd-wave-editor "/usr/bin/snd" "Wave editor command
  \(will be used with a RIFF WAVE file name as argument)" :type
  'string :group 'csound-csd)

(defun cscsd-wave-editor () (substitute-in-file-name
  cscsd-wave-editor))

As you can see, I'm using snd as the editor. But this is the system
default /usr/bin/snd, not snd as an emacs sub job. Any suggestions
much appreciated.

Jonathan.  
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 

iD8DBQFD8le0CibrChMdb1sRAt7ZAJ4tdaWx6SlmEdJKbgenDyq/SfKwkQCdEk1f
+EOmEBtoIfq0m+kY4/djzwQ=
=T1J6
-END PGP SIGNATURE-

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