Fix example for Part

The first example for Part doesn't play. 

## Changes
- adds start(0) to example code
This commit is contained in:
matt-savvy 2021-04-25 11:28:10 -04:00 committed by GitHub
parent 51f97dd9e8
commit 1234b7c04d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ interface PartOptions<T> extends Omit<ToneEventOptions<CallbackType<T>>, "value"
* // the notes given as the second element in the array * // the notes given as the second element in the array
* // will be passed in as the second argument * // will be passed in as the second argument
* synth.triggerAttackRelease(note, "8n", time); * synth.triggerAttackRelease(note, "8n", time);
* }), [[0, "C2"], ["0:2", "C3"], ["0:3:2", "G2"]]); * }), [[0, "C2"], ["0:2", "C3"], ["0:3:2", "G2"]]).start(0);
* Tone.Transport.start(); * Tone.Transport.start();
* @example * @example
* const synth = new Tone.Synth().toDestination(); * const synth = new Tone.Synth().toDestination();