Closed abswiz closed 2 years ago
Currently it defaults to a maxPolyphony
of 32. After that, all notes will be silenced. If you'd like to raise the max polyphony, you can pass in a greater value in the constructor.
something like this should work:
const synth = new PolySynth({maxPolyphony: 64});
You're also able to find the current number of active voices to know when you are getting close to the max polyphony and surface that to the user or stop triggering voices at that point.
That's great ... it helps ... and very useful to know. Thank you :)
The feature you'd like The PolySynth appears pretty resource hungry. A console log is produced when maxPolyphony is exceeded and the sound seems to just cut out. Can this log also be raised as an exception or sent via same callback? This would be useful for end users when providing some context on the system load.