* 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:
Hans Baier 2008-12-26 06:52:49 +00:00
parent e52665d0b0
commit 6650ebdca9
2 changed files with 4 additions and 3 deletions

View file

@ -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;
if ( !(*((*i)->note()) == *(ev->note())) ) {
change_note_velocity(*i, velocity, relative);
}
i = next;
}

View file

@ -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);
}