Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program Hangs on Repeat Send To Device commands #8

Open
gary-1959 opened this issue Feb 6, 2024 · 0 comments
Open

Program Hangs on Repeat Send To Device commands #8

gary-1959 opened this issue Feb 6, 2024 · 0 comments

Comments

@gary-1959
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant