diff --git a/ducking.html b/ducking.html
index 4e173c6..7c36bd4 100644
--- a/ducking.html
+++ b/ducking.html
@@ -478,10 +478,10 @@
url: url,
success: function (res) {
data = res.content
- thresholdValue = data.parameters.threshold
- attackValue = data.parameters.attack
- duckLevelValue = data.parameters.ducklevel
- releaseValue = data.parameters.release
+ thresholdValue = data.parameters.threshold.toFixed(1)
+ attackValue = data.parameters.attack.toFixed(1)
+ duckLevelValue = data.parameters.ducklevel.toFixed(1)
+ releaseValue = data.parameters.release.toFixed(1)
bindData()
},
error: function () {
@@ -707,22 +707,22 @@
if (res.success) {
data = res.content
if (module == 'attack') {
- attackValue = data.parameters.attack
+ attackValue = data.parameters.attack.toFixed(1)
attackSlider(attackValue)
attackPost = false
}
if (module == 'threshold') {
- thresholdValue = data.parameters.threshold
+ thresholdValue = data.parameters.threshold.toFixed(1)
thresholdSlider(thresholdValue)
thresholdPost = false
}
if (module == 'ducklevel') {
- duckLevelValue = data.parameters.ducklevel
+ duckLevelValue = data.parameters.ducklevel.toFixed(1)
ducklevelSlider(duckLevelValue)
duckLevelPost = false
}
if (module == 'release') {
- releaseValue = data.parameters.release
+ releaseValue = data.parameters.release.toFixed(1)
releaseSlider(releaseValue)
releasePost = false
}
diff --git a/eq.html b/eq.html
index 639cc89..b3cb94a 100644
--- a/eq.html
+++ b/eq.html
@@ -827,16 +827,16 @@
url: url,
success: function (res) {
data = res.content
- mic140Value = data.mic1.band1
- mic1150Value = data.mic1.band2
- mic1500Value = data.mic1.band3
- mic12kValue = data.mic1.band4
- mic110kValue = data.mic1.band5
- mic240Value = data.mic2.band1
- mic2150Value = data.mic2.band2
- mic2500Value = data.mic2.band3
- mic22kValue = data.mic2.band4
- mic210kValue = data.mic2.band5
+ mic140Value = data.mic1.band1.toFixed(1)
+ mic1150Value = data.mic1.band2.toFixed(1)
+ mic1500Value = data.mic1.band3.toFixed(1)
+ mic12kValue = data.mic1.band4.toFixed(1)
+ mic110kValue = data.mic1.band5.toFixed(1)
+ mic240Value = data.mic2.band1.toFixed(1)
+ mic2150Value = data.mic2.band2.toFixed(1)
+ mic2500Value = data.mic2.band3.toFixed(1)
+ mic22kValue = data.mic2.band4.toFixed(1)
+ mic210kValue = data.mic2.band5.toFixed(1)
bindData()
},
error: function () {
@@ -1347,23 +1347,23 @@
if (module == 'mic2state' || module == 'mic210k' || module == 'mic22k' || module == 'mic2500' || module == 'mic2150' || module == 'mic240') {
data.mic2 = res.content.mic2
if (module == 'mic240') {
- mic240Value = data.mic2.band1
+ mic240Value = data.mic2.band1.toFixed(1)
mic240HzSlider(mic240Value)
}
if (module == 'mic2150') {
- mic2150Value = data.mic2.band2
+ mic2150Value = data.mic2.band2.toFixed(1)
mic2150HzSlider(mic2150Value)
}
if (module == 'mic2500') {
- mic2500Value = data.mic2.band3
+ mic2500Value = data.mic2.band3.toFixed(1)
mic2500HzSlider(mic2500Value)
}
if (module == 'mic22k') {
- mic22kValue = data.mic2.band4
+ mic22kValue = data.mic2.band4.toFixed(1)
mic22KHzSlider(mic22kValue)
}
if (module == 'mic210k') {
- mic210kValue = data.mic2.band5
+ mic210kValue = data.mic2.band5.toFixed(1)
mic210KHzSlider(mic210kValue)
}
@@ -1371,23 +1371,23 @@
else {
data.mic1 = res.content.mic1
if (module == 'mic140') {
- mic140Value = data.mic1.band1
+ mic140Value = data.mic1.band1.toFixed(1)
mic140HzSlider(mic140Value)
}
if (module == 'mic1150') {
- mic1150Value = data.mic1.band2
+ mic1150Value = data.mic1.band2.toFixed(1)
mic1150HzSlider(mic1150Value)
}
if (module == 'mic1500') {
- mic1500Value = data.mic1.band3
+ mic1500Value = data.mic1.band3.toFixed(1)
mic1500HzSlider(mic1500Value)
}
if (module == 'mic12k') {
- mic12kValue = data.mic1.band4
+ mic12kValue = data.mic1.band4.toFixed(1)
mic12KHzSlider(mic12kValue)
}
if (module == 'mic110k') {
- mic110kValue = data.mic1.band5
+ mic110kValue = data.mic1.band5.toFixed(1)
mic110KHzSlider(mic110kValue)
}
}