summaryrefslogtreecommitdiff
path: root/libs/evoral/evoral/MIDIEvent.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/evoral/evoral/MIDIEvent.hpp')
-rw-r--r--libs/evoral/evoral/MIDIEvent.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/evoral/evoral/MIDIEvent.hpp b/libs/evoral/evoral/MIDIEvent.hpp
index c06a323d73..359d640fe5 100644
--- a/libs/evoral/evoral/MIDIEvent.hpp
+++ b/libs/evoral/evoral/MIDIEvent.hpp
@@ -68,6 +68,7 @@ struct MIDIEvent : public Event<Time> {
inline bool is_aftertouch() const { return (type() == MIDI_CMD_NOTE_PRESSURE); }
inline bool is_channel_pressure() const { return (type() == MIDI_CMD_CHANNEL_PRESSURE); }
inline uint8_t note() const { return (this->_buf[1]); }
+ inline void set_note(uint8_t n) { this->_buf[1] = n; }
inline uint8_t velocity() const { return (this->_buf[2]); }
inline void set_velocity(uint8_t value) { this->_buf[2] = value; }
inline void scale_velocity(float factor) {