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

Feat: splitChannels overlay #3619

Merged
merged 2 commits into from
Mar 31, 2024
Merged

Feat: splitChannels overlay #3619

merged 2 commits into from
Mar 31, 2024

Conversation

katspaugh
Copy link
Owner

Short description

Resolves #3565

Implementation details

Adds an overlay option for splitChannels.

Example usage:

const wavesurfer = WaveSurfer.create({
  container: document.body,
  url: '/examples/audio/stereo.mp3',
  splitChannels: [
    {
      waveColor: 'rgb(200, 0, 200)',
      progressColor: 'rgb(100, 0, 100)',
    },
    {
      waveColor: 'rgb(0, 200, 200)',
      progressColor: 'rgb(0, 100, 100)',
      overlay: true
    },
  ],
})

☝️ the second channel will be overlayed on top of the first one.

Copy link

cloudflare-workers-and-pages bot commented Mar 31, 2024

Deploying wavesurfer-js with  Cloudflare Pages  Cloudflare Pages

Latest commit: 53fe3c3
Status: ✅  Deploy successful!
Preview URL: https://3fe105f3.wavesurfer-js.pages.dev
Branch Preview URL: https://overlay.wavesurfer-js.pages.dev

View logs

@katspaugh katspaugh merged commit 117a796 into main Mar 31, 2024
2 of 3 checks passed
@katspaugh katspaugh deleted the overlay branch March 31, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restore the splitChannels.overlay option
1 participant