sinemodel.m File Reference

Go to the source code of this file.

Functions

FFT size for synthesis (even) H
 
overlapping window (triangular window to avoid too much overlapping) ovidx
 
overlap indexes sw (ovidx)
 

Variables

function y
 
function w = w/sum(w)
 
function N
 
function t
 
analysis window size Ns = 1024
 
analysis synthesishop size N2 = N/2+1
 
size of positive 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(N2,1+hM)
 
initialize sound pointer to middle of analysis window pend = soundlength-max(N2,hM)
 
last sample to start a frame fftbuffer = zeros(N,1)
 
normalize analysis window sw = zeros(Ns,1)
 
 ow = triang(2*H-1)
 
 bh = blackmanharris(Ns)
 

Function Documentation

overlap indexes sw ( ovidx  )
FFT size for synthesis ( even  )

Variable Documentation

synthesis window bh = blackmanharris(Ns)

Definition at line 21 of file sinemodel.m.

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

Definition at line 14 of file sinemodel.m.

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

Definition at line 11 of file sinemodel.m.

length of input sound array hNs = Ns/2

Definition at line 10 of file sinemodel.m.

Definition at line 1 of file sinemodel.m.

analysis synthesishop size N2 = N/2+1

Definition at line 8 of file sinemodel.m.

analysis window size Ns = 1024

Definition at line 6 of file sinemodel.m.

ow = triang(2*H-1)

Definition at line 18 of file sinemodel.m.

initialize sound pointer to middle of analysis window pend = soundlength-max(N2,hM)

Definition at line 13 of file sinemodel.m.

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

Definition at line 12 of file sinemodel.m.

size of positive spectrum soundlength = length(x)

Definition at line 9 of file sinemodel.m.

normalize analysis window sw = zeros(Ns,1)

Definition at line 17 of file sinemodel.m.

Definition at line 1 of file sinemodel.m.

initialize output array w = w/sum(w)

Definition at line 1 of file sinemodel.m.

initialize buffer for FFT y
Initial value:
= sinemodel(x, w, N, t)
% Analysis/synthesis of a sound using the sinusoidal model
function t
Definition: sinemodel.m:1
function w
Definition: sinemodel.m:1
Discrete Time axis x
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
float a
sound(x3, Fs)
FFT size for synthesis(even) H
function N
Definition: sinemodel.m:1

Definition at line 1 of file sinemodel.m.