Skip to main content
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 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, 0.9, delays, fs)

# convert delay state-space to standard state-space (A_ss, b, c, d)
A_ss, b, c, d = pyFDN.dss_to_ss(delays, feedback)

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, 0.9, [100, 150, 200, 250], 48_000)

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfdn-0.4.1.tar.gz (7.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfdn-0.4.1-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

File details

Details for the file pyfdn-0.4.1.tar.gz.

File metadata

  • Download URL: pyfdn-0.4.1.tar.gz
  • Upload date:
  • Size: 7.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pyfdn-0.4.1.tar.gz
Algorithm Hash digest
SHA256 d00409932f6b95fe9c91284c02c8d9d2367a10787f78d60a4afa2fd149ed52ac
MD5 f7d4793a4156e3808a65f2877874f2cc
BLAKE2b-256 629a7ad20cd0e1bfa83b852971b332e3c21420e02284ba683c58898f629641e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfdn-0.4.1.tar.gz:

Publisher: release.yml on artificial-audio/pyFDN

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfdn-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: pyfdn-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pyfdn-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e0074a103eead1cf829d30053a31bb96e0a9085da96cb1242f9c10fba1a36bc
MD5 3a769ec7e00724070d25ab9b5143e925
BLAKE2b-256 1b783d6425565fa7f5d100f3ab932f0a3193a3c9d1beb718dc175194c4b57624

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfdn-0.4.1-py3-none-any.whl:

Publisher: release.yml on artificial-audio/pyFDN

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.4.2

2 files

This release

0.4.1 This release

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

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