diff --git a/filter.html b/filter.html index e5dc023..e238f85 100644 --- a/filter.html +++ b/filter.html @@ -46,22 +46,22 @@
- - + + - - + +
- + + +
@@ -72,16 +72,16 @@
- 2000 + 20000
- +
- HPF(Hz) +
@@ -95,35 +95,41 @@
- - + + - - + +
- + + +
+
20
+
+ 20000 +
- +
- HPF(Hz) +
@@ -144,90 +150,82 @@ diff --git a/fs.html b/fs.html index dbd0b5d..4543050 100644 --- a/fs.html +++ b/fs.html @@ -165,6 +165,7 @@ circleShape: "pie", startAngle: 315, mouseScrollAction: true, + drag: function (args) { $("#handle1-value").val(`${args.value}Hz`); }, diff --git a/home.html b/home.html index 76be16d..b37ec8f 100644 --- a/home.html +++ b/home.html @@ -261,7 +261,9 @@
-
+
+ + @@ -289,7 +291,9 @@
-
+
+ + @@ -454,7 +458,9 @@
-
+
+ + @@ -482,7 +488,9 @@
-
+
+ + @@ -643,7 +651,9 @@
-
+
+ + @@ -671,7 +681,9 @@
-
+
+ + @@ -1025,40 +1037,51 @@ function LineInputLeftRandomBar(number) { const bars = $("#lineinput .equalizer-bar-left") - let row = (number + 72) / 3; - let red = (-6 + 72) / 3; - let yellow = (-18 + 72) / 3; - - let spans = bars[0].getElementsByTagName('span'); - for (let i = 0; i < spans.length; i++) { - if (row > i) { - if (row >= red && i >= red) { - spans[i].style.opacity = "1" - spans[i].style.backgroundColor = "#ff0000" - } - else if (row >= yellow && i < red && i >= yellow) { - spans[i].style.opacity = "1" - spans[i].style.backgroundColor = "#ff6600" - } - else { - spans[i].style.opacity = "1" - spans[i].style.backgroundColor = "#a7dce9" - } - } - else { - spans[i].style.opacity = "1" - spans[i].style.backgroundColor = "#333" - } - } + updateBars(bars, number) } function LineInputRightRandomBar(number) { const bars = $("#lineinput .equalizer-bar-right") + updateBars(bars, number) + } + + function Microphone1LeftRandomBar(number) { + const bars = $("#microphone1 .equalizer-bar-left") + updateBars(bars, number) + } + + function Microphone1RightRandomBar(number) { + const bars = $("#microphone1 .equalizer-bar-right") + updateBars(bars, number) + } + + function Microphone2LeftRandomBar(number) { + const bars = $("#microphone2 .equalizer-bar-left") + updateBars(bars, number) + } + + function Microphone2RightRandomBar(number) { + const bars = $("#microphone2 .equalizer-bar-right") + updateBars(bars, number) + } + + function OutputVolumeLeftRandomBar(number) { + const bars = $("#outputvolume .equalizer-bar-left") + updateBars(bars, number) + } + + function OutputVolumeRightRandomBar(number) { + const bars = $("#outputvolume .equalizer-bar-right") + updateBars(bars, number) + } + + + function updateBars(element, number) { let row = (number + 72) / 3; let red = (-6 + 72) / 3; let yellow = (-18 + 72) / 3; - let spans = bars[0].getElementsByTagName('span'); + let spans = element[0].getElementsByTagName('span'); for (let i = 0; i < spans.length; i++) { if (row > i) { if (row >= red && i >= red) { @@ -1079,9 +1102,10 @@ spans[i].style.backgroundColor = "#333" } } - } + + setInterval(() => { setRandomBars(); }, 200); @@ -1089,8 +1113,21 @@ function setRandomBars() { let num = getRandomIntInclusive(0, 72) let num2 = getRandomIntInclusive(0, 72) - LineInputLeftRandomBar(num-72) - LineInputRightRandomBar(num2-72) + let num3 = getRandomIntInclusive(0, 72) + let num4 = getRandomIntInclusive(0, 72) + let num5 = getRandomIntInclusive(0, 72) + let num6 = getRandomIntInclusive(0, 72) + let num7 = getRandomIntInclusive(0, 72) + let num8 = getRandomIntInclusive(0, 72) + LineInputLeftRandomBar(num - 72) + LineInputRightRandomBar(num2 - 72) + Microphone1LeftRandomBar(num3 - 72) + Microphone1RightRandomBar(num4 - 72); + Microphone2LeftRandomBar(num5 - 72) + Microphone2RightRandomBar(num6 - 72); + OutputVolumeLeftRandomBar(num7 - 72); + OutputVolumeRightRandomBar(num8 - 72); + } function getRandomIntInclusive(min, max) {