Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fftSamples shouldn't scale the spectrogram image #3663

Open
wxfred opened this issue Apr 17, 2024 · 0 comments
Open

fftSamples shouldn't scale the spectrogram image #3663

wxfred opened this issue Apr 17, 2024 · 0 comments
Labels

Comments

@wxfred
Copy link

wxfred commented Apr 17, 2024

Bug description

On the page https://wavesurfer.xyz/examples/?spectrogram.js, set the Spectrogram plugin option fftSamples from 1024 to 128 (or others), the height of the spectrogram image will change.

Environment

  • Browser: Chrome

Expected result

The fftSamples parameter only affects the resolution of the image, not its height.
I think the final image should be stretched to cover the whole range.
If the sample rate is 48000Hz, the image should always cover 0 - 24000Hz, independent of fftSamples.
The lower fftSamples means the highlights in the image will be more blur, more like a mosaic effect.

Screenshots

image
image

@wxfred wxfred added the bug label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant