jit.bfg Using a Matrix as an Input

Federico-AmazingMaxStuff's icon

Hi all,
I would like to understand what exactly happens when jit.bfg is filled with a matrix as an input.
So far, my understanding is that the values inside the cells of the input matrix will evaluate the values for the output matrix of the jit.bfg.

I don't exactly get how it works when the input matrix has 2 planes and jit.bfg only one.
Are the two planes kind of used as x and y inputs of the jit.bfg, but resulting in a single scalar output?

Any help is greatly appreciated, I attach a patch as an example:

noise_curves.maxpat
Max Patch


Rajan Craveri's icon

Max Patch
Copy patch and select New From Clipboard in Max.

testcase's icon

My understanding is that the planes are x and y values for the basis function to use in the evaluation to get a 2d output.

Federico-AmazingMaxStuff's icon

Thank you it's clear now