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

Spectrogram: Enhancement suggestion: Improve handling of stereo audio in Spectrogram plugin #3718

Open
lacvietanh opened this issue May 23, 2024 · 0 comments

Comments

@lacvietanh
Copy link

Dear Wavesurfer Team,

I hope this message finds you well. I wanted to bring to your attention a potential improvement for the Spectrogram plugin in Wavesurfer.js.

Currently, when working with stereo audio files with both Left and Right channels, the behavior of the Spectrogram plugin can be suboptimal in certain scenarios. Specifically, when splitChannels is set to false, segments of audio that exclusively belong to the Right channel do not appear in the spectrogram. Conversely, when splitChannels is set to true, it results in a disproportionate allocation of space and misalignment of labels.
image
image

I believe there are a couple of potential solutions to address this issue. One approach could be to introduce a feature that enables symmetrical display of the Right channel, similar to how waveforms are displayed. Alternatively, implementing a mechanism to synthesize the signals from both channels into a single channel for spectrogram visualization could provide a more elegant solution. This could involve options such as mono or maxPeak aggregation.

Enhancing the handling of stereo audio in the Spectrogram plugin would greatly improve the user experience and the accuracy of audio visualization.

Thank you for considering this suggestion. I look forward to hearing your thoughts on this matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants