FIRconv-0.0.1
توضیحات
Python implementation of real-time convolution for auralization
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | FIRconv-0.0.1 |
| نام | FIRconv |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Davi Carvalho |
| ایمیل نویسنده | r.davicarvalho@gmail.com |
| آدرس صفحه اصلی | https://github.com/davircarvalho/FIRconv |
| آدرس اینترنتی | https://pypi.org/project/FIRconv/ |
| مجوز | - |
# FIRconv
<p align="left">
<a href="https://github.com/davircarvalho/FIRconv/releases/" target="_blank">
<img alt="GitHub release" src="https://img.shields.io/github/v/release/davircarvalho/FIRconv?include_prereleases&style=flat-square">
</a>
<a href="https://github.com/davircarvalho/FIRconv/commits/master" target="_blank">
<img src="https://img.shields.io/github/last-commit/davircarvalho/FIRconv?style=flat-square" alt="GitHub last commit">
</a>
<a href="https://github.com/davircarvalho/FIRconv/issues" target="_blank">
<img src="https://img.shields.io/github/issues/davircarvalho/FIRconv?style=flat-square&color=red" alt="GitHub issues">
</a>
<a href="https://github.com/davircarvalho/FIRconv/blob/master/LICENSE" target="_blank">
<img alt="LICENSE" src="https://img.shields.io/github/license/davircarvalho/FIRconv?style=flat-square&color=yellow">
<a/>
</p>
<hr>
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](http://publications.rwth-aachen.de/record/466561/files/466561.pdf?subformat=pdfa&version=1).
# Current algorithms
- Overlap-add (OLA);
- Overlap-save (OLS);
- Uniformily Partitioned Overlap-Save (UPOLS) (generalized version)
# Instalation
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.
```python
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](https://github.com/davircarvalho/FIRconv/blob/main/testFIR.py) or [Algorithms_validationpy](https://github.com/davircarvalho/FIRconv/blob/main/Algorithms_validation.py)
___________________________________________________________________
Collaborations are more than welcome!
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl FIRconv-0.0.1:
pip install FIRconv-0.0.1.whl
نصب پکیج tar.gz FIRconv-0.0.1:
pip install FIRconv-0.0.1.tar.gz