question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider (de)modulating stft

See original GitHub issue

Most STFT implementations, including this one, do not compute STFT per standard formulation. Some use a “(de)modulated” variant, as in this paper:

image

This centers the windows at zero-phase of DFT bases. librosa’s implementation already has a shift (as do others), but it’s much less favorable in one regard: numeric stability. For localized component / band analysis, results are extremely sensitive to inclusion or exclusion of rows, which has adverse effects on e.g. reconstruction and synchrosqueezing. Details here.

The tweak is quite simple - consider adding as option.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
OverLordGoldDragoncommented, Feb 26, 2021

shifting only the window does not achieve the desired outcome.

Right, didn’t mean to imply otherwise.

0reactions
bmcfeecommented, Sep 20, 2021

Circling back on this; #1351 includes a fix for #1375 , in which we found an implementation error in util.frame when the input has ndim>2. The rewrite in #1351 avoids copying in all cases, and creates a read-only view of the data. This ultimately precludes anything like a “modulated” parameter to frame.

If we implement this feature, it will have to be done as a post-processing step on the stft, as I’ve advocated previously.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Short-Time Fourier Analysis Why STFT for Speech Signals ...
represent signal by sum of sinusoids or complex exponentials as it leads to convenient solutions to problems (formant estimation, pitch.
Read more >
On the Use of Short-Time Fourier Transform and ...
In this paper, our goal is to compare different recent time-frequency (TF) ap- proaches to retrieve the modes of multicomponent signals ...
Read more >
Amplitude modulation - Wikipedia
Amplitude modulation (AM) is a modulation technique used in electronic communication, most commonly for transmitting messages with a radio wave.
Read more >
The demodulated band transform - PMC - NCBI - NIH
As with STFT, the result is a time-frequency decomposition whose ... with impulse response h applied to x after demodulating by e −iωmt....
Read more >
Examination of signal separation/demodulation method of ...
Examination of signal separation/demodulation method of multi-value modulation sensor terminal signal using STFT in storage batch signal processing.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found