Please go to official tonejs repository if you want to see the document of Tone.js
Remove singleton of Transport, Destination, Master, Listener, Draw and context
These singletons call getContext() when page is initializing. Therefore, the error from getContext will not be able to catch and such will caused whole webpage broken.
Add polyfill for AudioParam.cancelAndHoldAtTime
Add polyfill for constant-source-node
Add polyfill for promise OfflineContext.startRendering
Stop using es2019 module of 'standardized-audio-context', switch to es5 bundle instead
Add polyfill copyToChannel and copyFromChannel for AudioBuffer
enable createScriptProcessor
make Tone.Param._param.getValueAtTime bind to Tone.Param's getValueAtTime
merge upstream dev branch
check is stdAudioWorkletNode support or not, if it is not support, then use the origional AudioWorkletNode
Add polyfill StereoPannerNode, comment out set panner channelCount in CrossFade and Panner, because it will cause safari go slient when using stereoPannerNode polyfill
If the useragent is Safari, then use original offline context instead of stdOfflineCtx, otherwise, there will be `Attempted to assign to readonly property.` Error throw fromt ToneConstantSource constructor, I find this bug in Safari@14.0.3, macOS Mojave