Class: Stave::Theory::ChordInversionType
Instance Attribute Summary
Attributes inherited from Core::Lookup
#variant
Instance Method Summary
collapse
class_key, #count, #intervals, #relative_rotate, #rotate, #steps, #uniq
#==, each_key, find_by, #initialize, keys, string_keys, variant, variant?, variant_lookup, variants, where, with_options
Instance Method Details
#degrees ⇒ Object
23
24
25
|
# File 'lib/stave/theory/chord_inversion_type.rb', line 23
def degrees
chord_type.relative_rotate(position).uniq(&:variant)
end
|
#position ⇒ Object
19
|
# File 'lib/stave/theory/chord_inversion_type.rb', line 19
def position = inversion + 1
|
#root_position ⇒ Object
21
|
# File 'lib/stave/theory/chord_inversion_type.rb', line 21
def root_position = degrees.count - inversion
|
#symbol ⇒ Object
27
28
29
|
# File 'lib/stave/theory/chord_inversion_type.rb', line 27
def symbol
"(#{'i' * inversion})"
end
|