<div dir="ltr">Hi Bill, maybe I&#39;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?)<div><br></div><div>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?</div><div><br></div><div>thanks!</div><div>iain</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Mar 9, 2025 at 1:25 PM Iain Duncan &lt;<a href="mailto:iainduncanlists@gmail.com">iainduncanlists@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Great, thanks. I&#39;ll check those out.<div><br></div><div>iain</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 9, 2025 at 11:21 AM &lt;<a href="mailto:bil@ccrma.stanford.edu" target="_blank">bil@ccrma.stanford.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ffitest.c has brief examples, as does s7test.scm.<br>
I need to add something to s7-ffi.html!  Other<br>
cases are clm-related, in the Snd sources: clm2xen.c,<br>
vct.c, snd-xen.c for example.  In clm2xen.c,<br>
all the clm generators that work with arrays of<br>
doubles give s7 (i.e. the user writing scheme code)<br>
access to that data.  I think this is very similar<br>
to your application.<br>
<br>
</blockquote></div>
</blockquote></div>