LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
lasp.filter.fir_design Namespace Reference

Author: J.A. More...

Functions

 freqResponse (fs, freq, coefs_b, coefs_a=1.)
 Computes the frequency response of the filter defined with the filter coefficients:
 
 bandpass_fir_design (L, fs, fl, fu, window=hann)
 Construct a bandpass filter.
 
 lowpass_fir_design (L, fs, fc, window=hann)
 
 arbitrary_fir_design (fs, L, freq, amps, window='hann')
 Last frequency of freq should be fs/2.
 

Detailed Description

Author: J.A.

de Jong - ASCEE

Description: Designs octave band FIR filters from 16Hz to 16 kHz for a sampling frequency of 48 kHz.

Function Documentation

◆ arbitrary_fir_design()

lasp.filter.fir_design.arbitrary_fir_design (   fs,
  L,
  freq,
  amps,
  window = 'hann' 
)

Last frequency of freq should be fs/2.

Definition at line 82 of file fir_design.py.

◆ bandpass_fir_design()

lasp.filter.fir_design.bandpass_fir_design (   L,
  fs,
  fl,
  fu,
  window = hann 
)

Construct a bandpass filter.

Definition at line 37 of file fir_design.py.

◆ freqResponse()

lasp.filter.fir_design.freqResponse (   fs,
  freq,
  coefs_b,
  coefs_a = 1. 
)

Computes the frequency response of the filter defined with the filter coefficients:

Args: fs: Sampling frequency [Hz] freq: Array of frequencies to compute the response for coefs_b: Forward coefficients (FIR coefficients) coefs_a: Feedback coefficients (IIR)

Returns: Complex frequency response for frequencies given in array

Definition at line 17 of file fir_design.py.

◆ lowpass_fir_design()

lasp.filter.fir_design.lowpass_fir_design (   L,
  fs,
  fc,
  window = hann 
)

Definition at line 62 of file fir_design.py.