4 var sampleRate = 44100.0;
6 var frequency = 344.53;
7 var sine = new Oscillator(Oscillator.Sine, frequency, 1, bufferSize, sampleRate);
9 var calcOsc = function() {
11 harmonic = new Oscillator(Oscillator.Sine, frequency*nthHarmonic, 1/nthHarmonic, bufferSize, sampleRate);
16 runTest(calcOsc, iterations);