Skip to content
Discussion options

You must be logged in to vote

It's not possible to change the color of the waveform underneath a region. You can approximate it with some clever CSS trickery but it's limited. E.g. region.content.style.mixBlendMode = 'plus-lighter'. See https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode

As for getDecodedData, the quality is low because we intentionally decode audio with the lowest sampling rate possible for better performance, as this data is used only for rendering. If you wish to also play this data as audio, you should set sampleRate: 44100 or higher in the wavesurfer options. See https://wavesurfer.xyz/docs/types/wavesurfer.WaveSurferOptions.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ahsanabbasi404
Comment options

Answer selected by ahsanabbasi404
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants