danigb / soundfont-player

Quick soundfont loader and player for browser
MIT License
453 stars 60 forks source link

Start events fired as soon as notes are scheduled #98

Open alexshenker opened 2 years ago

alexshenker commented 2 years ago

Hi there,

I created a loop to manually schedule events that looks something like this:

for (let i=0; i<150; i++) { instrument.start(note, time, options) } The playback is correct. However, the only accurately timed event that is fired is 'onended'. Is there an accurate event that demonstrates when a note started playing? Currently, 'start' and 'started' events are fired immediately, meaning when I console log, I get 150 'start' logs.

Thank you!

Codevendor commented 2 years ago

I have same issue.

drscottlobo commented 1 year ago

Same here! Any progress?