summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorJules <jules@asdf.us>2016-07-13 15:15:43 -0400
committerJules <jules@asdf.us>2016-07-13 15:15:43 -0400
commit60708f156679987a272d21fe1374a75150b5406a (patch)
tree97ec92c10a518a284cfc56fcee8749558b888bc3 /index.html
parentf76ca31d4d97f0d37ad3d2c61ef0c68aab5e40fb (diff)
add compressorHEADmaster
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"