Class: Stave::Theory::ChordType

Inherits:
Core::DegreeCollection show all
Defined in:
lib/stave/theory/chord_type.rb

Defined Under Namespace

Classes: Set

Instance Attribute Summary

Attributes inherited from Core::Lookup

#variant

Instance Method Summary collapse

Methods inherited from Core::DegreeCollection

class_key, #count, #degrees, #intervals, #relative_rotate, #rotate, #steps, #uniq

Methods inherited from Core::Lookup

#==, each_key, find_by, #initialize, keys, string_keys, variant, variant?, variant_lookup, variants, where, with_options

Constructor Details

This class inherits a constructor from Stave::Core::Lookup

Instance Method Details

#inversion_typesObject



65
66
67
# File 'lib/stave/theory/chord_type.rb', line 65

def inversion_types
  ChordInversionType.where(chord_type: self)
end

#note_countObject



61
62
63
# File 'lib/stave/theory/chord_type.rb', line 61

def note_count
  set.note_count
end