extra/peakinterp.m File Reference

Go to the source code of this file.

Variables

 function [iploc, ipmag, ipphase]
 
pX __pad3__
 
pX ploc
 
pX ipmag = val-.25*(lval-rval).*(iploc-ploc)
 
pX ipphase = interp1(1:length(pX),pX,iploc,'linear')
 
magnitude of peak bin lval = mX(ploc-1)
 
magnitude of bin at left rval = mX(ploc+1)
 
magnitude of bin at right iploc = ploc + .5*(lval-rval)./(lval-2*val+rval)
 

Variable Documentation

pX __pad3__

Definition at line 1 of file extra/peakinterp.m.

function[iploc, ipmag, ipphase]
Initial value:
= peakinterp(mX, pX, ploc)
% Parabolic interpolation of spectral peaks
magnitude spectrum pX
Definition: stft_peak.m:24
FFT of current buffer mX
Definition: stft_peak.m:23
Plot spectral magnitude
phase spectrum(unwrapped) ploc
use a maximum of peaks[f0, f0error]
pX ploc

Definition at line 1 of file extra/peakinterp.m.

magnitude of bin at right iploc = ploc + .5*(lval-rval)./(lval-2*val+rval)

Definition at line 9 of file extra/peakinterp.m.

center of parabola ipmag = val-.25*(lval-rval).*(iploc-ploc)

Definition at line 1 of file extra/peakinterp.m.

magnitude of peaks ipphase = interp1(1:length(pX),pX,iploc,'linear')

Definition at line 1 of file extra/peakinterp.m.

magnitude of peak bin lval = mX(ploc-1)

Definition at line 7 of file extra/peakinterp.m.

pX ploc

Definition at line 1 of file extra/peakinterp.m.

magnitude of bin at left rval = mX(ploc+1)

Definition at line 8 of file extra/peakinterp.m.