harmonicmodel.m File Reference

Go to the source code of this file.

Functions

overlap indexes sw (ovidx)
 

Variables

function y
 
function fs
 
function w = w/sum(w)
 
function N
 
function t
 
function nH
 
function minf0
 
function maxf0
 
function f0et
 
function maxhd
 
analysis window size Ns = 1024
 
FFT size for synthesis H = 256
 
hop size for analysis and synthesis N2 = N/2+1
 
size postive spectrum soundlength = length(x)
 
length of input sound array hNs = Ns/2
 
half synthesis window size hM = (M-1)/2
 
half analysis window size pin = max(hNs+1,1+hM)
 
initialize sound pointer to middle of analysis window pend = soundlength-hM
 
last sample to start a frame fftbuffer = zeros(N,1)
 
normalize analysis window sw = zeros(Ns,1)
 
 ow = triang(2*H-1)
 
overlapping window ovidx = Ns/2+1-H+1:Ns/2+H
 
 bh = blackmanharris(Ns)
 

Function Documentation

overlap indexes sw ( ovidx  )

Variable Documentation

synthesis window bh = blackmanharris(Ns)

Definition at line 25 of file harmonicmodel.m.

function f0et

Definition at line 1 of file harmonicmodel.m.

last sample to start a frame fftbuffer = zeros(N,1)

Definition at line 18 of file harmonicmodel.m.

Definition at line 1 of file harmonicmodel.m.

FFT size for synthesis H = 256

Definition at line 11 of file harmonicmodel.m.

half synthesis window size hM = (M-1)/2

Definition at line 15 of file harmonicmodel.m.

length of input sound array hNs = Ns/2

Definition at line 14 of file harmonicmodel.m.

function maxf0

Definition at line 1 of file harmonicmodel.m.

function maxhd

Definition at line 1 of file harmonicmodel.m.

function minf0

Definition at line 1 of file harmonicmodel.m.

Definition at line 1 of file harmonicmodel.m.

hop size for analysis and synthesis N2 = N/2+1

Definition at line 12 of file harmonicmodel.m.

Definition at line 1 of file harmonicmodel.m.

analysis window size Ns = 1024

Definition at line 10 of file harmonicmodel.m.

overlapping window ovidx = Ns/2+1-H+1:Ns/2+H

Definition at line 23 of file harmonicmodel.m.

ow = triang(2*H-1)

Definition at line 22 of file harmonicmodel.m.

initialize sound pointer to middle of analysis window pend = soundlength-hM

Definition at line 17 of file harmonicmodel.m.

half analysis window size pin = max(hNs+1,1+hM)

Definition at line 16 of file harmonicmodel.m.

size postive spectrum soundlength = length(x)

Definition at line 13 of file harmonicmodel.m.

normalize analysis window sw = zeros(Ns,1)

Definition at line 21 of file harmonicmodel.m.

Definition at line 1 of file harmonicmodel.m.

output sound w = w/sum(w)

Definition at line 1 of file harmonicmodel.m.

initialize buffer for FFT y
Initial value:
= harmonicmodel(x, fs, w, N, t, nH, minf0, maxf0, f0et, maxhd)
% Analysis/synthesis of a sound using the sinusoidal harmonic model
function minf0
Definition: harmonicmodel.m:1
function f0et
Definition: harmonicmodel.m:1
FFT size for synthesis(even) H
function maxhd
Definition: harmonicmodel.m:1
function w
Definition: harmonicmodel.m:1
return end harmonic
Definition: extra/TWM.m:29
Discrete Time axis x
function nH
Definition: harmonicmodel.m:1
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame This method is called when a frame is wanted on an output For an input
sound(x3, Fs)
function fs
Definition: harmonicmodel.m:1
function N
Definition: harmonicmodel.m:1
function t
Definition: harmonicmodel.m:1
function maxf0
Definition: harmonicmodel.m:1

Definition at line 1 of file harmonicmodel.m.