Python implementation of real-time convolution for auralization
Project description
FIRconv
Python implementations of Finite Impulse Response (FIR) filters for real-time convolutions.
The algorithms are mainly (but not strictly) the ones described in WEFERS, Frank. Partitioned convolution algorithms for real-time auralization. Logos Verlag Berlin GmbH, 2015. found here.
Current algorithms
- Overlap-add (OLA);
- Overlap-save (OLS);
- Uniformily Partitioned Overlap-Save (UPOLS) (generalized version)
Installation
Use pip to install FIRconv:
$ pip install FIRconv
Getting started
Bellow there's a pseudo-code showing how to setup a basic use of FIRconv for real time convolutions.
from FIRconv import FIRfilter
import numpy as np
# Initialize FIR filter
bufferSize = 2**10
method = 'upols'
FIRfilter(method, bufferSize, h=IR)
while True:
output = FIRfilter.process(audio)
play(output)
- For more in-depth examples have a look at testFIR.py or Algorithms_validationpy
Collaborations are more than welcome!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
FIRconv-0.0.3.tar.gz
(8.2 kB
view hashes)