[JS] Starting from a fixed matrix in 46jJavaScriptOperator tutorial

Sep 10, 2006 at 6:21pm

[JS] Starting from a fixed matrix in 46jJavaScriptOperator tutorial

Hi all,

I’ve been messing around with the javascript tutorials and am trying
to understand something :
In tutorial 46 a matrix is filled with random positions for the
particles. Instead of using the noisegen I would like to use a saved
matrix with stored locations to be influenced by the attractors. Is
this possible ? Or is this limited to this generated-by-noise filled
matrix…?
thx.

#27565
Sep 10, 2006 at 8:39pm

Sure this is possible. You can use the same commands to read a matrix
from file in JS that you would use in a patcher. Something like
mat.read(“noise.jxf”); To get data from one matrix to another you can
do:

mat2.frommatrix(mat1);

wes

On 9/10/06, Brecht Debackere wrote:
> Hi all,
>
> I’ve been messing around with the javascript tutorials and am trying
> to understand something :
> In tutorial 46 a matrix is filled with random positions for the
> particles. Instead of using the noisegen I would like to use a saved
> matrix with stored locations to be influenced by the attractors. Is
> this possible ? Or is this limited to this generated-by-noise filled
> matrix…?
> thx.
>

#83464

You must be logged in to reply to this topic.