fixing typescript error in example

This commit is contained in:
Yotam Mann 2021-01-10 22:19:02 -05:00
parent e29ba5824c
commit 44d1bc85bb

View file

@ -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[];