Skip to main content

Rust implementation of the Resonate algorithm for low-latency spectral analysis.

Project description

resonators (Python)

Python bindings for resonators, a Rust implementation of Alexandre François's Resonate algorithm for low-latency spectral analysis.

See the main repository for details, demos, benchmarks, and attribution.

Install

pip install resonators

Quickstart

import numpy as np
from resonators import ResonatorBank

sample_rate = 44_100.0
freqs = np.array([110, 220, 440, 880], dtype=np.float32)
bank = ResonatorBank(freqs, sample_rate)  # alphas default to a per-frequency heuristic

t = np.arange(sample_rate, dtype=np.float32) / sample_rate
signal = np.sin(2 * np.pi * 440.0 * t).astype(np.float32)
spectrogram = bank.resonate(signal, hop=256)  # shape (n_frames, n_bins), complex64

License

Dual-licensed under MIT or Apache-2.0, at your option.

Project details


Download files

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

Source Distribution

resonators-0.1.1.tar.gz (48.9 kB view details)

Uploaded Source

Built Distributions

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

resonators-0.1.1-cp39-abi3-win_arm64.whl (158.8 kB view details)

Uploaded CPython 3.9+Windows ARM64

resonators-0.1.1-cp39-abi3-win_amd64.whl (167.9 kB view details)

Uploaded CPython 3.9+Windows x86-64

resonators-0.1.1-cp39-abi3-win32.whl (155.4 kB view details)

Uploaded CPython 3.9+Windows x86

resonators-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl (492.6 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ x86-64

resonators-0.1.1-cp39-abi3-musllinux_1_2_i686.whl (520.7 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ i686

resonators-0.1.1-cp39-abi3-musllinux_1_2_armv7l.whl (562.5 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARMv7l

resonators-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl (454.6 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

resonators-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (281.3 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

resonators-0.1.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (307.6 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ s390x

resonators-0.1.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (310.1 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ppc64le

resonators-0.1.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (287.2 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARMv7l

resonators-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (278.6 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

resonators-0.1.1-cp39-abi3-manylinux_2_5_i686.manylinux1_i686.whl (303.0 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.5+ i686

resonators-0.1.1-cp39-abi3-macosx_11_0_arm64.whl (255.7 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

resonators-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl (268.8 kB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file resonators-0.1.1.tar.gz.

File metadata

  • Download URL: resonators-0.1.1.tar.gz
  • Upload date:
  • Size: 48.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for resonators-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c6f6d8986fa8286364cb891567f4897071c34e5d6cee016d5494bce241346165
MD5 1f61ee9954dfcc589336da36fad70232
BLAKE2b-256 b49b93cd2625f041dae58c83ab6eff0659b2c6d036f517a1f299da032161d989

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-win_arm64.whl.

File metadata

  • Download URL: resonators-0.1.1-cp39-abi3-win_arm64.whl
  • Upload date:
  • Size: 158.8 kB
  • Tags: CPython 3.9+, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for resonators-0.1.1-cp39-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 db2acb20c799cee22ed2eade52e477c691960937e0604f738065a79b43790801
MD5 298f0b3e3646eb8ee9162099b5e3b02f
BLAKE2b-256 0e00ab074d0681cfd5533708ac8f9fba881ae010ea49818d6ad0095c82e6a1ed

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: resonators-0.1.1-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 167.9 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for resonators-0.1.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 06960099f6ffc558f0c721ed1aee4116ba470a612806a4a299f3fd1297c6ce96
MD5 5a08407a92fb3965943418332776a4cb
BLAKE2b-256 c2434398ef606883e67f9ba8f259fad09065024a549cb9970eb921b529f30a1f

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-win32.whl.

File metadata

  • Download URL: resonators-0.1.1-cp39-abi3-win32.whl
  • Upload date:
  • Size: 155.4 kB
  • Tags: CPython 3.9+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for resonators-0.1.1-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 939b1761f95feb581475e4f21122a95edb85eef52fb7c5bf7aeb050fd787cbb8
MD5 8557b22b46d01061ff93a3ac30e9ab3b
BLAKE2b-256 f2b2f530686e8a732112d7d2ac4edcc9db88b532990b97c3545ab25c6a58ff3c

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for resonators-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b669d012eef49ca041f4aa4198572eb440fa29c6f183f2671f4b10546bf0d8c8
MD5 6efb3c0fe0b3983e6e1db64f1964dd64
BLAKE2b-256 bcc86420e72f59919605c9e1316bb07b06d947b2111386cf4455c14b70181d28

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for resonators-0.1.1-cp39-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 1d594866d0f4ee2748289b3f11229a57714907aed260552c1b9c35638200f786
MD5 0078e7c15b823f8ba236bb7ed5f582f4
BLAKE2b-256 4831abe102b147813c70437d654a49a903055404c68bf066837ef3970da15600

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for resonators-0.1.1-cp39-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 bf0bbd62eb656dc0dc9420e84c9d2f2e5c78d89784413bc274d9afe14850ee57
MD5 b82e52d4dabc6ebd8746201ef8e221e2
BLAKE2b-256 317412e85717cd37155152f1bbcd3ba56a25f59d18813c5b21a94e2f7d4f389f

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for resonators-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 81a4e2f591094e03bb687c1d668afeedd869c5a3ca7ac097a0c9e01177d87028
MD5 df70bd1cb40552854867a1f1af6ed9a7
BLAKE2b-256 23e2819b61ed9e4363114a3b5991a54a42b65363795f6538261c9e86403f92ee

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for resonators-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c9e858f7c67987b093786572a38dd35d6eb1f15a030d855d40d1fa80bed5c0f2
MD5 961ee2f0aad1ec8d019cda5477d227a8
BLAKE2b-256 c9c5586cdeda1266eba11d82f5bfdbd05f3ba23d4981f591cd507174300a7e23

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for resonators-0.1.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 d494df4d7282f8c20f586e5df662bb5049e1291fa4a9836ffdc289d8574ec73e
MD5 6f1c6fe9c24c85ea047addec1de29a81
BLAKE2b-256 b2734c17cd3ce101c9c81ac4b10b30c27562894277a6c86ca0fecdca0039d8fe

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for resonators-0.1.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 a4c195fa916876c5348d5a5a662c8beb75471a886fb9f8038a101b34c2932608
MD5 44645326c1992abe8fefb72b58a826af
BLAKE2b-256 182857b995345c23a8e66ceb79ba847b40c5c82dbaf0eaf8a83d590831dd4c7f

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for resonators-0.1.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 e3f22ffccc08ad9955603d3edb78a755edd9afc5e4f79e0545486407c81d6d0e
MD5 b02ba595ca938b2e5e1d76afe5cd29a7
BLAKE2b-256 f51eb18590d723ca67308ea655dc6be1b5be37563dfe01f3683facc2feb4a418

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for resonators-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e1635e8e2b080210abee56ddfea384aebaf7ede0b7c76c33268b71a1a18558e7
MD5 238482cbb7909d1ec5eca4040e66994b
BLAKE2b-256 c16e021bd4d89d8228aab70bd8894fb6731887fd3847f723c57d6502010b0028

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for resonators-0.1.1-cp39-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 3746dfada1fb82a21318f2199dee3f2f061ce0534d6f4f1ed4870bbf84083e1d
MD5 c48be61e0c38441e7635f1ff883018b0
BLAKE2b-256 f8e004f8f76dac91eb8d660f889d41d5b0faa9c10a5da4c61e20490be7fdee77

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for resonators-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f1652a954eb89dcd18649d21280970d2e30207e007f077a9bbe55987e536018
MD5 1f1fd9ce375c5d80614145477a24d3c6
BLAKE2b-256 81f4ca5c4a25a6a1f41796ee2c43753a28df560d08fca0f7c6511729b2af41cc

See more details on using hashes here.

File details

Details for the file resonators-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for resonators-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 272c7cd8348f7e0325d86a7023f1d2aedf557747078c63a4ed71a49660180a93
MD5 93d7f811cdde78dca58e654ede8e807a
BLAKE2b-256 b63dacb62f35f68e1a2a4c46c9a968dc7b6c3c45a7b1572945998bf1c7839319

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page