Collection of alterable digital biquad filters for dynamic audio effect creation
Project description
Alterable biquad filters
This is a collection of digital biquad filters whose parameters frequency
and quality
can be varied at runtime. Following filter implementations are available:
- Allpass
- Bandpass
- Highpass
- Lowpass
- Highshelf
- Lowshelf
- Notch
- Peak
Basic usage
Filter with persistent configuration:
import biquad
import numpy as np
# load audio samples somehow
x, sr = np.zeros(...), 44100
# create a filter of your choice
f = biquad.bandpass(sr, f=sr/4, q=1)
# process all audio samples
y = f(x)
Filter with dynamic configuration:
import biquad
import numpy as np
# load audio samples somehow
x, sr = np.zeros(...), 44100
# create a filter of your choice
f = biquad.bandpass(sr)
# create parameter modifications as you like
myf = np.linspace(1, sr/4, len(x))
myq = np.linspace(2, 1/2, len(x))
# process all audio samples
y = f(x, f=myf, q=myq)
See also
Cookbook formulae for audio equalizer biquad filter coefficients
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
biquad-0.3.tar.gz
(8.0 kB
view hashes)
Built Distribution
biquad-0.3-py3-none-any.whl
(14.4 kB
view hashes)