Forums > Gen

different matrixes into jit.gen inlets

February 19, 2013 | 11:33 am

yo guys,

I was wondering if i can send 2 different type of matrixes into 2 different inlets of a jit.gen object? For example i send a (jit.matrix 8 float32 30 2) to IN1 and (jit.matrix 1 float32 5 5 5) to IN2…
So for every item in IN1 (60 times) i can calculate a a 3D vector based on some of the data of the 8 planes, normalize it and sample this vector from IN2.

But somehow I cant sort this out, as it seems IN2 is always waits the same kind of matrix as IN1.

Any ideas? Thanx in advance,
Kevin


February 19, 2013 | 6:49 pm

the matrices must have the same dimensions and type. i believe planecount can differ.
perhaps jit.scanwrap will be useful.


February 20, 2013 | 11:45 am

thanx Rob!


Viewing 3 posts - 1 through 3 (of 3 total)