optimization: also storing the wave
optimization: also storing the wave

turns out that the call to `createPeriodicWave` is the most expensive part.

TONEnoTONE/Tone.js,TONEnoTONE/Tone.js,Tonejs/Tone.js,Tonejs/Tone.js