Module: OutroRails::ChordsHelper

Defined in:
app/helpers/outro_rails/chords_helper.rb

Instance Method Summary collapse

Instance Method Details

#chord_added_tone_optionsObject



26
27
28
# File 'app/helpers/outro_rails/chords_helper.rb', line 26

def chord_added_tone_options
  Theory::ChordVocabulary::ADDED_TONE_INTERVALS.keys.map(&:to_s)
end

#chord_alteration_optionsObject



22
23
24
# File 'app/helpers/outro_rails/chords_helper.rb', line 22

def chord_alteration_options
  Theory::ChordVocabulary::ALTERATIONS.keys.map(&:to_s)
end

#chord_extension_optionsObject



15
16
17
18
19
20
# File 'app/helpers/outro_rails/chords_helper.rb', line 15

def chord_extension_options
  [ [ "(none)", "none" ] ] +
    Theory::ChordVocabulary::EXTENSIONS.keys.map do |extension|
      [ extension.to_s, extension ]
    end
end

#chord_quality_optionsObject



9
10
11
12
13
# File 'app/helpers/outro_rails/chords_helper.rb', line 9

def chord_quality_options
  Theory::ChordVocabulary::QUALITIES.keys.map do |quality|
    [ quality.to_s.humanize, quality ]
  end
end

#chord_root_optionsObject



5
6
7
# File 'app/helpers/outro_rails/chords_helper.rb', line 5

def chord_root_options
  Theory::NoteName::CANONICAL_ROOTS
end