Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 785 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 785 Bytes

go-music-scales

Go library that will provide the notes of a musical scale.

Has a (very basic) CLI component.

Library: scales

package main

import (
  scales "github.com/ggiill/go-music-scales"
)

func main() {
	s := scales.NewScale("Eb", "Minor")
	s.Identify()
}

CLI

Provides options for:

Root Note and Mode -> Notes of scale

$ go run cmd/go-music-scales/main.go scale -root A -mode Minor
I am an A Minor scale and my notes are A, B, C, D, E, F, G, A

Notes of scale -> All scales (Root Notes and Modes)

$ go run cmd/go-music-scales/main.go notes --list A B C D E F G
These scales are comprised of the notes [A B C D E F G]: A Aeolian, A Minor, B Locrian, C Ionian, C Major, D Dorian, E Phrygian, F Lydian, G Myxolydian