Qitch:
Filter:
sc3-plugins/Classes (extension) | UGens > Analysis > Pitch

Qitch
ExtensionExtension

constant Q transform pitch follower

Description

This alternative pitch follower works in the frequency domain rather than Pitch's time domain correlation. Tradeoffs are made between latency and frequency resolution. It is meant to provide a relatively stable resultant tracked pitch based on a harmonic template.

NOTE: You must load one of the auxilliary data files into a Buffer and pass the bufnum to the routine. These files take the form:

Only use the one for your output sampling rate. Bigger N means more stability and resolution but longer delay and higher average CPU cost. N= 2048 is a good tradeoff if you don't want to track over 1000Hz fundamentals. The 48000 SR files are untested and provided without any promises.

In technical terms, this UGen calculates an FFT, applying Brown and Puckette's efficient constant Q transform on a quartertone scale, base note F3= 174.6Hz. Cross correlation search leads to the best match for a harmonic spectrum grid with falling amplitude components. A further fine tuning takes place based on instantaneous frequency estimation (rate of change of phase) for the winning FFT bin.

The algorithms are based on the following papers:

Judith C. Brown and Miller S. Puckette, 1992, "An efficient algorithm for the calculation of a constant Q transform". Journal of the Acoustical Society of America. 92(5); 2698-701.

Judith C. Brown, 1992, "Musical Fundamental Frequency Tracking Using a Pattern Recognition Method". Journal of the Acoustical Society of America. 92(3); 1394-402.

Judith C. Brown and Miller S. Puckette, 1993, "A High-Resolution Fundamental Frequency Determination Based on Phase Changes of the Fourier Transform". Journal of the Acoustical Society of America. 94(2); 662-7.

Class Methods

.kr

Arguments:

in

the audio rate input signal

databufnum

you must provide the initialisation data required by Qitch. This in the form of a .wav file that must be loaded to a buffer (see examples below). The data files should have come with this UGen.

ampThreshold

Qitch outputs a 0 in hasFreq if the input amplitude is below this threshold. Same as original Pitch.

algoflag

0 means use just the constant Q template pattern matcher. 1 flags the refinement based on the phase estimate.

ampbufnum

you may provide an 11 component buffer with template amplitudes- see example below.

minfreq

minimum output frequency in Hz

maxfreq

maximum output frequency in Hz

Examples

(use headphones!)