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?
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].