Skip to main content

Learnable Harmonic Variable-Q Transform (LHVQT)

Implements a frontend filterbank learning module which can be initialized with complex weights for a Variable-Q Transform (lvqt_orig.py). Several techniques and variations of the module are also implemented, including:

  • Multi-channel (harmonic) structure (lhvqt.py)
  • Real-only weights (lvqt_real.py)
  • Hilbert Transform for analytic filters (lvqt_hilb.py)
  • Harmonic comb initialization (lhvqt_comb.py)
  • Variational dropout for 1D convolutional layer (variational.py)

The repository was created for my Master's Thesis, End-to-End Music Transcription Using Fine-Tuned Variable-Q Filterbanks. It has since been updated with various improvements, and to support my new work, Learning Sparse Analytic Filters for Piano Transcription.

Installation

Standard (PyPI)

Recommended for standard/quick usage

pip install lhvqt
Cloning Repository

Recommended for running examples or making experimental changes.

git clone https://github.com/cwitkowitz/lhvqt
pip install -e lhvqt

Usage

Several examples of instantiation, inference, and visualization are provided under the examples sub-directory. A full-blown training, visualization, and evaluation example for piano transcription can be found at https://github.com/cwitkowitz/sparse-analytic-filters.

Cite

Please cite whichever is more relevant to your usage.

SMC 2022 Paper
@inproceedings{cwitkowitz2022learning,
  title     = {Learning Sparse Analytic Filters for Piano Transcription},
  author    = {Frank Cwitkowitz and Mojtaba Heydari and Zhiyao Duan},
  year      = 2022,
  booktitle = {Proceedings of Sound and Music Computing Conference (SMC)}
}
Master's Thesis
@mastersthesis{cwitkowitz2019end,
  title   = {End-to-End Music Transcription Using Fine-Tuned Variable-{Q} Filterbanks},
  author  = {Cwitkowitz, Frank},
  year    = 2019,
  school  = {Rochester Institute of Technology}
}

Metadata

Release files for lhvqt 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lhvqt 0.5.3
File Size Uploaded Provenance Actions
lhvqt-0.5.3.tar.gz 17.4 kB Without provenance Details for lhvqt-0.5.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lhvqt 0.5.3
File Interpreter ABI Platform Actions
lhvqt-0.5.3-py3-none-any.whl Python 3 none any Details for lhvqt-0.5.3-py3-none-any.whl

Total release size: 39.6 kB

Release files / lhvqt-0.5.3.tar.gz

Download URL lhvqt-0.5.3.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
180cf0b83dc67a85aca1f797c6e9b4b4d1d8f132017b7facddee0e81668081d6
BLAKE2b-256 checksum
How to use checksums
28bb687ffc421af515ba809fc02a890e09c7790f77e7f59351460c4445a94b13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release files / lhvqt-0.5.3-py3-none-any.whl

Download URL lhvqt-0.5.3-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a414b85d7a72ac0dcf29b915cc6ec457e320d87fbf4fbfb9f83665e2a9aef23
BLAKE2b-256 checksum
How to use checksums
bbda61a5d0b2f8eb0bca159f4505e111384cb35d686bc2f61e855e21b70a125d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Security for lhvqt 0.5.3

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.

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