From 5afe6c8deed3ae2b976f2a90edf4f86ae1c93de4 Mon Sep 17 00:00:00 2001 From: Yotam Mann Date: Tue, 14 Apr 2020 23:22:56 -0400 Subject: [PATCH] updated example --- Tone/component/channel/Recorder.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tone/component/channel/Recorder.ts b/Tone/component/channel/Recorder.ts index 3b68ebd9..4ea4bb53 100644 --- a/Tone/component/channel/Recorder.ts +++ b/Tone/component/channel/Recorder.ts @@ -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