scalemate

module
v0.0.0-...-09c32ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2023 License: GPL-3.0

README

scalemate

A tool for generating images for guitar/bass scales.

This app is running at scalemate.cmeh.dev.

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

Directories

Path Synopsis
cmd
cli
web
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL