sinemodel_.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 = 2048
 
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 26 of file sinemodel_.m.

function[y]
Initial value:
=sinemodel_(x,w,N,t)
%initializing values
#define M(a, b)
Definition: vp3dsp.c:43
initialize output array w
Definition: sinemodel_.m:21
Discrete Time axis x
t
Definition: genspecsines3.m:6
id N()
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 2 of file sinemodel_.m.

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

Definition at line 15 of file sinemodel_.m.

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

Definition at line 14 of file sinemodel_.m.

positive part of the spectrum Ns = 2048

Definition at line 6 of file sinemodel_.m.

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

Definition at line 24 of file sinemodel_.m.

ow = triang(2*H-1)

Definition at line 23 of file sinemodel_.m.

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

Definition at line 18 of file sinemodel_.m.

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

Definition at line 17 of file sinemodel_.m.

analysis synthesishop size soundlength = length(x)

Definition at line 8 of file sinemodel_.m.

normalize analysis window sw = zeros(Ns,1)

Definition at line 22 of file sinemodel_.m.

initialize output array w = w/sum(w)

Definition at line 21 of file sinemodel_.m.

Definition at line 20 of file sinemodel_.m.