A CLI tool to show the notes of a scale on the fretboard.
Clone the repo:
$ git clone https://github.com/angelsolaorbaiceta/guitarscales.git
Install the binary:
$ make install
You should now have the guitars
binary in your path:
$ which guitars
You can get the tool's help menu by passing it the --help
flag:
$ guitars --help
This prints:
.__ __
____ __ __|__|/ |______ _______ ______
/ ___\| | \ \ __\__ \\_ __ \/ ___/
/ /_/ > | / || | / __ \| | \/\___ \
\___ /|____/|__||__| (____ /__| /____ >
/_____/ \/ \/
Guitar Scales.
Show the positions of a scale at a given root note on the guitar.
USAGE:
$ guitars [options] <scale> <root>
Where <scale> is one of:
- major/ioninan The major scale or ionian mode
- nminor/aeolian The natural minor scale or aeolian mode
- hminor The harmonic minor scale
- mminor The melodic minor scale
- phrygian/phr The phrygian mode
- lydian/lyd The lydian mode
- mixolydian/myx The mixolidian mode
- locrian/loc The locrian mode
- minpenta The minor pentatonic scale
- majpenta The major pentatonic scale
And <root> can be any root note: A, Asharp, Bflat, B, C, Csharp ...
Note that only the first two letters of the note need to be defined for
sharp or flat notes (e.g. As, Bf).
OPTIONS:
--help Prints the help menu and exits
--frets Then number of frets to show in the diagram (default 17)
EXAMPLES:
$ guitars major A
$ guitars ioninan A
Prints the positions of the Major/Ionian scale with the root in A.
$ guitars --frets 21 phr fsharp
Prints the positions of the Phrygian mode in a fretboard with 21 frets.
AUTHOR:
Written by Angel Sola Orbaiceta <https://github.com/angelsolaorbaiceta>.
Print the diagram for the minor pentatonic scale in the root of A:
$ guitars minpenta A
The result is:
The Minor Pentatonic Scale (root=A)
Notes: A C D E G
Intervals: P1 m3 P4 P5 m7
E|---|---|-O-|---|-R-|---|---|-O-|---|-O-|---|-O-|---|---|-O-|---|-R-|
B|-O-|---|-O-|---|-O-|---|---|-O-|---|-R-|---|---|-O-|---|-O-|---|-O-|
G|---|-R-|---|---|-O-|---|-O-|---|-O-|---|---|-O-|---|-R-|---|---|-O-|
D|---|-O-|---|---|-O-|---|-R-|---|---|-O-|---|-O-|---|-O-|---|---|-O-|
A|---|---|-O-|---|-O-|---|-O-|---|---|-O-|---|-R-|---|---|-O-|---|-O-|
E|---|---|-O-|---|-R-|---|---|-O-|---|-O-|---|-O-|---|---|-O-|---|-R-|
1 | | 3 | | 5 | | 7 | | 9 | | |12 | | |15 | |17 |
If the default 17 frets isn't enough because you have a fancy PRS or Ibanez guitar with 24 frets, you can use the --frets
flag to print more frets:
guitars --frets 24 minpenta A
Result:
The Minor Pentatonic Scale (root=A)
Notes: A C D E G
Intervals: P1 m3 P4 P5 m7
E|---|---|-O-|---|-R-|---|---|-O-|---|-O-|---|-O-|---|---|-O-|---|-R-|---|---|-O-|---|-O-|---|-O-|
B|-O-|---|-O-|---|-O-|---|---|-O-|---|-R-|---|---|-O-|---|-O-|---|-O-|---|---|-O-|---|-R-|---|---|
G|---|-R-|---|---|-O-|---|-O-|---|-O-|---|---|-O-|---|-R-|---|---|-O-|---|-O-|---|-O-|---|---|-O-|
D|---|-O-|---|---|-O-|---|-R-|---|---|-O-|---|-O-|---|-O-|---|---|-O-|---|-R-|---|---|-O-|---|-O-|
A|---|---|-O-|---|-O-|---|-O-|---|---|-O-|---|-R-|---|---|-O-|---|-O-|---|-O-|---|---|-O-|---|-R-|
E|---|---|-O-|---|-R-|---|---|-O-|---|-O-|---|-O-|---|---|-O-|---|-R-|---|---|-O-|---|-O-|---|-O-|
1 | | 3 | | 5 | | 7 | | 9 | | |12 | | |15 | |17 | |19 | |21 | | |24 |