Skip to content

Real-time partitioned convolution algorithms for Finite Impulse Response (FIR) filters in Python.

License

Notifications You must be signed in to change notification settings

davircarvalho/FIRconv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FIRconv

GitHub release GitHub last commit GitHub issues LICENSE


Python implementation of real-time convolution algorithms for Finite Impulse Response (FIR) filters.

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/optimized 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

# 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!

About

Real-time partitioned convolution algorithms for Finite Impulse Response (FIR) filters in Python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages