EqBand: Unecessary restrictions is unnecessary
authorMarkus Schmidt <[email protected]>
Wed, 15 Jul 2015 22:14:57 +0000 (16 00:14 +0200)
committerMarkus Schmidt <[email protected]>
Wed, 15 Jul 2015 22:14:57 +0000 (16 00:14 +0200)
index.html
toolkit/modules/eqband.js

index 57ec274..afb7080 100644 (file)
                 </p>
                 <p class="description">
                     Use eq to play with the example in a terminal:
-                    <a href="javascript:fr.set('db_grid', 6)">fr.set("db_grid", 6)</a>
+                    <a href="javascript:fr.set('db_grid', 6)">eq.set("db_grid", 6)</a>
                     <small>Sets the dB grid to 6dB</small>
                 </p>
                 
index 95db575..3256434 100644 (file)
@@ -98,7 +98,6 @@ EqBand = $class({
             case "freq":
                 key = "x"
             case "x":
-                value = Math.max(Math.min(this.options.x_max, value), this.options.x_min);
                 this.filter.set("freq",
                                 Math.max(Math.min(value, this.range_x.get("max")),
                                          this.range_x.get("min")), hold);
@@ -106,7 +105,6 @@ EqBand = $class({
             case "gain":
                 key = "y"
             case "y":
-                value = Math.max(Math.min(this.options.y_max, value), this.options.y_min);
                 switch (this.range_y.get("mode")) {
                     default:
                     case _TOOLKIT_LINEAR: