Pitch object

Aug 29, 2012 at 6:06pm

Pitch object

Does anyone know how to make the Pitch object work in Max 5 / 6? As in enable the Pitch object to translate audio into numerical values?

#64147
Aug 29, 2012 at 6:15pm

pitch~ works fine for me. You might check the helpfile for it and just use the arguments that it uses there.

#231392
Aug 29, 2012 at 6:24pm

Is there any way I could send you my patch? I’m a bit new to Max so I’m still not quite sure what to do. Basically, I’m trying to give numerical value to notes played via the Buffer & Groove objects. From that point onwards I want to assign colours to the numerical values. Any ideas….?

#231393
Aug 29, 2012 at 6:40pm

Best just to post it on the forum. Groove~ is just playing audio. Pitch~ takes audio signals and tries to analyze them for pitched material. There’s also the fzero~ object in Max 6 that does pitch-tracking.

Have you worked through any of the tutorials yet? If not, that’s my first recommendation. (check under the help menu)

#231394
Aug 29, 2012 at 6:45pm

Cheers man! I was actually on the right track beforehand: audio signals are being recognized and numbers have been assigned to individual notes. My next headache will be assigning the numerical values to colours haha

Thanks for the help, though!

#231395
Aug 29, 2012 at 7:00pm

Once you get pitch tracking working you need to figure out how you want to map one to the other. Pitch, you will likely get as a single number (either as frequency or as a midi number), but color can be represented many ways. Most often (in max) as RGB, so you need to turn that one number into three numbers (at least). There’s also hue and transparency. There’s a “mood machine” inside the help file for ‘swatch’ that might give you some ideas.

#231396
Aug 29, 2012 at 7:12pm

I’ve checked the ‘Swatch’ object, which is really cool, but ideally, I would just like one a certain colour to appear once a note is played (i.e.) Blue to appear when ‘Pitch’ spits out the number 59.4 etc etc.. Any other suggestions?

Can I post my patch up here for further assistance?

#231397
Aug 29, 2012 at 8:36pm

Sure. Be sure to use the “copy compressed” option under the edit menu.

#231398
Aug 29, 2012 at 9:23pm

Still trying to send the file, give me some more time, sorry guys

#231399
Aug 29, 2012 at 9:24pm
– Pasted Max Patch, click to expand. –
#231400
Aug 29, 2012 at 10:12pm

Here’s an idea

– Pasted Max Patch, click to expand. –
#231401
Aug 29, 2012 at 10:13pm

A couple of notes. Use ‘replace’ instead of ‘read’ for buffer. Replace changes the size of the buffer to fit the new sample. Read just loads it into whatever size buffer you have.

The version on the left uses attacks to only change color when a new note/event happens, the version on the right changes constantly, but is smoothed out a bit (other wise it looks too jittery).

If you wanna get crazy with it you can use analyzer~ instead and take amplitude and noisiness data and use that to control saturation and other parameters.

#231402
Aug 30, 2012 at 3:24pm

Thanks for that man, I think I understand what you’ve done. Any ideas about mapping raw incoming data to colours?

#231403

You must be logged in to reply to this topic.