mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-14 12:20:03 +01:00
added to the mappings
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user