<reponame>erhant/musical-plots<filename>src/scales.py
from util import to_interval

Chromatic               = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
Wholetone               = [2, 2, 2, 2, 2]

Major                   = [2, 2, 1, 2, 2, 2]
Minor                   = [2, 1, 2, 2, 1, 2]
Augmented               = [3, 1, 3, 1, 3, 1]
Diminished              = [2, 1, 2, 1, 2, 1, 2, 1]

Harmonic_Minor          = [2, 1, 2, 2, 1, 3, 1]
Harmonic_Minor_Dom7     = [3, 4, 4, 1]
Melodic_Minor           = [2, 1, 2, 2, 2, 2, 1]
Melodic_Minor_Dom7      = [3, 2, 4, 3]

Minor_Pentatonic        = [3, 2, 2, 3]
Major_Pentatonic        = [2, 2, 3, 2]
New_Pentatonic          = [2, 2, 2, 3]
Pentatonic_Japanese     = [1, 4, 2, 1]
Pentatonic_Balinese     = [1, 4, 1, 2]
Pentatonic_Pelog        = [1, 2, 4, 3]
Hemitonic_Pentatonic_3  = [2, 1, 4, 4]
Pentatonic_Variation    = [4, 3, 2, 1]

Blues                   = [3, 2, 1, 1, 3]
Esoteric_6              = [3, 4, 2, 3]
Enigmatic               = [1, 3, 2, 2, 2, 1, 1]
Byzantine               = [1, 3, 1, 2, 1, 3, 1] 
Arabian                 = [2, 2, 1, 1, 2, 2, 2]
Arabic                  = [1, 3, 1, 2, 1, 3, 1]
Persian                 = [1, 3, 1, 2, 3, 1, 1]
Spanish                 = [1, 2, 1, 1, 1, 2, 2, 2]
Hungarian_Gypsy         = [2, 1, 3, 1, 1, 2, 2]
Hungarian_Minor         = [2, 1, 3, 1, 1, 3, 1]
Native_American         = [2, 2, 2, 3, 2, 1]
Major_Bebop             = [2, 2, 1, 2, 1, 1, 2, 1]
Hirajoshi               = [2, 1, 4, 1, 4]
Insen                   = [1, 4, 2, 3, 2]
Yo                      = [2, 3, 2, 2, 3]
Acoustic                = [2, 2, 2, 1, 2, 1, 2]
Jenkees                 = [2, 1, 2, 2, 3, 2]
Neapolitan_Minor        = [1, 2, 2, 2, 1, 3, 1]
Prometheus              = [2, 2, 2, 3, 1, 2]
 
Major_Ionian            = [2, 2, 1, 2, 2, 2, 1]
Major_Dorian            = [2, 1, 2, 2, 2, 1, 2]
Major_Phrygian          = [1, 2, 2, 2, 1, 2, 2]
Major_Lydian            = [2, 2, 2, 1, 2, 2, 1]
Major_Mixolydian        = [2, 2, 1, 2, 2, 1, 2]
Major_Aeolian           = [2, 1, 2, 2, 1, 2, 2] # le mineur boi
Major_Locrian           = [1, 2, 2, 1, 2, 2, 2] 

from util import to_interval

Chromatic               = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
Wholetone               = [2, 2, 2, 2, 2]

Major                   = [2, 2, 1, 2, 2, 2]
Minor                   = [2, 1, 2, 2, 1, 2]
Augmented               = [3, 1, 3, 1, 3, 1]
Diminished              = [2, 1, 2, 1, 2, 1, 2, 1]

Harmonic_Minor          = [2, 1, 2, 2, 1, 3, 1]
Harmonic_Minor_Dom7     = [3, 4, 4, 1]
Melodic_Minor           = [2, 1, 2, 2, 2, 2, 1]
Melodic_Minor_Dom7      = [3, 2, 4, 3]

Minor_Pentatonic        = [3, 2, 2, 3]
Major_Pentatonic        = [2, 2, 3, 2]
New_Pentatonic          = [2, 2, 2, 3]
Pentatonic_Japanese     = [1, 4, 2, 1]
Pentatonic_Balinese     = [1, 4, 1, 2]
Pentatonic_Pelog        = [1, 2, 4, 3]
Hemitonic_Pentatonic_3  = [2, 1, 4, 4]
Pentatonic_Variation    = [4, 3, 2, 1]

Blues                   = [3, 2, 1, 1, 3]
Esoteric_6              = [3, 4, 2, 3]
Enigmatic               = [1, 3, 2, 2, 2, 1, 1]
Byzantine               = [1, 3, 1, 2, 1, 3, 1] 
Arabian                 = [2, 2, 1, 1, 2, 2, 2]
Arabic                  = [1, 3, 1, 2, 1, 3, 1]
Persian                 = [1, 3, 1, 2, 3, 1, 1]
Spanish                 = [1, 2, 1, 1, 1, 2, 2, 2]
Hungarian_Gypsy         = [2, 1, 3, 1, 1, 2, 2]
Hungarian_Minor         = [2, 1, 3, 1, 1, 3, 1]
Native_American         = [2, 2, 2, 3, 2, 1]
Major_Bebop             = [2, 2, 1, 2, 1, 1, 2, 1]
Hirajoshi               = [2, 1, 4, 1, 4]
Insen                   = [1, 4, 2, 3, 2]
Yo                      = [2, 3, 2, 2, 3]
Acoustic                = [2, 2, 2, 1, 2, 1, 2]
Jenkees                 = [2, 1, 2, 2, 3, 2]
Neapolitan_Minor        = [1, 2, 2, 2, 1, 3, 1]
Prometheus              = [2, 2, 2, 3, 1, 2]
 
Major_Ionian            = [2, 2, 1, 2, 2, 2, 1]
Major_Dorian            = [2, 1, 2, 2, 2, 1, 2]
Major_Phrygian          = [1, 2, 2, 2, 1, 2, 2]
Major_Lydian            = [2, 2, 2, 1, 2, 2, 1]
Major_Mixolydian        = [2, 2, 1, 2, 2, 1, 2]
Major_Aeolian           = [2, 1, 2, 2, 1, 2, 2] # le mineur boi
Major_Locrian           = [1, 2, 2, 1, 2, 2, 2]
# le mineur boi