I'm writing a patch for visuals for a performance piece, where I want specific pixels in a still image to show depending on the audio.
For the moment, I have a patch working using analyzer~ and feeding of three different sinusoidal components of frequency to determine the RGB values to search for, and they are scaled accordingly.
Currently, using a jit.op with [pass == == ==] as the argument seems to be providing good results.
However, from re tracing my patch, what I believe it to be doing is searching for one value in the Red plane. When it finds a value that equals the number generated by analyzer~, it sends it to the jitter matrix, then off to the window, and it displays.
At the same time, its doing the same thing for the Green and Blue planes.
Consequently, the image pixels never looks like the original image pixels. Its quite interesting none the less! And will be used at a later date, the joys of experimenting!
However, if I wanted to search though a jitter matrix for one location that had a specific colour, for example R=255 G=255 B=255, and display only that colour pixel in the next matrix, what would I use?
I seem to be giving it headaches with a very convoluted jit.iter patch... :(