midi region view: allow change_note_note() to return the new note value
This commit is contained in:
parent
3315a6588a
commit
bde3f3a277
|
@ -3211,7 +3211,7 @@ MidiRegionView::change_note_velocity(NoteBase* event, int8_t velocity, bool rela
|
|||
note_diff_add_change (event, MidiModel::NoteDiffCommand::Velocity, new_velocity);
|
||||
}
|
||||
|
||||
void
|
||||
uint8_t
|
||||
MidiRegionView::change_note_note (NoteBase* event, int8_t note, bool relative)
|
||||
{
|
||||
uint8_t new_note;
|
||||
|
@ -3224,6 +3224,7 @@ MidiRegionView::change_note_note (NoteBase* event, int8_t note, bool relative)
|
|||
|
||||
clamp_to_0_127 (new_note);
|
||||
note_diff_add_change (event, MidiModel::NoteDiffCommand::NoteNumber, new_note);
|
||||
return new_note;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -420,7 +420,7 @@ public:
|
|||
|
||||
void change_note_channel (NoteBase *, int8_t, bool relative=false);
|
||||
void change_note_velocity(NoteBase* ev, int8_t vel, bool relative=false);
|
||||
void change_note_note(NoteBase* ev, int8_t note, bool relative=false);
|
||||
uint8_t change_note_note(NoteBase* ev, int8_t note, bool relative=false);
|
||||
void change_note_time(NoteBase* ev, ARDOUR::MidiModel::TimeType, bool relative=false);
|
||||
void change_note_length (NoteBase *, ARDOUR::MidiModel::TimeType);
|
||||
void trim_note(NoteBase* ev, ARDOUR::MidiModel::TimeType start_delta,
|
||||
|
|
Loading…
Reference in New Issue