Nice! thanks for doing this. I will definitely be trying it out.
On Sat, Jul 22, 2023 at 11:13 AM Kenneth Flak
wrote:
> Hi all,
>
> I have written a blog post on my current snd/neovim setup:
> https://roosnaflak.com/tech-and-research/setting-up-snd-with-neovim/
> Enjoy :-)
>
> Kenneth
>
> --
Hi all,
I have written a blog post on my current snd/neovim setup:
https://roosnaflak.com/tech-and-research/setting-up-snd-with-neovim/ Enjoy :-)
Kenneth
--
Roosna & Flak - Contemporary Dance & Music
Web: roosnaflak.com
Code: {github,gitlab}.com/kflak
Mastodon: @k...@sonomu.club
On 17 Jul
Thanks!
--
Roosna & Flak - Contemporary Dance & Music
Web: roosnaflak.com
Code: {github,gitlab}.com/kflak
Mastodon: @k...@sonomu.club
On 17 Jul 2023 14:46, Juan Reyes wrote:
>
>There is also a sort "hello-world" hands on tutorial of Snd here: [1].
>
>
>[1]
There is also a sort "hello-world" hands on tutorial of Snd here: [1].
[1] https://ccrma.stanford.edu/guides/planetccrma/SND.html
You can cut-and-paste commands to Snd's listener.
-- Juan Reyes
Dave Phillips wrote a tutorial for Snd a long time
ago -- for Snd 6.0 (2003), I think. It
Hi list,
One more step in the journey towards getting conjure/nvim to work satisfyingly
with snd, completion!
I managed now to get it to work by running:
(let ((p (open-output-file "/home/kf/snd-keywords.txt")))
(let f ((ls (vector->list (symbol-table
(display ls)
(if (not
That would be great! Updating the tutorial should teach me a great deal about
the program...
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist
Dave Phillips wrote a tutorial for Snd a long time
ago -- for Snd 6.0 (2003), I think. It eventually got
out of sync with the program, but I still have
a copy -- I can send it to you if you like.
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
Thank you so much, Bill! This is extremely helpful. I'll try to get this to
output to a file in the correct format, so that the completion plugin can read
it as well, preferably each time I run snd so that all the loaded files in my
startup file gets included as well.
Programming since '69,
To get all the current names, use (symbol-table)
in scheme, or s7_symbol_table and s7_for_each_symbol
in C. I can send you the output of
(format #f "~W" (symbol-table))
It's too long to include here (4266 names, 57k bytes).
I guess you already know this, but snd-completion.c
and snd-help.c
Hi list,
There's been some exciting new developments in the land of neovim lately:
github user @russtoku has implemented snd as a client for the conjure plugin in
his fork: https://github.com/russtoku/conjure/tree/dev-snd, which now seems to
work reasonably well. At some point soon it should
No, I don't know how emacs does it. It used to be going
through the emacs file comint.el, if I remember right.
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist
Oh, that's interesting.
Makes me wonder if there could be a way to close and reopen the pipe each time
I send something through that way. Might be horribly inefficient, though...
Do you know how inf.el achieves its magic? Also by way of stdio, or is there
something else going on there?
This appears to be some pipe issue with stdin -- if
you run Snd from a terminal, then type expressions
in that terminal, get_stdin_string is called and
the expressions are evaluated, etc. If you call
Snd as a target of a pipe (or whatever the correct
terminology is), it works once, but then
On 26 Jun 2023 10:53, b...@ccrma.stanford.edu wrote:
>> 0x76e5bc0f in __GI___poll (fds=0x7fffd790, nfds=1,
>> timeout=5)
>> at ../sysdeps/unix/sysv/linux/poll.c:29
>
>I think that you're in XtAppMainLoop waiting for an event;
>that is, snd is waiting for you to send input etc.
>
0x76e5bc0f in __GI___poll (fds=0x7fffd790, nfds=1,
timeout=5)
at ../sysdeps/unix/sysv/linux/poll.c:29
I think that you're in XtAppMainLoop waiting for an event;
that is, snd is waiting for you to send input etc.
___
Cmdist mailing
Hi Bill,
Forgot to reply all in my previous email as well :-)
Thanks for the gdb tip!
Using the file test.scm:
(begin
(open-sound "/home/kf/xylophone.wav")
(scale-channel 0.1)
(save-sound-as "/home/kf/xylophone-scaled-1.wav")
)
I get this output from gdb:
(gdb) run [I forgot to
[I forgot to "reply all"]:
In the motif version, XtAppAddInput in snd-motif.c sets get_stdin_string
as the function to call when input is available on stdin. That function
tries to get a full string, then evals it. It doesn't return the value
of the incoming expression -- you have to use the
Had a bit of time to dig further into the whole nvim/conjure/snd thing, and I
might be making some headway here.
Would it be reasonable to assume that snd executes commands from stdin as
one-shot events? I do get a return value back to the repo on exit from snd, but
not immediately after
On Tue, Jun 13, 2023 at 7:26 PM Kenneth Flak wrote:
>
>
> Hmmm... seems my excitement was a bit premature. The first expression I
> evaluate works fine, but after that I am unable to get anything working. Need
> to do a bit more digging, it seems...
>
Maybe try to compile snd with the
Does snd spit out anything like a prefix or exit code or
something through stdout when evaluating an expression,
in addition to the return value?
I don't think so. Is snd still running after you get that
value? Currently snd blocks SIGTTIN and SIGTTOU.
I'm using the Motif version of snd, I think (at least there's a gui, so I
suppose that's what it is...), and stdio seems to work just fine if I send a
command through a pipe to snd, which in turn spits out a return value to
stdout. The main problem right now is how to make the repl work as
I'm glad you found that -- I was puzzling my way through the
conjure docs -- I know nothing about conjure or neovim.
Another possible problem might be which snd repl you're
using. If you're running the no-gui snd, it's the code
in repl.scm, but I'm not sure which repl is running in
this case --
Hmmm... seems my excitement was a bit premature. The first expression I
evaluate works fine, but after that I am unable to get anything working. Need
to do a bit more digging, it seems...
--
Roosna & Flak - Contemporary Dance & Music
Web: roosnaflak.com
Code: {github,gitlab}.com/kflak
Ha! Figured it out! There is an additional setting that needs to be set, the
value_prefix_pattern. So the complete setup for making snd work with neovim,
using the conjure plugin, is now this:
vim.g['conjure#client#scheme#stdio#command'] = "snd"
I suppose I need to get the prompt right in order for this to work. Doing
something like
cat test.scm | snd swarm_norm.wav
where test.scm consists of
(scale-channel 2.0)
works as expected. So if I could only get conjure to send the correct prompt,
then everything should be fine, I suppose?
Hi Christos,
Well spotted!
Unfortunately correcting the error still doesn't result in anything showing up
in the snd listener when I evaluate an expression in the .scm buffer. Of
course, it's very possible that something's being sent, I just don't see the
result? Or should the listener
There's a typo in "stdio" in the prompt pattern line. The docs AFAIU say
that conjure will wait for the configured regexp till it can send more
commands, so a misconfiguration there could explain the hanging/not sending
commands
On Tue, 13 Jun 2023, 08:00 Kenneth Flak, wrote:
> Hi,
>
> I am
27 matches
Mail list logo