fixing TypeError

This commit is contained in:
tpltnt 2020-02-28 18:13:10 +01:00 committed by GitHub
parent 52bf3414a4
commit d7c3b85cc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");