Dynamic plane separation in Jit.gen
Hello,
I'm working on a kind of spectrum visualiser. I'm using a multichannel FFT to get a range of signals at each frequency bin and display them in a kind of wave table form. In the jit.gen patch I had to separate each plane of the input matrix using the swiz operator but I'd like to be able to do this dynamically so I can use FFT's with higher resolutions without needing to add a bunch more swiz operators.
I tried using javascript but it slows down the render rate too much. Can it be done at all?
Thanks in advance!
You cannot do script-patching in the gen/pix objects, but I don't think you need to.
See this post to learn how to flatten a multiplane matrix to less planes, and then you would be able to access the value from each plane using [cell] and [%] (modulo).
Also, friendly reminder to use copy compressed to share patchers here!