added to the mappings

This commit is contained in:
langolierz
2020-03-15 18:00:41 +00:00
parent 1863655c09
commit 6936b7b34f
3 changed files with 63 additions and 25 deletions

View File

@@ -1099,6 +1099,10 @@ class Actions(object):
try:
#print ("for method_name %s, arguments is %s and len is %s, got method %s" % (method_name, arguments, len(signature(method).parameters), method))
# for the case where cc is being used as switch, we ignore note_off
if len(signature(method).parameters) == 0 and not argument:
return
if arguments is not None and len(signature(method).parameters)==len(arguments): # only pass arguments if count matches method sig
method(*arguments)
else: