> So given the spectral resolution of the built-in audio patch (or Kineme's), 
> how can I get something like in my little diagram?  The Audio Processor 
> custom patch spits out normalized readings for highs/mids/lows but my 
> Javascript skills are woefully inadequate to the task of combining its output 
> into a rough pitch meter.  Sometimes I really wish I'd majored in CS....

The built-in Audio Input patch provides 16 spectral bands, which is far too few 
for meaningful pitch information.

You could iterate over the spectrum output provided by Kineme AudioTools, and 
find the maximum.  However since pitched sounds typically include overtones, 
something like the Harmonic Product Spectrum algorithm might be preferable.  An 
example is here:  http://kineme.net/composition/smokris/PrimaryFrequency

Or you could perform autocorrelation on the raw waveform data --- you might 
even be able to exploit Core Image to achieve decent realtime performance.


Steve

-- 
Steve Mokris [ [email protected] ]
http://kineme.net/

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to