Browse Source

update template

master
Nils 7 months ago
parent
commit
3443c2d649
  1. 4
      template/calfbox/sfzloader.c
  2. 4
      template/qtgui/menu.py

4
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))

4
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

Loading…
Cancel
Save