Work 05
Metronome
iOS application
Sep–Nov 2026
Metronome is a native Swift and SwiftUI metronome whose design constraints are product policy: no login, no analytics, no advertising, no third-party dependencies, and full function with the network permanently unavailable. Timing is computed as musical position converted to audio sample frames.
01 Overview
Metronome is a metronome for iPhone and iPad. Its repository states it as "a local-first, professional metronome" with "no login, no account, no advertising, no analytics, and no backend", and as fully functional with the network permanently unavailable. A privacy audit document records that it has no HTTP client, no socket and no web view, and that no third-party SDK or remote package is linked.
Shipped in the current build, according to the repository’s feature matrix: tempo entry (stepper and direct numeric entry, 10 to 800 BPM) and tap tempo; simple, compound and irregular meters; subdivisions; per-pulse accent patterns; multiple click sounds including custom import; count-in; presets; a full-screen Stage Mode; tempo automation (ramps, steps and multi-stage plans); a trainer that alternates audible and silent bars; practice history; a song library; and import and export as a plain JSON file. Setlists, polyrhythm, click mix, remote control, the tuner and Ableton Link are implemented in their modules but not reachable from the app, and the app says so rather than imitating them.
02 Architecture
Nearly all code is one local Swift package, MetronomeKit, split into modules with declared boundaries: a pure-value domain model, a deterministic timing core, an audio engine, a sensory engine for haptics and visual cues, persistence, a transport, feature modules for rhythm, automation, practice and setlists, and an application shell that composes them. The Xcode application target is a single file presenting the shell’s root view. The package uses Swift tools 6.0 and imports only Apple frameworks.
The architecture document sets realtime rules for the audio path: no allocation, locking, logging or I/O on the render path, and no UI timers. The timing reference describes a nine-stage path from the musician’s settings to a sample-accurate scheduled buffer. Musical position is converted to sample frames at a measured sample rate, and click buffers are scheduled on an AVAudioPlayerNode at absolute frame times. The only pacing mechanism is the node’s data-rendered completion, which drives the next look-ahead window; there is no Timer, DispatchSourceTimer or CADisplayLink in the audio engine.
The layout is one app on both devices: an iPad at regular width gets a sidebar, other sizes a tab bar, and only the layout changes. Siri and Shortcuts reach the transport through the same command chain as the buttons and refuse by name when they cannot act.
03 Implementation notes
Tempo changes during playback land on a defined boundary (the next beat or bar) rather than at the instant of a UI event. Trainer silence is part of the click pattern itself, so bar counts and tempo changes continue through silent bars. Practice sessions of at least one whole bar are recorded on the device and can be deleted individually or cleared.
Import and export use a versioned JSON document that moves presets, patterns, automation plans, songs and setlists through the system share sheet. Several of the repository’s audit records concern failure behaviour of this path: a failed import now rolls back without undoing another caller’s completed rename or delete, with two documented limits (crash recovery, and a rollback that itself fails).
04 Testing and evaluation
Validation is recorded in two separate sources. The owner’s Mac is authoritative for everything Apple-platform: the strict validation script runs a manifest check, privacy and localization audits, a Debug simulator build, the package tests on the simulator and a whitespace check. A self-hosted Linux CI job runs static, privacy and localization checks only and never builds or tests Swift; the test matrix says a green run there says the repository is well formed and nothing about whether the app works.
The most recent complete record (22 November 2026) reports the package tests on the simulator at 4,683 tests in 429 suites with 0 failures and 19 known issues, and 4,666 tests in 426 suites on the host. The repository also contains XCUITest cases, and iPhone and iPad simulator runs and a physical-device audio qualification script are described in the audit records. Both audits for privacy and localization include negative controls that plant a violation and require the audit to fail.
05 Limitations and status
The release checklist, which an upload must pass top to bottom, has two items ticked and 34 open, and the most recent audit record states the application stays not release-ready. No TestFlight or App Store distribution is recorded, and an App Store lookup of the configured bundle identifier returned no result on 1 December 2026. The version in the build configuration is 1.0.0 (1).
Known limits recorded in the repository include that a crash or forced quit during an import keeps the writes that had already committed, with no message on relaunch. Several modules are implemented and tested but unreachable from the interface.