pass vectors for velocities by reference
This commit is contained in:
parent
49426a602f
commit
d5a7e5f289
@ -3410,7 +3410,7 @@ MidiRegionView::end_drag_edit ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
MidiRegionView::set_velocities_for_notes (std::vector<NoteBase*> notes, std::vector<int> velocities)
|
MidiRegionView::set_velocities_for_notes (std::vector<NoteBase*>& notes, std::vector<int>& velocities)
|
||||||
{
|
{
|
||||||
start_note_diff_command (_("draw velocities"));
|
start_note_diff_command (_("draw velocities"));
|
||||||
|
|
||||||
@ -3445,7 +3445,7 @@ MidiRegionView::set_velocities_for_notes (std::vector<NoteBase*> notes, std::vec
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
MidiRegionView::set_velocity_for_notes (std::vector<NoteBase*> notes, int velocity)
|
MidiRegionView::set_velocity_for_notes (std::vector<NoteBase*>& notes, int velocity)
|
||||||
{
|
{
|
||||||
/* Does not use selection, used when drawing/dragging in velocity lane */
|
/* Does not use selection, used when drawing/dragging in velocity lane */
|
||||||
|
|
||||||
|
@ -294,8 +294,8 @@ public:
|
|||||||
void change_note_lengths (bool, bool, Temporal::Beats beats, bool start, bool end);
|
void change_note_lengths (bool, bool, Temporal::Beats beats, bool start, bool end);
|
||||||
void change_velocities (bool up, bool fine, bool allow_smush, bool all_together);
|
void change_velocities (bool up, bool fine, bool allow_smush, bool all_together);
|
||||||
void set_velocity (NoteBase* primary, int velocity);
|
void set_velocity (NoteBase* primary, int velocity);
|
||||||
bool set_velocity_for_notes (std::vector<NoteBase*> notes, int velocity);
|
bool set_velocity_for_notes (std::vector<NoteBase*>& notes, int velocity);
|
||||||
bool set_velocities_for_notes (std::vector<NoteBase*> notes, std::vector<int> velocities);
|
bool set_velocities_for_notes (std::vector<NoteBase*>& notes, std::vector<int>& velocities);
|
||||||
void transpose (bool up, bool fine, bool allow_smush);
|
void transpose (bool up, bool fine, bool allow_smush);
|
||||||
void nudge_notes (bool forward, bool fine);
|
void nudge_notes (bool forward, bool fine);
|
||||||
void channel_edit ();
|
void channel_edit ();
|
||||||
|
Loading…
Reference in New Issue
Block a user