I have two ‘streams’ of matrix data – one with 4 planes and one with 1 plane. Eventually they are mixed down into a single 5 plane matrix.
Up until now I have been using 5 plane matrices throughout the whole patch. The first stream only uses the first 4 of those planes. The second stream only uses the fifth plane.
This makes it easy to mix down the two matrices, using [jit.op @op pass pass pass pass !pass]
However, there are obviously a lot of redundant planes.
Are there better ways of doing this?
not sure if it’s more efficient, but you can use jit.pack
[ jit.pack 2 @jump 4 1 ]
4 plane matrix in left inlet, 1 plane matrix in the right.
Thanks Robert, I did think about jit.pack.
I was more interested to know about the efficiency. Working with databases taught me to always use the smallest possible container for a piece of data, so having empty planes feels wrong to me.
Log in to reply
C74 IN YOUR INBOX
C74 RSS Feed | © Copyright Cycling '74 | Terms & Conditions
Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.