Making an Asynchronous Clocking Drum Machine App in Perl

Let's Make a Drum Machine application! Yeah! :D There are basically two important things to handle: A MIDI "clock" and a groove to play. Why asynchronous? Well, a simple while (1) { Time::HiRes::sleep($interval); ... } will not do because the time between ticks will fluctuate, often dramatically. IO::Async::Timer::Periodic is a great timer for this purpose. Its default scheduler uses system time,…