midilib 2.0.4 → 2.0.5

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.
Files changed (94) hide show
  1. checksums.yaml +7 -0
  2. data/README.rdoc +9 -4
  3. data/Rakefile +2 -6
  4. data/examples/from_scratch.rb +3 -5
  5. data/examples/measures_mbt.rb +4 -4
  6. data/examples/print_program_changes.rb +9 -9
  7. data/examples/reader2text.rb +188 -188
  8. data/examples/seq2text.rb +17 -17
  9. data/examples/split.rb +19 -19
  10. data/examples/strings.rb +14 -14
  11. data/examples/transpose.rb +31 -31
  12. data/html/IO.html +65 -169
  13. data/html/MIDI.html +138 -256
  14. data/html/MIDI/ActiveSense.html +89 -178
  15. data/html/MIDI/ChannelEvent.html +95 -183
  16. data/html/MIDI/ChannelPressure.html +105 -190
  17. data/html/MIDI/Clock.html +89 -178
  18. data/html/MIDI/Continue.html +89 -178
  19. data/html/MIDI/Controller.html +107 -192
  20. data/html/MIDI/Event.html +138 -222
  21. data/html/MIDI/IO.html +45 -157
  22. data/html/MIDI/IO/MIDIFile.html +596 -568
  23. data/html/MIDI/IO/SeqReader.html +272 -314
  24. data/html/MIDI/IO/SeqWriter.html +229 -305
  25. data/html/MIDI/KeySig.html +129 -211
  26. data/html/MIDI/MIDI.html +45 -154
  27. data/html/MIDI/MIDI/MIDI.html +45 -154
  28. data/html/MIDI/MIDI/MIDI/Array.html +87 -185
  29. data/html/MIDI/Marker.html +71 -170
  30. data/html/MIDI/Measure.html +95 -190
  31. data/html/MIDI/Measures.html +103 -193
  32. data/html/MIDI/MetaEvent.html +180 -253
  33. data/html/MIDI/NoteEvent.html +118 -204
  34. data/html/MIDI/NoteOff.html +95 -183
  35. data/html/MIDI/NoteOn.html +95 -183
  36. data/html/MIDI/PitchBend.html +106 -191
  37. data/html/MIDI/PolyPressure.html +106 -189
  38. data/html/MIDI/ProgramChange.html +105 -190
  39. data/html/MIDI/Realtime.html +98 -184
  40. data/html/MIDI/Sequence.html +246 -311
  41. data/html/MIDI/SongPointer.html +106 -191
  42. data/html/MIDI/SongSelect.html +105 -190
  43. data/html/MIDI/Start.html +89 -178
  44. data/html/MIDI/Stop.html +89 -178
  45. data/html/MIDI/SystemCommon.html +71 -170
  46. data/html/MIDI/SystemExclusive.html +108 -193
  47. data/html/MIDI/SystemReset.html +89 -178
  48. data/html/MIDI/Tempo.html +135 -213
  49. data/html/MIDI/TimeSig.html +135 -214
  50. data/html/MIDI/Track.html +217 -291
  51. data/html/MIDI/TuneRequest.html +98 -184
  52. data/html/MIDI/Utils.html +89 -189
  53. data/html/README_rdoc.html +237 -257
  54. data/html/TODO_rdoc.html +64 -139
  55. data/html/created.rid +14 -14
  56. data/html/css/fonts.css +167 -0
  57. data/html/{rdoc.css → css/rdoc.css} +265 -218
  58. data/html/fonts/Lato-Light.ttf +0 -0
  59. data/html/fonts/Lato-LightItalic.ttf +0 -0
  60. data/html/fonts/Lato-Regular.ttf +0 -0
  61. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  62. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  63. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  64. data/html/images/add.png +0 -0
  65. data/html/images/arrow_up.png +0 -0
  66. data/html/images/delete.png +0 -0
  67. data/html/images/tag_blue.png +0 -0
  68. data/html/index.html +187 -169
  69. data/html/js/darkfish.js +41 -33
  70. data/html/js/jquery.js +4 -18
  71. data/html/js/navigation.js.gz +0 -0
  72. data/html/js/search.js +20 -5
  73. data/html/js/search_index.js +1 -1
  74. data/html/js/search_index.js.gz +0 -0
  75. data/html/js/searcher.js.gz +0 -0
  76. data/html/table_of_contents.html +1111 -498
  77. data/install.rb +43 -32
  78. data/lib/midilib/consts.rb +407 -407
  79. data/lib/midilib/event.rb +295 -294
  80. data/lib/midilib/info.rb +5 -5
  81. data/lib/midilib/io/midifile.rb +266 -267
  82. data/lib/midilib/io/seqreader.rb +106 -106
  83. data/lib/midilib/io/seqwriter.rb +59 -60
  84. data/lib/midilib/measure.rb +69 -69
  85. data/lib/midilib/sequence.rb +68 -70
  86. data/lib/midilib/track.rb +96 -102
  87. data/lib/midilib/utils.rb +15 -15
  88. data/test/event_equality.rb +50 -50
  89. data/test/test_event.rb +120 -122
  90. data/test/test_io.rb +35 -48
  91. data/test/test_sequence.rb +60 -60
  92. data/test/test_track.rb +154 -154
  93. data/test/test_varlen.rb +23 -25
  94. metadata +65 -57
@@ -2,199 +2,92 @@
2
2
 
3
3
  <html>
4
4
  <head>
5
- <meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
5
+ <meta charset="UTF-8">
6
6
 
7
7
  <title>class MIDI::SystemReset - midilib</title>
8
8
 
9
- <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
-
11
9
  <script type="text/javascript">
12
10
  var rdoc_rel_prefix = "../";
13
11
  </script>
14
12
 
15
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
13
+ <script src="../js/jquery.js"></script>
14
+ <script src="../js/darkfish.js"></script>
15
+
16
+ <link href="../css/fonts.css" rel="stylesheet">
17
+ <link href="../css/rdoc.css" rel="stylesheet">
18
+
21
19
 
22
20
 
23
- <body id="top" class="class">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="../index.html">Home</a>
21
+ <body id="top" role="document" class="class">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="../index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="../table_of_contents.html#pages">Pages</a>
28
31
  <a href="../table_of_contents.html#classes">Classes</a>
29
32
  <a href="../table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
+ </div>
34
+ </div>
33
35
 
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
35
37
  <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
38
42
  title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
43
+ </div>
45
44
 
46
- <div id="file-metadata">
47
- <nav id="file-list-section" class="section">
48
- <h3 class="section-header">Defined In</h3>
49
- <ul>
50
- <li>lib/midilib/event.rb
51
- </ul>
52
- </nav>
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
53
50
 
54
-
55
51
  </div>
56
52
 
53
+
54
+
57
55
  <div id="class-metadata">
58
56
 
59
- <nav id="parent-class-section" class="section">
60
- <h3 class="section-header">Parent</h3>
57
+ <div id="parent-class-section" class="nav-section">
58
+ <h3>Parent</h3>
59
+
61
60
 
62
61
  <p class="link"><a href="Realtime.html">MIDI::Realtime</a>
63
62
 
64
- </nav>
63
+ </div>
65
64
 
66
65
 
66
+
67
67
  <!-- Method Quickref -->
68
- <nav id="method-list-section" class="section">
69
- <h3 class="section-header">Methods</h3>
68
+ <div id="method-list-section" class="nav-section">
69
+ <h3>Methods</h3>
70
70
 
71
- <ul class="link-list">
71
+ <ul class="link-list" role="directory">
72
72
 
73
- <li><a href="#method-c-new">::new</a>
73
+ <li class="calls-super" ><a href="#method-c-new">::new</a>
74
74
 
75
- <li><a href="#method-i-to_s">#to_s</a>
75
+ <li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
76
76
 
77
77
  </ul>
78
- </nav>
78
+ </div>
79
79
 
80
80
  </div>
81
-
82
- <div id="project-metadata">
83
- <nav id="fileindex-section" class="section project-section">
84
- <h3 class="section-header">Pages</h3>
85
-
86
- <ul>
87
-
88
- <li class="file"><a href="../README_rdoc.html">README</a>
89
-
90
- <li class="file"><a href="../TODO_rdoc.html">TODO</a>
91
-
92
- </ul>
93
81
  </nav>
94
82
 
95
- <nav id="classindex-section" class="section project-section">
96
- <h3 class="section-header">Class and Module Index</h3>
83
+ <main role="main" aria-labelledby="class-MIDI::SystemReset">
84
+ <h1 id="class-MIDI::SystemReset" class="class">
85
+ class MIDI::SystemReset
86
+ </h1>
97
87
 
98
- <ul class="link-list">
99
-
100
- <li><a href="../MIDI.html">MIDI</a>
101
-
102
- <li><a href="../MIDI/ActiveSense.html">MIDI::ActiveSense</a>
103
-
104
- <li><a href="../MIDI/ChannelEvent.html">MIDI::ChannelEvent</a>
105
-
106
- <li><a href="../MIDI/ChannelPressure.html">MIDI::ChannelPressure</a>
107
-
108
- <li><a href="../MIDI/Clock.html">MIDI::Clock</a>
109
-
110
- <li><a href="../MIDI/Continue.html">MIDI::Continue</a>
111
-
112
- <li><a href="../MIDI/Controller.html">MIDI::Controller</a>
113
-
114
- <li><a href="../MIDI/Event.html">MIDI::Event</a>
115
-
116
- <li><a href="../MIDI/IO.html">MIDI::IO</a>
117
-
118
- <li><a href="../MIDI/IO/MIDIFile.html">MIDI::IO::MIDIFile</a>
119
-
120
- <li><a href="../MIDI/IO/SeqReader.html">MIDI::IO::SeqReader</a>
121
-
122
- <li><a href="../MIDI/IO/SeqWriter.html">MIDI::IO::SeqWriter</a>
123
-
124
- <li><a href="../MIDI/KeySig.html">MIDI::KeySig</a>
125
-
126
- <li><a href="../MIDI/MIDI.html">MIDI::MIDI</a>
127
-
128
- <li><a href="../MIDI/MIDI/MIDI.html">MIDI::MIDI::MIDI</a>
129
-
130
- <li><a href="../MIDI/MIDI/MIDI/Array.html">MIDI::MIDI::MIDI::Array</a>
131
-
132
- <li><a href="../MIDI/Marker.html">MIDI::Marker</a>
133
-
134
- <li><a href="../MIDI/Measure.html">MIDI::Measure</a>
135
-
136
- <li><a href="../MIDI/Measures.html">MIDI::Measures</a>
137
-
138
- <li><a href="../MIDI/MetaEvent.html">MIDI::MetaEvent</a>
139
-
140
- <li><a href="../MIDI/NoteEvent.html">MIDI::NoteEvent</a>
141
-
142
- <li><a href="../MIDI/NoteOff.html">MIDI::NoteOff</a>
143
-
144
- <li><a href="../MIDI/NoteOff.html">MIDI::NoteOffEvent</a>
145
-
146
- <li><a href="../MIDI/NoteOn.html">MIDI::NoteOn</a>
147
-
148
- <li><a href="../MIDI/NoteOn.html">MIDI::NoteOnEvent</a>
149
-
150
- <li><a href="../MIDI/PitchBend.html">MIDI::PitchBend</a>
151
-
152
- <li><a href="../MIDI/PolyPressure.html">MIDI::PolyPressure</a>
153
-
154
- <li><a href="../MIDI/ProgramChange.html">MIDI::ProgramChange</a>
155
-
156
- <li><a href="../MIDI/Realtime.html">MIDI::Realtime</a>
157
-
158
- <li><a href="../MIDI/Sequence.html">MIDI::Sequence</a>
159
-
160
- <li><a href="../MIDI/SongPointer.html">MIDI::SongPointer</a>
161
-
162
- <li><a href="../MIDI/SongSelect.html">MIDI::SongSelect</a>
163
-
164
- <li><a href="../MIDI/Start.html">MIDI::Start</a>
165
-
166
- <li><a href="../MIDI/Stop.html">MIDI::Stop</a>
167
-
168
- <li><a href="../MIDI/SystemCommon.html">MIDI::SystemCommon</a>
169
-
170
- <li><a href="../MIDI/SystemExclusive.html">MIDI::SystemExclusive</a>
171
-
172
- <li><a href="../MIDI/SystemReset.html">MIDI::SystemReset</a>
173
-
174
- <li><a href="../MIDI/Tempo.html">MIDI::Tempo</a>
175
-
176
- <li><a href="../MIDI/TimeSig.html">MIDI::TimeSig</a>
177
-
178
- <li><a href="../MIDI/Track.html">MIDI::Track</a>
179
-
180
- <li><a href="../MIDI/TuneRequest.html">MIDI::TuneRequest</a>
181
-
182
- <li><a href="../MIDI/Utils.html">MIDI::Utils</a>
183
-
184
- <li><a href="../IO.html">IO</a>
185
-
186
- </ul>
187
- </nav>
188
-
189
- </div>
190
- </nav>
191
-
192
- <div id="documentation">
193
- <h1 class="class">class MIDI::SystemReset</h1>
194
-
195
- <div id="description" class="description">
88
+ <section class="description">
196
89
 
197
- </div><!-- description -->
90
+ </section>
198
91
 
199
92
 
200
93
 
@@ -208,10 +101,11 @@
208
101
 
209
102
 
210
103
 
211
- <!-- Methods -->
212
104
 
213
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
214
- <h3 class="section-header">Public Class Methods</h3>
105
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
106
+ <header>
107
+ <h3>Public Class Methods</h3>
108
+ </header>
215
109
 
216
110
 
217
111
  <div id="method-c-new" class="method-detail ">
@@ -219,7 +113,9 @@
219
113
  <div class="method-heading">
220
114
  <span class="method-name">new</span><span
221
115
  class="method-args">(delta_time = 0)</span>
116
+
222
117
  <span class="method-click-advice">click to toggle source</span>
118
+
223
119
  </div>
224
120
 
225
121
 
@@ -227,27 +123,35 @@
227
123
 
228
124
 
229
125
 
126
+
127
+ <div class="method-calls-super">
128
+ Calls superclass method
129
+ <a href="Realtime.html#method-c-new">MIDI::Realtime.new</a>
130
+ </div>
131
+
230
132
 
231
133
 
232
134
  <div class="method-source-code" id="new-source">
233
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 403</span>
135
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 404</span>
234
136
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">delta_time</span> = <span class="ruby-value">0</span>)
235
- <span class="ruby-keyword">super</span>(<span class="ruby-constant">SYSTEM_RESET</span>, <span class="ruby-identifier">delta_time</span>)
137
+ <span class="ruby-keyword">super</span>(<span class="ruby-constant">SYSTEM_RESET</span>, <span class="ruby-identifier">delta_time</span>)
236
138
  <span class="ruby-keyword">end</span></pre>
237
- </div><!-- new-source -->
139
+ </div>
238
140
 
239
141
  </div>
240
142
 
241
143
 
242
144
 
243
145
 
244
- </div><!-- new-method -->
146
+ </div>
245
147
 
246
148
 
247
- </section><!-- public-class-method-details -->
149
+ </section>
248
150
 
249
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
250
- <h3 class="section-header">Public Instance Methods</h3>
151
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
152
+ <header>
153
+ <h3>Public Instance Methods</h3>
154
+ </header>
251
155
 
252
156
 
253
157
  <div id="method-i-to_s" class="method-detail ">
@@ -255,7 +159,9 @@
255
159
  <div class="method-heading">
256
160
  <span class="method-name">to_s</span><span
257
161
  class="method-args">()</span>
162
+
258
163
  <span class="method-click-advice">click to toggle source</span>
164
+
259
165
  </div>
260
166
 
261
167
 
@@ -263,33 +169,38 @@
263
169
 
264
170
 
265
171
 
172
+
173
+ <div class="method-calls-super">
174
+ Calls superclass method
175
+ <a href="Realtime.html#method-i-to_s">MIDI::Realtime#to_s</a>
176
+ </div>
177
+
266
178
 
267
179
 
268
180
  <div class="method-source-code" id="to_s-source">
269
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 406</span>
181
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 407</span>
270
182
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
271
- <span class="ruby-keyword">return</span> <span class="ruby-keyword">super</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;sys reset&quot;</span>
183
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">super</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;sys reset&quot;</span>
272
184
  <span class="ruby-keyword">end</span></pre>
273
- </div><!-- to_s-source -->
185
+ </div>
274
186
 
275
187
  </div>
276
188
 
277
189
 
278
190
 
279
191
 
280
- </div><!-- to_s-method -->
192
+ </div>
281
193
 
282
194
 
283
- </section><!-- public-instance-method-details -->
195
+ </section>
284
196
 
285
- </section><!-- 5Buntitled-5D -->
286
-
287
- </div><!-- documentation -->
197
+ </section>
198
+ </main>
288
199
 
289
200
 
290
- <footer id="validator-badges">
291
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
292
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
293
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
201
+ <footer id="validator-badges" role="contentinfo">
202
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
203
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
204
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
294
205
  </footer>
295
206
 
@@ -2,209 +2,102 @@
2
2
 
3
3
  <html>
4
4
  <head>
5
- <meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
5
+ <meta charset="UTF-8">
6
6
 
7
7
  <title>class MIDI::Tempo - midilib</title>
8
8
 
9
- <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
-
11
9
  <script type="text/javascript">
12
10
  var rdoc_rel_prefix = "../";
13
11
  </script>
14
12
 
15
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
13
+ <script src="../js/jquery.js"></script>
14
+ <script src="../js/darkfish.js"></script>
15
+
16
+ <link href="../css/fonts.css" rel="stylesheet">
17
+ <link href="../css/rdoc.css" rel="stylesheet">
18
+
19
+
21
20
 
21
+ <body id="top" role="document" class="class">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="../index.html" rel="home">Home</a>
27
+ </h2>
22
28
 
23
- <body id="top" class="class">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="../index.html">Home</a>
29
+ <div id="table-of-contents-navigation">
30
+ <a href="../table_of_contents.html#pages">Pages</a>
28
31
  <a href="../table_of_contents.html#classes">Classes</a>
29
32
  <a href="../table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
+ </div>
34
+ </div>
33
35
 
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
35
37
  <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
38
42
  title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
43
+ </div>
44
44
 
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
45
50
 
46
- <div id="file-metadata">
47
- <nav id="file-list-section" class="section">
48
- <h3 class="section-header">Defined In</h3>
49
- <ul>
50
- <li>lib/midilib/event.rb
51
- </ul>
52
- </nav>
53
-
54
-
55
51
  </div>
56
52
 
53
+
54
+
57
55
  <div id="class-metadata">
58
56
 
59
- <nav id="parent-class-section" class="section">
60
- <h3 class="section-header">Parent</h3>
57
+ <div id="parent-class-section" class="nav-section">
58
+ <h3>Parent</h3>
59
+
61
60
 
62
61
  <p class="link"><a href="MetaEvent.html">MIDI::MetaEvent</a>
63
62
 
64
- </nav>
63
+ </div>
65
64
 
66
65
 
66
+
67
67
  <!-- Method Quickref -->
68
- <nav id="method-list-section" class="section">
69
- <h3 class="section-header">Methods</h3>
68
+ <div id="method-list-section" class="nav-section">
69
+ <h3>Methods</h3>
70
70
 
71
- <ul class="link-list">
71
+ <ul class="link-list" role="directory">
72
72
 
73
- <li><a href="#method-c-bpm_to_mpq">::bpm_to_mpq</a>
73
+ <li ><a href="#method-c-bpm_to_mpq">::bpm_to_mpq</a>
74
74
 
75
- <li><a href="#method-c-mpq_to_bpm">::mpq_to_bpm</a>
75
+ <li ><a href="#method-c-mpq_to_bpm">::mpq_to_bpm</a>
76
76
 
77
- <li><a href="#method-c-new">::new</a>
77
+ <li class="calls-super" ><a href="#method-c-new">::new</a>
78
78
 
79
- <li><a href="#method-i-data_as_bytes">#data_as_bytes</a>
79
+ <li ><a href="#method-i-data_as_bytes">#data_as_bytes</a>
80
80
 
81
- <li><a href="#method-i-tempo">#tempo</a>
81
+ <li ><a href="#method-i-tempo">#tempo</a>
82
82
 
83
- <li><a href="#method-i-tempo-3D">#tempo=</a>
83
+ <li ><a href="#method-i-tempo-3D">#tempo=</a>
84
84
 
85
- <li><a href="#method-i-to_s">#to_s</a>
85
+ <li ><a href="#method-i-to_s">#to_s</a>
86
86
 
87
87
  </ul>
88
- </nav>
88
+ </div>
89
89
 
90
90
  </div>
91
-
92
- <div id="project-metadata">
93
- <nav id="fileindex-section" class="section project-section">
94
- <h3 class="section-header">Pages</h3>
95
-
96
- <ul>
97
-
98
- <li class="file"><a href="../README_rdoc.html">README</a>
99
-
100
- <li class="file"><a href="../TODO_rdoc.html">TODO</a>
101
-
102
- </ul>
103
91
  </nav>
104
92
 
105
- <nav id="classindex-section" class="section project-section">
106
- <h3 class="section-header">Class and Module Index</h3>
93
+ <main role="main" aria-labelledby="class-MIDI::Tempo">
94
+ <h1 id="class-MIDI::Tempo" class="class">
95
+ class MIDI::Tempo
96
+ </h1>
107
97
 
108
- <ul class="link-list">
109
-
110
- <li><a href="../MIDI.html">MIDI</a>
111
-
112
- <li><a href="../MIDI/ActiveSense.html">MIDI::ActiveSense</a>
113
-
114
- <li><a href="../MIDI/ChannelEvent.html">MIDI::ChannelEvent</a>
115
-
116
- <li><a href="../MIDI/ChannelPressure.html">MIDI::ChannelPressure</a>
117
-
118
- <li><a href="../MIDI/Clock.html">MIDI::Clock</a>
119
-
120
- <li><a href="../MIDI/Continue.html">MIDI::Continue</a>
121
-
122
- <li><a href="../MIDI/Controller.html">MIDI::Controller</a>
123
-
124
- <li><a href="../MIDI/Event.html">MIDI::Event</a>
125
-
126
- <li><a href="../MIDI/IO.html">MIDI::IO</a>
127
-
128
- <li><a href="../MIDI/IO/MIDIFile.html">MIDI::IO::MIDIFile</a>
129
-
130
- <li><a href="../MIDI/IO/SeqReader.html">MIDI::IO::SeqReader</a>
131
-
132
- <li><a href="../MIDI/IO/SeqWriter.html">MIDI::IO::SeqWriter</a>
133
-
134
- <li><a href="../MIDI/KeySig.html">MIDI::KeySig</a>
135
-
136
- <li><a href="../MIDI/MIDI.html">MIDI::MIDI</a>
137
-
138
- <li><a href="../MIDI/MIDI/MIDI.html">MIDI::MIDI::MIDI</a>
139
-
140
- <li><a href="../MIDI/MIDI/MIDI/Array.html">MIDI::MIDI::MIDI::Array</a>
141
-
142
- <li><a href="../MIDI/Marker.html">MIDI::Marker</a>
143
-
144
- <li><a href="../MIDI/Measure.html">MIDI::Measure</a>
145
-
146
- <li><a href="../MIDI/Measures.html">MIDI::Measures</a>
147
-
148
- <li><a href="../MIDI/MetaEvent.html">MIDI::MetaEvent</a>
149
-
150
- <li><a href="../MIDI/NoteEvent.html">MIDI::NoteEvent</a>
151
-
152
- <li><a href="../MIDI/NoteOff.html">MIDI::NoteOff</a>
153
-
154
- <li><a href="../MIDI/NoteOff.html">MIDI::NoteOffEvent</a>
155
-
156
- <li><a href="../MIDI/NoteOn.html">MIDI::NoteOn</a>
157
-
158
- <li><a href="../MIDI/NoteOn.html">MIDI::NoteOnEvent</a>
159
-
160
- <li><a href="../MIDI/PitchBend.html">MIDI::PitchBend</a>
161
-
162
- <li><a href="../MIDI/PolyPressure.html">MIDI::PolyPressure</a>
163
-
164
- <li><a href="../MIDI/ProgramChange.html">MIDI::ProgramChange</a>
165
-
166
- <li><a href="../MIDI/Realtime.html">MIDI::Realtime</a>
167
-
168
- <li><a href="../MIDI/Sequence.html">MIDI::Sequence</a>
169
-
170
- <li><a href="../MIDI/SongPointer.html">MIDI::SongPointer</a>
171
-
172
- <li><a href="../MIDI/SongSelect.html">MIDI::SongSelect</a>
173
-
174
- <li><a href="../MIDI/Start.html">MIDI::Start</a>
175
-
176
- <li><a href="../MIDI/Stop.html">MIDI::Stop</a>
177
-
178
- <li><a href="../MIDI/SystemCommon.html">MIDI::SystemCommon</a>
179
-
180
- <li><a href="../MIDI/SystemExclusive.html">MIDI::SystemExclusive</a>
181
-
182
- <li><a href="../MIDI/SystemReset.html">MIDI::SystemReset</a>
183
-
184
- <li><a href="../MIDI/Tempo.html">MIDI::Tempo</a>
185
-
186
- <li><a href="../MIDI/TimeSig.html">MIDI::TimeSig</a>
187
-
188
- <li><a href="../MIDI/Track.html">MIDI::Track</a>
189
-
190
- <li><a href="../MIDI/TuneRequest.html">MIDI::TuneRequest</a>
191
-
192
- <li><a href="../MIDI/Utils.html">MIDI::Utils</a>
193
-
194
- <li><a href="../IO.html">IO</a>
195
-
196
- </ul>
197
- </nav>
198
-
199
- </div>
200
- </nav>
201
-
202
- <div id="documentation">
203
- <h1 class="class">class MIDI::Tempo</h1>
204
-
205
- <div id="description" class="description">
98
+ <section class="description">
206
99
 
207
- </div><!-- description -->
100
+ </section>
208
101
 
209
102
 
210
103
 
@@ -215,14 +108,15 @@
215
108
 
216
109
 
217
110
 
218
- <!-- Constants -->
219
- <section id="constants-list" class="section">
220
- <h3 class="section-header">Constants</h3>
111
+ <section class="constants-list">
112
+ <header>
113
+ <h3>Constants</h3>
114
+ </header>
221
115
  <dl>
222
116
 
223
117
  <dt id="MICROSECS_PER_MINUTE">MICROSECS_PER_MINUTE
224
118
 
225
- <dd class="description">
119
+ <dd>
226
120
 
227
121
 
228
122
  </dl>
@@ -231,10 +125,11 @@
231
125
 
232
126
 
233
127
 
234
- <!-- Methods -->
235
128
 
236
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
237
- <h3 class="section-header">Public Class Methods</h3>
129
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
130
+ <header>
131
+ <h3>Public Class Methods</h3>
132
+ </header>
238
133
 
239
134
 
240
135
  <div id="method-c-bpm_to_mpq" class="method-detail ">
@@ -242,7 +137,9 @@
242
137
  <div class="method-heading">
243
138
  <span class="method-name">bpm_to_mpq</span><span
244
139
  class="method-args">(bpm)</span>
140
+
245
141
  <span class="method-click-advice">click to toggle source</span>
142
+
246
143
  </div>
247
144
 
248
145
 
@@ -250,21 +147,22 @@
250
147
 
251
148
  <p>Translates beats per minute to microseconds per quarter note (beat).</p>
252
149
 
150
+
253
151
 
254
152
 
255
153
  <div class="method-source-code" id="bpm_to_mpq-source">
256
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 508</span>
154
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 509</span>
257
155
  <span class="ruby-keyword">def</span> <span class="ruby-constant">Tempo</span>.<span class="ruby-identifier">bpm_to_mpq</span>(<span class="ruby-identifier">bpm</span>)
258
- <span class="ruby-keyword">return</span> <span class="ruby-constant">MICROSECS_PER_MINUTE</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">bpm</span>
156
+ <span class="ruby-keyword">return</span> <span class="ruby-constant">MICROSECS_PER_MINUTE</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">bpm</span>
259
157
  <span class="ruby-keyword">end</span></pre>
260
- </div><!-- bpm_to_mpq-source -->
158
+ </div>
261
159
 
262
160
  </div>
263
161
 
264
162
 
265
163
 
266
164
 
267
- </div><!-- bpm_to_mpq-method -->
165
+ </div>
268
166
 
269
167
 
270
168
  <div id="method-c-mpq_to_bpm" class="method-detail ">
@@ -272,7 +170,9 @@
272
170
  <div class="method-heading">
273
171
  <span class="method-name">mpq_to_bpm</span><span
274
172
  class="method-args">(mpq)</span>
173
+
275
174
  <span class="method-click-advice">click to toggle source</span>
175
+
276
176
  </div>
277
177
 
278
178
 
@@ -280,21 +180,22 @@
280
180
 
281
181
  <p>Translates microseconds per quarter note (beat) to beats per minute.</p>
282
182
 
183
+
283
184
 
284
185
 
285
186
  <div class="method-source-code" id="mpq_to_bpm-source">
286
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 513</span>
187
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 514</span>
287
188
  <span class="ruby-keyword">def</span> <span class="ruby-constant">Tempo</span>.<span class="ruby-identifier">mpq_to_bpm</span>(<span class="ruby-identifier">mpq</span>)
288
- <span class="ruby-keyword">return</span> <span class="ruby-constant">MICROSECS_PER_MINUTE</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">mpq</span>.<span class="ruby-identifier">to_f</span>
189
+ <span class="ruby-keyword">return</span> <span class="ruby-constant">MICROSECS_PER_MINUTE</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">mpq</span>.<span class="ruby-identifier">to_f</span>
289
190
  <span class="ruby-keyword">end</span></pre>
290
- </div><!-- mpq_to_bpm-source -->
191
+ </div>
291
192
 
292
193
  </div>
293
194
 
294
195
 
295
196
 
296
197
 
297
- </div><!-- mpq_to_bpm-method -->
198
+ </div>
298
199
 
299
200
 
300
201
  <div id="method-c-new" class="method-detail ">
@@ -302,7 +203,9 @@
302
203
  <div class="method-heading">
303
204
  <span class="method-name">new</span><span
304
205
  class="method-args">(msecs_per_qnote, delta_time = 0)</span>
206
+
305
207
  <span class="method-click-advice">click to toggle source</span>
208
+
306
209
  </div>
307
210
 
308
211
 
@@ -310,27 +213,35 @@
310
213
 
311
214
 
312
215
 
216
+
217
+ <div class="method-calls-super">
218
+ Calls superclass method
219
+ <a href="MetaEvent.html#method-c-new">MIDI::MetaEvent.new</a>
220
+ </div>
221
+
313
222
 
314
223
 
315
224
  <div class="method-source-code" id="new-source">
316
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 517</span>
225
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 518</span>
317
226
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">msecs_per_qnote</span>, <span class="ruby-identifier">delta_time</span> = <span class="ruby-value">0</span>)
318
- <span class="ruby-keyword">super</span>(<span class="ruby-constant">META_SET_TEMPO</span>, <span class="ruby-identifier">msecs_per_qnote</span>, <span class="ruby-identifier">delta_time</span>)
227
+ <span class="ruby-keyword">super</span>(<span class="ruby-constant">META_SET_TEMPO</span>, <span class="ruby-identifier">msecs_per_qnote</span>, <span class="ruby-identifier">delta_time</span>)
319
228
  <span class="ruby-keyword">end</span></pre>
320
- </div><!-- new-source -->
229
+ </div>
321
230
 
322
231
  </div>
323
232
 
324
233
 
325
234
 
326
235
 
327
- </div><!-- new-method -->
236
+ </div>
328
237
 
329
238
 
330
- </section><!-- public-class-method-details -->
239
+ </section>
331
240
 
332
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
333
- <h3 class="section-header">Public Instance Methods</h3>
241
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
242
+ <header>
243
+ <h3>Public Instance Methods</h3>
244
+ </header>
334
245
 
335
246
 
336
247
  <div id="method-i-data_as_bytes" class="method-detail ">
@@ -338,7 +249,9 @@
338
249
  <div class="method-heading">
339
250
  <span class="method-name">data_as_bytes</span><span
340
251
  class="method-args">()</span>
252
+
341
253
  <span class="method-click-advice">click to toggle source</span>
254
+
342
255
  </div>
343
256
 
344
257
 
@@ -346,27 +259,28 @@
346
259
 
347
260
 
348
261
 
262
+
349
263
 
350
264
 
351
265
  <div class="method-source-code" id="data_as_bytes-source">
352
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 529</span>
266
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 530</span>
353
267
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">data_as_bytes</span>
354
- <span class="ruby-identifier">data</span> = []
355
- <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@status</span>
356
- <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@meta_type</span>
357
- <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value">3</span>
358
- <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> ((<span class="ruby-ivar">@data</span> <span class="ruby-operator">&gt;&gt;</span> <span class="ruby-value">16</span>) &amp; <span class="ruby-value">0xff</span>)
359
- <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> ((<span class="ruby-ivar">@data</span> <span class="ruby-operator">&gt;&gt;</span> <span class="ruby-value">8</span>) &amp; <span class="ruby-value">0xff</span>)
360
- <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-ivar">@data</span> &amp; <span class="ruby-value">0xff</span>)
268
+ <span class="ruby-identifier">data</span> = []
269
+ <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@status</span>
270
+ <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@meta_type</span>
271
+ <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value">3</span>
272
+ <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> ((<span class="ruby-ivar">@data</span> <span class="ruby-operator">&gt;&gt;</span> <span class="ruby-value">16</span>) <span class="ruby-operator">&amp;</span> <span class="ruby-value">0xff</span>)
273
+ <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> ((<span class="ruby-ivar">@data</span> <span class="ruby-operator">&gt;&gt;</span> <span class="ruby-value">8</span>) <span class="ruby-operator">&amp;</span> <span class="ruby-value">0xff</span>)
274
+ <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-ivar">@data</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0xff</span>)
361
275
  <span class="ruby-keyword">end</span></pre>
362
- </div><!-- data_as_bytes-source -->
276
+ </div>
363
277
 
364
278
  </div>
365
279
 
366
280
 
367
281
 
368
282
 
369
- </div><!-- data_as_bytes-method -->
283
+ </div>
370
284
 
371
285
 
372
286
  <div id="method-i-tempo" class="method-detail ">
@@ -374,7 +288,9 @@
374
288
  <div class="method-heading">
375
289
  <span class="method-name">tempo</span><span
376
290
  class="method-args">()</span>
291
+
377
292
  <span class="method-click-advice">click to toggle source</span>
293
+
378
294
  </div>
379
295
 
380
296
 
@@ -382,21 +298,22 @@
382
298
 
383
299
 
384
300
 
301
+
385
302
 
386
303
 
387
304
  <div class="method-source-code" id="tempo-source">
388
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 521</span>
305
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 522</span>
389
306
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">tempo</span>
390
- <span class="ruby-keyword">return</span> <span class="ruby-ivar">@data</span>
307
+ <span class="ruby-keyword">return</span> <span class="ruby-ivar">@data</span>
391
308
  <span class="ruby-keyword">end</span></pre>
392
- </div><!-- tempo-source -->
309
+ </div>
393
310
 
394
311
  </div>
395
312
 
396
313
 
397
314
 
398
315
 
399
- </div><!-- tempo-method -->
316
+ </div>
400
317
 
401
318
 
402
319
  <div id="method-i-tempo-3D" class="method-detail ">
@@ -404,7 +321,9 @@
404
321
  <div class="method-heading">
405
322
  <span class="method-name">tempo=</span><span
406
323
  class="method-args">(val)</span>
324
+
407
325
  <span class="method-click-advice">click to toggle source</span>
326
+
408
327
  </div>
409
328
 
410
329
 
@@ -412,21 +331,22 @@
412
331
 
413
332
 
414
333
 
334
+
415
335
 
416
336
 
417
337
  <div class="method-source-code" id="tempo-3D-source">
418
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 525</span>
338
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 526</span>
419
339
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">tempo=</span>(<span class="ruby-identifier">val</span>)
420
- <span class="ruby-ivar">@data</span> = <span class="ruby-identifier">val</span>
340
+ <span class="ruby-ivar">@data</span> = <span class="ruby-identifier">val</span>
421
341
  <span class="ruby-keyword">end</span></pre>
422
- </div><!-- tempo-3D-source -->
342
+ </div>
423
343
 
424
344
  </div>
425
345
 
426
346
 
427
347
 
428
348
 
429
- </div><!-- tempo-3D-method -->
349
+ </div>
430
350
 
431
351
 
432
352
  <div id="method-i-to_s" class="method-detail ">
@@ -434,7 +354,9 @@
434
354
  <div class="method-heading">
435
355
  <span class="method-name">to_s</span><span
436
356
  class="method-args">()</span>
357
+
437
358
  <span class="method-click-advice">click to toggle source</span>
359
+
438
360
  </div>
439
361
 
440
362
 
@@ -442,33 +364,33 @@
442
364
 
443
365
 
444
366
 
367
+
445
368
 
446
369
 
447
370
  <div class="method-source-code" id="to_s-source">
448
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 539</span>
371
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 540</span>
449
372
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
450
- <span class="ruby-node">&quot;tempo #{@data} msecs per qnote (#{Tempo.mpq_to_bpm(@data)} bpm)&quot;</span>
373
+ <span class="ruby-node">&quot;tempo #{@data} msecs per qnote (#{Tempo.mpq_to_bpm(@data)} bpm)&quot;</span>
451
374
  <span class="ruby-keyword">end</span></pre>
452
- </div><!-- to_s-source -->
375
+ </div>
453
376
 
454
377
  </div>
455
378
 
456
379
 
457
380
 
458
381
 
459
- </div><!-- to_s-method -->
382
+ </div>
460
383
 
461
384
 
462
- </section><!-- public-instance-method-details -->
385
+ </section>
463
386
 
464
- </section><!-- 5Buntitled-5D -->
465
-
466
- </div><!-- documentation -->
387
+ </section>
388
+ </main>
467
389
 
468
390
 
469
- <footer id="validator-badges">
470
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
471
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
472
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
391
+ <footer id="validator-badges" role="contentinfo">
392
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
393
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
394
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
473
395
  </footer>
474
396