Picture - sound converter
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 ?
basically :
what object allows me to read in a jpg/pict and output the rgb and grey scale values for each pixel ?
suckah does the job I think.
Ed
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
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.
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.
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 ?
..
.
.
Thanks for all the other replies - very useful !
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
> 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.
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
>
>
>
----------------------------------------------------
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
Hello Oliver,
Are you still using the forums. E-mail me when possible.
Thanks,
NRB
For any on interested the soution turned out to be using jit spill > and an rgb to hsl converter.
if you want to do this without jitter and you
know about picture formats you could open
anything as binary data using [filein] ...
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.