mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
MCP: fader debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@12003 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
56281ba906
commit
d5db31f1e4
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,7 @@
|
||||||
#include "ardour/panner_shell.h"
|
#include "ardour/panner_shell.h"
|
||||||
#include "ardour/rc_configuration.h"
|
#include "ardour/rc_configuration.h"
|
||||||
#include "ardour/session.h"
|
#include "ardour/session.h"
|
||||||
|
#include "ardour/utils.h"
|
||||||
|
|
||||||
#include "control_group.h"
|
#include "control_group.h"
|
||||||
#include "surface_port.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());
|
Strip* strip = dynamic_cast<Strip*> (&fader->group());
|
||||||
float pos = (pb >> 4)/1023.0; // only the top 10 bytes are used
|
float pos = (pb >> 4)/1023.0; // only the top 10 bytes are used
|
||||||
if (strip) {
|
if (strip) {
|
||||||
|
std::cerr << "New fader position " << pos << " SPtG = " << slider_position_to_gain (pos) << std::endl;
|
||||||
strip->handle_fader (*fader, pos);
|
strip->handle_fader (*fader, pos);
|
||||||
} else {
|
} else {
|
||||||
/* master fader */
|
/* master fader */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue