controlling sample boundmode

Feb 12, 2013 at 1:02pm

controlling sample boundmode

Hey,
I’m trying to build a few gen patches using jit.gl.pix for basic video processing. oes anyone know the simplest way to to control the boundmode argument of the sample object? I found the jit.gl.pix.repos.maxpat in the jitter/gen examples which uses a code box to achieve this but I’m having trouble understanding the code. anyway to do this just by patching?

A similar problem I’m having is I’d like to control a simple multimode mixer and be able to externally choose to add, subtract, multiply two or more inputs, preferably without having to resort to a mess of switches or gates. Does any one know of an elegant way to achieve this too?

many thanks,
bob.

#66470
Feb 28, 2013 at 6:56am

A bit late, but if you need parametric control over the boundmode, you’ll need to either use multiple [sample] operators or wrap the coordinates yourself. The range should be [0, 1], so if you want to module between wrapping and clamping for instance, you could use [mix] to fade between coordinates processed using [%] and coordinates processed using [clamp].

#239271

You must be logged in to reply to this topic.