Programmer Guide/Command Reference/EVAL/cvphase: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(Created page with '{{DISPLAYTITLE:{{SUBPAGENAME}}}} Smooth multiplier matrix using a two dimensional convolution. ;Usage:<code>optmm(<var>mflag</var>, <var>a</var>, <var>w</var>)</code> :;<var>m…')
 
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
Smooth multiplier matrix using a two dimensional convolution.
Convert phase spectrum.


;Usage:<code>optmm(<var>mflag</var>, <var>a</var>, <var>w</var>)</code>
;Usage:<code>cvphase(<var>p</var>, <var>ifmt</var>,  <var>ipos</var>, <var>ibin</var>, <var>ofmt</var>, <var>opos</var>, <var>obin</var>, <var>nbin</var>,  <var>orev</var>, <var>sr</var>, <var>len</var>, <var>hop</var>)</code>
:;<var>mflag</var>:selects the method used to modify the multiplier matrix; currently only the method ''mflag''='''0''' is implemented
:<var>p</var>: original phase spectrum at frame ''ipos'' and in the format ''ifmt''; ''p'' is a vector with ''n'' values
:;<var>a</var>:The multiplier matrix. Each row ''a''[i] contains one linear filter spectrum to be applied to a signal.
:<var>ifmt, ofmt</var>: input and output phase format
:;<var>w</var>:The smoothing matrix, containg a two dimensional a smoothing function.
::*'''0''' = differences
::*'''1''' = locked phase
::*'''2''' = unlocked phase
:<var>ipos, opos</var>: input and output frame index
:<var>ibin, obin</var>: input and output spectral bin
:<var>nbin</var>: number of spectral bins to convert
:<var>rev</var>:reverse output phase (0=no, 1=yes)
:<var>sr</var>:signal sampling rate
:<var>len</var>:transformation length (in samples) used for analysis and resynthesis
:<var>len</var>:hopsize (in samples) used for analysis and resynthesis
;Description:
;Description:
:*<code>nrow(''w'') = 2M+1</code> and <code>nrow(''a'') >> M</code>
;Result:A vector ''r'' with ''nbin'' values, containing the converted phase values.
:*<code>ncol(''w'') = 2N+1</code> and <code>ncol(''w'') = ncol(''a'')</code>
:*The matrix ''w'' contains the weighting function, with the maximum at ''w''[M,N] and which should be symetrical in both dimensions.
::<code>''w''[M-i,N-j]=''w''[M-i,N+j]=''w''[M+i,N-j]=''w''[M+i,N+j]; with: i=1..M, j=1..N</code>
:*The smoothed output is computed as follows:
::<math>r[i]=\sum_{j=-M}^M \sum_{k=-N}^N a[i+j,N+k].w[M+j,N+k]</math>
::with: <code>i=0..nrow(''a'')-1</code>; <code>''a''[i+j]=0</code> if <code>i+j<0</code> or <code>i+j>=nrow(''a'')</code>


;Result: The vector ''r'' with the length <code>nrow(''a'')</code>, containing the smoothed filter spectrum.
;See also: [[../hcomb|hcomb]], [[../optmm|optmm]], [[Programmer_Guide/BScript#MulAc|script application '''MulAc''']]
;See also: [[../hcomb|hcomb]], [[../cvphase|cvphase]], [[Programmer_Guide/BScript#MulAc|script application '''MulAc''']]


[[../#Functions|<function list>]]
[[../#Functions|<function list>]]

Revision as of 13:44, 20 April 2011

Convert phase spectrum.

Usage
cvphase(p, ifmt, ipos, ibin, ofmt, opos, obin, nbin, orev, sr, len, hop)
p: original phase spectrum at frame ipos and in the format ifmt; p is a vector with n values
ifmt, ofmt: input and output phase format
  • 0 = differences
  • 1 = locked phase
  • 2 = unlocked phase
ipos, opos: input and output frame index
ibin, obin: input and output spectral bin
nbin: number of spectral bins to convert
rev:reverse output phase (0=no, 1=yes)
sr:signal sampling rate
len:transformation length (in samples) used for analysis and resynthesis
len:hopsize (in samples) used for analysis and resynthesis
Description
Result
A vector r with nbin values, containing the converted phase values.
See also
hcomb, optmm, script application MulAc

<function list>

Navigation menu

Personal tools