You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was having a problem with the program hanging after a couple of Send To Device operations.
I found this about mido: mido/mido#37 which talked about only receiving 1000 messages before input hangs. Following the discussion I inserted a sleep command into AlesisV25Device._send (line 26 in alesisvsysex>device>alesis.py) as follows:
def _send(self, message):
if not isinstance(message, SysexMessage):
raise ValueError("Can only send a SysexMessage")
p = mido.Parser()
p.feed(message.serialize())
self._port.send(p.get_message())
time.sleep(0.001) # added because of save to device hang
Of course time has to be imported beforehand.
This seems to have resolved the problem.
Hope this helps,
Gary
The text was updated successfully, but these errors were encountered:
I was having a problem with the program hanging after a couple of Send To Device operations.
I found this about mido: mido/mido#37 which talked about only receiving 1000 messages before input hangs. Following the discussion I inserted a sleep command into AlesisV25Device._send (line 26 in alesisvsysex>device>alesis.py) as follows:
def _send(self, message):
if not isinstance(message, SysexMessage):
raise ValueError("Can only send a SysexMessage")
p = mido.Parser()
p.feed(message.serialize())
self._port.send(p.get_message())
time.sleep(0.001) # added because of save to device hang
Of course time has to be imported beforehand.
This seems to have resolved the problem.
Hope this helps,
Gary
The text was updated successfully, but these errors were encountered: