For Tone.js to work in your sketch you need to include it in your HTML file.
Open your project-folder and find the index.html file. Add this line under the first three script tags:
This loads Tone.js in your sketch.
Here is a playlist showing Tone.js and Codepen to generate sounds