make reversed width for the 2in/2out panner actually do something
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 7 Feb 2011 17:21:11 +0000 (17:21 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 7 Feb 2011 17:21:11 +0000 (17:21 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8744 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/panners/2in2out/panner_2in2out.cc

index 30d971d118d0126902daf98a2013c6ec1f39c14f..f5ed858da285e2cbe5a36ae69f528dc5abb2c33c 100644 (file)
@@ -138,10 +138,11 @@ Panner2in2out::update ()
         */
         
         float pos[2];
-        const double width = _pannable->pan_width_control->get_value();
+        double width = _pannable->pan_width_control->get_value();
         const double direction_as_lr_fract = _pannable->pan_azimuth_control->get_value();
 
         if (width < 0.0) {
+                width = fabs (width);
                 pos[0] = direction_as_lr_fract + (width/2.0); // left signal lr_fract
                 pos[1] = direction_as_lr_fract - (width/2.0); // right signal lr_fract
         } else {