Module: OutroRails::ChordsHelper
- Defined in:
- app/helpers/outro_rails/chords_helper.rb
Instance Method Summary collapse
- #chord_added_tone_options ⇒ Object
- #chord_alteration_options ⇒ Object
- #chord_extension_options ⇒ Object
- #chord_quality_options ⇒ Object
- #chord_root_options ⇒ Object
Instance Method Details
#chord_added_tone_options ⇒ Object
26 27 28 |
# File 'app/helpers/outro_rails/chords_helper.rb', line 26 def Theory::ChordVocabulary::ADDED_TONE_INTERVALS.keys.map(&:to_s) end |
#chord_alteration_options ⇒ Object
22 23 24 |
# File 'app/helpers/outro_rails/chords_helper.rb', line 22 def Theory::ChordVocabulary::ALTERATIONS.keys.map(&:to_s) end |
#chord_extension_options ⇒ Object
15 16 17 18 19 20 |
# File 'app/helpers/outro_rails/chords_helper.rb', line 15 def [ [ "(none)", "none" ] ] + Theory::ChordVocabulary::EXTENSIONS.keys.map do |extension| [ extension.to_s, extension ] end end |
#chord_quality_options ⇒ Object
9 10 11 12 13 |
# File 'app/helpers/outro_rails/chords_helper.rb', line 9 def Theory::ChordVocabulary::QUALITIES.keys.map do |quality| [ quality.to_s.humanize, quality ] end end |
#chord_root_options ⇒ Object
5 6 7 |
# File 'app/helpers/outro_rails/chords_helper.rb', line 5 def Theory::NoteName::CANONICAL_ROOTS end |