Class: MusicTheory::Modes

Inherits:
Object
  • Object
show all
Defined in:
lib/music_theory/modes.rb

Constant Summary collapse

S =
1
T =
2
I =
[T, T, S, T, T, T, S]
II =
I.rotate
III =
I.rotate(2)
IV =
I.rotate(3)
V =
I.rotate(4)
VI =
I.rotate(5)
VII =
I.rotate(6)
CHROMATIC =
[S,S,S,S,S,S,S,S,S,S,S,S]

Class Method Summary collapse

Class Method Details

.aeolianObject



32
# File 'lib/music_theory/modes.rb', line 32

def self.aeolian; VI; end

.chromaticObject



39
# File 'lib/music_theory/modes.rb', line 39

def self.chromatic; CHROMATIC; end

.dorianObject



20
# File 'lib/music_theory/modes.rb', line 20

def self.dorian; II; end

.ionianObject

Map the music theory names as class methods



16
# File 'lib/music_theory/modes.rb', line 16

def self.ionian; I; end

.locrianObject



36
# File 'lib/music_theory/modes.rb', line 36

def self.locrian; VII; end

.lydianObject



26
# File 'lib/music_theory/modes.rb', line 26

def self.lydian; IV; end

.mixolydianObject



29
# File 'lib/music_theory/modes.rb', line 29

def self.mixolydian; V; end

.phrygianObject



23
# File 'lib/music_theory/modes.rb', line 23

def self.phrygian; III; end