With the default setting, webaudio-tinysynth outputs some log to the console like this:
internalcontext:1
TSDiff:1.404300000011921
This makes the console some kind of "dirty", so I modify the code so that console.log is only called when debug is true.
By the way, it seems that the version in package.json is 1.1.4, but the latest version on npm is still 1.1.3. I'll be happy to see a new version released on npm after merging this PR.
With the default setting,
webaudio-tinysynth
outputs some log to the console like this:This makes the console some kind of "dirty", so I modify the code so that
console.log
is only called whendebug
istrue
.By the way, it seems that the
version
inpackage.json
is 1.1.4, but the latest version on npm is still 1.1.3. I'll be happy to see a new version released on npm after merging this PR.