Skip to content

A small Python script that can display scales and chords for stringed instruments

Notifications You must be signed in to change notification settings

kevinadi/scales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

scales.py

A small Python script that can display scales and chords for stringed instruments.

Available scales and chords

Scales Modes Chords
Chromatic Ionian Major
Major Dorian Minor
Minor Natural Phrygian 7th
Minor Harmonic Lydian Major 7th
Major Pentatonic Mixolydian Minor 7th
Minor Pentatonic Aeolian 6th
Blues Pentatonic Locrian Augmented
Diminished

Usage

scales.py [-h] [--chord] [--tuning TUNING] key scale

positional arguments:
  key                   The key
  scale                 The scale

optional arguments:
  -h, --help            show this help message and exit
  --chord, -c           Display chord
  --tuning TUNING, -t TUNING
                        String tuning

Examples

C Major Scale on a guitar

$ ./scales.py c major

-------------
C Major Scale
-------------

Scale notes:  C  -  D  -  E  -  F  -  G  -  A  -  B
              1  -  2  -  3  -  4  -  5  -  6  -  7

Intervals: 1.0 - 1.0 - 0.5 - 1.0 - 1.0 - 1.0 - 0.5

Tuning: E - A - D - G - B - E

E ||--F--|-----|--G--|-----|--A--|-----|--B--|-(C)-|-----|--D--|-----|--E--|--F--|-----|--G--|
B ||-(C)-|-----|--D--|-----|--E--|--F--|-----|--G--|-----|--A--|-----|--B--|-(C)-|-----|--D--|
G ||-----|--A--|-----|--B--|-(C)-|-----|--D--|-----|--E--|--F--|-----|--G--|-----|--A--|-----|
D ||-----|--E--|--F--|-----|--G--|-----|--A--|-----|--B--|-(C)-|-----|--D--|-----|--E--|--F--|
A ||-----|--B--|-(C)-|-----|--D--|-----|--E--|--F--|-----|--G--|-----|--A--|-----|--B--|-(C)-|
E ||--F--|-----|--G--|-----|--A--|-----|--B--|-(C)-|-----|--D--|-----|--E--|--F--|-----|--G--|

                  3           5           7           9                o o                15                 

C Major scale on a guitar with drop-D tuning

$ ./scales.py c major --tuning DADGBE

-------------
C Major Scale
-------------

Scale notes:  C  -  D  -  E  -  F  -  G  -  A  -  B
              1  -  2  -  3  -  4  -  5  -  6  -  7

Intervals: 1.0 - 1.0 - 0.5 - 1.0 - 1.0 - 1.0 - 0.5

Tuning: D - A - D - G - B - E

E ||--F--|-----|--G--|-----|--A--|-----|--B--|-(C)-|-----|--D--|-----|--E--|--F--|-----|--G--|
B ||-(C)-|-----|--D--|-----|--E--|--F--|-----|--G--|-----|--A--|-----|--B--|-(C)-|-----|--D--|
G ||-----|--A--|-----|--B--|-(C)-|-----|--D--|-----|--E--|--F--|-----|--G--|-----|--A--|-----|
D ||-----|--E--|--F--|-----|--G--|-----|--A--|-----|--B--|-(C)-|-----|--D--|-----|--E--|--F--|
A ||-----|--B--|-(C)-|-----|--D--|-----|--E--|--F--|-----|--G--|-----|--A--|-----|--B--|-(C)-|
D ||-----|--E--|--F--|-----|--G--|-----|--A--|-----|--B--|-(C)-|-----|--D--|-----|--E--|--F--|

                  3           5           7           9                o o                15

C Major chord on a guitar

$ ./scales.py c major --chord

-------------
C Major Chord
-------------

Scale notes:  C  -  E  -  G
              1  -  3  -  5

Intervals: 2.0 - 1.5 - 2.5

Tuning: E - A - D - G - B - E

E ||-----|-----|--G--|-----|-----|-----|-----|-(C)-|-----|-----|-----|--E--|-----|-----|--G--|
  ||-(C)-|-----|-----|-----|--E--|-----|-----|--G--|-----|-----|-----|-----|-(C)-|-----|-----|
G ||-----|-----|-----|-----|-(C)-|-----|-----|-----|--E--|-----|-----|--G--|-----|-----|-----|
  ||-----|--E--|-----|-----|--G--|-----|-----|-----|-----|-(C)-|-----|-----|-----|--E--|-----|
  ||-----|-----|-(C)-|-----|-----|-----|--E--|-----|-----|--G--|-----|-----|-----|-----|-(C)-|
E ||-----|-----|--G--|-----|-----|-----|-----|-(C)-|-----|-----|-----|--E--|-----|-----|--G--|

                  3           5           7           9                o o                15

G Major chords on a guitar with open G tuning

$ ./scales.py g major --tuning DGDGBD --chord

-------------
G Major Chord
-------------

Scale notes:  G  -  B  -  D
              1  -  3  -  5

Intervals: 2.0 - 1.5 - 2.5

Tuning: D - G - D - G - B - D

D ||-----|-----|-----|-----|-(G)-|-----|-----|-----|--B--|-----|-----|--D--|-----|-----|-----|
B ||-----|-----|--D--|-----|-----|-----|-----|-(G)-|-----|-----|-----|--B--|-----|-----|--D--|
G ||-----|-----|-----|--B--|-----|-----|--D--|-----|-----|-----|-----|-(G)-|-----|-----|-----|
D ||-----|-----|-----|-----|-(G)-|-----|-----|-----|--B--|-----|-----|--D--|-----|-----|-----|
G ||-----|-----|-----|--B--|-----|-----|--D--|-----|-----|-----|-----|-(G)-|-----|-----|-----|
D ||-----|-----|-----|-----|-(G)-|-----|-----|-----|--B--|-----|-----|--D--|-----|-----|-----|

                  3           5           7           9                o o                15

C Major scale on a ukulele

$ ./scales.py c major --tuning GCEA

-------------
C Major Scale
-------------

Scale notes:  C  -  D  -  E  -  F  -  G  -  A  -  B
              1  -  2  -  3  -  4  -  5  -  6  -  7

Intervals: 1.0 - 1.0 - 0.5 - 1.0 - 1.0 - 1.0 - 0.5

Tuning: G - C - E - A

A ||-----|--B--|-(C)-|-----|--D--|-----|--E--|--F--|-----|--G--|-----|--A--|-----|--B--|-(C)-|
E ||--F--|-----|--G--|-----|--A--|-----|--B--|-(C)-|-----|--D--|-----|--E--|--F--|-----|--G--|
C ||-----|--D--|-----|--E--|--F--|-----|--G--|-----|--A--|-----|--B--|-(C)-|-----|--D--|-----|
G ||-----|--A--|-----|--B--|-(C)-|-----|--D--|-----|--E--|--F--|-----|--G--|-----|--A--|-----|

                  3           5           7           9                o o                15

About

A small Python script that can display scales and chords for stringed instruments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy