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


    Sep 10 2006 | 6:21 pm
    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.

    • Sep 10 2006 | 8:39 pm
      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.
      >