Class: Coltrane::Commands::GetChordsFromProgression

Inherits:
Command
  • Object
show all
Defined in:
lib/coltrane/commands/get_chords_from_progression.rb

Instance Attribute Summary

Attributes inherited from Command

#error

Instance Method Summary collapse

Methods inherited from Command

run

Instance Method Details

#run(notation, key) ⇒ Object



4
5
6
# File 'lib/coltrane/commands/get_chords_from_progression.rb', line 4

def run(notation, key)
  Theory::Progression.new(notation, key: key).chords
end