mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-26 11:33:09 +00:00
updating to latest API
This commit is contained in:
parent
23f4a00f28
commit
1a7940eed7
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ import { Synth } from "tone";
|
|||
|
||||
```javascript
|
||||
//create a synth and connect it to the master output (your speakers)
|
||||
const synth = new Tone.Synth().toMaster();
|
||||
const synth = new Tone.Synth().toDestination();
|
||||
|
||||
//play a middle 'C' for the duration of an 8th note
|
||||
synth.triggerAttackRelease("C4", "8n");
|
||||
|
|
Loading…
Reference in a new issue