Skip to content

A command-line metronome which sounds out the beats + subdivisions 🥁

Notifications You must be signed in to change notification settings

MadeleineSmith/metronome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metronome

metronome.mov

(Put the sound on 😊)

Background

  • I wanted to build out a metronome on the command line so I didn't have to rely on Google's metronome
  • I used the Go beep package to output sound
  • I created a Homebrew tap for easy installation of the metronome package

First install instructions:

  • brew tap madeleinesmith/metronome && brew install metronome

How to release new version and update local package:

Releasing new version:

  • Tag code using git tag -a v1.0.0 -m "version 1.0.0"
  • Push tag with git push origin v0.2.0
  • Create a new release on GitHub for that tag
  • Copy the link of the tar.gz file on GitHub
  • Change the url line of homebrew-metronome repo to be this
  • And also update the sha256 line by running shasum -a 256 xxxxxxx.tar.gz on the downloaded tar file (above)
  • Commit and push the homebrew-metronome repo with these edits

Updating the local package:

  • Run brew update && brew upgrade metronome

Usage instructions

When using the Brew package run:

  • metronome -beats-per-minute=a -beats-per-bar=b -subdivisions=c,d,e,f

e.g.

  • metronome -beats-per-minute=15 -beats-per-bar=4 -subdivisions=4,4,4,7

If running locally use:

  • go run main.go -beats-per-minute=a -beats-per-bar=b -subdivisions=c,d,e,f

Tutorials referenced whilst building:

Creating a Homebrew tap:

Using go:embed:

About

A command-line metronome which sounds out the beats + subdivisions 🥁

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages