You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2023. It is now read-only.
Hello -
Please forgive my ignorance as I am relatively new to programming.
I am using the Soundfont player for a sketch in p5.js. I have created a play button to play my song after I have chosen my instruments. If I press the play button right away, the sound is a bit choppy. If I wait a second or two, it's fine. Is there a simple line I can add that will prevent the song from playing until the sound is fully loaded?
i.e. if (instrument.isLoaded()){instrument.play}
Thanks
The text was updated successfully, but these errors were encountered:
Thanks for responding! I really appreciate it.
I will look a little deeper with your suggestions. If I can’t get it working I’ll send you a link to the sketch I’m working on.
Leo
Hello -
Please forgive my ignorance as I am relatively new to programming.
I am using the Soundfont player for a sketch in p5.js. I have created a play button to play my song after I have chosen my instruments. If I press the play button right away, the sound is a bit choppy. If I wait a second or two, it's fine. Is there a simple line I can add that will prevent the song from playing until the sound is fully loaded?
i.e. if (instrument.isLoaded()){instrument.play}
Thanks
The text was updated successfully, but these errors were encountered: