Page 1 of 1

2 float arrays to stereo mem?

Posted: Fri Feb 11, 2022 3:06 am
by nix
heya, going over this old problem.
I can't figure out how to convert 2 float arrays into a stereo mem,
without rendering with a 'stereo write'.
Does anyone know how to?
the stereo mem is interleaved, with left on even samples, and right on odd
- but how do I tell the mem it is stereo?
Is it something to do with the .riff header?
Cheers and nJoy!

Re: 2 float arrays to stereo mem?

Posted: Fri Feb 11, 2022 5:58 am
by nix
..so I have been trying to find the right hack,
I can create a mem in code with 'memrefin' or 'memin item[8]',
but how can I get mems out of the code blocks?
these things work backwards sometimes, but the code doesn't seem to to start

Re: 2 float arrays to stereo mem?

Posted: Fri Feb 11, 2022 1:23 pm
by nix
looks like 'analyzer' is the prim I needed

-got it working now,
will tidy and up