From 1ecac8d4f67543efc3149d7423765ad05722b806 Mon Sep 17 00:00:00 2001 From: ergz Date: Sat, 14 Oct 2023 23:53:18 -0700 Subject: [PATCH] makes the synth be dark --- index.html | 110 ++++++++++++++++++++++++++--------------------------- synth.js | 2 +- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/index.html b/index.html index 9a51ce8..e01c28e 100644 --- a/index.html +++ b/index.html @@ -7,27 +7,27 @@ simple-synth - +
-
+
- Voice 1 + Voice 1 - + - + - + - +
- Octave Selection + Octave Selection @@ -35,15 +35,15 @@
- + - 0 + 0
- + - 0 + 0
@@ -56,37 +56,37 @@
-
+
- Voice 2 + Voice 2 - + - + - + - +
- Octave Selection - + Octave Selection +
- + 0
- + 0
@@ -102,22 +102,22 @@
-
+
- Voice 3 + Voice 3 - + - + - + - +
- Octave Selection + Octave Selection @@ -125,16 +125,16 @@
- + - 0 + 0
- + - 0 + 0
@@ -151,15 +151,15 @@
- + - 0 + 0
- + - + - + - + - + - + - + - +
- + - + - + - + - + - + - +
@@ -229,14 +229,14 @@
- + - 0 + 0
- + - 0 + 0
diff --git a/synth.js b/synth.js index d2b5291..8d8ad26 100644 --- a/synth.js +++ b/synth.js @@ -392,7 +392,7 @@ window.onload = function () { const analyser = synth.audioContext.createAnalyser(); analyser.fftSize = 2048; - synth.oscillators[index].osc.connect(analyser); + synth.oscillators[index].filterNode.connect(analyser); const bufferLength = analyser.fftSize; const dataArray = new Uint8Array(bufferLength);