browserify-example icon indicating copy to clipboard operation
browserify-example copied to clipboard

minor project updates required to keep it working

Open dj-at-work opened this issue 5 years ago • 0 comments

Hi, nice example project.

To keep it running, you have to update a few details:

package.json Update the versions and remove warnings=false from the list of uglify params. This worked for me:

...
  "dependencies": {
    "tone": "^14.7.58"
  },
  "devDependencies": {
    "browserify": "^17.0.0",
    "budo": "^11.6.4",
    "uglify-js": "^3.12.1"
  },
  "scripts": {
    "start": "budo index.js:bundle.js --live",
    "build": "browserify index.js | uglifyjs -m -c > bundle.js"
  },
...

index.js To create an instance of Synth var synth = new Tone.SimpleSynth().toMaster(); has to be changed to const synth = new Tone.Synth().toDestination();

dj-at-work avatar Dec 12 '20 12:12 dj-at-work