return true;
}
+pair<double, double>
+Panner1in2out::position_range () const
+{
+ return make_pair (0, 1);
+}
+
double
Panner1in2out::position () const
{
This is pretty wierd, but its the way audio engineers expect it. Just remember that
the center of the USA isn't Kansas, its (50LA, 50NY) and it will all make sense.
+
+ This is designed to be as narrow as possible. Dedicated
+ panner GUIs can do their own version of this if they need
+ something less compact.
*/
- return string_compose (_("L:%1 R:%2"), (int) rint (100.0 * (1.0 - val)),
+ return string_compose (_("L%1R%2"), (int) rint (100.0 * (1.0 - val)),
(int) rint (100.0 * val));
default:
return _pannable->value_as_string (ac);
}
}
+
+void
+Panner1in2out::reset ()
+{
+ set_position (0.5);
+ update ();
+}