motion-music 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/motion-music/version.rb +1 -1
- data/lib/rb-music/version.rb +1 -1
- metadata +2 -70
- data/.gitignore +0 -6
- data/Gemfile +0 -8
- data/Guardfile +0 -6
- data/doc/Gemfile.html +0 -111
- data/doc/Gemfile_lock.html +0 -168
- data/doc/Guardfile.html +0 -111
- data/doc/LICENSE.html +0 -124
- data/doc/Object.html +0 -116
- data/doc/RBMusic.html +0 -164
- data/doc/RBMusic/Interval.html +0 -440
- data/doc/RBMusic/Note.html +0 -620
- data/doc/RBMusic/NoteSet.html +0 -277
- data/doc/RBMusic/Scale.html +0 -274
- data/doc/README_md.html +0 -163
- data/doc/created.rid +0 -8
- data/doc/fonts.css +0 -167
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +0 -93
- data/doc/js/darkfish.js +0 -140
- data/doc/js/jquery.js +0 -18
- data/doc/js/navigation.js +0 -142
- data/doc/js/search.js +0 -109
- data/doc/js/search_index.js +0 -1
- data/doc/js/searcher.js +0 -228
- data/doc/projections_json.html +0 -115
- data/doc/rb-music_gemspec.html +0 -132
- data/doc/rdoc.css +0 -580
- data/doc/table_of_contents.html +0 -192
- data/lib/rb-music.rb +0 -8
- data/motion-music.gemspec +0 -20
- data/projections.json +0 -12
- data/rb-music.gemspec +0 -29
- data/spec/rb-music/constants_spec.rb +0 -27
- data/spec/rb-music/interval_spec.rb +0 -90
- data/spec/rb-music/note_set_spec.rb +0 -191
- data/spec/rb-music/note_spec.rb +0 -318
- data/spec/rb-music/scale_spec.rb +0 -88
- data/spec/spec_helper.rb +0 -14
data/doc/RBMusic/NoteSet.html
DELETED
@@ -1,277 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset="UTF-8">
|
6
|
-
|
7
|
-
<title>class RBMusic::NoteSet - RDoc Documentation</title>
|
8
|
-
|
9
|
-
<link href="../fonts.css" rel="stylesheet">
|
10
|
-
<link href="../rdoc.css" rel="stylesheet">
|
11
|
-
|
12
|
-
<script type="text/javascript">
|
13
|
-
var rdoc_rel_prefix = "../";
|
14
|
-
</script>
|
15
|
-
|
16
|
-
<script src="../js/jquery.js"></script>
|
17
|
-
<script src="../js/navigation.js"></script>
|
18
|
-
<script src="../js/search_index.js"></script>
|
19
|
-
<script src="../js/search.js"></script>
|
20
|
-
<script src="../js/searcher.js"></script>
|
21
|
-
<script src="../js/darkfish.js"></script>
|
22
|
-
|
23
|
-
|
24
|
-
<body id="top" role="document" class="class">
|
25
|
-
<nav role="navigation">
|
26
|
-
<div id="project-navigation">
|
27
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
-
<h2>
|
29
|
-
<a href="../index.html" rel="home">Home</a>
|
30
|
-
</h2>
|
31
|
-
|
32
|
-
<div id="table-of-contents-navigation">
|
33
|
-
<a href="../table_of_contents.html#pages">Pages</a>
|
34
|
-
<a href="../table_of_contents.html#classes">Classes</a>
|
35
|
-
<a href="../table_of_contents.html#methods">Methods</a>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
|
39
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
-
<form action="#" method="get" accept-charset="utf-8">
|
41
|
-
<div id="search-field-wrapper">
|
42
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
-
aria-autocomplete="list" aria-controls="search-results"
|
44
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
-
</div>
|
47
|
-
|
48
|
-
<ul id="search-results" aria-label="Search Results"
|
49
|
-
aria-busy="false" aria-expanded="false"
|
50
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
-
</form>
|
52
|
-
</div>
|
53
|
-
|
54
|
-
</div>
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
<div id="class-metadata">
|
59
|
-
|
60
|
-
<div id="parent-class-section" class="nav-section">
|
61
|
-
<h3>Parent</h3>
|
62
|
-
|
63
|
-
|
64
|
-
<p class="link"><a href="../Object.html">Object</a>
|
65
|
-
|
66
|
-
</div>
|
67
|
-
|
68
|
-
<div id="includes-section" class="nav-section">
|
69
|
-
<h3>Included Modules</h3>
|
70
|
-
|
71
|
-
<ul class="link-list">
|
72
|
-
|
73
|
-
|
74
|
-
<li><span class="include">Enumerable</span>
|
75
|
-
|
76
|
-
|
77
|
-
</ul>
|
78
|
-
</div>
|
79
|
-
|
80
|
-
<div id="extends-section" class="nav-section">
|
81
|
-
<h3>Extended With Modules</h3>
|
82
|
-
|
83
|
-
<ul class="link-list">
|
84
|
-
|
85
|
-
|
86
|
-
<li><span class="extend">Forwardable</span>
|
87
|
-
|
88
|
-
|
89
|
-
</ul>
|
90
|
-
</div>
|
91
|
-
|
92
|
-
<!-- Method Quickref -->
|
93
|
-
<div id="method-list-section" class="nav-section">
|
94
|
-
<h3>Methods</h3>
|
95
|
-
|
96
|
-
<ul class="link-list" role="directory">
|
97
|
-
|
98
|
-
<li ><a href="#method-c-new">::new</a>
|
99
|
-
|
100
|
-
<li ><a href="#method-i-add">#add</a>
|
101
|
-
|
102
|
-
<li ><a href="#method-i-subtract">#subtract</a>
|
103
|
-
|
104
|
-
</ul>
|
105
|
-
</div>
|
106
|
-
|
107
|
-
</div>
|
108
|
-
</nav>
|
109
|
-
|
110
|
-
<main role="main" aria-labelledby="class-RBMusic::NoteSet">
|
111
|
-
<h1 id="class-RBMusic::NoteSet" class="class">
|
112
|
-
class RBMusic::NoteSet
|
113
|
-
</h1>
|
114
|
-
|
115
|
-
<section class="description">
|
116
|
-
|
117
|
-
</section>
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
<section class="attribute-method-details" class="method-section">
|
131
|
-
<header>
|
132
|
-
<h3>Attributes</h3>
|
133
|
-
</header>
|
134
|
-
|
135
|
-
|
136
|
-
<div id="attribute-i-notes" class="method-detail">
|
137
|
-
<div class="method-heading attribute-method-heading">
|
138
|
-
<span class="method-name">notes</span><span
|
139
|
-
class="attribute-access-type">[RW]</span>
|
140
|
-
</div>
|
141
|
-
|
142
|
-
<div class="method-description">
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
</div>
|
147
|
-
</div>
|
148
|
-
|
149
|
-
</section>
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
154
|
-
<header>
|
155
|
-
<h3>Public Class Methods</h3>
|
156
|
-
</header>
|
157
|
-
|
158
|
-
|
159
|
-
<div id="method-c-new" class="method-detail ">
|
160
|
-
|
161
|
-
<div class="method-heading">
|
162
|
-
<span class="method-name">new</span><span
|
163
|
-
class="method-args">(notes = [])</span>
|
164
|
-
|
165
|
-
<span class="method-click-advice">click to toggle source</span>
|
166
|
-
|
167
|
-
</div>
|
168
|
-
|
169
|
-
|
170
|
-
<div class="method-description">
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
<div class="method-source-code" id="new-source">
|
178
|
-
<pre><span class="ruby-comment"># File lib/rb-music/note_set.rb, line 12</span>
|
179
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">notes</span> = [])
|
180
|
-
<span class="ruby-ivar">@notes</span> = <span class="ruby-identifier">notes</span>
|
181
|
-
<span class="ruby-keyword">end</span></pre>
|
182
|
-
</div>
|
183
|
-
|
184
|
-
</div>
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
</div>
|
190
|
-
|
191
|
-
|
192
|
-
</section>
|
193
|
-
|
194
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
195
|
-
<header>
|
196
|
-
<h3>Public Instance Methods</h3>
|
197
|
-
</header>
|
198
|
-
|
199
|
-
|
200
|
-
<div id="method-i-add" class="method-detail ">
|
201
|
-
|
202
|
-
<div class="method-heading">
|
203
|
-
<span class="method-name">add</span><span
|
204
|
-
class="method-args">(that)</span>
|
205
|
-
|
206
|
-
<span class="method-click-advice">click to toggle source</span>
|
207
|
-
|
208
|
-
</div>
|
209
|
-
|
210
|
-
|
211
|
-
<div class="method-description">
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
<div class="method-source-code" id="add-source">
|
219
|
-
<pre><span class="ruby-comment"># File lib/rb-music/note_set.rb, line 16</span>
|
220
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">that</span>)
|
221
|
-
<span class="ruby-constant">NoteSet</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@notes</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">note</span><span class="ruby-operator">|</span> <span class="ruby-identifier">note</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">that</span>) })
|
222
|
-
<span class="ruby-keyword">end</span></pre>
|
223
|
-
</div>
|
224
|
-
|
225
|
-
</div>
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
</div>
|
231
|
-
|
232
|
-
|
233
|
-
<div id="method-i-subtract" class="method-detail ">
|
234
|
-
|
235
|
-
<div class="method-heading">
|
236
|
-
<span class="method-name">subtract</span><span
|
237
|
-
class="method-args">(that)</span>
|
238
|
-
|
239
|
-
<span class="method-click-advice">click to toggle source</span>
|
240
|
-
|
241
|
-
</div>
|
242
|
-
|
243
|
-
|
244
|
-
<div class="method-description">
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
<div class="method-source-code" id="subtract-source">
|
252
|
-
<pre><span class="ruby-comment"># File lib/rb-music/note_set.rb, line 20</span>
|
253
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">subtract</span>(<span class="ruby-identifier">that</span>)
|
254
|
-
<span class="ruby-constant">NoteSet</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@notes</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">note</span><span class="ruby-operator">|</span> <span class="ruby-identifier">note</span>.<span class="ruby-identifier">subtract</span>(<span class="ruby-identifier">that</span>) })
|
255
|
-
<span class="ruby-keyword">end</span></pre>
|
256
|
-
</div>
|
257
|
-
|
258
|
-
</div>
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
</div>
|
264
|
-
|
265
|
-
|
266
|
-
</section>
|
267
|
-
|
268
|
-
</section>
|
269
|
-
</main>
|
270
|
-
|
271
|
-
|
272
|
-
<footer id="validator-badges" role="contentinfo">
|
273
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
274
|
-
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
|
275
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
276
|
-
</footer>
|
277
|
-
|
data/doc/RBMusic/Scale.html
DELETED
@@ -1,274 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset="UTF-8">
|
6
|
-
|
7
|
-
<title>class RBMusic::Scale - RDoc Documentation</title>
|
8
|
-
|
9
|
-
<link href="../fonts.css" rel="stylesheet">
|
10
|
-
<link href="../rdoc.css" rel="stylesheet">
|
11
|
-
|
12
|
-
<script type="text/javascript">
|
13
|
-
var rdoc_rel_prefix = "../";
|
14
|
-
</script>
|
15
|
-
|
16
|
-
<script src="../js/jquery.js"></script>
|
17
|
-
<script src="../js/navigation.js"></script>
|
18
|
-
<script src="../js/search_index.js"></script>
|
19
|
-
<script src="../js/search.js"></script>
|
20
|
-
<script src="../js/searcher.js"></script>
|
21
|
-
<script src="../js/darkfish.js"></script>
|
22
|
-
|
23
|
-
|
24
|
-
<body id="top" role="document" class="class">
|
25
|
-
<nav role="navigation">
|
26
|
-
<div id="project-navigation">
|
27
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
-
<h2>
|
29
|
-
<a href="../index.html" rel="home">Home</a>
|
30
|
-
</h2>
|
31
|
-
|
32
|
-
<div id="table-of-contents-navigation">
|
33
|
-
<a href="../table_of_contents.html#pages">Pages</a>
|
34
|
-
<a href="../table_of_contents.html#classes">Classes</a>
|
35
|
-
<a href="../table_of_contents.html#methods">Methods</a>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
|
39
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
-
<form action="#" method="get" accept-charset="utf-8">
|
41
|
-
<div id="search-field-wrapper">
|
42
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
-
aria-autocomplete="list" aria-controls="search-results"
|
44
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
-
</div>
|
47
|
-
|
48
|
-
<ul id="search-results" aria-label="Search Results"
|
49
|
-
aria-busy="false" aria-expanded="false"
|
50
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
-
</form>
|
52
|
-
</div>
|
53
|
-
|
54
|
-
</div>
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
<div id="class-metadata">
|
59
|
-
|
60
|
-
<div id="parent-class-section" class="nav-section">
|
61
|
-
<h3>Parent</h3>
|
62
|
-
|
63
|
-
|
64
|
-
<p class="link"><a href="../Object.html">Object</a>
|
65
|
-
|
66
|
-
</div>
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
<!-- Method Quickref -->
|
71
|
-
<div id="method-list-section" class="nav-section">
|
72
|
-
<h3>Methods</h3>
|
73
|
-
|
74
|
-
<ul class="link-list" role="directory">
|
75
|
-
|
76
|
-
<li ><a href="#method-c-new">::new</a>
|
77
|
-
|
78
|
-
<li ><a href="#method-i-degree_count">#degree_count</a>
|
79
|
-
|
80
|
-
<li ><a href="#method-i-notes_in_range">#notes_in_range</a>
|
81
|
-
|
82
|
-
</ul>
|
83
|
-
</div>
|
84
|
-
|
85
|
-
</div>
|
86
|
-
</nav>
|
87
|
-
|
88
|
-
<main role="main" aria-labelledby="class-RBMusic::Scale">
|
89
|
-
<h1 id="class-RBMusic::Scale" class="class">
|
90
|
-
class RBMusic::Scale
|
91
|
-
</h1>
|
92
|
-
|
93
|
-
<section class="description">
|
94
|
-
|
95
|
-
</section>
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
<section class="attribute-method-details" class="method-section">
|
109
|
-
<header>
|
110
|
-
<h3>Attributes</h3>
|
111
|
-
</header>
|
112
|
-
|
113
|
-
|
114
|
-
<div id="attribute-i-degrees" class="method-detail">
|
115
|
-
<div class="method-heading attribute-method-heading">
|
116
|
-
<span class="method-name">degrees</span><span
|
117
|
-
class="attribute-access-type">[R]</span>
|
118
|
-
</div>
|
119
|
-
|
120
|
-
<div class="method-description">
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
</div>
|
125
|
-
</div>
|
126
|
-
|
127
|
-
<div id="attribute-i-key" class="method-detail">
|
128
|
-
<div class="method-heading attribute-method-heading">
|
129
|
-
<span class="method-name">key</span><span
|
130
|
-
class="attribute-access-type">[R]</span>
|
131
|
-
</div>
|
132
|
-
|
133
|
-
<div class="method-description">
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
</div>
|
138
|
-
</div>
|
139
|
-
|
140
|
-
</section>
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
145
|
-
<header>
|
146
|
-
<h3>Public Class Methods</h3>
|
147
|
-
</header>
|
148
|
-
|
149
|
-
|
150
|
-
<div id="method-c-new" class="method-detail ">
|
151
|
-
|
152
|
-
<div class="method-heading">
|
153
|
-
<span class="method-name">new</span><span
|
154
|
-
class="method-args">(key, name)</span>
|
155
|
-
|
156
|
-
<span class="method-click-advice">click to toggle source</span>
|
157
|
-
|
158
|
-
</div>
|
159
|
-
|
160
|
-
|
161
|
-
<div class="method-description">
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
<div class="method-source-code" id="new-source">
|
169
|
-
<pre><span class="ruby-comment"># File lib/rb-music/scale.rb, line 7</span>
|
170
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">name</span>)
|
171
|
-
<span class="ruby-identifier">scale_name</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>
|
172
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">NOTES</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">key</span>)
|
173
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">SCALES</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">scale_name</span>)
|
174
|
-
<span class="ruby-ivar">@key</span> = <span class="ruby-identifier">key</span>
|
175
|
-
<span class="ruby-ivar">@degrees</span> = [<span class="ruby-value">:unison</span>] <span class="ruby-operator">+</span> <span class="ruby-constant">SCALES</span>[<span class="ruby-identifier">scale_name</span>]
|
176
|
-
<span class="ruby-keyword">end</span></pre>
|
177
|
-
</div>
|
178
|
-
|
179
|
-
</div>
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
</div>
|
185
|
-
|
186
|
-
|
187
|
-
</section>
|
188
|
-
|
189
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
190
|
-
<header>
|
191
|
-
<h3>Public Instance Methods</h3>
|
192
|
-
</header>
|
193
|
-
|
194
|
-
|
195
|
-
<div id="method-i-degree_count" class="method-detail ">
|
196
|
-
|
197
|
-
<div class="method-heading">
|
198
|
-
<span class="method-name">degree_count</span><span
|
199
|
-
class="method-args">()</span>
|
200
|
-
|
201
|
-
<span class="method-click-advice">click to toggle source</span>
|
202
|
-
|
203
|
-
</div>
|
204
|
-
|
205
|
-
|
206
|
-
<div class="method-description">
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
<div class="method-source-code" id="degree_count-source">
|
214
|
-
<pre><span class="ruby-comment"># File lib/rb-music/scale.rb, line 15</span>
|
215
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">degree_count</span>
|
216
|
-
<span class="ruby-ivar">@degree_count</span> <span class="ruby-operator">||=</span> <span class="ruby-ivar">@degrees</span>.<span class="ruby-identifier">size</span>
|
217
|
-
<span class="ruby-keyword">end</span></pre>
|
218
|
-
</div>
|
219
|
-
|
220
|
-
</div>
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
</div>
|
226
|
-
|
227
|
-
|
228
|
-
<div id="method-i-notes_in_range" class="method-detail ">
|
229
|
-
|
230
|
-
<div class="method-heading">
|
231
|
-
<span class="method-name">notes_in_range</span><span
|
232
|
-
class="method-args">(start_note, end_note)</span>
|
233
|
-
|
234
|
-
<span class="method-click-advice">click to toggle source</span>
|
235
|
-
|
236
|
-
</div>
|
237
|
-
|
238
|
-
|
239
|
-
<div class="method-description">
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
<div class="method-source-code" id="notes_in_range-source">
|
247
|
-
<pre><span class="ruby-comment"># File lib/rb-music/scale.rb, line 19</span>
|
248
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">notes_in_range</span>(<span class="ruby-identifier">start_note</span>, <span class="ruby-identifier">end_note</span>)
|
249
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">start_note</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Note</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">end_note</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Note</span>)
|
250
|
-
|
251
|
-
<span class="ruby-constant">NoteSet</span>.<span class="ruby-identifier">new</span>()
|
252
|
-
<span class="ruby-keyword">end</span></pre>
|
253
|
-
</div>
|
254
|
-
|
255
|
-
</div>
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
</div>
|
261
|
-
|
262
|
-
|
263
|
-
</section>
|
264
|
-
|
265
|
-
</section>
|
266
|
-
</main>
|
267
|
-
|
268
|
-
|
269
|
-
<footer id="validator-badges" role="contentinfo">
|
270
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
271
|
-
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
|
272
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
273
|
-
</footer>
|
274
|
-
|