updated example

This commit is contained in:
Yotam Mann 2020-04-14 23:22:56 -04:00
parent 697460203a
commit 5afe6c8dee

View file

@ -14,8 +14,9 @@ export interface RecorderOptions extends ToneAudioNodeOptions {
* This is only natively supported in Chrome and Firefox.
* For a cross-browser shim, install (MediaStreamRecorder)[https://github.com/streamproc/MediaStreamRecorder].
* @example
* const recorder = new Tone.Recorder();
* const synth = new Tone.Synth().connect(recorder);
* import { Recorder, Synth } from "tone";
* const recorder = new Recorder();
* const synth = new Synth().connect(recorder);
* // start recording
* recorder.start();
* // generate a few notes