From 1a7940eed7be3f5cb4b636c3d716343a330be068 Mon Sep 17 00:00:00 2001 From: Yotam Mann Date: Sun, 19 Jul 2020 13:17:20 -0700 Subject: [PATCH] updating to latest API --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 15c7b7df..02053942 100644 --- a/README.md +++ b/README.md @@ -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");