danigb / soundfont-player

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

player.schedule problematic when midi array has over 400 items #97

Closed alexshenker closed 2 years ago

alexshenker commented 2 years ago

Hi there,

I'm attempting to use player.schedule to play back some midis. I noticed that when the array contains over 400 or so timing/note objects, the playback begins to suffer. When I attempted to enter an array of over 1000 objects, the playback plays one quick sound and stops.

Does the scheduler have a limit? Is there a different approach you can suggest? Thank you!

alexshenker commented 2 years ago

this appears to be a scheduling limit within WebAudio.