describe velocity parameter and implement velocity control

This commit is contained in:
Paul Davis
2022-12-18 16:43:11 -07:00
parent 6cb4d01f1f
commit 1c1d73e47d
2 changed files with 3 additions and 1 deletions

View File

@@ -76,7 +76,7 @@ public:
void midi_panic(void);
bool write_immediate_event (Evoral::EventType event_type, size_t size, const uint8_t* buf);
boost::shared_ptr<VelocityControl> velocity_control() const;
boost::shared_ptr<VelocityControl> velocity_control() const { return _velocity_control; }
/** A control that will send "immediate" events to a MIDI track when twiddled */
struct MidiControl : public AutomationControl {

View File

@@ -209,6 +209,8 @@ Automatable::describe_parameter (Evoral::Parameter param)
return _("Elevation");
} else if (param.type() == PhaseAutomation) {
return _("Polarity Invert");
} else if (param.type() == MidiVelocityAutomation) {
return string_compose("Velocity [%1]", int(param.channel()) + 1);
} else if (param.type() == MidiCCAutomation) {
return string_compose("Controller %1 [%2]", param.id(), int(param.channel()) + 1);
} else if (param.type() == MidiPgmChangeAutomation) {