Skip to main content

pyFDN

pyFDN Python versions License Test coverage

Documentation | Examples | Report a bug

Overview

pyFDN provides building blocks for designing, simulating, and analysing Feedback Delay Networks (FDNs). The package focuses on reusable, tested helper functions that simplify typical FDN workflows such as creating orthogonal feedback matrices, designing loop filters, and inspecting pole locations. Using flamo as a dependency, pyFDN allows modular design of advanced FDN structure with DSP operations in time and frequency domain.

The pyFDN tutorial provides an introduction to the package.

The source code is MIT-licensed. Small packaged tutorial resources retain the separate terms recorded in src/pyFDN/resources/ATTRIBUTION.md; in particular, the Pori concert-hall impulse response is limited to noncommercial use.

Highlights

  • Matrix polynomial helpers for evaluating, differentiating, and convolving FIR/IIR blocks.

  • Loop analysis utilities including pole boundary estimation and curve bounding checks.

  • Acoustic absorption design tools that translate RT targets into one-pole and first-order shelf loop filters.

  • Echo density (Abel & Huang 2006) for analysing reverberation and mixing time.

  • Random orthogonal matrix generation to prototype energy-preserving feedback networks.

Installation

Install the current release from PyPI:

pip install pyFDN

For local development, create a virtual environment and install the package in editable mode together with the optional tooling:

python -m venv .venv
source .venv/bin/activate
pip install -e .

Quick start

All main functions are accessible directly from the top-level pyFDN namespace:

import numpy as np
import pyFDN

fs = 48_000
delays = np.array([331, 347, 359, 373], dtype=int)

# energy-preserving feedback matrix
feedback = pyFDN.random_orthogonal(len(delays))

# one-pole absorption filters targeting RT of 1.2 s at DC and 0.9 s at Nyquist
absorption = pyFDN.decay_to_one_pole(1.2, delays, fs, rt_nyquist=0.9)

# convert delay state-space to standard state-space
B, C, D = np.ones((4, 1)) / 2, np.ones((1, 4)) / 2, np.zeros((1, 1))
A_ss, B_ss, C_ss, D_ss = pyFDN.dss_to_ss(delays, feedback, B, C, D)

Alternatively, import specific functions directly:

from pyFDN import decay_to_one_pole, lin_to_db, random_orthogonal

feedback = random_orthogonal(4)
absorption = decay_to_one_pole(1.2, [100, 150, 200, 250], 48_000, rt_nyquist=0.9)

Citing pyFDN

If you use pyFDN in research, please cite Sebastian J. Schlecht, Facundo Franchino, and Jeremy B. Bai (2026), pyFDN: A Python Toolbox for Feedback Delay Network Design, Analysis, and Optimization, arXiv:2610.27217 (technical report; not peer reviewed). BibTeX is available in the documentation.

Development

Run the test suite (the configuration mirrors CI and emits coverage details):

tox -e py311

Or, inside an activated virtual environment:

pytest --cov=src/pyFDN --cov-report=term-missing

For linting and packaging helpers see Makefile (make lint/make docs) and tox.ini for multi-environment testing.

Metadata

Release files for pyFDN 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyFDN 0.6.0
File Size Uploaded Provenance Actions
pyfdn-0.6.0.tar.gz 7.2 MB With provenance Details for pyfdn-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyFDN 0.6.0
File Interpreter ABI Platform Actions
pyfdn-0.6.0-py3-none-any.whl Python 3 none any Details for pyfdn-0.6.0-py3-none-any.whl

Total release size: 10.5 MB

Release files / pyfdn-0.6.0.tar.gz

Download URL pyfdn-0.6.0.tar.gz
Size 7.2 MB
Tags Source
SHA-256 checksum
How to use checksums
d35263d5eae0c0ee36e6362a91c75e49b71a4bd37d30a114132e64b740320317
BLAKE2b-256 checksum
How to use checksums
f54d40f87361b3023dd11471a1d3552514af00a38dc7760cb07d29a4d8f0c4c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / pyfdn-0.6.0-py3-none-any.whl

Download URL pyfdn-0.6.0-py3-none-any.whl
Size 3.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a1a4e431929d82582c963e39bb16d05c4e7699546cb1ae453f8cd2f8fb4578a7
BLAKE2b-256 checksum
How to use checksums
ca6f3213628ce525f1a04ccf5d0125be97c3e0112e9e3077d082ae76c8930879
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for pyFDN 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyfdn-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page