Class: Coltrane::Theory::ProgressionSet

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/coltrane/theory/progression_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*progressions) ⇒ ProgressionSet

Returns a new instance of ProgressionSet.



13
14
15
# File 'lib/coltrane/theory/progression_set.rb', line 13

def initialize(*progressions)
  @progressions = progressions.sort_by(&:notes_out_size)
end

Instance Attribute Details

#progressionsObject

Returns the value of attribute progressions.



11
12
13
# File 'lib/coltrane/theory/progression_set.rb', line 11

def progressions
  @progressions
end