spontaneously output a jitter matrix, without any input

    Apr 06 2011 | 3:50 pm
    I have a jitter external and I want to have it output a matrix of its own accord, i.e. without having to bang it or send a matrix in. Basically the object receives data from another application (via UDP sockets) and when it gets the right message I want it to output a matrix.
    This is the same functionality that jit.net.recv has, but I can't find any discussion of how it does it.
    My current working version requires a qmetro set at 0.1ms, and I have the object check a flag to see if it has received the right message and if so output a matrix. However this is neither satisfying or efficient!
    Can I get a handle to the MOP from the max object pointer (i.e. *x)? If so, it seems I could call max_jit_mop_getoutput and get the matrix. Or is there something else I'm missing? I have the object launching its own thread in order to receive data, will I be able to output a matrix from there? (it seems jit.net.recv is doing the same, so hopefully yes)
    Thanks in advance (and hit me with any questions for clarification)!

    • Apr 07 2011 | 5:27 pm
      while reading some random other posts I discovered a solution to my problem in "jit_object_notify", which evidently can be used for triggering output at any point, regardless of scheduler state.
      I have the secondary thread call jit_object_notify which in turn calls my output matrix function. It seems solid, and I hope I don't run across a mess of threading problems as a result.