New splitChannelsOptions.overlay Argument Doesn't Work
See original GitHub issueWavesurfer.js version(s):
4.4.0
Browser and operating system version(s):
Chrome/FF on Mac
Code needed to reproduce the issue:
Params are as follows:
const wavesurferArgs = {
container: document.getElementById('wavesurferContainerInternal'),
waveColor: '#28275f',
progressColor: 'rgba(210, 239, 241)',
cursorColor: '#66c8cf',
normalize: true,
pixelRatio: 2,
splitChannels: true,
splitChannelsOptions: {
relativeNormalization: true, (also tried false)
overlay: true,
channelColors: {
0: {
progressColor: 'green',
waveColor: 'pink'
},
1: {
progressColor: 'orange',
waveColor: 'purple'
}
}
},
src: this.wavesurferUrl,
plugins,
};
Use behaviour needed to reproduce the issue:
I just noticed this feature was added 4 days ago. I was excited to try it out but I don’t think it actually works.
Here are a couple screenshots illustrating what I’m seeing. Either this is user error of some sort, maybe I’m misunderstanding what “splitChannelsOptions.overlay” is supposed to do, or it is broken.
splitChannelsOptions.overlay = false
This shows 2 people talking. You can see the person captured in the right channel is speaking at the 50-60 second mark.
splitChannelsOptions.overlay = true
In the supposedly combined waveform, the second speaker/right channel is missing. I would expect to see the purple waveform at the 50-60 second mark.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Working with image overlays - AWS Elemental MediaLive
An image overlay doesn't belong to MediaLive or to a specific channel in MediaLive. Rather, the image overlays are used by MediaLive.
Read more >FFmpeg Filters Documentation
The overlay filter takes in input the first unchanged output of the split ... of the command is the name of the option...
Read more >Use alpha channels, masks, and mattes in After Effects
Learn about alpha channels that contain transparency information, track mattes, traveling mattes, and feathering masks in After Effects.
Read more >python - How to merge a transparent png image with another ...
I just used paste() to overlay one semi-transparent image on another, with PIL, and it worked as I expected. In what way doesn't...
Read more >firmware/README at master · raspberrypi/firmware - overlays
This repository contains pre-compiled binaries of the current Raspberry Pi kernel and modules, userspace libraries, and bootloader/GPU firmware.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think I solved it by checking for the overlay option and setting the offsetY on the prepareDraw method. Hope the PR get’s merged so this overlay can work as expected.
@sundayz - can we get a merge of this PR?
Merged #2167