13
0

MCP: fader debugging

git-svn-id: svn://localhost/ardour2/branches/3.0@12003 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-04-18 13:13:42 +00:00
parent 56281ba906
commit d5db31f1e4

View File

@ -14,6 +14,7 @@
#include "ardour/panner_shell.h"
#include "ardour/rc_configuration.h"
#include "ardour/session.h"
#include "ardour/utils.h"
#include "control_group.h"
#include "surface_port.h"
@ -330,6 +331,7 @@ Surface::handle_midi_pitchbend_message (MIDI::Parser&, MIDI::pitchbend_t pb, uin
Strip* strip = dynamic_cast<Strip*> (&fader->group());
float pos = (pb >> 4)/1023.0; // only the top 10 bytes are used
if (strip) {
std::cerr << "New fader position " << pos << " SPtG = " << slider_position_to_gain (pos) << std::endl;
strip->handle_fader (*fader, pos);
} else {
/* master fader */