Skip to main content

Real-time invertible Constant-Q Transform (CQT) engine based on nonstationary Gabor frames — Python reference implementation

Project description

cicuetea

Python reference implementation of CiCueTea, a real-time, invertible Constant-Q Transform (CQT) engine based on nonstationary Gabor frames (NSGF).

This package is an offline, NumPy/SciPy reference — dense and sparse forward/inverse transforms, sparse-to-dense rasterization, and the block slicing/splicing utilities used to build a streaming pipeline on top of it. The real-time, allocation-free implementation lives in the C++ library this package accompanies.

import numpy as np
from cicuetea import NsgfCQT

fs, n_samples, frac, f_min, f_max = 48000, 2**16, 1 / 48, 100, 10000
x = np.random.randn(n_samples)

cqt = NsgfCQT("dense", fs, n_samples, frac, f_min, f_max)
X = cqt.forward(x)
y = cqt.inverse(X)

Full documentation, the C++ engine, and the MATLAB reference implementation live at https://github.com/jdsierral/CiCueTea.

License

MIT — see LICENSE.

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

cicuetea-1.0.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

cicuetea-1.0.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file cicuetea-1.0.0.tar.gz.

File metadata

  • Download URL: cicuetea-1.0.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.24

File hashes

Hashes for cicuetea-1.0.0.tar.gz
Algorithm Hash digest
SHA256 098050f3170546da5200702812af2c94994b2c0adbefc5be61c7b9373c0cc1bf
MD5 cf8b761aca1d0f54affdc25a1e484572
BLAKE2b-256 1b14578b5c6017f473f2862e75d2bcfd1ffa8f2eef1b5ba3a7364fe2a346fa50

See more details on using hashes here.

File details

Details for the file cicuetea-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cicuetea-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.24

File hashes

Hashes for cicuetea-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc76114593f37f9a9190c89560e8cd15dc31477ccc6a039d5239c2a3bcab9f9d
MD5 0a9f50688584987c961de04d3284ee94
BLAKE2b-256 7cc4be8e4a259562774214edcc6fc91e59df8843805474c2ebe8a066546770b7

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