Interactive Audio Programming Tutorial
Learn about different wave shapes and how they affect sound
// Create an oscillator
const synth = new Tone.Oscillator(440, "sine");
synth.toDestination();
synth.start();
// Try different waveforms:
// "sine", "square", "sawtooth", "triangle"