Class: Musa::Scales::MinorScaleKind

Inherits:
ScaleKind
  • Object
show all
Defined in:
lib/musa-dsl/music/equally-tempered-12-tone-scale-system.rb

Constant Summary collapse

@@pitches =
{ functions: %i[i _1 tonic],
pitch: 0 },
             { functions: %i[ii _2 supertonic],
pitch: 2 },
             { functions: %i[iii _3 mediant relative relative_major],
pitch: 3 },
             { functions: %i[iv _4 subdominant],
pitch: 5 },
             { functions: %i[v _5 dominant],
pitch: 7 },
             { functions: %i[vi _6 submediant],
pitch: 8 },
             { functions: %i[vii _7],
pitch: 10 },
             { functions: %i[viii _8],
pitch: 12 },
             { functions: %i[ix _9],
pitch: 12 + 2 },
             { functions: %i[x _10],
pitch: 12 + 3 },
             { functions: %i[xi _11],
pitch: 12 + 5 },
             { functions: %i[xii _12],
pitch: 12 + 7 },
             { functions: %i[xiii _13],
pitch: 12 + 8 }].freeze

Instance Attribute Summary

Attributes inherited from ScaleKind

#tuning

Class Method Summary collapse

Methods inherited from ScaleKind

#==, #[], #absolut, #chromatic?, chromatic?, grade_of_function, #grades, grades_functions, #id, #initialize, #inspect, #pitches

Constructor Details

This class inherits a constructor from Musa::Scales::ScaleKind

Class Method Details

.gradesObject



150
151
152
# File 'lib/musa-dsl/music/equally-tempered-12-tone-scale-system.rb', line 150

def grades
  7
end

.idObject



154
155
156
# File 'lib/musa-dsl/music/equally-tempered-12-tone-scale-system.rb', line 154

def id
  :minor
end

.pitchesObject



146
147
148
# File 'lib/musa-dsl/music/equally-tempered-12-tone-scale-system.rb', line 146

def pitches
  @@pitches
end