controlling sample boundmode


    Feb 12 2013 | 1:02 pm
    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.

    • Feb 28 2013 | 6:56 am
      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].
    • Mar 13 2017 | 6:49 pm
      Don't know if you are still interested in this @Zeal but this is what I'm using atm
    • Mar 13 2017 | 6:51 pm
      If you are still interested @Zeal, this is what I'm using atm
    • Mar 15 2017 | 3:48 am
      @Zeal I'm using this atm if you are still interested: