Adding more than two matrices

ct0's icon

Hello!

I was wondering if there were any way to add more than two matrices.

Is concatenating jit.+ the only way?

I thought it would be convenient if there was something equivalent to +~ object where you can just use one instance of it and input several audio signals into one inlet to add all of them.

thanks

Roman Thilenius's icon

audio signals simply add up, for video you would want to add and rescale their values.

but i like the idea and it would be a neat feature for objects with green connections, too.

2K's icon

jit.+ is def not the only way. You could use jit.expr and write something like jit.expr @inputs 3 @expr in[0]+in[1]+in[2] or use jit.gen/jit.pix (or their codeboxes if preferred) and just write whatever expression you need.

ct0's icon

using jit.gen seems close to what I wanted. Thank you!