Fix docs examples. Closes #783

This commit is contained in:
Razz21 2020-11-15 08:28:51 +01:00
parent 14be0fc84e
commit ff3b4edefd
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ export interface ChorusOptions extends StereoFeedbackEffectOptions {
* Read more on the chorus effect on [SoundOnSound](http://www.soundonsound.com/sos/jun04/articles/synthsecrets.htm).
*
* @example
* const chorus = new Tone.Chorus(4, 2.5, 0.5);
* const chorus = new Tone.Chorus(4, 2.5, 0.5).toDestination().start();
* const synth = new Tone.PolySynth().connect(chorus);
* synth.triggerAttackRelease(["C3", "E3", "G3"], "8n");
*

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).map(() => Math.random());
* osc.partials = new Array(8).fill().map(() => Math.random());
* }, 1000);
*/
partials: number[];