Skip to main content

Python implementation of real-time convolution for auralization

Project description

FIRconv

GitHub release GitHub last commit GitHub issues LICENSE


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)

Collaborations are more than welcome!

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

FIRconv-0.0.3.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

FIRconv-0.0.3-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page