Hello!
I’m trying to fork something but am receiving this. How do I go about this issue?
ERROR:root:None is not a callable object
Traceback (most recent call last):
File “/Users/kronic/Library/Python/3.9/lib/python/site-packages/clockblocks/clock.py”, line 816, in _process
process_function_signature = inspect.signature(process_function)
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/inspect.py”, line 3130, in signature
return Signature.from_callable(obj, follow_wrapped=follow_wrapped)
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/inspect.py”, line 2879, in from_callable
return _signature_from_callable(obj, sigcls=cls,
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/inspect.py”, line 2254, in _signature_from_callable
raise TypeError(’{!r} is not a callable object’.format(obj))
TypeError: None is not a callable object
Here’s my code
def notateSequence(sequence_list, rhythm_list):
amp = 1
# https://youtu.be/WhNLNvugNy0?t=768
s.fork(forkPart(sequence_list, amp, rhythm_list))
s.fork(forkPart(sequence_list, amp, rhythm_list))
s.wait_for_children_to_finish
return
def forkPart(sequence_list, amp, rhythm_list):
a = len(sequence_list)
b = len(rhythm_list)
for i in range(a):
index = i % b
print("seq list: ", sequence_list[i])
r = float(rhythm_list[index])
for i in range(a):
inst.play_chord(sequence_list[i], amp, r)
return
It has worked fine without the forking … Ultimately, I’d like to segregate treble and bass notes into a piano score. Thanks in advance!