Module: Util::Tuning
- Included in:
- Chordy
- Defined in:
- lib/chordy/util/tuning.rb
Instance Method Summary collapse
- #is_tuning?(tuning) ⇒ Boolean
- #tuning_6_a ⇒ Object (also: #tuning_a)
- #tuning_6_b ⇒ Object (also: #tuning_b)
- #tuning_6_c ⇒ Object (also: #tuning_c)
- #tuning_6_d ⇒ Object (also: #tuning_d)
- #tuning_6_drop_a ⇒ Object (also: #tuning_drop_a)
- #tuning_6_drop_c ⇒ Object (also: #tuning_drop_c)
- #tuning_6_drop_d ⇒ Object (also: #tuning_drop_d)
- #tuning_6_standard ⇒ Object (also: #tuning_standard)
- #tuning_7_a ⇒ Object
- #tuning_7_a_sharp ⇒ Object (also: #tuning_7_a!)
- #tuning_7_c ⇒ Object
- #tuning_7_d ⇒ Object
- #tuning_7_drop_a ⇒ Object
- #tuning_7_drop_g ⇒ Object
- #tuning_7_drop_g_sharp ⇒ Object (also: #tuning_7_drop_g!)
- #tuning_7_standard ⇒ Object (also: #tuning_7)
- #tuning_8_a ⇒ Object
- #tuning_8_drop_d_sharp ⇒ Object (also: #tuning_8_drop_d!)
- #tuning_8_drop_e ⇒ Object
- #tuning_8_e ⇒ Object
- #tuning_8_f ⇒ Object
- #tuning_8_standard ⇒ Object
Instance Method Details
#is_tuning?(tuning) ⇒ Boolean
5 6 7 8 |
# File 'lib/chordy/util/tuning.rb', line 5 def is_tuning? tuning Tuning.instance_methods.include? tuning.to_s true end |
#tuning_6_a ⇒ Object Also known as: tuning_a
14 15 16 |
# File 'lib/chordy/util/tuning.rb', line 14 def tuning_6_a ["a", "d", "g", "c", "e", "a"] end |
#tuning_6_b ⇒ Object Also known as: tuning_b
18 19 20 |
# File 'lib/chordy/util/tuning.rb', line 18 def tuning_6_b ["b", "e", "a", "d", "f#", "b"] end |
#tuning_6_c ⇒ Object Also known as: tuning_c
22 23 24 |
# File 'lib/chordy/util/tuning.rb', line 22 def tuning_6_c ["c", "f", "a#", "d#", "g", "c"] end |
#tuning_6_d ⇒ Object Also known as: tuning_d
26 27 28 |
# File 'lib/chordy/util/tuning.rb', line 26 def tuning_6_d ["d", "g", "c", "f", "a", "d"] end |
#tuning_6_drop_a ⇒ Object Also known as: tuning_drop_a
30 31 32 |
# File 'lib/chordy/util/tuning.rb', line 30 def tuning_6_drop_a ["a", "e", "a", "d", "f#", "b"] end |
#tuning_6_drop_c ⇒ Object Also known as: tuning_drop_c
34 35 36 |
# File 'lib/chordy/util/tuning.rb', line 34 def tuning_6_drop_c ["c", "g", "c", "f", "a", "d"] end |
#tuning_6_drop_d ⇒ Object Also known as: tuning_drop_d
38 39 40 |
# File 'lib/chordy/util/tuning.rb', line 38 def tuning_6_drop_d ["d", "a", "d", "g", "b", "e"] end |
#tuning_6_standard ⇒ Object Also known as: tuning_standard
10 11 12 |
# File 'lib/chordy/util/tuning.rb', line 10 def tuning_6_standard ["e", "a", "d", "g", "b", "e"] end |
#tuning_7_a ⇒ Object
46 47 48 |
# File 'lib/chordy/util/tuning.rb', line 46 def tuning_7_a ["a", "d", "g", "c", "f", "a", "d"] end |
#tuning_7_a_sharp ⇒ Object Also known as: tuning_7_a!
50 51 52 |
# File 'lib/chordy/util/tuning.rb', line 50 def tuning_7_a_sharp ["a#", "d#", "g#", "c#", "f#", "a#", "d#"] end |
#tuning_7_c ⇒ Object
54 55 56 |
# File 'lib/chordy/util/tuning.rb', line 54 def tuning_7_c ["c", "f", "a#", "d#", "g#", "c", "f"] end |
#tuning_7_d ⇒ Object
58 59 60 |
# File 'lib/chordy/util/tuning.rb', line 58 def tuning_7_d ["d", "g", "c", "f", "a#", "d", "g"] end |
#tuning_7_drop_a ⇒ Object
62 63 64 |
# File 'lib/chordy/util/tuning.rb', line 62 def tuning_7_drop_a ["a", "e", "a", "d", "f#", "b", "e"] end |
#tuning_7_drop_g ⇒ Object
66 67 68 |
# File 'lib/chordy/util/tuning.rb', line 66 def tuning_7_drop_g ["g", "d", "g", "c", "f", "a", "d"] end |
#tuning_7_drop_g_sharp ⇒ Object Also known as: tuning_7_drop_g!
70 71 72 |
# File 'lib/chordy/util/tuning.rb', line 70 def tuning_7_drop_g_sharp ["g#", "d#", "g#", "c#", "f#", "a#", "d#"] end |
#tuning_7_standard ⇒ Object Also known as: tuning_7
42 43 44 |
# File 'lib/chordy/util/tuning.rb', line 42 def tuning_7_standard ["b", "e", "a", "d", "g", "b", "e"] end |
#tuning_8_a ⇒ Object
78 79 80 |
# File 'lib/chordy/util/tuning.rb', line 78 def tuning_8_a ["a", "d", "g", "c", "f", "a", "d", "g"] end |
#tuning_8_drop_d_sharp ⇒ Object Also known as: tuning_8_drop_d!
90 91 92 |
# File 'lib/chordy/util/tuning.rb', line 90 def tuning_8_drop_d_sharp ["eb", "bb", "eb", "ab", "db", "gb", "bb", "eb"] end |
#tuning_8_drop_e ⇒ Object
94 95 96 |
# File 'lib/chordy/util/tuning.rb', line 94 def tuning_8_drop_e ["e", "b", "e", "a", "d", "g", "b", "e"] end |
#tuning_8_e ⇒ Object
82 83 84 |
# File 'lib/chordy/util/tuning.rb', line 82 def tuning_8_e ["e", "a", "d", "g", "c", "f", "a", "d"] end |
#tuning_8_f ⇒ Object
86 87 88 |
# File 'lib/chordy/util/tuning.rb', line 86 def tuning_8_f ["fb", "bb", "eb", "ab", "db", "gb", "bb", "eb"] end |
#tuning_8_standard ⇒ Object
74 75 76 |
# File 'lib/chordy/util/tuning.rb', line 74 def tuning_8_standard ["f#", "b", "e", "a", "d", "g", "b", "e"] end |