First harmonic of audio signal
Hello everybody,
I'd like to make a patch that gives me the frequency of the first harmonic of a signal I enter with a microphone (voice, percussions, etc...). I had a look to the MSP tutorials and worked with the pfft~ objects but still have problems to find this frequency.
Does somebody has an idea to do so? Or may be a patch like this already exists?
Thanks in advance for your help guys.
Do you mean partial? "Harmonic" implies that you are inputing a sound
with an harmonic spectrum. In that case you are usually looking at
the fundamental frequency which you can detect with a pitch detector
like fiddle~ (unless the fundamental is missing in which case the
perceived pitch of the signal remains the same given the harmonic
pattern). In any case fiddle~ will also give you a list of partials.
best
Peiman
On 16 Aug 2007, at 14:40, tiyan wrote:
>
> Hello everybody,
>
> I'd like to make a patch that gives me the frequency of the first
> harmonic of a signal I enter with a microphone (voice, percussions,
> etc...). I had a look to the MSP tutorials and worked with the
> pfft~ objects but still have problems to find this frequency.
>
> Does somebody has an idea to do so? Or may be a patch like this
> already exists?
>
> Thanks in advance for your help guys.
Hi Peiman, thanks for the reply.
Actually i'm looking for the fundamental frequency of any percussive sounds. The pfft~object gives me all the frequencies processed, but I don't know how to isolate the one I'm looking for...
I'm working on the trial version of max/msp available on this website. I didn't find the fiddle~ object you're talking about. How can I use it?
You can only expect to get a fundamental frequency out of pitched
percussion (or at least reletively pitched, not cymbal for instance).
The FFT analysis doesn't really give you the right data in itself as
it divides the frequency space into equal bands not detecting the
partials, in addition it doesn't look for any harmonic patterns.
Fiddle~ is a pitch tracker, since it is an external you need to
download it and put it in your externals folder. Look for it in
www.maxobjects.com it should come with a help file.
best
Peiman
On 16 Aug 2007, at 15:16, tiyan wrote:
>
> Hi Peiman, thanks for the reply.
> Actually i'm looking for the fundamental frequency of any
> percussive sounds. The pfft~object gives me all the frequencies
> processed, but I don't know how to isolate the one I'm looking for...
> I'm working on the trial version of max/msp available on this
> website. I didn't find the fiddle~ object you're talking about. How
> can I use it?
>
>
>
tiyan schrieb:
> Hi Peiman, thanks for the reply. Actually i'm looking for the
> fundamental frequency of any percussive sounds. The pfft~object gives
> me all the frequencies processed, but I don't know how to isolate the
> one I'm looking for... I'm working on the trial version of max/msp
> available on this website. I didn't find the fiddle~ object you're
> talking about. How can I use it?
Pitch perception is tricky, even for humans, and they are so much
smarter than any algorithm...
Percussive sounds don't have clear pitches, but we can perceive them as
if they where there. You should be able to get that out of fiddle~ at
least roughly, but it needs a lot of tweakin'. You might also consider
bonk~, which you can train to recognize certain percussion sounds. Then
map the sound to the pitch you hear...
Stefan
--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com