Pitch Tracking Patch

Learn about building and using Max for Live devices.
mauronedj
Posts: 313
Joined: Wed Mar 21, 2012 3:20 pm

Pitch Tracking Patch

Post by mauronedj » Tue Mar 12, 2013 7:55 am

Hi to all,
I can't find online any patch for Max that translate the pitch of an audio track (or a VST) into a midi CC output!

For me it's very useful for automate the filters cutoff, so I can remove, for example, the first harmonic, even if the pitch change!

Thanks!

kleine
Posts: 1854
Joined: Sat Dec 15, 2001 11:46 am
Location: ableton
Contact:

Re: Pitch Tracking Patch

Post by kleine » Tue Mar 12, 2013 7:07 pm

Hello,

This is a bit effort and some problems need to be solved.
a) Audio effects can not output MIDI. One would need to send the MIDI to a receive device and distribute it further from there. (track routing)
b) accurate Pitch tracking is not easy if the material has a lot of harmonics
c) the tracked data needs a "good smoothing" in order to be usable.

btw: which OS do you use?

Christian

mauronedj
Posts: 313
Joined: Wed Mar 21, 2012 3:20 pm

Re: Pitch Tracking Patch

Post by mauronedj » Tue Mar 12, 2013 7:11 pm

Hi Christian, thanks for the reply!
I'm on Windows (but I also have Osx)!

For the a) point, Live already have a default device that analyze the audio peacks and output CC's, why we can't do it with pitch?

Mauro.

kleine
Posts: 1854
Joined: Sat Dec 15, 2001 11:46 am
Location: ableton
Contact:

Re: Pitch Tracking Patch

Post by kleine » Tue Mar 12, 2013 7:22 pm

Which of the devices output CC data? I just made it as a bonus in the MIDI LFO... the other ones use mapping - maybe this is sufficient?

mauronedj
Posts: 313
Joined: Wed Mar 21, 2012 3:20 pm

Re: Pitch Tracking Patch

Post by mauronedj » Tue Mar 12, 2013 8:41 pm

kleine wrote:Which of the devices output CC data? I just made it as a bonus in the MIDI LFO... the other ones use mapping - maybe this is sufficient?
Yeah mapping would be great, I refer to that!

Could you try to work on it?

Mauro.

kleine
Posts: 1854
Joined: Sat Dec 15, 2001 11:46 am
Location: ableton
Contact:

Re: Pitch Tracking Patch

Post by kleine » Wed Mar 13, 2013 10:40 am


mauronedj
Posts: 313
Joined: Wed Mar 21, 2012 3:20 pm

Re: Pitch Tracking Patch

Post by mauronedj » Wed Mar 13, 2013 9:35 pm

Hi Christian,
Thanks for the patch, on mac it does not work,
I'll try it on my daw tomorrow and I report back here!

Many thanks for your time,
Mauro.

clement.m
Posts: 39
Joined: Mon Mar 11, 2013 8:40 am
Location: Brussels

Re: Pitch Tracking Patch

Post by clement.m » Thu Mar 14, 2013 10:00 am

MacMini i7 2,3GHz 16GB RAM - 10.10.5 - Suite 9.6 - http://clementmarion.be

aberkow
Posts: 62
Joined: Mon Apr 06, 2009 2:03 am

Re: Pitch Tracking Patch

Post by aberkow » Thu Mar 14, 2013 1:43 pm

You can use the [~fzero] object to track pitch within Max. If you connect it to [ftom] it will output the midi note value of the pitch you're playing which can be scaled or routed as you like. I've found [~fzero] works best when it doesn't have to listen to too many things though.

mauronedj
Posts: 313
Joined: Wed Mar 21, 2012 3:20 pm

Re: Pitch Tracking Patch

Post by mauronedj » Thu Mar 14, 2013 8:57 pm

I'm on win, I'ts still not work, I donwloaded the right version!
The patch is not recognize the pitch!
Anyway thanks for your time man! :D

mauronedj
Posts: 313
Joined: Wed Mar 21, 2012 3:20 pm

Re: Pitch Tracking Patch

Post by mauronedj » Tue Mar 19, 2013 8:20 am

Still can't make it work, please Christian can you help me?
The patch does not recognize incomings audio signal, it stay's to C root note!

kleine
Posts: 1854
Joined: Sat Dec 15, 2001 11:46 am
Location: ableton
Contact:

Re: Pitch Tracking Patch

Post by kleine » Tue Mar 19, 2013 8:25 am

Are there any errors in the Max Message window?

mauronedj
Posts: 313
Joined: Wed Mar 21, 2012 3:20 pm

Re: Pitch Tracking Patch

Post by mauronedj » Tue Mar 19, 2013 6:24 pm

Oh Yes,

newobj: fiddle~.mxe: No such object

I'm on the 64bit version of live and Max.

I'm a noob, sorry for that stupid question!

kleine
Posts: 1854
Joined: Sat Dec 15, 2001 11:46 am
Location: ableton
Contact:

Re: Pitch Tracking Patch

Post by kleine » Tue Mar 19, 2013 6:39 pm

Right. I did forget about 64bit - this external (the fiddle~ object) does not exist in a 64 bit version so far.
When i have some (spare) time, i'll see how far i can get with the "built-in" external fzero~.

(about these externals: externals are small C++ code objects for Max/Msp. Many are part of Max/Msp (an M4L) but some are from
individual persons or institutions - like e.g. this particular fiddle~object, which does the pitch-tracking here. It's not a given that the developers of those port them to 64bit or whatever comes around in the computing future....)

mauronedj
Posts: 313
Joined: Wed Mar 21, 2012 3:20 pm

Re: Pitch Tracking Patch

Post by mauronedj » Tue Mar 19, 2013 7:11 pm

Thanks!
I know what the External pieces of codes are but I don't know where to put them!

It's difficoult to port an Object?

Mauro.

Post Reply