* 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:
@@ -1012,7 +1012,7 @@ MidiRegionView::add_note(const boost::shared_ptr<Evoral::Note> note)
|
||||
event = 0;
|
||||
}
|
||||
|
||||
if (event) {
|
||||
if (event) {
|
||||
if (_marked_for_selection.find(note) != _marked_for_selection.end()) {
|
||||
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();) {
|
||||
Selection::iterator next = i;
|
||||
++next;
|
||||
change_note_velocity(*i, velocity, relative);
|
||||
if ( !(*((*i)->note()) == *(ev->note())) ) {
|
||||
change_note_velocity(*i, velocity, relative);
|
||||
}
|
||||
i = next;
|
||||
}
|
||||
|
||||
|
||||
@@ -703,7 +703,6 @@ MidiTrack::unfreeze ()
|
||||
void
|
||||
MidiTrack::set_note_mode (NoteMode m)
|
||||
{
|
||||
cout << _name << " SET NOTE MODE " << m << endl;
|
||||
_note_mode = m;
|
||||
midi_diskstream()->set_note_mode(m);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user