mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
* fix the fix: note velocity editing works now without duplicating the edited note on each step
* removed debugging output git-svn-id: svn://localhost/ardour2/branches/3.0@4350 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e52665d0b0
commit
6650ebdca9
2 changed files with 4 additions and 3 deletions
|
|
@ -1012,7 +1012,7 @@ MidiRegionView::add_note(const boost::shared_ptr<Evoral::Note> note)
|
||||||
event = 0;
|
event = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event) {
|
if (event) {
|
||||||
if (_marked_for_selection.find(note) != _marked_for_selection.end()) {
|
if (_marked_for_selection.find(note) != _marked_for_selection.end()) {
|
||||||
note_selected(event, true);
|
note_selected(event, true);
|
||||||
}
|
}
|
||||||
|
|
@ -1577,7 +1577,9 @@ MidiRegionView::change_velocity(CanvasNoteEvent* ev, int8_t velocity, bool relat
|
||||||
for (Selection::iterator i = _selection.begin(); i != _selection.end();) {
|
for (Selection::iterator i = _selection.begin(); i != _selection.end();) {
|
||||||
Selection::iterator next = i;
|
Selection::iterator next = i;
|
||||||
++next;
|
++next;
|
||||||
change_note_velocity(*i, velocity, relative);
|
if ( !(*((*i)->note()) == *(ev->note())) ) {
|
||||||
|
change_note_velocity(*i, velocity, relative);
|
||||||
|
}
|
||||||
i = next;
|
i = next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -703,7 +703,6 @@ MidiTrack::unfreeze ()
|
||||||
void
|
void
|
||||||
MidiTrack::set_note_mode (NoteMode m)
|
MidiTrack::set_note_mode (NoteMode m)
|
||||||
{
|
{
|
||||||
cout << _name << " SET NOTE MODE " << m << endl;
|
|
||||||
_note_mode = m;
|
_note_mode = m;
|
||||||
midi_diskstream()->set_note_mode(m);
|
midi_diskstream()->set_note_mode(m);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue