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.

Support notation in STFT plots

See original GitHub issue

Is your feature request related to a problem? Please describe. specshow allows STFT to be shown in linear or logarithmic scales, with Hz formatting on the frequency axis.

If a user wants a pitch-based decoration (notes or svara), they currently have to use a CQT spectrogram rather than an STFT. There’s no good technical reason for that though, as they all render the data in natural coordinates.

Describe the solution you’d like Add axis modes to specshow:

  • fft_note
  • fft_svara

which work like their CQT counterparts, but applied to STFT data.

Describe alternatives you’ve considered A savvy user could probably hack this by manually constructing the axis decoration objects, but we should make it easier for them.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
P-bibscommented, May 22, 2021

Sorry for the hold up on this. Yep, the only remaining blocker was the testing and documentation. Not entirely sure where the documentation goes but I can take a crack at some unit tests this afternoon. Of course, if you think you can do it faster you’re more than welcome to.

EDIT: should I open a PR?

1reaction
bmcfeecommented, May 9, 2021

Hey @P-bibs and @NThande – academic year is winding down over here, and I’m looking at pushing a 0.8.1 release in the near future. From your branch linked above, it looks like this is mostly there – are there any blockers we can help out with to get this one merged?

Read more comments on GitHub >

github_iconTop Results From Across the Web

MATLAB stft - Short-time Fourier transform - MathWorks
Compute the short-time Fourier transform of the chirp. Divide the signal into 256-sample segments and window each segment using a Kaiser window with...
Read more >
Short-time Fourier transform - Wikipedia
The short-time Fourier transform (STFT), is a Fourier-related transform used to determine the sinusoidal frequency and phase content of local sections of a ......
Read more >
B3. Short Time Fourier Transform (STFT)
Music Score as a Time-Frequency plot. In what follows we introduce the Short Time Fourier Transform (STFT) and its applications to the analysis...
Read more >
Spectrogram and the STFT - Introduction to Speech Processing
A first solution would be to plot the magnitude spectrum |Xk| or power ... The STFT is one of the most frequently used...
Read more >
librosa.stft — librosa 0.10.0.dev0 documentation
Short-time Fourier transform (STFT). The STFT represents a signal in the time-frequency domain by computing discrete Fourier transforms (DFT) over short ...
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 Reddit Thread

No results found

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