Skip to main content

fluxion

GPU-accelerated, differentiable audio DSP — Python bindings for Fluxion.

Build effect chains out of fluxion.filter / fluxion.effect classes, compose them with | (series) and + (parallel), and apply them to a Wave or to any NumPy / PyTorch / JAX CPU array (zero-copy via DLPack when it's already float32 + contiguous). The differentiable SOS primitives expose fluxion's analytic gradients to torch.autograd and jax.custom_vjp, so filter coefficients train inside your model.

Every op has the same name here, in the Rust library, in the CLI and in the browser — they come from one registry. The chain can also be written as text and passed between them: fluxion.chain("highpass(80, 4) | gain(-3dB)").

Install

pip install fluxion-dsp               # CPU wheel (numpy only); the module is `import fluxion`
pip install 'fluxion-dsp[torch]'      # + the torch.autograd adapter
pip install 'fluxion-dsp[jax]'        # + the jax.custom_vjp adapter
pip install 'fluxion-dsp[interop]'    # + safetensors, for load_flamo_sos
pip install 'fluxion-dsp[dataset]'    # + pyarrow, for the Parquet dataset IO

The default wheel is CPU-only. A CUDA build (the "GPU wheel", extra batch kernels behind fluxion.cuda_available()) is published as a separate +cu12 local-version artifact — it is not on PyPI (local versions can't be uploaded); grab it from the project's GitHub releases.

Quick start

A file in, a file out — Wave carries the sample rate, so it stays out of your code:

import fluxion as fx

wave = fx.Wave.from_file("in.wav")
(wave | fx.filter.Highpass(80, order=4) | fx.effect.Gain(fx.db(-3))).save("out.wav")

Arrays — for notebooks and batch jobs, a chain is simply callable:

import numpy as np
import fluxion as fx

x = np.random.default_rng(0).standard_normal(48_000).astype(np.float32)
chain = fx.filter.Lowpass(2000.0, order=4) | fx.effect.Gain(0.8)   # series
y = chain(x, fs=48_000)                                            # (T,) float32 out
batch = chain.process_batch(np.stack([x, x]), fs=48_000)           # (B, T) batched CPU path

Trainable filter — a designed cascade as a torch nn.Module:

import torch
import fluxion as fx
import fluxion.torch as fxt

m = fxt.SosModule.from_chain(fx.filter.Lowpass(2000.0, 4), fs=48_000)  # seed from a design
y = m(torch.randn(512))            # differentiable; m.coeffs is an nn.Parameter
y.pow(2).sum().backward()          # gradients flow through fluxion's analytic IIR adjoint

Augmentation — stochastic, reproducible transforms:

import numpy as np
import fluxion as fx
from fluxion.augment import Compose, RandomChain

aug = Compose([
    RandomChain(fx.filter.Lowpass, cutoff=(500.0, 8000.0), order=4, p=0.5, rng=0),
    fx.effect.Gain(0.9),
])
y = aug(np.random.default_rng(0).standard_normal(1000).astype(np.float32), fs=48_000)

Dataset IO — Parquet audio datasets (extra fluxion[dataset]), the same on-disk schema as the Rust fluxion_io::arrow side, so files interoperate. Streams both ways, so augmenting a whole dataset is bounded-memory:

from fluxion.dataset import iter_parquet, write_parquet
write_parquet("out.parquet", ((aug(x, fs), fs) for x, fs in iter_parquet("in.parquet")))

Import a FLAMO/DDSP biquad checkpoint into fluxion's SOS path with fluxion.interop.load_flamo_sos(...) (see its docstring for supported layouts).

License

MIT — see LICENSE.

Metadata

Release files for fluxion-dsp 0.3.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 fluxion-dsp 0.3.0
File Size Uploaded Provenance
fluxion_dsp-0.3.0.tar.gz 401.2 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for fluxion-dsp 0.3.0
File
fluxion_dsp-0.3.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
fluxion_dsp-0.3.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details
fluxion_dsp-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
fluxion_dsp-0.3.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
fluxion_dsp-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 7.9 MB

Release files / fluxion_dsp-0.3.0.tar.gz

Download URL fluxion_dsp-0.3.0.tar.gz
Size 401.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a2a3889d8517de6fe55ab297fbfda14b37dc27a8639d156f974a7630604f4f73
BLAKE2b-256 checksum
How to use checksums
53929fab85b7aed53ef86b10101da4eed4516ace7870ac7d1f33abb8cca31699
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 13, 2026.

Transparency log

Release files / fluxion_dsp-0.3.0-cp310-abi3-win_amd64.whl

Download URL fluxion_dsp-0.3.0-cp310-abi3-win_amd64.whl
Size 1.6 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
639a1c73e28f488b2239e74ce147a093f3ef13f9d3384410fc8d087cf0d7d116
BLAKE2b-256 checksum
How to use checksums
0ae76488efe65323677f3cfc920354195d04abb10e53f6b502fc630553f80464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 13, 2026.

Transparency log

Release files / fluxion_dsp-0.3.0-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL fluxion_dsp-0.3.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 1.4 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
2f2e32421a2ab4e29b4dc337f2185ff509c8005c9e32a1fb7bfc3c878fc588a4
BLAKE2b-256 checksum
How to use checksums
90fc24bf2f8a07c0b73fe9d8329bffc7ff93da0ded8b91fdb088da6fc500bbd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 13, 2026.

Transparency log

Release files / fluxion_dsp-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fluxion_dsp-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
c600f390f96697dba184e3a2d80353ef1af9ec86faba4d765bf5a2638f5c76ed
BLAKE2b-256 checksum
How to use checksums
2b53b066961d76a5f4b2e2bba5fe94c41a47677786f6e60558f28c9f9b71d07b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 13, 2026.

Transparency log

Release files / fluxion_dsp-0.3.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL fluxion_dsp-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
Size 1.3 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0a7754001b2eac969d89a9f2e2f6afece628a158858c048cf86426fabf623b0b
BLAKE2b-256 checksum
How to use checksums
8e09e338ffa848e830ee377cac5301c6582933e70037d3fb12fd80ca3fc907bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 13, 2026.

Transparency log

Release files / fluxion_dsp-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL fluxion_dsp-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 1.5 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
3f27e7b96914cc83cfc0a53ece7193e952094ee5c7031e982e52ffc28e070f2f
BLAKE2b-256 checksum
How to use checksums
2e6f63f269df39c8e1f0b1522a79fe1fa33c825f38424130abfe28686a6cf0ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 13, 2026.

Transparency log

Security for fluxion-dsp 0.3.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

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for fluxion_dsp-0.3.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 Oct 13, 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.

Release history Release notifications | RSS feed

This release

0.3.0 This release

6 release files Full provenance

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