Color to Sound IV


Added MIDI, and support for use in MAX Runtime and the Apogee Duet and the Tascam US-2000 usb=> analog audio converters, and for shutting off the RGB or CYM or Grey generators.
“Code” is available upon request,  and any suggestions, however (im)politely worded, are welcome.

How did this project use Max?

Thoroughly ...


June 8, 2012 | 7:57 am

I don’t understand what you have done from your descrition. Could you please put more


June 9, 2012 | 4:33 pm

Do you want me to add instructions on the patch itself, or email you?
I would prefer both, as I need to get user feedback for a demo this summer ..


June 9, 2012 | 6:59 pm

try this .. this is a simplified, luminance (brightness) only generator, which requires you to set the MIDI instrument number.
NO channel needed if using the internal synth.
It starts on note 24, up to 96, with inverse velocity as a quasi-loudness contour.

___________________________________________

– Pasted Max Patch, click to expand. –

It has extra message displays for troubleshooting .. they’re fun to see .
If this helps, i’ll revise the color patch as well..


February 19, 2013 | 2:06 pm

Hey, could you explain more what you did here? I’m in progress of trying to link timbre and brightness, would appreciate if you could point out some suggestions/help

Thanks


February 20, 2013 | 6:32 am

basically is uses the "suckah" object:
suckah takes the mouse position and returns the R G B values in the range of zero to one each.
For brightness just add them together and scale it to either generate a frequency & volume or as I did, a MIDI note number and velocity …
I don’t know about timbre: if your synth patch can use the mod wheel to increase the filter cutoff, or a FM8/;DX7 kind of sound which let you us the mod whee/breath controller to affect the operators..
If you notice thee is a object which has a conditional expression similar to "if ( $1 && $2 …" which you could use to generate the MIDI controller data

Note also I have used both internal synths like the Native Instruments FM-8 and Massive,
and external ones, including a DX-7 even~!
I don’t know if this helps ..
Ask more if you want .. i am developing this as a performance tool, and need the help


March 1, 2013 | 3:17 pm

Hey thanks for your reply, I’ve looked at your patch you posted here, I played around with, I’m trying to understand what you did here:

– Pasted Max Patch, click to expand. –

I’m not sure I understand why you multiply 24 there?

Also, I’m trying to develop a sonification where I could translate colours into sounds for visually impaired. I’ve only managed to do a simple one but that’s just taking average of rgb value of each pixel (I put it in 8X8 matrix and go through the image left to right and top to bottom) which gives me the brightness and I mapped it pitch. But that’s just brightness, I was wondering what’s the best way to map colour hues? I’ve tried to do it where I read an image and and then do jit.rgb2hsl and then I get the hue value and somehow connect it a carrier frequency of a fm synth but I dont think that’s a right way or something is wrong with how I get the hue value because sometimes it doesnt make any sound or even sounds unpleasant. I read in one of the tutorials where modulation index controls the timbre, but I’m not sure.


March 5, 2013 | 10:05 am

Your motivation is similar to mine
My patch divided the pixel into RGB, CYM and luminance.. that’s nine different possible tones, plus pitch and volume & timbre.
I have yet to find one that is intelligible
i thought to do a controlled study with blind & sighted people .. not tool much ethical concerns.
My tool requires an operator moving the mouse over the already displayed image — reading an image and then scanning it, creating literally a musical composition would be nice
Multiplying by 24.. or whatever .. is used to scale the pitch. I didn’t want to use anything lower than a contra C (~32Hz) or higher than 2 kHz
MIDI Notes 24 – 96

Let me find a machine with MAX on it ..


March 5, 2013 | 10:47 am

What I meant by "tones" is different "programs" on a synth, like flute, organ, sitar, all on different MIDI channels:
for each there is pitch & volume (velocity) plus velocity controlled parameters like filter cutoff & vibrato
I didn’t try to add mod wheel/pitch bend/aftertouch


March 5, 2013 | 1:09 pm

Oh yes, I know how to implement different midi channels.. for example this is just different types of drums:

– Pasted Max Patch, click to expand. –

For one of the patches I played around, I could change the midi instrument to piano or guitar or flute. I calculated the average rgb and linked the result into makenote pitch and constant velocity – loadmess 100 for example. But do you mean that I should have a different instrument for each r g b ?

I’m still unsure of timbre and how to implement it. I tried making 12 oscillators..so I mix 12 harmonically-related sine tones and that is to try different timbres. I then link each R , G, B values to a set of that oscillators. so each colour has 12 oscillators linked to it.


March 5, 2013 | 1:21 pm

Not really sure about this – "velocity controlled parameters like filter cutoff & vibrato"
Using line~ or lores~?


March 6, 2013 | 4:43 pm

Also,
I’ve been trying to figure how to have different midi instrument for each colour I have – RGB
so I have something like this:

– Pasted Max Patch, click to expand. –

and this is linked to each one of – r, g, b
but I can only use one instrument at a time. If I firstly set r to piano , then g to flute and lastly b to harp. only the last one that I set will sound (in this case harp)and the others will not make any sound. I can’t figure out why this is happening? I want all three types of instruments to make sound.
I can’t figure out to have three sounds altogether. Any idea?


March 6, 2013 | 4:45 pm

Apologies, that was pasted in wrong format.

– Pasted Max Patch, click to expand. –

Viewing 12 posts - 1 through 12 (of 12 total)