Class: Musa::Scales::MinorHarmonicScaleKind

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 leading],
pitch: 11 },
             { 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?, #default_root, 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



196
197
198
# File 'lib/musa-dsl/music/equally-tempered-12-tone-scale-system.rb', line 196

def grades
  7
end

.idObject



200
201
202
# File 'lib/musa-dsl/music/equally-tempered-12-tone-scale-system.rb', line 200

def id
  :minor_harmonic
end

.pitchesObject



192
193
194
# File 'lib/musa-dsl/music/equally-tempered-12-tone-scale-system.rb', line 192

def pitches
  @@pitches
end