Description
There seems to be an issue with the current version that prevents anything from being connected to an envelope. I have been unable to get envelopes to work in a sketch of mine, so I started experimenting using the examples that have an oscillator connected to an envelope, such as this one. When I update the version of p5.sound.min.js to the current one, then I get an error that prevents the program from running. If I disconnect things from the envelope, then the error goes away.
Error: error connecting to node: [object Object]
TypeError: Failed to execute 'connect' on 'AudioNode': Overload resolution failed.
at StereoPannerNode.t [as connect] (https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.2/addons/p5.sound.min.js:2:20784)
at n.value (https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.2/addons/p5.sound.min.js:2:98899)
at r.value (https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.2/addons/p5.sound.min.js:2:123628)
at setup (/sketch.js:26:7)
at _setup (https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.2/p5.js:66282:25)
at _runIfPreloadsAreDone (https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.2/p5.js:66228:27)
at p5._decrementPreload (https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.2/p5.js:66239:25)
at p5. (https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.11.2/addons/p5.sound.min.js:2:98292)