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

Fix audible pops in several soundfont instruments. #657

Closed
wants to merge 2 commits into from

Conversation

AmitTzah
Copy link
Contributor

@AmitTzah AmitTzah commented Mar 9, 2023

This pull request fixes a bug that causes audible clicks or pops when playing the FRENCH_HORN or STRING_ENSEMBLE_2 soundfonts (as well as several other soundfonts) in the player demo. The issue is caused by a change in the start() method of the Tone.BufferSource object in newer versions of tone.js, which removed the fifth argument that allowed for the passing of a fadeIn value.

To resolve the issue, this commit adds the missing fadeIn value to releaseSource as a property, ensuring that the sound is properly faded in and out without any clicking or popping.

@google-cla
Copy link

google-cla bot commented Mar 9, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@AmitTzah AmitTzah closed this Mar 9, 2023
@AmitTzah AmitTzah deleted the audio_bugfix branch March 9, 2023 15:18
@AmitTzah AmitTzah restored the audio_bugfix branch March 9, 2023 15:19
@AmitTzah AmitTzah deleted the audio_bugfix branch March 9, 2023 15:29
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.

1 participant