mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-15 21:33:53 +00:00
updated example
This commit is contained in:
parent
697460203a
commit
5afe6c8dee
1 changed files with 3 additions and 2 deletions
|
@ -14,8 +14,9 @@ export interface RecorderOptions extends ToneAudioNodeOptions {
|
||||||
* This is only natively supported in Chrome and Firefox.
|
* This is only natively supported in Chrome and Firefox.
|
||||||
* For a cross-browser shim, install (MediaStreamRecorder)[https://github.com/streamproc/MediaStreamRecorder].
|
* For a cross-browser shim, install (MediaStreamRecorder)[https://github.com/streamproc/MediaStreamRecorder].
|
||||||
* @example
|
* @example
|
||||||
* const recorder = new Tone.Recorder();
|
* import { Recorder, Synth } from "tone";
|
||||||
* const synth = new Tone.Synth().connect(recorder);
|
* const recorder = new Recorder();
|
||||||
|
* const synth = new Synth().connect(recorder);
|
||||||
* // start recording
|
* // start recording
|
||||||
* recorder.start();
|
* recorder.start();
|
||||||
* // generate a few notes
|
* // generate a few notes
|
||||||
|
|
Loading…
Reference in a new issue