Skip to content

emadotjar/rustronome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rustronome 🦀🎵

rustronome-logo

A simple, interactive metronome written in Rust for the terminal. Adjust BPM, pause/resume, and enjoy a pulsing animation in sync with the beat.

Features

  • 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

Usage

Run the Metronome

cargo run
  • Enter your desired BPM (or press Enter for default 100).
  • Use and arrows to increase/decrease BPM.
  • Press Space to pause/resume.
  • Press Esc to exit.

Run Tests

cargo test

Project Structure

  • src/lib.rs: Metronome logic and struct
  • src/main.rs: Entry point
  • tests/metronome_tests.rs: Unit tests

Requirements

License

MIT

Author

Emanuele Giarlini

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages