A simple, interactive metronome written in Rust for the terminal. Adjust BPM, pause/resume, and enjoy a pulsing animation in sync with the beat.
- Adjustable BPM (default: 100)
- Real-time BPM control with arrow keys
- Pause/resume with space bar
- Exit with
Esc - Pulsing beat animation (●)
- Clean terminal UI
- Unit tests included
cargo run- Enter your desired BPM (or press Enter for default 100).
- Use
↑and↓arrows to increase/decrease BPM. - Press
Spaceto pause/resume. - Press
Escto exit.
cargo testsrc/lib.rs: Metronome logic and structsrc/main.rs: Entry pointtests/metronome_tests.rs: Unit tests
- Rust & Cargo (https://rustup.rs)
MIT
Emanuele Giarlini