help needed for a project...

kimchi_noodles's icon

Hi! I was wondering if someone could help me in creating a code on max5 for a project I have for a course called new media. I have little experience... although I am trying to learn, it is very difficult because I find it really confusing...

I have an idea for my project! Although I'm not sure if it is achievable.. but here goes~

My idea for this project is when you speak into the mic, your voice changes into a different tone! Something like a voice changer! I want it to have a setting where you can set the pitch, so you can make your voice high or low. Also, when you are speaking in the mic, I want it to be connected to a graph or any visualization that changes depending on how high your voice is! I also wanted to include a gif if that is possible to do... I was going to draw a character with different emotions and depending on how high and low the pitch is, it will change to a different face when you talk! For example, if you talk low, it will be scared, and if you talk normal it will be happy! If you start talking in a high pitch, it will change to an annoyed look. Something very simple!

If someone could help me with this project, I would very much appreciate it!!! thank you!!

PS, id like it if someone could help me understand and create it... I've tried the tutorials and I found that they were a bit confusing to me..

MIB's icon

couple of objects to look into:

pfft~ with gizmo~
scope~
spectroscope~

and some 3rd party externals for pitch detection:

fiddle~
analyzer~

...

brendan mccloskey's icon

If you find the tutorials confusing, then try not to rush things. You won't learn Max in one month, so stick with them.

You're probably aware that a quick and simple way to shift pitch in 'real time' is by shifting the time of a delay line; see dude837 here:

Also, look at the helpfiles for [pict]; and jit.qt.movie will read .bmp files.

Brendan

kimchi_noodles's icon

awesome! Thanks, I tried this tutorial and was able to make one! :D
Although I still need to figure out how to connect it to a gif. I was wondering if that is even possible? I want 3 gif's to activate according to pitch of the voice. For example, when the phasor is set low like 4, the voice is comes out as deep, I want the gif that is scared to activate, and when the phasor is set high like 50, I want the other gif to activate. Sorta like a switch, but changes when you change the phasor... I'm not sure if I'm explaining it right, but that is what I want to do

mzed's icon

If you're running Max 6 you might want to look at fzero~ for pitch detection.

mz