wavesurfer.js
wavesurfer.js copied to clipboard
change color of wave by start and end time
I want to use wavesurfer .and I have ywo issues
- show selected part with region in another wave.
- change color of part of wave by start and end time.for example from 2 to 6 seconds color could be blue from 7 to 10 seconds could be red
how can I do these?
@thijstriemstra is there a way?
I want to know how to set different color for wave segment, for example from 2 to 6 seconds color could be blue from 7 to 10 seconds could be red
@thijstriemstra is there a way?
Hi, Do to know how to set different color for wave segment, for example from 2 to 6 seconds color could be blue from 7 to 10 seconds could be red?
Hi, did you find any solution on how to color waveplot this way?
Hi, did you find any solution on how to color waveplot this way?
Did you find a solution to this?
@Fahad-Anwar3 No solution to this yet except for an acknowledgement that this is currently not possible. I raised the question in QnA and got a reply from the developer. https://github.com/katspaugh/wavesurfer.js/discussions/3187
Hello, if someone is still searching a way to achieve this sort of effect, I used a little trick to make it work quite properly.
I create three regions : left, middle and right.
Both left and right region are no draggable or resizable. I set to them a color low opacity but darker than the middle region and on event "updated" of the middle region, I update the options start/end of the left and right region to stick with the middle one that is currently moving.
I know, it's tricky but in my case it works fine enough to make the illusion that I only have one region in highlight.