Forums > MaxMSP

Insert edit in [mtr] ?

May 20, 2011 | 2:09 pm

I need to insert data into a portion of an [mtr] track. I don’t think this object has that functionality, so I’m looking for an alternative. Has any one worked out a solution for this? I would also like to allow copying and pasting between tracks if possible. I had tried using lists to store timestamps and values, but they get too big. Maybe jit.matrix?

Thanks!
MH


May 26, 2011 | 2:35 am

You could try using jit.qt.record for the values, like on a thread I posted awhile back:

http://cycling74.com/forums/topic.php?id=25343

For copy/paste, which would be cool to have, you’d need to modify the general recorder to separate out each data point-stream to its own qt.movie track, then you should be able to use jit.qt.movie’s copy commands. Haven’t tried it though.

Probably there are other ways to do this with jit.matrix, like you could write values across a 2D matrix according to time (maybe one row per second?), but saving as a movie seemed better as the time element is well-worked out already. Maybe you could do it with an n-plane matrix, where each plane is a data stream. But again, you’d have a time limit based on the matrix resolution…storing as a qt.movie makes this a non-issue.


May 27, 2011 | 2:22 am

I was thinking about a long matrix, and I began writing a patch to do it. However, it never crossed my mind to render it as a movie instead. Going the movie route takes advantage of a lot of optimization that others have done.

MH


May 27, 2011 | 2:44 am

Awesome, hope it works out!


Viewing 4 posts - 1 through 4 (of 4 total)