Browse Source

update template

master
Nils 2 years ago
parent
commit
32913ca2f1
  1. 4
      template/calfbox/sfzloader.c
  2. 4
      template/qtgui/menu.py
  3. 3
      template/qtgui/submenus.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

3
template/qtgui/submenus.py

@ -160,6 +160,9 @@ def nestedJackPortsMenu(parseOtherOutputs:bool=True, midi:bool=True):
result["hardware"] = sorted(list(hardware))
result["software"] = sorted(list(software))
action = menu.addAction("Disconnect")
action.setData(-1)
hardwareMenu = menu.addMenu("Hardware")
for clientAndPortString in result["hardware"]:
action = hardwareMenu.addAction(clientAndPortString)

Loading…
Cancel
Save