From d7c3b85cc32f197d4eb16be660e5ac8c6e3c3d51 Mon Sep 17 00:00:00 2001 From: tpltnt <1172976+tpltnt@users.noreply.github.com> Date: Fri, 28 Feb 2020 18:13:10 +0100 Subject: [PATCH] fixing TypeError --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 02053942..15c7b7df 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().toDestination(); +const synth = new Tone.Synth().toMaster(); //play a middle 'C' for the duration of an 8th note synth.triggerAttackRelease("C4", "8n");