sinemodelpeakint.m File Reference

Go to the source code of this file.

Functions

id N ()
 
FFT size for synthesis (even) H
 
N, 1 zeros ()
 
overlap indexes sw (ovidx)
 

Variables

 function [y]
 
positive part of the spectrum Ns = 1024
 
analysis synthesishop size soundlength = length(x)
 
initialize buffer for FFT Create a loop to step through the sound array x initializing the loop hNs = Ns/2
 
half synthesis window size hM = (M-1)/2
 
half analysis window size used to overlap windows pin = max(H+1,1+hM)
 
initialize sound pointer to middle of analysis window pend = soundlength-max(H,hM)
 
last sample to start a frame y = zeros(soundlength,1)
 
initialize output array w = w/sum(w)
 
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

id N ( )
virtual
overlap indexes sw ( ovidx  )
FFT size for synthesis ( even  )
N,1 zeros ( )
virtual

Variable Documentation

synthesis window bh = blackmanharris(Ns)

Definition at line 25 of file sinemodelpeakint.m.

function[y]
Initial value:
=sinemodelpeakint(x,w,N,t)
%initializing values
id N()
#define M(a, b)
Definition: vp3dsp.c:43
initialize output array w
Discrete Time axis x
t
Definition: genspecsines3.m:6
const char int length
Definition: avisynth_c.h:668
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 it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return values

Definition at line 1 of file sinemodelpeakint.m.

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

Definition at line 14 of file sinemodelpeakint.m.

initialize buffer for FFT Create a loop to step through the sound array x initializing the loop hNs = Ns/2

Definition at line 13 of file sinemodelpeakint.m.

positive part of the spectrum Ns = 1024

Definition at line 5 of file sinemodelpeakint.m.

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

Definition at line 23 of file sinemodelpeakint.m.

ow = triang(2*H-1)

Definition at line 22 of file sinemodelpeakint.m.

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

Definition at line 17 of file sinemodelpeakint.m.

half analysis window size used to overlap windows pin = max(H+1,1+hM)

Definition at line 16 of file sinemodelpeakint.m.

analysis synthesishop size soundlength = length(x)

Definition at line 7 of file sinemodelpeakint.m.

normalize analysis window sw = zeros(Ns,1)

Definition at line 21 of file sinemodelpeakint.m.

initialize output array w = w/sum(w)

Definition at line 20 of file sinemodelpeakint.m.

Definition at line 19 of file sinemodelpeakint.m.