Class: Coltrane::UI::Views::FindChordsInScale

Inherits:
ShowScale show all
Defined in:
lib/coltrane/ui/views/find_chords_in_scale.rb

Instance Method Summary collapse

Methods inherited from BaseView

render

Instance Method Details

#renderObject



25
26
27
28
29
30
31
32
# File 'lib/coltrane/ui/views/find_chords_in_scale.rb', line 25

def render
  scale = Commands::GetClassicScale.run(*params.values_at(:scale, :tone))
  chords = Commands::GetChordsFromScale.run(
    scale,
    *params.values_at(:chord_type, :chord_size)
  )
  Commands::GetRepresentationChords.run(params[:chord_representation], chords)
end