jit.gl.pix sample wrap
Hello,
Is it possible to use the sample object within jit.gl.pix and prevent an image from wrapping continuously?
I've attached an example-
Thx!
Billy
you need to set it to @boundmode clamp
Hello Michelez,
Thank you for the reply but maybe I didn't explain myself clear enough.
With @boundmode clamp the last pixel gets stretched. I've attached 2 pics to demonstrate.
Thank You,
Bill


Only fixed it for the red channel but you get the idea.
Luvulongtime!
Here is a gl.pix rota version with the "clear" boundmode.
Hey @Luvulongtime @2K,
Thank you for the examples, gotta love jit.gl.pix!
Bill
Hey luvulongtime,
What about the Y axis? Works great on the X but not on the Y?
That indeed,
Bill
It works for both x/y now.
luvulongtime soldier!
Thx for your help,
Bill
Hehe, no problem :)
Wondering if this is a good place to ask this question.
I want to use jit.matrix to hold note lists - 5 columns by N rows. Each row holds action time, pitch, velocity, duration, channel. Perhaps more parameters affecting synth parameters like envelope attack time, etc.
I want to perform operations like this.
Transpose: add or subtract an interval from column 2.
Invert: find min/max of column 2 and perform that math.
Augmentation/Diminution: multiplication on columns 1&4.
Rubato: apply a time-varying tempo function to columns 1&4.
etc.
What's best for this...gen, pix, js?
Does anyone have examples of getting in and out of matrices to do this?
(I have a general understanding. I regularly extract rows and columns to generate note sequences and control functions from the planes of images.)
luvulongtime's patch from 1/20/2018 is a good starting point.