mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-26 11:33:09 +00:00
fixing typescript error in example
This commit is contained in:
parent
e29ba5824c
commit
44d1bc85bb
1 changed files with 1 additions and 1 deletions
|
@ -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[];
|
||||
|
|
Loading…
Reference in a new issue