polyphonic_track icon indicating copy to clipboard operation
polyphonic_track copied to clipboard

Script not sending full MIDI notes, just MIDI Off

Open Jademalo opened this issue 6 years ago • 2 comments

on
0
1
2
3
4
5
6
7
8
9
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 50613)
Traceback (most recent call last):
  File "/Users/inspired/miniconda3/lib/python3.6/socketserver.py", line 639, in process_request_thread
    self.finish_request(request, client_address)
  File "/Users/inspired/miniconda3/lib/python3.6/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/Users/inspired/miniconda3/lib/python3.6/socketserver.py", line 696, in __init__
    self.handle()
  File "/Users/inspired/miniconda3/lib/python3.6/site-packages/pythonosc/osc_server.py", line 92, in handle
    _call_handlers_for_packet(self.request[0], self.server.dispatcher)
  File "/Users/inspired/miniconda3/lib/python3.6/site-packages/pythonosc/osc_server.py", line 75, in _call_handlers_for_packet
    handler.callback(timed_msg.message.address, *timed_msg.message)
  File "tracking_server.py", line 111, in fft_handler
    coeffs = normalize_vector(np.array(coeffs))[0]
TypeError: 'NoneType' object is not subscriptable
----------------------------------------

Every time I play a note, I get this error. The only information being passed to the DAW is a midi note off when the note finishes. I get no other midi information. Everything is definitely configured correctly, learning works, etc etc. The MIDI is set up correctly, and I'm definitely getting a bit of information, but I'm not not getting anything else.

It's always after 9, and before 10. Every single time I play a note.

Any ideas?

Thanks

Jademalo avatar Aug 23 '18 15:08 Jademalo

I've got the same issue.

0
1
2
3
4
5
6
7
8
9
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 54677)
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 650, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 720, in __init__
    self.handle()
  File "/usr/local/lib/python3.7/site-packages/pythonosc/osc_server.py", line 29, in handle
    self.server.dispatcher.call_handlers_for_packet(self.request[0], self.client_address)
  File "/usr/local/lib/python3.7/site-packages/pythonosc/dispatcher.py", line 194, in call_handlers_for_packet
    handler.invoke(client_address, timed_msg.message)
  File "/usr/local/lib/python3.7/site-packages/pythonosc/dispatcher.py", line 57, in invoke
    self.callback(message.address, *message)
  File "tracking_server.py", line 107, in fft_handler
    n_nonzero_coefs=NONZERO_COEFS)
  File "/usr/local/lib/python3.7/site-packages/sklearn/decomposition/dict_learning.py", line 280, in sparse_encode
    dictionary = check_array(dictionary)
  File "/usr/local/lib/python3.7/site-packages/sklearn/utils/validation.py", line 496, in check_array
    array = np.asarray(array, dtype=dtype, order=order)
  File "/usr/local/lib/python3.7/site-packages/numpy/core/_asarray.py", line 85, in asarray
    return array(a, dtype, copy=False, order=order)
ValueError: setting an array element with a sequence.
----------------------------------------
10
11
12
13
14
15
16

pissartel avatar Oct 09 '19 12:10 pissartel

I'm on Windows 10, and have a very similar problem:

on
0
1
2
3
4
5
6
7
8
9
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 54395)
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\socketserver.py", line 650, in process_request_thread
    self.finish_request(request, client_address)
10
  File "C:\ProgramData\Anaconda3\lib\socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\ProgramData\Anaconda3\lib\socketserver.py", line 720, in __init__
    self.handle()
  File "C:\Users\antoni\AppData\Roaming\Python\Python37\site-packages\pythonosc\osc_server.py", line 29, in handle
    self.server.dispatcher.call_handlers_for_packet(self.request[0], self.client_address)
  File "C:\Users\antoni\AppData\Roaming\Python\Python37\site-packages\pythonosc\dispatcher.py", line 194, in call_handlers_for_packet
    handler.invoke(client_address, timed_msg.message)
11
  File "C:\Users\antoni\AppData\Roaming\Python\Python37\site-packages\pythonosc\dispatcher.py", line 57, in invoke
    self.callback(message.address, *message)
12
  File "tracking_server.py", line 111, in fft_handler
    coeffs = normalize_vector(np.array(coeffs))[0]
TypeError: 'NoneType' object is not subscriptable
----------------------------------------
13
13
15
16
...

antekj avatar Oct 24 '19 18:10 antekj