Open PeterHaughie opened 1 year ago
I am also having this issue. It seems that the ability to change the maxPolyphany value as described in the API does not work.
synth = new Tone.PolySynth(Tone.Synth, { maxPolyphony: 50 }).toDestination();
console.log({ maxPolyphony: synth.maxPolyphony })
# console output:
=> {maxPolyphony: 32}
Describe the bug
When I try and set the maxPolyphony value to anything it doesn't seem to take.
To Reproduce
You can see it in action here: https://codepen.io/PeterHaughie/full/NWLmawv - click through the "emotions" I think Sad and Talking/Excited trigger the max when you hit play.
Expected behavior That the number of available voices increases from the default 32 to a number of my choosing.
What I've tried Changing the value during instantiation:
With the setter.
synth.set({ maxPolyphony: 64 });
Additional context I appreciate that I probably shouldn't be getting anywhere near the 32 limit but I feel as though when I set it higher it should act like the API suggests it will.