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

Iain Duncan iainduncanlists at gmail.com
Sun Mar 9 09:41:31 PDT 2025


Hi colleagues and Bill, I'm working on a project/paper to see if we can
productively use s7 in Scheme for Max for spectral processing. I would like
to pass in a block of samples post fft processing, so it's holding spectral
information (two blocks really, the real and imaginary). This will happen
once per hop, and so should be somewhere on the order of 64 to 2048 ish
numbers I think?  I have them in a C array in the perform routine from
where they are originating, and I have it working in a prototype by making
an s7 vector and passing that in as the argument to the s7 function I call
remotely, and having that return a vector.

It strikes me that given I will only have one producer and one consumer
here, one of the options for sharing a variable might be faster. Wondering
if anyone can weigh in on that who knows more.

thanks!
iain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20250309/f8d565a4/attachment.html>


More information about the Cmdist mailing list