control_nrpn = -1;
_control_description = "MIDI Control: none";
control_additional = (MIDI::byte) -1;
- feedback = true; // for now
}
MIDIControllable::MIDIControllable (GenericMidiControlProtocol* s, MIDI::Parser& p, Controllable& c, bool m)
control_nrpn = -1;
_control_description = "MIDI Control: none";
control_additional = (MIDI::byte) -1;
- feedback = true; // for now
}
MIDIControllable::~MIDIControllable ()
MIDI::byte*
MIDIControllable::write_feedback (MIDI::byte* buf, int32_t& bufsize, bool /*force*/)
{
- if (!controllable || !feedback) {
+ if (!controllable || !_surface->get_feedback ()) {
return buf;
}
return -1;
}
- if ((prop = node.property ("feedback")) != 0) {
- feedback = (prop->value() == "yes");
- } else {
- feedback = true; // default
- }
-
bind_midi (control_channel, control_type, control_additional);
return 0;
node->add_property ("channel", buf);
snprintf (buf, sizeof(buf), "0x%x", (int) control_additional);
node->add_property ("additional", buf);
- node->add_property ("feedback", (feedback ? "yes" : "no"));
}
return *node;