PitchTracker:
Filter:
MyUGens/Classes (extension) | UGens > Analysis > Pitch

PitchTracker
ExtensionExtension

finds pitch by methods ACR, NSDF or SDF

Description

Pitch follower with 3 different methods. Returns estimated frequency, estimated clarity (0 to 1 on kind acr and nsdf) and R0 (power of signal) Argument size must be bigger for detecting lower frequencies (At 44100 sample rate a size of 4096 is necesary for 34Hz frequency detection)

Class Methods

.kr

Arguments:

in

signal to get pitch from.

size

size of buffer to perform autocorrelation. Must be power of two. Must be greater for detecting lower frequencies.

hop

fraction of size that triggers a new analysis.

dfreq

expected frequency (to accelerate analysis) only used if useef is 1.

thresh

minimum level of valid peak (from 0 to 1)

kind

kind of analysis, 0 ACR, 1 NSDF, 2 SDF(worst performant).

useef

use dfreq value to accelerate peak searching (1) or not (0).

bufnum

SndBuffer representing analysys. (-1 means no SndBuffer)

t_clear

zeroes analysis buffer when is not 0.

Examples