diff --git a/template/calfbox/sfzloader.c b/template/calfbox/sfzloader.c index 918d52f..83465c5 100644 --- a/template/calfbox/sfzloader.c +++ b/template/calfbox/sfzloader.c @@ -192,9 +192,9 @@ static gboolean load_sfz_key_value(struct sfz_parser_client *client, const char int ctrl = atoi(key + 8); sampler_program_add_controller_label(ls->program, ctrl, g_strdup(value)); } - else if (!strncmp(key, "label_key", 8)) + else if (!strncmp(key, "label_key", 9)) { - int pitch = atoi(key + 8); + int pitch = atoi(key + 9); sampler_program_add_pitch_label(ls->program, pitch, g_strdup(value)); } else if (!strncmp(key, "set_cc", 6)) diff --git a/template/qtgui/menu.py b/template/qtgui/menu.py index 1d71ad0..0b41ba6 100644 --- a/template/qtgui/menu.py +++ b/template/qtgui/menu.py @@ -375,7 +375,9 @@ class HoverActionDictionary(dict): def __setitem__(self, key, menuAction): """key is a string of a single number 0-9""" - assert key in "0 1 2 3 4 5 6 7 8 9".split() + if not key in "0 1 2 3 4 5 6 7 8 9".split(): + #No Numpad + and - + return try: self[key].setShortcut(QtGui.QKeySequence()) #reset the action that previously had that shortcut