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
This library is awesome! But for real time playing, it is very slow. I tracked the reason of the slow execution and it looks like that noteOn creates the source variable everytime it runs (based on createBufferSource). Creating this variable, setting gain, effects... make it too slow. Even if I am not using any effect, the if (effects) gets executed.
Isnt it possible for you to implement a faster audio play, like using web audio .play() ? I used other real time libraries and all of them use the play() and everytime it needs to replay it, they use load() -> play() and it gets executed very fast.
Doing so, you could save each node/velocity in the array sources as you already do, and you can simply play it if the index in the array exists everytime the user requests a note, if it does not exist than you create the index and play. This would make your library near 0 latency and would improve a lot its performance and usage!
The text was updated successfully, but these errors were encountered:
Hi my friend,
This library is awesome! But for real time playing, it is very slow. I tracked the reason of the slow execution and it looks like that
noteOn
creates thesource
variable everytime it runs (based oncreateBufferSource
). Creating this variable, setting gain, effects... make it too slow. Even if I am not using any effect, theif (effects)
gets executed.Isnt it possible for you to implement a faster audio play, like using web audio .play() ? I used other real time libraries and all of them use the
play()
and everytime it needs to replay it, they useload() -> play()
and it gets executed very fast.Doing so, you could save each node/velocity in the array
sources
as you already do, and you can simply play it if the index in the array exists everytime the user requests a note, if it does not exist than you create the index and play. This would make your library near 0 latency and would improve a lot its performance and usage!The text was updated successfully, but these errors were encountered: