Reading Through An Image

Apr 11, 2012 at 8:21pm

Reading Through An Image

I am basically trying to re-synthisize a sonographic image. So the image itself very literally represents spectral content that should then be triggered in a simple synthesis engine inside a poly~.

The problem I am having is how to read through an image left to right in such a way that I capture all the Y values for every X value at once, like the vertical line cursor in a sequencer moving through a sound file. So far all I’ve been able to accomplish is reading through the image pixel by pixel (and even then I’m not sure how to determine which way I’m reading through it).

Does anyone have any suggestions as to how to achieve what I want? The “Whispering_heights” example patch seems close, but it seems to be tailored for moving images and the mechanism for reading through the file seems awfully complex.

Any ideas and assistance is appreciated.

#62904
Apr 11, 2012 at 10:00pm

jit.submatrix?

– Pasted Max Patch, click to expand. –
#227075
Apr 11, 2012 at 10:38pm

Ooh, that’s a very good start. Thanks for that!

Any other ideas most welcome.

#227076
Apr 18, 2012 at 7:43pm

Ok so after realizing I will have to rethink how I’m doing this I’m stuck at trying to take a 1 pixel wide vertical slice of pixels from an image and map it to a frequency spectrum. Then the problem would be how to sequence each vertical slice. Since you would have to read through the pixel values vertically I’m not sure if it is possible for a computer to calculate data that fast so that you can read all of the data from each sequential slice. I’m not even sure if this is the right approach.

I would be grateful for even just being pointed to specific objects or tutorials that might help.

Thanks.

#227077
Apr 18, 2012 at 9:19pm

try this for size

PAD 28 – Metasynthy

http://www.youtube.com/watch?v=rnERzPwRa4g

#227078
Apr 25, 2012 at 5:18pm

Thanks for the link. Baz to the rescue! A combination of jit.submatrix and jit.spill is the way to go for accomplishing this.

Another part of solution was abandoning the idea of doing this in real time. Still can’t figure out how that would be done. So now we’re reading the image offline and then “playing” the data back into the sonification engine.

#227079

You must be logged in to reply to this topic.