Re: [CM] snd/vim integration

2021-07-07 Thread Kenneth Flak
Thanks both!

I'll take a look at this once I finish a residency here in Tallinn next week. 
Very useful information. Haven't really done much in c, and I prefer to keep my 
vim python-free, but both of these angles should give me plenty of inspiration!

Best,
Kenneth

--
Roosna & Flak - Contemporary Dance & Music
Web: roosnaflak.com
Code: {github,gitlab}.com/kflak
Mastodon: @k...@sonomu.club
On  7 Jul 2021  08:08, Iain Duncan wrote:
>Not sure if it's useful, but I can tell you how I wound up making my Vim to
>Scheme-for-Max workflow:
>
>- vim key mappings exist to visually select the current matching parenthetical
>expression and send it to a Python script as stdin
>- Python script sends to Max over OSC using liblo 
>
>The details are here: https://github.com/iainctduncan/scheme-for-max-cookbook/
>blob/master/editor-integration/README.md
>
>
>On Wed, Jul 7, 2021 at 7:22 AM  wrote:
>
>I don't know of any prior work on that.  snd-kbd.c has
>the keyboard mappings.  There's an array "built-in-keys"
>and a function "keyboard_command".  The latter is
>a set of case statements -- it should be reasonably
>obvious how it works.  I don't know anything about vim.
>If you get something working, please let me know --
>I'd be happy to merge it into my version.
>
>___
>Cmdist mailing list
>Cmdist@ccrma.stanford.edu
>https://cm-mail.stanford.edu/mailman/listinfo/cmdist
>


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


[CM] loading libc_s7.c

2021-07-07 Thread James Hearon
Hi,
Thank you for the information.  The ./snd -noinit option seems to work best, so 
far for command-line approach.  My normal approach is to use snd thru emacs and 
I've not had the libc_s7 loading problem there.  So no worries, I can be 
patient until this gets sorted out.
Regards,
Jim


[jhearon@localhost snd-21]$ ./snd -noinit

> (new-sound "test.snd")
#
> (mix "oboe.snd")
#f
> (framples) 50828

;write argument 2, 50828, is an integer but should be an output port
;(if (do ((p lst (cdr p))) ((not (and...
;*stdout*, line 7, position: 789
; (if (do ((p lst (cdr p))) ((not (and (pai...


> (play)
#f
> (exit)
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


Re: [CM] Builds WITH_GMP Broken

2021-07-07 Thread Brad Christensen
I agree given there is no issue tracker currently utilized.
 
> I find it helpful to see them here, and I think in general having them on the 
> public
> list is good because it demonstrates that there is active development on s7 
> in a
> publicly searchable archive.  
> 
> just my two cents from the sidelines!
> iain

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


Re: [CM] loading libc_s7.so

2021-07-07 Thread bil

repl.scm now has a variable, stderr-buffered.  If the repl
hangs after printing "loading libc_so.so", set that variable
to #t.  I wonder who is messing with stderr -- pipewire?

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


Re: [CM] Builds WITH_GMP Broken

2021-07-07 Thread Iain Duncan
I find it helpful to see them here, and I think in general having them on
the public list is good because it demonstrates that there is active
development on s7 in a publicly searchable archive.

just my two cents from the sidelines!
iain

On Wed, Jul 7, 2021 at 9:48 AM  wrote:

> Thanks for the heads-up!  A couple misplaced #endifs probably
> when I was falling asleep.  I'll put up the fixed s7.c
> tomorrow morning.
>
> On the bug reports -- either way is fine with me -- I don't
> know how others feel.
>
> ___
> Cmdist mailing list
> Cmdist@ccrma.stanford.edu
> https://cm-mail.stanford.edu/mailman/listinfo/cmdist
>
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


Re: [CM] Builds WITH_GMP Broken

2021-07-07 Thread bil

Thanks for the heads-up!  A couple misplaced #endifs probably
when I was falling asleep.  I'll put up the fixed s7.c
tomorrow morning.

On the bug reports -- either way is fine with me -- I don't
know how others feel.

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


Re: [CM] snd/vim integration

2021-07-07 Thread Iain Duncan
I'm certainly interested to hear what you come up with too, my solution was
just the low hanging fruit I knew I could get working easily. Main thing
that might be useful from mine is just the mapping to get a visual
selection off to a command line script. That script could be anything that
hoovers up buffer contents over stdin.

iain

On Wed, Jul 7, 2021 at 8:21 AM Kenneth Flak 
wrote:

> Thanks both!
>
> I'll take a look at this once I finish a residency here in Tallinn next
> week. Very useful information. Haven't really done much in c, and I prefer
> to keep my vim python-free, but both of these angles should give me plenty
> of inspiration!
>
> Best,
> Kenneth
>
> --
> Roosna & Flak - Contemporary Dance & Music
> Web: roosnaflak.com
> Code: {github,gitlab}.com/kflak
> Mastodon: @k...@sonomu.club
> On  7 Jul 2021  08:08, Iain Duncan wrote:
> >Not sure if it's useful, but I can tell you how I wound up making my Vim
> to
> >Scheme-for-Max workflow:
> >
> >- vim key mappings exist to visually select the current matching
> parenthetical
> >expression and send it to a Python script as stdin
> >- Python script sends to Max over OSC using liblo
> >
> >The details are here:
> https://github.com/iainctduncan/scheme-for-max-cookbook/
> >blob/master/editor-integration/README.md
> >
> >
> >On Wed, Jul 7, 2021 at 7:22 AM  wrote:
> >
> >I don't know of any prior work on that.  snd-kbd.c has
> >the keyboard mappings.  There's an array "built-in-keys"
> >and a function "keyboard_command".  The latter is
> >a set of case statements -- it should be reasonably
> >obvious how it works.  I don't know anything about vim.
> >If you get something working, please let me know --
> >I'd be happy to merge it into my version.
> >
> >___
> >Cmdist mailing list
> >Cmdist@ccrma.stanford.edu
> >https://cm-mail.stanford.edu/mailman/listinfo/cmdist
> >
>
>
> ___
> Cmdist mailing list
> Cmdist@ccrma.stanford.edu
> https://cm-mail.stanford.edu/mailman/listinfo/cmdist
>
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


[CM] Builds WITH_GMP Broken

2021-07-07 Thread Brad Christensen
Greetings,

It seems builds WITH_GMP have been broken since f77ba272 (July 4).

As an aside, is it preferred for s7 bug reports to hit this list or be sent 
directly to bil@...?

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


Re: [CM] snd/vim integration

2021-07-07 Thread Iain Duncan
Not sure if it's useful, but I can tell you how I wound up making my Vim to
Scheme-for-Max workflow:

- vim key mappings exist to visually select the current matching
parenthetical expression and send it to a Python script as stdin
- Python script sends to Max over OSC using liblo

The details are here:
https://github.com/iainctduncan/scheme-for-max-cookbook/blob/master/editor-integration/README.md


On Wed, Jul 7, 2021 at 7:22 AM  wrote:

> I don't know of any prior work on that.  snd-kbd.c has
> the keyboard mappings.  There's an array "built-in-keys"
> and a function "keyboard_command".  The latter is
> a set of case statements -- it should be reasonably
> obvious how it works.  I don't know anything about vim.
> If you get something working, please let me know --
> I'd be happy to merge it into my version.
>
> ___
> Cmdist mailing list
> Cmdist@ccrma.stanford.edu
> https://cm-mail.stanford.edu/mailman/listinfo/cmdist
>
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


[CM] snd/vim integration

2021-07-07 Thread Kenneth Flak
Hi list,

After years on the sidelines I decided to invest the necessary time to learn 
snd properly, and I have some ideas on how I could integrate it into my neovim 
workflow. Before I start reinventing the wheel though, I would just like to 
know if somebody has done any work on this before? I imagine using neovim to 
send chunks of code to snd via stdin, which seems to be a not too overwhelming 
task for a rookie programmer like myself... I would also be thrilled if there 
was a way to make the current keyboard shortcuts a bit more vim-like? Something 
akin to emacs evil mode, for example? My muscle memory is a bit lazy, and would 
prefer to stay in its hjkl pattern if possible.

All the best,
Kenneth

--
Roosna & Flak - Contemporary Dance & Music
Web: roosnaflak.com
Code: {github,gitlab}.com/kflak
Mastodon: @k...@sonomu.club


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


Re: [CM] snd/vim integration

2021-07-07 Thread bil

I don't know of any prior work on that.  snd-kbd.c has
the keyboard mappings.  There's an array "built-in-keys"
and a function "keyboard_command".  The latter is
a set of case statements -- it should be reasonably
obvious how it works.  I don't know anything about vim.
If you get something working, please let me know --
I'd be happy to merge it into my version.

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