updating to latest API

This commit is contained in:
Yotam Mann 2020-07-19 13:17:20 -07:00
parent 23f4a00f28
commit 1a7940eed7

View file

@ -36,7 +36,7 @@ import { Synth } from "tone";
```javascript ```javascript
//create a synth and connect it to the master output (your speakers) //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 //play a middle 'C' for the duration of an 8th note
synth.triggerAttackRelease("C4", "8n"); synth.triggerAttackRelease("C4", "8n");