pysptk.sptk.mglsadf

pysptk.sptk.mglsadf(x, b, alpha, stage, delay)

MGLSA digital filter

Parameters:

x : float

A input sample

b : array

MGLSA filter coefficients

alpha : float

All-pass constant

stage : int

-1 / gamma

delay : array

Delay

Returns:

y : float

A filtered sample

Raises:

ValueError

  • if invalid number of stage is specified
  • if invalid delay length is supplied