This release is a pre-release and may not be stable for production use.
auvux-dsp
Fast differentiable audio transforms (STFT, iSTFT, mel, MFCC, CQT/VQT, chroma) plus differentiable scalar/temporal features (spectral moments & flatness, RMS, spectral flux, onset strength, tempogram) with native CPU backends (vDSP on macOS, PFFFT elsewhere) and GPU support (Metal, CUDA). Forward and backward passes run in native kernels; PyTorch autograd plugs in when you pass a torch tensor, and torch is never required otherwise.
import auvux.dsp as dsp
mel = dsp.MelSpectrogram(sr=44100, n_fft=2048, hop_length=512, n_mels=128)
S = mel(y) # numpy in -> numpy out
S = mel(y, backend="gpu") # Metal / CUDA kernels
y = torch.tensor(clip, requires_grad=True)
loss = mel(y, output="db").sum() # native forward
loss.backward() # native adjoint kernel, no torch recompute
pip install auvux-dsp --pre # preview release; drop --pre once 0.1.0 is out
Performance
Benchmarks against librosa and torchaudio (forward passes and full training
steps, CPU / staged GPU / GPU-resident) live in benchmarks/benchmark.py:
python benchmarks/benchmark.py
Results table to be published with the first release.
Complex STFT layout
Complex spectra are returned as (..., bins, frames) backed by frame-major
memory — each frame's spectrum contiguous, the freq axis strided. This is the
same physical layout both references use (librosa allocates its stft output
order='F'; torch.stft returns a transposed view over frame-major memory),
so values and bytes match librosa, and the GPU-resident path returns a
tensor with the exact strides torch.stft produces. It is also what makes
the STFT fast: no backend ever materializes the bins-major transpose. istft
accepts both this layout (zero-copy) and compact C-order arrays. Float
outputs (power/db/mel/...) are ordinary C-contiguous arrays.
Dtypes
Outputs follow the input dtype, torch-style:
| input | CPU | GPU (Metal / CUDA) |
|---|---|---|
| float32 / ints (promote) | native float32 | native float32 |
| float64 / complex128 | native double engines (validation grade: torch.autograd.gradcheck passes on every adjoint; librosa-double parity ~1e-10) |
backend="auto" routes to CPU; explicit GPU backend raises |
| float16 (torch, GPU-resident) | computed in float32, cast back | native half kernels (Metal; CUDA planned): f16 in → f16/complex32 out, FFT arithmetic in half with float accumulators — torch.stft-CUDA-half numerics (~1e-3) at half the bandwidth |
| float16 (numpy / staged) / bfloat16 | computed in float32, real outputs cast back to the input dtype | same (upcast on device) |
torch CPU rejects half-precision FFTs outright and torch cannot create float64
MPS tensors, so this is a superset of torch.stft's dtype matrix. Complex
outputs for staged half inputs stay complex64; the native Metal path returns
torch.complex32 exactly like torch.stft on CUDA half (normalize signals to
~±1 — half overflows at 65504, like every fp16 pipeline).
FFT sizes
Any even n_fft works, torch-style, picked per size at plan time: powers of
two run radix-2 (vDSP on macOS, PFFFT elsewhere), other 2^a·3^b·5^c sizes
(96, 384, 960, …) run PFFFT mixed-radix at full speed, and everything else
(400, 1000, primes·2, …) falls back to a Bluestein chirp-z on the pow2
engines (~5× a direct FFT — the same penalty torch pays inside
pocketfft/cuFFT for such sizes). Whisper's n_fft=400 / hop=160 / 80 mels
works out of the box. On GPU, pow2 sizes use the Stockham kernels and any
other even size in [64, 4096] uses direct-DFT kernels; gradients flow through
every path.
Status: under construction.
- CPU (vDSP/PFFFT): STFT, ISTFT, MelSpectrogram, MFCC, CQT, VQT, Chroma — forward and native backward, librosa-parity tested, torch autograd built in.
- Differentiable features: SpectralMoments (centroid, bandwidth, skewness, kurtosis, flatness, slope, decrease, crest, entropy), RMS, SpectralFlux, OnsetStrength, Tempogram — native forward + analytic adjoint, librosa-parity / torch-grad tested.
- Composed descriptors (built on the transforms above, so they inherit the GPU
path and stay differentiable): SpectralContrast, BandEnergy, Tonnetz,
ChromaCENS, FourierTempogram. Plus
delta(Savitzky-Golay derivative) andpoolpost-processing over any feature matrix. - Metal: every native transform on GPU (n_fft <= 4096), forward + backward, parity-tested against the CPU path. torch MPS tensors stay on the GPU end to end (DLPack), and backend="auto" routes them there — no flags needed.
- CUDA: kernel-for-kernel twin of the Metal backend including the resident paths; parity-tested on NVIDIA hardware (RTX 4090, CUDA 12.9), with pinned double-buffered staging for the numpy-in/numpy-out GPU paths.
- Pending: iCQT.
Development
pip install scikit-build-core pybind11 numpy pytest
./scripts/dev-build.sh
pytest
pytest -m soak # memory-plateau soak (deselected by default)
./scripts/sanitize.sh # ASan+UBSan+LSan suite; Linux, or via docker (see header)
Note for packagers: python/auvux/ is a PEP 420 namespace package — it must
never contain an __init__.py, or it will shadow sibling auvux-*
distributions.
Metadata
Release files for auvux-dsp 0.1.0.dev4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| auvux_dsp-0.1.0.dev4.tar.gz | 268.3 kB | Without provenance | Details for auvux_dsp-0.1.0.dev4.tar.gz |
Built distributions (wheels)
Total release size: 56.4 MB
Release files / auvux_dsp-0.1.0.dev4.tar.gz
| Download URL | auvux_dsp-0.1.0.dev4.tar.gz |
|---|---|
| Size | 268.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94f8c56479245a6ae3f2e93d6ab6663240b105916d4e3d2d5a0dd5b520c4e48c
|
|
BLAKE2b-256 checksum How to use checksums |
ceb0109f93d9dda8a02147468b4f4f6203aea8444c401a878752302763a2ed7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp313-cp313-win_amd64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
8803bc1e3b7962d58757d3debffca7a46eaa340c74c70b66d694c079ed496e1a
|
|
BLAKE2b-256 checksum How to use checksums |
11ff74f0b14b9b883198c92bf37f2dcb1508f691b02a74dad690603fa4ef32f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d80b70ca38948f67ee672b5b25e0d43527a199ae6b232a3f297e9714bef86f64
|
|
BLAKE2b-256 checksum How to use checksums |
d067e315d2beff17e4b8665eeac9a205651d5e8c450d0551045dc141c41ac296
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.13 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
dcf522f3ac9baa6e886b884893f5fe4a048165692c90280d9223a7ec98c203c2
|
|
BLAKE2b-256 checksum How to use checksums |
cab3d23cc4e0c7fd3ad5eca1af2994090c2c5e5344cc9a9f9cc4368b2eafdb5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 439.8 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
556f5de265448def672cbc5f155cef413f49cf241335f0bca19a7e298a5d7809
|
|
BLAKE2b-256 checksum How to use checksums |
ad5187279a7d01826c70814c34c9aa18f024181bb8cd86deca3a6b43335262ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp313-cp313-macosx_10_13_x86_64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp313-cp313-macosx_10_13_x86_64.whl |
|---|---|
| Size | 505.2 kB |
| Tags | CPython 3.13 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
fe87ec464975891bf36124afce5b2f36b6db603ebd0071fd6dcd354562fda1c8
|
|
BLAKE2b-256 checksum How to use checksums |
267f270ce05947a3a7e11dbb0d0059407001fd9856790052fcfc3d449766fe77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp312-cp312-win_amd64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b9ca825a901d636c0cfb96c7e87776a2726fe3231e3f34d771d914613bda9e6f
|
|
BLAKE2b-256 checksum How to use checksums |
de8820ab944e357fd18d8ba0178cbcffd692e0c2e08f9e31cb6d5554cf801e7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
2606ddf2e0aef313dabb2b40cc958d0af2920282d49add142d61f0a9c1a5266c
|
|
BLAKE2b-256 checksum How to use checksums |
181c9c64094056e8ae9ba9f8c50fe1840a1fdea3cbc067d3bc9963d69e25d887
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
98e666ef7e571df0b330ed70b374914614c0c5d16aa2a0f3ac1a6d59a29f86ba
|
|
BLAKE2b-256 checksum How to use checksums |
da6b696aa97ec2512e47a329a9e1d4f393072d216086db31876c7e9368f18bd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 439.7 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4604d23886e95501bc84e71b0206bb2f68d4aa880019d7ae62eeb7b1f24e3550
|
|
BLAKE2b-256 checksum How to use checksums |
f383ba02d254df37c7c16a69b5607854db91933e73f8a975c1cdf3fb8eed6b27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp312-cp312-macosx_10_13_x86_64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp312-cp312-macosx_10_13_x86_64.whl |
|---|---|
| Size | 505.2 kB |
| Tags | CPython 3.12 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
d6c234ea97fb450aef48355dbd86c64aedac8a48a7d83d3460583a945aac9eba
|
|
BLAKE2b-256 checksum How to use checksums |
7ca2826f569fb5dba5853921d91b65f2856b78230eaddfa3554f1b78bd2b7162
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp311-cp311-win_amd64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
dbad5a900617ebc6499072174f257506a3eb606387737df7a9ab970526ec43d3
|
|
BLAKE2b-256 checksum How to use checksums |
cc2973ead39e175f5be4433315ee13195ff4ca27c5180479cc2107044b6900d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
99a9567af2f671188ca6a345f954fa1f8a690e0701da49b99365e88d09e73486
|
|
BLAKE2b-256 checksum How to use checksums |
5f63ce8b8291d38fdf6b49e132747ad08963ca3bdc95237a55a8835c7b27f6ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.11 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
3ff7eab32bdb8c85601e6e2d69dd4af6af31cad2f6410c321fe3c00873e3b6ea
|
|
BLAKE2b-256 checksum How to use checksums |
38c2a64630d107a06e84b2fc081ca6a33e68e7f96a4e66fc779f60bb876a1bcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 438.3 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9a80d9816de73ab12548bae0ef88c52cc9c31cd4efa7bbfa5e3a856c73907c6d
|
|
BLAKE2b-256 checksum How to use checksums |
03134218917529a1fa7f51e76607ad89ad802ee08f0e1b87ee8248ff3b3cf409
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp311-cp311-macosx_10_9_x86_64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp311-cp311-macosx_10_9_x86_64.whl |
|---|---|
| Size | 501.9 kB |
| Tags | CPython 3.11 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
fb58c3603bd04e80ec6faa8e4ffb4dd258477cb21d0f9ad1514a25892f966dfd
|
|
BLAKE2b-256 checksum How to use checksums |
ac55f933f6427624704d8b5b23e8d7e6539fc95b77136c4834fb5029c356845f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp310-cp310-win_amd64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4f0abd2a28db42897037de006822918c796c365b98e7c7b98d8ecb332bb221f8
|
|
BLAKE2b-256 checksum How to use checksums |
5f1702170e668386e7d27c9164dc9cf72cde13ae24c0570e2b064baec0c29bf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
8ec8d9aad81696ad60a34ac2acc921c3b1d5ce62f74a487b42577fbd1c39760f
|
|
BLAKE2b-256 checksum How to use checksums |
3a6942dbe5040b1c35eea4032c7e53b9e97ea644039d31c763fc0a032546b739
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.10 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
6dd8b1761ded61b27fa24a120a510919fad540de164f2cba964954be0548e8d9
|
|
BLAKE2b-256 checksum How to use checksums |
7db6e96552dc75fc19553a7c87518a07a4c696ef2dc195e1f42b4b813df6e7b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 437.0 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
81fdcca26364c6fe602c91e67c3c14363ecf9cd0805e5212a86c053d43987bb9
|
|
BLAKE2b-256 checksum How to use checksums |
f85bfb544f1a2909324e7425d33c999cd150590d93527d5130c78708012801b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / auvux_dsp-0.1.0.dev4-cp310-cp310-macosx_10_9_x86_64.whl
| Download URL | auvux_dsp-0.1.0.dev4-cp310-cp310-macosx_10_9_x86_64.whl |
|---|---|
| Size | 500.7 kB |
| Tags | CPython 3.10 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
e40ff7b51f9d97e9dcb13521a05e1b16281c224578c7718f8e79636523b04366
|
|
BLAKE2b-256 checksum How to use checksums |
6486f52aad9789846eef193e031de6efae1d1fcf1cd4a59df374beecb3184fcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for auvux-dsp 0.1.0.dev4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.