<miek__[m]>
one problem i'm seeing is that the i2c reads are often failing, not being acked. i have to try a few times to get the applet to work. are there any known issues before i debug some more?
<miek__[m]>
and yeah, i'm fine with being set as code owner for that applet
_whitelogger has joined #glasgow
Eli2_ has joined #glasgow
Eli2 has quit [Ping timeout: 268 seconds]
anubis has joined #glasgow
anubis has quit [Read error: Connection reset by peer]
anubis has joined #glasgow
<galibert[m]>
is there an example of using glasgow script somewhere?
wiebel[m] has quit [Quit: Idle timeout reached: 172800s]
ALTracer[m] has quit [Quit: Idle timeout reached: 172800s]
<galibert[m]>
fuck, mido seems unusable in an async context. In fact there doesn't seem to be anything sane in python doing async midi
zyp[m] has joined #glasgow
<zyp[m]>
what do you need to do?
<galibert[m]>
I have a glasgow applet to capture audio output (i2s-related) on my mu100b. I want to start the capture, send some midi messages, wait a bit, send another midi message, stop the capture, work with the result
<galibert[m]>
I've patched the rom of the mu100b to do amusing things with sysexes
<zyp[m]>
are the blocking midi send calls slow enough that it's an issue?
<galibert[m]>
It may not be an issue, but I don't know how to have the capture loop running "in parallel"
<galibert[m]>
I must say (cooperative) threading in python is really atrociously documented
<galibert[m]>
ok, sounds like you've given me all the required pieces. Now time to try them
<zyp[m]>
if you needed to do a full blocking task, like a loop waiting for midi messages, it would probably be easier to just spin up a dedicated thread for it and have it put all the messages in an asyncio queue
<galibert[m]>
I don't tend to need read when capturing audio, so that should be ok
<zyp[m]>
yeah, I just figured it was worth mentioning, since it's another common piece of blocking/async interop
<galibert[m]>
:-)
<galibert[m]>
ohhh, looks like I may have something that works