summaryrefslogtreecommitdiff
path: root/gtk2_ardour/step_entry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/step_entry.cc')
-rw-r--r--gtk2_ardour/step_entry.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/step_entry.cc b/gtk2_ardour/step_entry.cc
index af439ea26f..0ac281b877 100644
--- a/gtk2_ardour/step_entry.cc
+++ b/gtk2_ardour/step_entry.cc
@@ -790,6 +790,10 @@ StepEntry::insert_grid_rest ()
void
StepEntry::insert_note (uint8_t note)
{
+ if (note > 127) {
+ return;
+ }
+
se->step_add_note (note_channel(), note, note_velocity(), note_length());
}
void