Keep the tempo
Metronome beats the rhythm for you, you simply need to tell it the required time signature and beats per minutes.
You can also tap to let the application guess the required beats per minute.
A boilerplate template to get started with GTK, Rust, Meson, Flatpak made for GNOME. It can be adapted for other desktop environments like elementary.

