Categorygithub.com/chrismeh/scalemate
module
0.0.0-20240627081407-1fd1ca170255
Repository: https://github.com/chrismeh/scalemate.git
Documentation: pkg.go.dev

# README

scalemate

A tool for generating images for guitar/bass scales.

Usage (CLI)

$ make build
go build -o=./bin/scalemate-cli ./cmd/cli
go build -o=./bin/scalemate-web ./cmd/web

$ bin/scalemate-cli --help
Usage of bin/scalemate-cli:
  -chord string
        Chord you want to highlight (e. g. Amin7)
  -file string
        Filename for saving the PNG (default "scale.png")
  -frets uint
        Number of frets on the neck (default 12)
  -scale string
        Scale you want to generate (default "A minor")
  -tuning string
        Guitar/bass tuning, notes separated by a whitespace (default "E A D G B E")

Example: Draw the A major scale in Drop-C tuning:

$ bin/scalemate-cli -tuning="C G C F A D" -scale="A major" -file="a-major-in-drop-c.png"

This will generate the following image:

a-major-in-drop-c

Usage (Web)

$ make build
go build -o=./bin/scalemate-cli ./cmd/cli
go build -o=./bin/scalemate-web ./cmd/web

$ bin/scalemate-web --help
Usage of bin/scalemate-web:
  -addr string
        TCP address for the server to listen on (default ":8080")

Example: Start scalemate server at port 5000:

$ bin/scalemate-web -addr=":5000"
INFO    2021/09/19 17:15:02 starting application at port :5000

Example: Start scalemate server at port 5000, using Docker:

$ docker build -t scalemate:latest
$ docker run --rm -e ADDR=":5000" -p "5000:5000" scalemate:latest
INFO    2021/09/19 17:15:02 starting application at port :5000

# Packages

No description provided by the author
No description provided by the author