frame diffr. amount -> brightness gradual change.

djtoshi182's icon

hello

I calculate video input grayscale's frame difference with jit.3m for the amount of change. and I connect the incoming numbers to adjust alpha value.
the number change is very sudden, also unstable and steep. so it looks like stuttering flash.
I would like to make it more dimming in/out gradual brightness change.

I don't think it would just work with line~ thing.
any ideas?

MIB's icon
Max Patch
Copy patch and select New From Clipboard in Max.

not sure if I understand correctly, but sounds like you might find jit.slide helpful. if I misunderstood, could you post a patch that explains?

djtoshi182's icon

thanks for reply.
I found better way with au.smoother for me.