Class: Coltrane::Theory::Key
- Inherits:
-
DiatonicScale
- Object
- Scale
- DiatonicScale
- Coltrane::Theory::Key
- Defined in:
- lib/coltrane/theory/key.rb
Constant Summary collapse
- KEY_REGEX =
/([A-G][#b]?)([mM]?)/
Constants included from ClassicScales
Instance Attribute Summary
Attributes inherited from Scale
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(notation) ⇒ Key
constructor
A new instance of Key.
Methods inherited from DiatonicScale
#major?, #minor?, #name, #relative, #relative_major, #relative_minor
Methods inherited from Scale
#&, #==, #chords, #degree, #degree_of_chord, #degree_of_note, #degrees, #id, #include_notes?, #interval, #name, #notes, #pentads, #pretty_name, #progression, #sevenths, #size, #tertians, #triads
Methods included from ClassicScales
#fetch, #having_chords, #having_notes, #known_scales, #major, #minor, #standard_scales
Constructor Details
Class Method Details
.[](notation) ⇒ Object
13 14 15 |
# File 'lib/coltrane/theory/key.rb', line 13 def self.[](notation) new(notation) end |