Something like pipe for jitter?

Anton Kuznetsov's icon

Hi Max family,

I'm new to jitter and need urgent help for a simple set-up.
How can delay the playback of a video that I'm collecting live with jit.grab?
Is there an object that can simply delay the playback (equivalent to pipe in Max/MSP)? Or is there a way to read a .mov that's being recorded simultaneously?

MIB's icon

look at jit.matrixset. it's a bit more involved than a simple delay~, but it will do what you want.

Roman Thilenius's icon

does

prepend /video
pipe 500.
route /video

not work?

vichug's icon

I think not Roman, jitter object only share matrices adresses in RAM between them, iirc it doesn't change often.

Roman Thilenius's icon

oh right, for the special case of delaying it cant work.

phiol's icon

here you go,
100% pure Ramirez magic.

texture-delay.zip
zip
phiol's icon

If you goal is to store a single frame , the way we use [int] [float] [zl reg]
use [jit.matrix @thru 0] like this

Max Patch
Copy patch and select New From Clipboard in Max.

Anton Kuznetsov's icon

You guys are amazing.
Great thanks to MIB for the advice to use jit.matrixset. Just the object I needed.
Also, thanks to Phiol. Not quite my initial idea but definitely might expand it and use it!!

Max Patch
Copy patch and select New From Clipboard in Max.

And here's my simpleton patch:

Cheers!
Anton

phiol's icon

@Anton

check out the Ramirez attachment, it like matrixset but GPU style :-)