looking for a patch that turns pitch/frequency to color?

Cc's icon

HI, im fairly new to max,
im looking for a simple patch that would turn input sound from mic to a colour?
it can be through pitch or frequency
i would be so grateful if anyone could help me
thank you in advance!

Cc's icon

hi, sorry the bump, please help me :)

daddymax's icon

You have two questions here - you want to find an object that detects pitch (look at fzero or retune, and have a look at their help files). Your second question (how to change color) can be done in a number of ways, but perhaps look at the setcell command in jit.matrix, as that will let you set red green and blue mix. Once you have both sorted out, you'll just need to connect them and scale the tuning variable so it makes sense for the color range you want.

Cc's icon

can i do it with hsv or hsl ?

Pedro Santos's icon

Look at the swatch object also, it can do hsl conversions.

Cc's icon

im really lost with this, the analyser and fzero does not take pitch from microphone (it does irregularly and not accurate), please help me,

can anyone kindly provide example patch
help is really needed :(

Cc's icon

this is what i've got so far but it's very inaccurate and temperamental
thank you in advance!

mzed's icon

It sounds like you're having trouble with the pitch tracking side.

What is the input you are trying to track? An instrument? Voice? Are you using an external microphone?

Cc's icon

Hi, a microphone and a voice (conceptual it'll be in the forest and it will be of different animals) but for now just microphone and human voice , thank you!