browserify-example
browserify-example copied to clipboard
minor project updates required to keep it working
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();