chordy 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +3 -0
- data/Gemfile +3 -3
- data/README.rdoc +302 -97
- data/Rakefile +12 -5
- data/VERSION +1 -0
- data/lib/chordy.rb +96 -75
- data/lib/chordy/chord.rb +228 -0
- data/lib/chordy/chords/a.rb +84 -0
- data/lib/chordy/chords/a_sharp.rb +86 -0
- data/lib/chordy/chords/b.rb +83 -0
- data/lib/chordy/chords/c.rb +84 -0
- data/lib/chordy/chords/c_sharp.rb +86 -0
- data/lib/chordy/chords/d.rb +84 -0
- data/lib/chordy/chords/d_sharp.rb +86 -0
- data/lib/chordy/chords/e.rb +84 -0
- data/lib/chordy/chords/f.rb +84 -0
- data/lib/chordy/chords/f_sharp.rb +86 -0
- data/lib/chordy/chords/g.rb +84 -0
- data/lib/chordy/chords/g_sharp.rb +86 -0
- data/lib/chordy/util/section.rb +18 -0
- data/lib/chordy/util/text.rb +7 -0
- data/lib/chordy/util/tuning.rb +113 -0
- data/test/helper.rb +1 -1
- data/test/test_chordy.rb +16 -11
- metadata +25 -24
- data/lib/a_chords.rb +0 -81
- data/lib/a_sharp_chords.rb +0 -83
- data/lib/b_chords.rb +0 -81
- data/lib/c_chords.rb +0 -81
- data/lib/c_sharp_chords.rb +0 -83
- data/lib/chord.rb +0 -193
- data/lib/d_chords.rb +0 -81
- data/lib/d_sharp_chords.rb +0 -83
- data/lib/e_chords.rb +0 -81
- data/lib/f_chords.rb +0 -81
- data/lib/f_sharp_chords.rb +0 -83
- data/lib/g_chords.rb +0 -81
- data/lib/g_sharp_chords.rb +0 -83
- data/lib/section.rb +0 -13
- data/lib/text.rb +0 -11
- data/lib/tuning.rb +0 -109
data/lib/section.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
class Section
|
4
|
-
def initialize(title="", separator_length=40)
|
5
|
-
@title = title
|
6
|
-
@separator_length = separator_length
|
7
|
-
end
|
8
|
-
|
9
|
-
def to_s
|
10
|
-
title_str = @title.to_s
|
11
|
-
title_str.rjust(title_str.length + 2, "-").ljust(@separator_length, "-")
|
12
|
-
end
|
13
|
-
end
|
data/lib/text.rb
DELETED
data/lib/tuning.rb
DELETED
@@ -1,109 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
module Tuning
|
4
|
-
def is_tuning? tuning
|
5
|
-
Tuning.instance_methods.include? tuning.to_s
|
6
|
-
true
|
7
|
-
end
|
8
|
-
|
9
|
-
def tuning_6_standard
|
10
|
-
["e", "a", "d", "g", "b", "e"]
|
11
|
-
end
|
12
|
-
|
13
|
-
def tuning_6_a
|
14
|
-
["a", "d", "g", "c", "e", "a"]
|
15
|
-
end
|
16
|
-
|
17
|
-
def tuning_6_b
|
18
|
-
["b", "e", "a", "d", "f#", "b"]
|
19
|
-
end
|
20
|
-
|
21
|
-
def tuning_6_c
|
22
|
-
["c", "f", "a#", "d#", "g", "c"]
|
23
|
-
end
|
24
|
-
|
25
|
-
def tuning_6_d
|
26
|
-
["d", "g", "c", "f", "a", "d"]
|
27
|
-
end
|
28
|
-
|
29
|
-
def tuning_6_drop_a
|
30
|
-
["a", "e", "a", "d", "f#", "b"]
|
31
|
-
end
|
32
|
-
|
33
|
-
def tuning_6_drop_c
|
34
|
-
["c", "g", "c", "f", "a", "d"]
|
35
|
-
end
|
36
|
-
|
37
|
-
def tuning_6_drop_d
|
38
|
-
["d", "a", "d", "g", "b", "e"]
|
39
|
-
end
|
40
|
-
|
41
|
-
def tuning_7_standard
|
42
|
-
["b", "e", "a", "d", "g", "b", "e"]
|
43
|
-
end
|
44
|
-
|
45
|
-
def tuning_7_a
|
46
|
-
["a", "d", "g", "c", "f", "a", "d"]
|
47
|
-
end
|
48
|
-
|
49
|
-
def tuning_7_a_sharp
|
50
|
-
["a#", "d#", "g#", "c#", "f#", "a#", "d#"]
|
51
|
-
end
|
52
|
-
|
53
|
-
def tuning_7_c
|
54
|
-
["c", "f", "a#", "d#", "g#", "c", "f"]
|
55
|
-
end
|
56
|
-
|
57
|
-
def tuning_7_d
|
58
|
-
["d", "g", "c", "f", "a#", "d", "g"]
|
59
|
-
end
|
60
|
-
|
61
|
-
def tuning_7_drop_a
|
62
|
-
["a", "e", "a", "d", "f#", "b", "e"]
|
63
|
-
end
|
64
|
-
|
65
|
-
def tuning_7_drop_g
|
66
|
-
["g", "d", "g", "c", "f", "a", "d"]
|
67
|
-
end
|
68
|
-
|
69
|
-
def tuning_7_drop_g_sharp
|
70
|
-
["g#", "d#", "g#", "c#", "f#", "a#", "d#"]
|
71
|
-
end
|
72
|
-
|
73
|
-
def tuning_8_standard
|
74
|
-
["f#", "b", "e", "a", "d", "g", "b", "e"]
|
75
|
-
end
|
76
|
-
|
77
|
-
def tuning_8_a
|
78
|
-
["a", "d", "g", "c", "f", "a", "d", "g"]
|
79
|
-
end
|
80
|
-
|
81
|
-
def tuning_8_e
|
82
|
-
["e", "a", "d", "g", "c", "f", "a", "d"]
|
83
|
-
end
|
84
|
-
|
85
|
-
def tuning_8_f
|
86
|
-
["fb", "bb", "eb", "ab", "db", "gb", "bb", "eb"]
|
87
|
-
end
|
88
|
-
|
89
|
-
def tuning_8_drop_d_sharp
|
90
|
-
["eb", "bb", "eb", "ab", "db", "gb", "bb", "eb"]
|
91
|
-
end
|
92
|
-
|
93
|
-
def tuning_8_drop_e
|
94
|
-
["e", "b", "e", "a", "d", "g", "b", "e"]
|
95
|
-
end
|
96
|
-
|
97
|
-
alias :tuning_standard :tuning_6_standard
|
98
|
-
alias :tuning_a :tuning_6_a
|
99
|
-
alias :tuning_b :tuning_6_b
|
100
|
-
alias :tuning_c :tuning_6_c
|
101
|
-
alias :tuning_d :tuning_6_d
|
102
|
-
alias :tuning_drop_a :tuning_6_drop_a
|
103
|
-
alias :tuning_drop_c :tuning_6_drop_c
|
104
|
-
alias :tuning_drop_d :tuning_6_drop_d
|
105
|
-
alias :tuning_7 :tuning_7_standard
|
106
|
-
alias :tuning_7_a! :tuning_7_a_sharp
|
107
|
-
alias :tuning_7_drop_g! :tuning_7_drop_g_sharp
|
108
|
-
alias :tuning_8_drop_d! :tuning_8_drop_d_sharp
|
109
|
-
end
|