diff --git a/Tone/source/oscillator/OscillatorInterface.ts b/Tone/source/oscillator/OscillatorInterface.ts index 31f526e8..f2a4802c 100644 --- a/Tone/source/oscillator/OscillatorInterface.ts +++ b/Tone/source/oscillator/OscillatorInterface.ts @@ -75,7 +75,7 @@ export interface ToneOscillatorInterface { * const osc = new Tone.Oscillator("F3").toDestination().start(); * setInterval(() => { * // generate 8 random partials - * osc.partials = new Array(8).fill().map(() => Math.random()); + * osc.partials = new Array(8).fill(0).map(() => Math.random()); * }, 1000); */ partials: number[];