debugging mcu via ssl nucleus
git-svn-id: svn://localhost/ardour2/branches/3.0@11816 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
826a240bae
commit
1f26ba1688
@ -72,6 +72,8 @@ using namespace PBD;
|
||||
|
||||
#include "pbd/abstract_ui.cc" // instantiate template
|
||||
|
||||
#define NUCLEUS_DEBUG 1
|
||||
|
||||
MackieMidiBuilder builder;
|
||||
|
||||
#define midi_ui_context() MidiControlUI::instance() /* a UICallback-derived object that specifies the event loop for signal handling */
|
||||
@ -949,6 +951,10 @@ MackieControlProtocol::notify_property_changed (const PropertyChange& what_chang
|
||||
line1 = PBD::short_version (fullname, 6);
|
||||
}
|
||||
|
||||
#ifdef NUCLEUS_DEBUG
|
||||
cerr << "show strip name from " << fullname << " as " << line1 << endl;
|
||||
#endif
|
||||
|
||||
SurfacePort & port = route_signal->port();
|
||||
port.write (builder.strip_display (port, strip, 0, line1));
|
||||
port.write (builder.strip_display_blank (port, strip, 1));
|
||||
|
@ -29,6 +29,8 @@
|
||||
using namespace Mackie;
|
||||
using namespace std;
|
||||
|
||||
#define NUCLEUS_DEBUG 1
|
||||
|
||||
MIDI::byte MackieMidiBuilder::calculate_pot_value( midi_pot_mode mode, const ControlState & state )
|
||||
{
|
||||
// TODO do an exact calc for 0.50? To allow manually re-centering the port.
|
||||
@ -194,7 +196,7 @@ MidiByteArray MackieMidiBuilder::strip_display( SurfacePort & port, const Strip
|
||||
assert (line_number <= 1);
|
||||
assert (strip.index() < 8);
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef NUCLEUS_DEBUG
|
||||
cout << "MackieMidiBuilder::strip_display index: " << strip.index() << ", line " << line_number << ": " << line << endl;
|
||||
#endif
|
||||
|
||||
@ -219,7 +221,7 @@ MidiByteArray MackieMidiBuilder::strip_display( SurfacePort & port, const Strip
|
||||
// sysex trailer
|
||||
retval << MIDI::eox;
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef NUCLEUS_DEBUG
|
||||
cout << "MackieMidiBuilder::strip_display midi: " << retval << endl;
|
||||
#endif
|
||||
return retval;
|
||||
|
Loading…
Reference in New Issue
Block a user