Skip to content

Generic Time Frequency lib implements wavelet analysis and stft - #10055

Closed
kgramhans wants to merge 8 commits into
audacity:audacity3from
kgramhans:tft_proposal
Closed

kgramhans wants to merge 8 commits into
audacity:audacity3from
kgramhans:tft_proposal

Conversation

@kgramhans

@kgramhans kgramhans commented Dec 11, 2025 •

Copy link
Copy Markdown
Contributor

Purpose: Demo of architectural idea

Resolves: #9509

Proposal for moving all Spectrogram related code into a dedicated lib

All code related to Wavelet (constant Q) analysis has been carved out into a dedicated lib-tft
For demonstration of generality, also STFT has been implemented in the lib

Wavelet related code has been heavily optimised in prolongation of discussions spawned off on previous commit

SpectrumCache.cpp has been cleaned up to make it much more generic with respect to time/frequency transform

Autocorrelation and Reassignment methods remain to be ported

Wavelet analysis is currently active in code

See the Pull request as a foundation for discussion.
If architectural changes comply with whatever goes on elsewhere, this is a possible way forward

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Autobot test cases have been run

And change a GUI text
Just experimenting to learn smth
Integrated tft calculator instantiation directly into SpectrogramSettings
Hopefully we can now build on win platforms also
@kgramhans
kgramhans marked this pull request as ready for review December 13, 2025 07:10
@saintmatthieu
saintmatthieu self-requested a review December 17, 2025 10:25
@saintmatthieu

Copy link
Copy Markdown
Contributor

Hello @kgramhans , I hope to find you well!
I haven't looked in the detail of this PR, but I would recommend to concentrate your efforts on Audacity 4 (master branch), where the interest for optimizations and new powerful features is much higher.
SpectrumCache.cpp and other spectrogram-related code is undergoing heavy refactoring to integrate it seamlessly in our new AU4 architecture. Please see this PR, currently being tested.
There is also a follow-up optimization branch, which adds two commits, the first being the parallelization of the calculation of the spectra. I think this would benefit the wavelet transform, too.

@kgramhans
kgramhans marked this pull request as draft January 4, 2026 13:33
@kgramhans kgramhans closed this Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants