From 60708f156679987a272d21fe1374a75150b5406a Mon Sep 17 00:00:00 2001 From: Jules Date: Wed, 13 Jul 2016 15:15:43 -0400 Subject: add compressor --- index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e15cbec..76ae82f 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,7 @@ var Frequency = "55 62.64 63 70 73.6 83 98.4 105 110 111 147 147.85 172.06 210.4 var polysynth = new Tone.PolySynth(4, Tone.synth) polysynth.set({ - oscillator: { type: 'triangle' }, + oscillator: { type: 'triangle' }, envelope:{ attack: 0.01, decay: 0.1, @@ -42,7 +42,9 @@ polysynth.set({ }) var feedbackDelay = new Tone.FeedbackDelay("4t", 0.5).toMaster(); -polysynth.connect(feedbackDelay) +var comp = new Tone.Compressor(-30, 3) +polysynth.connect(comp) +comp.connect(feedbackDelay) var last_f = -1 var dur = "2n" -- cgit v1.2.3-70-g09d2