#include "ardour/midi_port.h"
#include "ardour/midi_scene_change.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
using namespace PBD;
using namespace ARDOUR;
buf[0] = 0xB0 | (_channel & 0xf);
buf[1] = 0x20;
- buf[2] = _bank & 0x7f;
+ buf[2] = _bank & 0x7f;
return 3;
}
return -1;
}
- const XMLProperty* prop;
+ XMLProperty const * prop;
if ((prop = node.property (X_("program"))) == 0) {
return -1;
_channel = atoi (prop->value());
if ((prop = node.property (X_("color"))) != 0) {
- _color = atoi (prop->value());
- } else {
- _color = out_of_bound_color;
- }
+ _color = atoi (prop->value());
+ } else {
+ _color = out_of_bound_color;
+ }
return 0;
}
bool
MIDISceneChange::operator==(const MIDISceneChange& other) const
{
- return _program == other._program &&
- _bank == other._bank &&
- _channel == other._channel;
+ return _program == other._program &&
+ _bank == other._bank &&
+ _channel == other._channel;
+}
+
+void
+MIDISceneChange::set_channel (int channel)
+{
+ _channel = channel;
+}
+
+void
+MIDISceneChange::set_program (int program)
+{
+ _program = program;
+}
+
+void
+MIDISceneChange::set_bank (int bank)
+{
+ _bank = bank;
}
+
+