g200kg / webaudio-tinysynth

Light-weight GM mapped WebAudio-JavaScript Synthesizer Engine / MIDI Player
Apache License 2.0
229 stars 22 forks source link

Hide log when debug is disabled #27

Closed SuperSodaSea closed 1 year ago

SuperSodaSea commented 1 year ago

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.

SuperSodaSea commented 1 year ago

Thank you for merging this @g200kg! I would appreciate it if you could release a new version of webaudio-tinysynth on npm.