f0detection.m File Reference

Go to the source code of this file.

Functions

initialize output if (nPeaks >3)%at least 3 peaks in spectrum for trying to find f0 nf0peaks
 
 if (f0 >0 &&f0error >ef0max)%limit the possible error by ethreshold f0=0
 

Variables

function f0
 
function fs
 
function ploc
 
function pmag
 
function ef0max
 
function minf0
 
function maxf0
 
size of complex spectrum nPeaks = length(ploc)
 
use a maximum of peaks [f0, f0error] = TWM(ploc(1:nf0peaks),pmag(1:nf0peaks),N,fs,minf0,maxf0)
 
end end
 

Function Documentation

initialize output if ( nPeaks  ,
 
)
if ( f0  ,
0 &&  f0error,
ef0max   
)
pure virtual

Variable Documentation

function ef0max

Definition at line 1 of file f0detection.m.

end end

Definition at line 15 of file f0detection.m.

number of peaks f0
Initial value:
= f0detection(mX, fs, ploc, pmag, ef0max, minf0, maxf0)
% Fundamental frequency detection function
function ef0max
Definition: f0detection.m:1
function ploc
Definition: f0detection.m:1
FFT of current buffer mX
Definition: stft_peak.m:23
Plot spectral magnitude
phase spectrum(unwrapped) ploc
function minf0
Definition: f0detection.m:1
function maxf0
Definition: f0detection.m:1
function fs
Definition: f0detection.m:1
function pmag
Definition: f0detection.m:1

Definition at line 1 of file f0detection.m.

Definition at line 1 of file f0detection.m.

function maxf0

Definition at line 1 of file f0detection.m.

function minf0

Definition at line 1 of file f0detection.m.

size of complex spectrum nPeaks = length(ploc)

Definition at line 7 of file f0detection.m.

use a maximum of peaks[f0, f0error] = TWM(ploc(1:nf0peaks),pmag(1:nf0peaks),N,fs,minf0,maxf0)

Definition at line 11 of file f0detection.m.

function ploc

Definition at line 1 of file f0detection.m.

function pmag

Definition at line 1 of file f0detection.m.