summaryrefslogtreecommitdiff
path: root/gtk2_ardour/canvas-note-event.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-08-17 15:58:47 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-08-17 15:58:47 +0000
commit3162ffb4f418d85088d53d5e0a4a5d6ce7235e04 (patch)
tree851bf4f3ad5d7ae0e9a8917dfc3ad8d2c2f7899c /gtk2_ardour/canvas-note-event.cc
parent902a087f15dbdb5546b42930b6cd69294cb0851f (diff)
move assignments out of assert() in editor_drag (thanks lincoln); change mouse mode buttons when in internal/MIDI mode; arrow key control of note velocity, value and position - hey look ma, MIDI editing!
git-svn-id: svn://localhost/ardour2/branches/3.0@5539 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-note-event.cc')
-rw-r--r--gtk2_ardour/canvas-note-event.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/gtk2_ardour/canvas-note-event.cc b/gtk2_ardour/canvas-note-event.cc
index 52e7ac5eef..20e0880f05 100644
--- a/gtk2_ardour/canvas-note-event.cc
+++ b/gtk2_ardour/canvas-note-event.cc
@@ -224,24 +224,8 @@ CanvasNoteEvent::on_event(GdkEvent* ev)
static double last_x, last_y;
double event_x, event_y, dx, dy;
bool select_mod;
- uint8_t d_velocity = 10;
switch (ev->type) {
- case GDK_SCROLL:
- if (Keyboard::modifier_state_equals (ev->scroll.state, Keyboard::Level4Modifier)) {
- d_velocity = 1;
- }
-
- if (ev->scroll.direction == GDK_SCROLL_UP) {
- _region.change_velocity(this, d_velocity, true);
- return true;
- } else if (ev->scroll.direction == GDK_SCROLL_DOWN) {
- _region.change_velocity(this, -d_velocity, true);
- return true;
- } else {
- return false;
- }
-
case GDK_ENTER_NOTIFY:
_region.note_entered(this);
//_item->grab_focus();