Class: Stave::Core::ScaleHarmoniser
- Inherits:
-
Object
- Object
- Stave::Core::ScaleHarmoniser
- Defined in:
- lib/stave/core/scale_harmoniser.rb
Instance Attribute Summary collapse
-
#chord_set ⇒ Object
readonly
Returns the value of attribute chord_set.
-
#scale_type ⇒ Object
readonly
Returns the value of attribute scale_type.
Instance Method Summary collapse
- #harmonise! ⇒ Object
-
#initialize(scale_type:, chord_set:) ⇒ ScaleHarmoniser
constructor
A new instance of ScaleHarmoniser.
Constructor Details
#initialize(scale_type:, chord_set:) ⇒ ScaleHarmoniser
Returns a new instance of ScaleHarmoniser.
6 7 8 9 |
# File 'lib/stave/core/scale_harmoniser.rb', line 6 def initialize(scale_type:, chord_set:) @scale_type = scale_type @chord_set = chord_set end |
Instance Attribute Details
#chord_set ⇒ Object (readonly)
Returns the value of attribute chord_set.
4 5 6 |
# File 'lib/stave/core/scale_harmoniser.rb', line 4 def chord_set @chord_set end |
#scale_type ⇒ Object (readonly)
Returns the value of attribute scale_type.
4 5 6 |
# File 'lib/stave/core/scale_harmoniser.rb', line 4 def scale_type @scale_type end |