peakinterp.m File Reference

Go to the source code of this file.

Variables

 function [iploc, ipmag, ipphase]
 
pX __pad1__
 
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 __pad1__

Definition at line 1 of file 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: peakinterp.m:1

Definition at line 1 of file peakinterp.m.

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

Definition at line 9 of file peakinterp.m.

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

Definition at line 1 of file peakinterp.m.

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

Definition at line 1 of file peakinterp.m.

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

Definition at line 7 of file peakinterp.m.

pX ploc

Definition at line 1 of file peakinterp.m.

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

Definition at line 8 of file peakinterp.m.