Compact Metronome Macro (v11.0.4)

I was inspired by @noisneil 's Tap Tempo metronome, but wanted to make something that would fit my requirements. With some help from Claude Sonnet, this is what I've come up with:

  • Starts playing when opened
  • Use cursor keys to adjust tempo (up/down in single increments, left/right in increments of 10bpm)
  • Use number keys to jump to preset tempos
  • Space to toggle play/stop

One limitation is that each time the macro is triggered, a new metronome will be opened in a Custom HTML Window. Please do let me know if you can help me change that so that when (re)triggered, it first checks if there is an existing Custom HTML Window and if so gives it (keyboard) focus.

Compact Metronome Macro (v11.0.4)

Compact Metronome.kmmacros (27 KB)

2 Likes

Me being me, I'd use AppleScript to test if the window is there -- if so, activate it; if not, let the macro spawn the HTML Prompt:

Compact Metronome v2.kmmacros (29.2 KB)

Image

1 Like

Thanks, that works perfectly. I made a few more changes:

  • Removed auto-start. Space or period key toggles the metronome.
  • Positions at bottom right of the main screen so it doesn't obscure macOS notifications
  • Made the click sound louder
  • Pressing X or Command + W closes the metronome if it has focus

Compact Metronome v3 Macro (v11.0.4)

Compact Metronome v3.kmmacros (30 KB)

1 Like