Picture - sound converter

Augustine Bannatyne - Leudar's icon

I want to make a picture sound converter. The four corners of the picture will be represented by four surround speakers. Colour will be mapped on to sound frequency.
My problem is :

how do I read the rgb for all the pixels on an image simoultaneously.
At the moment im using an lcd object but cant work out how to read the rgb/pixel position from it.....

Any ideas ?

Augustine Bannatyne - Leudar's icon

basically :
what object allows me to read in a jpg/pict and output the rgb and grey scale values for each pixel ?

Ed Schroeder's icon

suckah does the job I think.

Ed

Wesley Smith's icon

jit.qt.movie is the obvious choice for reading a jpeg. To get a
cell's value as a max message, there is the matrix method getcell or
the object jit.iter. Might I suggest a run though the tutorials? I
think this would be covered there.

best,
wes

Jean-Marc Pelletier's icon

gnee wrote:
> basically :
> what object allows me to read in a jpg/pict and output the rgb and grey scale values for each pixel ?

Jitter.

There's no real way to do it without Jitter in Max.

NRB's icon

Hello Augustine,

I'm amazed to see this post, i'm working exactly the same project at the moment! The project evolves from a project I produced last year involving colour frequency spectrum in relation to sound frequency and, you guessed it, four surround speakers. I called it the 'Surround Canvas' technique.

Would be interesting to hear about your progression.

NRB.

Augustine Bannatyne - Leudar's icon

NRB -

LOL ! Great minds eh ?
Its for my third year module on the sonic arts course at middlesex, I have to make a user friendly pluggin.
It occurred to me other picture/sound converters I used were unsatisfactory. For one thing they are time based whereas a picture is perceived in an instant. Also using the y axis to define frequency seemed unsatisfactory to me as well, colour makes much more sense. Using surround sound should give a static "sound picture" (of course the logical progression for this idea is to have a speaker for each pixel heheh).
What is more a picture is not represented in one dimension - aline -it is represented in two - a square - thus the four or more speakers.
On the whole it just seems more logical to represent with sound a picture in this way. Film of course changes over time and may be more compatable with music for this reason.
Anyway what did you use to read the pixels off ?

..
.
.

Augustine Bannatyne - Leudar's icon

Thanks for all the other replies - very useful !

Kamal.h's icon

Before Jitter I did something like that in Max reading data from a
raw pict file with "filein" object .
prehistoric but very economical cal
k

Leafcutter John's icon

> gnee wrote:
>> basically :
>> what object allows me to read in a jpg/pict and output the rgb and
>> grey scale values for each pixel ?
>
> Jitter.
>
> There's no real way to do it without Jitter in Max.

There is a very real way to do this in max - LCD with the 'getpixel' message.

john.

Augustine Bannatyne - Leudar's icon

Of course you are right I should indeed go through the tutorials, and I will ! However I have to do this quite quickly and it takes time to get through all those tutorials to find just one tiny bit of information !

I tried as you suggested and it is perfect - it gives out the rgb for each pixel into ltocoll > coll. however how do I get the greyscale readings ?

thanks again for your replies .

Quote: wesley.hoke@gmail.com wrote on Fri, 24 February 2006 12:17
----------------------------------------------------
> jit.qt.movie is the obvious choice for reading a jpeg. To get a
> cell's value as a max message, there is the matrix method getcell or
> the object jit.iter. Might I suggest a run though the tutorials? I
> think this would be covered there.
>
> best,
> wes
>
>
>
----------------------------------------------------

oliver's icon

this may or may not be what you are looking for. if you improve it, it would be cool if you would pm it back to me.

-oliver

Max Patch
Copy patch and select New From Clipboard in Max.


NRB's icon

Hello Oliver,

Are you still using the forums. E-mail me when possible.

Thanks,

NRB

Augustine Bannatyne - Leudar's icon

For any on interested the soution turned out to be using jit spill > and an rgb to hsl converter.

Roman Thilenius's icon

if you want to do this without jitter and you
know about picture formats you could open
anything as binary data using [filein] ...

Augustine Bannatyne - Leudar's icon

That might be an option for a future project if it makes thing more efficient cant be bad. The idea is to make a real time musical instrument.