node->add_property (X_("bank"), buf);
snprintf (buf, sizeof (buf), "%d", (int) _channel);
node->add_property (X_("channel"), buf);
+ snprintf (buf, sizeof (buf), "%u", _color);
+ node->add_property (X_("color"), buf);
return *node;
}
}
_channel = atoi (prop->value());
+ if ((prop = node.property (X_("color"))) != 0) {
+ _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;
+}