diff options
author | Carl Hetherington <carl@carlh.net> | 2011-09-28 12:40:54 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-09-28 12:40:54 +0000 |
commit | 7fdc1272b25b6f170da6f34d4386f9d27e9f7a17 (patch) | |
tree | 65e781fed1f027a038b2580bca482e417d3e7129 /gtk2_ardour/midi_region_view.cc | |
parent | 6a3d6f35493d2204c255381e8ce05555731db345 (diff) |
Remove erroneous check that would prevent notes being put at
pitch 0 or 127.
git-svn-id: svn://localhost/ardour2/branches/3.0@10154 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.cc')
-rw-r--r-- | gtk2_ardour/midi_region_view.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 958fa885d5..8da19dd6e3 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -2332,12 +2332,6 @@ MidiRegionView::note_dropped(CanvasNoteEvent *, frameoffset_t dt, int8_t dnote) // keep notes in standard midi range clamp_to_0_127(new_pitch); - // keep original pitch if note is dragged outside valid midi range - if ((original_pitch != 0 && new_pitch == 0) - || (original_pitch != 127 && new_pitch == 127)) { - new_pitch = original_pitch; - } - lowest_note_in_selection = std::min(lowest_note_in_selection, new_pitch); highest_note_in_selection = std::max(highest_note_in_selection, new_pitch); |