mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-27 03:53:07 +00:00
Fix docs examples. Closes #783
This commit is contained in:
parent
14be0fc84e
commit
ff3b4edefd
2 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
*
|
||||
|
|
|
@ -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[];
|
||||
|
|
Loading…
Reference in a new issue