I have a patch with a gridshape that gets captured to a texture, then put on a videoplane and processed with some shaders. I want to be able to trigger multiple copies of it to correspond to notes from an FM synth. However, I’m having some trouble finding a method that allows me to control all of the parameters individually.
Jit.gl.multiple wouldn’t allow me to individually control the parameters of the shaders or of the original gridshape, since they’re not its target.
Poly~ doesn’t work because of the texture bindings.
Any ideas on how to make this work?
For reference, here is the patch with one copy of what I am trying to "multiply":
– Pasted Max Patch, click to expand. –
Copy all of the following text. Then, in Max, select New From Clipboard.
you will have to include the gl.shader in the poly~ with the geometry so that it is duplicated as well.
make sure you give it a distinct name.
thispoly~ -> sprintf helps with automatically generating names based on poly instance number.