question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New splitChannelsOptions.overlay Argument Doesn't Work

See original GitHub issue

Wavesurfer.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

VoiceVibes_Evaluate_Recording

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

VoiceVibes_Evaluate_Recording

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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
johnpaulmedinacommented, Jan 24, 2021

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?

0reactions
thijstriemstracommented, Feb 6, 2021

Merged #2167

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found