Revisiting a topic I haven't written about in a while, integrating #midi library RtMidi's event loop with other #Perl event loops.
The previous approach relied on a forked process (routine) which did little else but send back MIDI bytes via a channel, plus it only targeted IO::Async.
The approach described here should be simpler and more flexible, even if it does mean I had to write C. (I used to be paid to write C - this should terrify you).
@PerlFFI made this easy!
fuzzix.org/revisiting-async-an…
fuzzix dot org :: Revisiting Async and the RtMidi Event Loop
A coupla few years ago I wrote about Integrating RtMidi's event loop with IO::Async. The basic approach involved spawning a routine which set up a RtMidi callback to pass MIDI messages ba...fuzzix.org
This entry was edited (1 week ago)
