[CM] fastest way to pass block of samples in and out of s7

Iain Duncan iainduncanlists at gmail.com
Mon Mar 10 11:32:04 PDT 2025


Hi Bill, maybe I'm missing something obvious, but how do I access the data
in the vector wrapper from the Scheme side? Do I need to separately do some
FFI work to bind a symbol to it (ie. define it?)

Also, I notice in the ffi test example you follow creating those with calls
to s7_gc_protect, so presumably I should do that too eh?

thanks!
iain

On Sun, Mar 9, 2025 at 1:25 PM Iain Duncan <iainduncanlists at gmail.com>
wrote:

> Great, thanks. I'll check those out.
>
> iain
>
> On Sun, Mar 9, 2025 at 11:21 AM <bil at ccrma.stanford.edu> wrote:
>
>> ffitest.c has brief examples, as does s7test.scm.
>> I need to add something to s7-ffi.html!  Other
>> cases are clm-related, in the Snd sources: clm2xen.c,
>> vct.c, snd-xen.c for example.  In clm2xen.c,
>> all the clm generators that work with arrays of
>> doubles give s7 (i.e. the user writing scheme code)
>> access to that data.  I think this is very similar
>> to your application.
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20250310/364abc51/attachment.html>


More information about the Cmdist mailing list