From 4e40ac9358e249f465838ba4148a583707ef1509 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 7 Feb 2011 17:21:11 +0000 Subject: [PATCH] make reversed width for the 2in/2out panner actually do something git-svn-id: svn://localhost/ardour2/branches/3.0@8744 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/panners/2in2out/panner_2in2out.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/panners/2in2out/panner_2in2out.cc b/libs/panners/2in2out/panner_2in2out.cc index 30d971d118..f5ed858da2 100644 --- a/libs/panners/2in2out/panner_2in2out.cc +++ b/libs/panners/2in2out/panner_2in2out.cc @@ -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 { -- 2.30.2