Read jit.matrix data in c++ code

    Aug 15 2013 | 1:51 pm
    Dear members of the forum, I have an issue with jitter and I don´t know how to solve it. After reading the MaxAPI documentation I haven´t solved my doubts. This is my case: I have a jit.matrix object in my patcher. This matrix has a fixed dimension and its elements update constantly. These elements contained inside the matrix correspond to audio gain factors. I want to send this whole matrix (with all its elements) to another object implemented in c++ that will perform the next task: 1. read each element contained in the matrix (this is the audio gain factor). 2. multiply each matrix element and the audio samples.
    I know how to implement point 2, but I have no idea how to be able to call jit.matrix and read its content in c++.
    Hope I have explained well enough.
    Thank you very much

    • Aug 15 2013 | 6:53 pm
      works the same in c++ as it does in c.
      if you have specific questions, feel free to ask, but you're going to have to familiarize yourself with the sdk:
    • Aug 15 2013 | 9:19 pm
      Yes, all the above. The SDK itself includes *very* helpful samples. One of them, jit.simple was a base that I used to create my first substantial jitter external that manipulated matrices. Perhaps you can do something similar.
      Max and its SDK has some nice features which can come very easily to you. For example, there is a function which automatically slices a matrix and then runs separate threads on those slices in parallel across as many cores as possible.