Primary Frequency

marcofilipevieira's picture

Hi guys, I have a question about the primary frequency patch. I was trying to use this patch to obtain the correspondent midi value from the frequency. But I noticed that, the values of the frequency are not good. Because, when I have no input sound, the patch returns a frequency. I took a print-screen so you can see what I'm trying to say. As you can see in the image, there's nothing in the input level of my microphone. But the patch returns the frequency with the value 5209 (this value it's always changing). Why is that? It should be returning zero. Anyway, here's my patch. After the frequency I use a formula in order to know the correspondent midi value of the frequency.

Thank you for your attention.

PreviewAttachmentSize
Screen Shot 2012-03-22 at 10.39.46.png
Screen Shot 2012-03-22 at 10.39.46.png407.16 KB
FreqToMidi.qtz33.96 KB

smokris's picture
Re: Primary Frequency

The Primary Frequency patch is trying to make music out of the background noise. It doesn't care how loud the frequencies it picks out are, it just always tries to pick out frequencies. It's up to you as the composition developer to set a threshold for what you consider loud enough to warrant an output frequency.

Use the Volume Peaks output of the Kineme Audio Input patch, feed it into a Structure Index Member to select a channel, feed that into a Conditional to only trigger past a certain threshold, then use that to toggle whether your output is rendered.

marcofilipevieira's picture
Re: Primary Frequency

Thanks, that really makes sense. I don't know why didn't remember that while ago. Thanks, but anyway I can't get very good values. But at least I can know if it is a high pitch or not.