Closed etayluz closed 2 years ago
I don't understand, is there a 'finishedPlaying' event I can listen to? I need to update the UI and I need to understand the current state of the player - not only if it is currently playing but also the exact time and which note is currently being played.
How can I get a callback to a function that is invoked when the note is done playing?
This doesn't answer my question regarding listening to the player: https://github.com/surikov/webaudiofont/issues/62
This is wavetable synthesizer, not a player. WebAudioFont does not emit any events.
I am able to play audio with
player.queueWaveTable
but how do I know when WebAudioFontPlayer has finished playing? Are there any events I can listen?How do I know the current time of the WebAudioFontPlayer so that if there are no events to listen to - at the very least I can poll the current timer of the WebAudioFontPlayer using a re-current timer function.