Insert edit in [mtr] ?

May 20, 2011 at 2:09pm

Insert edit in [mtr] ?

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

#57209
May 26, 2011 at 2:35am

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.

#204921
May 27, 2011 at 2:22am

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

#204922
May 27, 2011 at 2:44am

Awesome, hope it works out!

#204923

You must be logged in to reply to this topic.