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

Bug: Sound overlaps when clicking on same MIDI file rapidly #176

Open
yvesgurcan opened this issue Feb 22, 2020 · 0 comments
Open

Bug: Sound overlaps when clicking on same MIDI file rapidly #176

yvesgurcan opened this issue Feb 22, 2020 · 0 comments

Comments

@yvesgurcan
Copy link
Owner

Environment

  • Version of web-midi-player: 1.3.8
  • Browser: Chrome
  • Operating system: macOS
  • Device model: iMac 2011

Bug

Describe the issue as specifically as possible.

If you trigger midiPlayer.play() multiple times very quickly, the player will start playing the same song multiple times at once and at the wrong speed.

Expected behavior

What did you expect to happen?

The song should start playing only once at the right speed and sound should not overlap.

Example/Screenshots

Please provide screenshots to help reviewers to visualize the bug and how it manifests.

Please provide the smallest code sample possible to reproduce the bug.
We recommend using CodePen, JSbin, or CodeSandbox to provide a live example of the issue.

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

No branches or pull requests

1 participant