ideoforms / AbletonOSC

Control Ableton Live 11 via Open Sound Control (OSC)
MIT License
429 stars 70 forks source link

/live/clip/get/notes Error "Message too long" #88

Open StrongBearCeo opened 1 year ago

StrongBearCeo commented 1 year ago

This occurs when a clip contains an excessive number of notes, such as a clip filled with numerous 16th notes of a hi-hat.

(2023-06-07 20:58:12,471) [ERROR] AbletonOSC: Socket error: Traceback (most recent call last):
  File "/abletonosc/osc_server.py", line 117, in process
    remote_addr=response_addr)
  File "/abletonosc/osc_server.py", line 82, in send
    self._socket.sendto(msg.dgram, remote_addr)
OSError: [Errno 40] Message too long
StrongBearCeo commented 1 year ago

added /live/clip/get/notes_range in this PR https://github.com/ideoforms/AbletonOSC/pull/87 to paginate and handle a large number of notes