summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html6
1 files 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"