mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 00:07:08 +00:00
fixing TypeError
This commit is contained in:
parent
52bf3414a4
commit
d7c3b85cc3
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().toDestination();
|
||||
const synth = new Tone.Synth().toMaster();
|
||||
|
||||
//play a middle 'C' for the duration of an 8th note
|
||||
synth.triggerAttackRelease("C4", "8n");
|
||||
|
|
Loading…
Reference in a new issue