velocity editing games

This commit is contained in:
Paul Davis 2018-11-04 22:42:49 -05:00
parent a5fd4c0c8a
commit ad29db76f3
2 changed files with 15 additions and 1 deletions

View file

@ -147,6 +147,7 @@ BBGUI::grid_event (GdkEvent* ev)
ret = grid_button_release_event (&ev->button);
break;
case GDK_SCROLL:
cerr << ' ' << ev->scroll.direction << show_gdk_event_state (ev->scroll.state);
ret = grid_scroll_event (&ev->scroll);
default:
break;
@ -199,7 +200,13 @@ BBGUI::grid_scroll_event (GdkEventScroll* ev)
break;
}
adjust_step_pitch (seq, step, amt);
if (ev->state & GDK_MOD1_MASK) {
cerr << "adjust pitch by " << amt << endl;
adjust_step_pitch (seq, step, amt);
} else {
cerr << "adjust velocity by " << amt << endl;
adjust_step_velocity (seq, step, amt);
}
return true;
}
@ -220,6 +227,12 @@ BBGUI::adjust_step_pitch (int seq, int step, int amt)
bbox->sequencer().adjust_step_pitch (seq, step, amt);
}
void
BBGUI::adjust_step_velocity (int seq, int step, int amt)
{
bbox->sequencer().adjust_step_velocity (seq, step, amt);
}
void
BBGUI::update ()
{

View file

@ -124,6 +124,7 @@ class BBGUI : public ArdourDialog {
void set_grab_step (double x, double y);
void adjust_step_pitch (int seq, int step, int amt);
void adjust_step_velocity (int seq, int step, int amt);
};
#endif /* __gtk2_ardour_beatbox_gui_h__ */