midilib 2.0.2 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/Credits +5 -0
  2. data/README.rdoc +35 -30
  3. data/examples/reader2text.rb +1 -0
  4. data/html/IO.html +259 -0
  5. data/html/MIDI.html +665 -0
  6. data/html/MIDI/ActiveSense.html +295 -0
  7. data/html/MIDI/ChannelEvent.html +319 -0
  8. data/html/MIDI/ChannelPressure.html +350 -0
  9. data/html/MIDI/Clock.html +295 -0
  10. data/html/MIDI/Continue.html +295 -0
  11. data/html/MIDI/Controller.html +365 -0
  12. data/html/MIDI/Event.html +573 -0
  13. data/html/MIDI/IO.html +207 -0
  14. data/html/MIDI/IO/MIDIFile.html +1996 -0
  15. data/html/MIDI/IO/SeqReader.html +946 -0
  16. data/html/MIDI/IO/SeqWriter.html +648 -0
  17. data/html/MIDI/KeySig.html +435 -0
  18. data/html/MIDI/MIDI.html +204 -0
  19. data/html/MIDI/MIDI/MIDI.html +204 -0
  20. data/html/MIDI/MIDI/MIDI/Array.html +353 -0
  21. data/html/MIDI/Marker.html +257 -0
  22. data/html/MIDI/Measure.html +423 -0
  23. data/html/MIDI/Measures.html +375 -0
  24. data/html/MIDI/MetaEvent.html +534 -0
  25. data/html/MIDI/NoteEvent.html +417 -0
  26. data/html/MIDI/NoteOff.html +316 -0
  27. data/html/MIDI/NoteOn.html +316 -0
  28. data/html/MIDI/PitchBend.html +351 -0
  29. data/html/MIDI/PolyPressure.html +360 -0
  30. data/html/MIDI/ProgramChange.html +350 -0
  31. data/html/MIDI/Realtime.html +328 -0
  32. data/html/MIDI/Sequence.html +961 -0
  33. data/html/MIDI/SongPointer.html +351 -0
  34. data/html/MIDI/SongSelect.html +350 -0
  35. data/html/MIDI/Start.html +295 -0
  36. data/html/MIDI/Stop.html +295 -0
  37. data/html/MIDI/SystemCommon.html +257 -0
  38. data/html/MIDI/SystemExclusive.html +353 -0
  39. data/html/MIDI/SystemReset.html +295 -0
  40. data/html/MIDI/Tempo.html +474 -0
  41. data/html/MIDI/TimeSig.html +467 -0
  42. data/html/MIDI/Track.html +769 -0
  43. data/html/MIDI/TuneRequest.html +328 -0
  44. data/html/MIDI/Utils.html +320 -0
  45. data/html/README_rdoc.html +751 -0
  46. data/html/TODO_rdoc.html +200 -0
  47. data/html/created.rid +14 -0
  48. data/html/images/add.png +0 -0
  49. data/html/images/brick.png +0 -0
  50. data/html/images/brick_link.png +0 -0
  51. data/html/images/bug.png +0 -0
  52. data/html/images/bullet_black.png +0 -0
  53. data/html/images/bullet_toggle_minus.png +0 -0
  54. data/html/images/bullet_toggle_plus.png +0 -0
  55. data/html/images/date.png +0 -0
  56. data/html/images/delete.png +0 -0
  57. data/html/images/find.png +0 -0
  58. data/html/images/loadingAnimation.gif +0 -0
  59. data/html/images/macFFBgHack.png +0 -0
  60. data/html/images/package.png +0 -0
  61. data/html/images/page_green.png +0 -0
  62. data/html/images/page_white_text.png +0 -0
  63. data/html/images/page_white_width.png +0 -0
  64. data/html/images/plugin.png +0 -0
  65. data/html/images/ruby.png +0 -0
  66. data/html/images/tag_blue.png +0 -0
  67. data/html/images/tag_green.png +0 -0
  68. data/html/images/transparent.png +0 -0
  69. data/html/images/wrench.png +0 -0
  70. data/html/images/wrench_orange.png +0 -0
  71. data/html/images/zoom.png +0 -0
  72. data/html/index.html +750 -0
  73. data/html/js/darkfish.js +153 -0
  74. data/html/js/jquery.js +18 -0
  75. data/html/js/navigation.js +142 -0
  76. data/html/js/search.js +94 -0
  77. data/html/js/search_index.js +1 -0
  78. data/html/js/searcher.js +228 -0
  79. data/html/rdoc.css +543 -0
  80. data/html/table_of_contents.html +652 -0
  81. data/lib/midilib/info.rb +1 -1
  82. data/lib/midilib/io/seqreader.rb +1 -1
  83. data/lib/midilib/sequence.rb +7 -0
  84. data/test/test_sequence.rb +11 -0
  85. metadata +80 -3
@@ -0,0 +1,295 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
6
+
7
+ <title>class MIDI::SystemReset - midilib</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
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>
21
+
22
+
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>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <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
+ 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
+
45
+
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
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link"><a href="Realtime.html">MIDI::Realtime</a>
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-c-new">::new</a>
74
+
75
+ <li><a href="#method-i-to_s">#to_s</a>
76
+
77
+ </ul>
78
+ </nav>
79
+
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
+ </nav>
94
+
95
+ <nav id="classindex-section" class="section project-section">
96
+ <h3 class="section-header">Class and Module Index</h3>
97
+
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">
196
+
197
+ </div><!-- description -->
198
+
199
+
200
+
201
+
202
+ <section id="5Buntitled-5D" class="documentation-section">
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+ <!-- Methods -->
212
+
213
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
214
+ <h3 class="section-header">Public Class Methods</h3>
215
+
216
+
217
+ <div id="method-c-new" class="method-detail ">
218
+
219
+ <div class="method-heading">
220
+ <span class="method-name">new</span><span
221
+ class="method-args">(delta_time = 0)</span>
222
+ <span class="method-click-advice">click to toggle source</span>
223
+ </div>
224
+
225
+
226
+ <div class="method-description">
227
+
228
+
229
+
230
+
231
+
232
+ <div class="method-source-code" id="new-source">
233
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 403</span>
234
+ <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>)
236
+ <span class="ruby-keyword">end</span></pre>
237
+ </div><!-- new-source -->
238
+
239
+ </div>
240
+
241
+
242
+
243
+
244
+ </div><!-- new-method -->
245
+
246
+
247
+ </section><!-- public-class-method-details -->
248
+
249
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
250
+ <h3 class="section-header">Public Instance Methods</h3>
251
+
252
+
253
+ <div id="method-i-to_s" class="method-detail ">
254
+
255
+ <div class="method-heading">
256
+ <span class="method-name">to_s</span><span
257
+ class="method-args">()</span>
258
+ <span class="method-click-advice">click to toggle source</span>
259
+ </div>
260
+
261
+
262
+ <div class="method-description">
263
+
264
+
265
+
266
+
267
+
268
+ <div class="method-source-code" id="to_s-source">
269
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 406</span>
270
+ <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>
272
+ <span class="ruby-keyword">end</span></pre>
273
+ </div><!-- to_s-source -->
274
+
275
+ </div>
276
+
277
+
278
+
279
+
280
+ </div><!-- to_s-method -->
281
+
282
+
283
+ </section><!-- public-instance-method-details -->
284
+
285
+ </section><!-- 5Buntitled-5D -->
286
+
287
+ </div><!-- documentation -->
288
+
289
+
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.
294
+ </footer>
295
+
@@ -0,0 +1,474 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
6
+
7
+ <title>class MIDI::Tempo - midilib</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
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>
21
+
22
+
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>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <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
+ 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
+
45
+
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
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link"><a href="MetaEvent.html">MIDI::MetaEvent</a>
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-c-bpm_to_mpq">::bpm_to_mpq</a>
74
+
75
+ <li><a href="#method-c-mpq_to_bpm">::mpq_to_bpm</a>
76
+
77
+ <li><a href="#method-c-new">::new</a>
78
+
79
+ <li><a href="#method-i-data_as_bytes">#data_as_bytes</a>
80
+
81
+ <li><a href="#method-i-tempo">#tempo</a>
82
+
83
+ <li><a href="#method-i-tempo-3D">#tempo=</a>
84
+
85
+ <li><a href="#method-i-to_s">#to_s</a>
86
+
87
+ </ul>
88
+ </nav>
89
+
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
+ </nav>
104
+
105
+ <nav id="classindex-section" class="section project-section">
106
+ <h3 class="section-header">Class and Module Index</h3>
107
+
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">
206
+
207
+ </div><!-- description -->
208
+
209
+
210
+
211
+
212
+ <section id="5Buntitled-5D" class="documentation-section">
213
+
214
+
215
+
216
+
217
+
218
+ <!-- Constants -->
219
+ <section id="constants-list" class="section">
220
+ <h3 class="section-header">Constants</h3>
221
+ <dl>
222
+
223
+ <dt id="MICROSECS_PER_MINUTE">MICROSECS_PER_MINUTE
224
+
225
+ <dd class="description">
226
+
227
+
228
+ </dl>
229
+ </section>
230
+
231
+
232
+
233
+
234
+ <!-- Methods -->
235
+
236
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
237
+ <h3 class="section-header">Public Class Methods</h3>
238
+
239
+
240
+ <div id="method-c-bpm_to_mpq" class="method-detail ">
241
+
242
+ <div class="method-heading">
243
+ <span class="method-name">bpm_to_mpq</span><span
244
+ class="method-args">(bpm)</span>
245
+ <span class="method-click-advice">click to toggle source</span>
246
+ </div>
247
+
248
+
249
+ <div class="method-description">
250
+
251
+ <p>Translates beats per minute to microseconds per quarter note (beat).</p>
252
+
253
+
254
+
255
+ <div class="method-source-code" id="bpm_to_mpq-source">
256
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 508</span>
257
+ <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>
259
+ <span class="ruby-keyword">end</span></pre>
260
+ </div><!-- bpm_to_mpq-source -->
261
+
262
+ </div>
263
+
264
+
265
+
266
+
267
+ </div><!-- bpm_to_mpq-method -->
268
+
269
+
270
+ <div id="method-c-mpq_to_bpm" class="method-detail ">
271
+
272
+ <div class="method-heading">
273
+ <span class="method-name">mpq_to_bpm</span><span
274
+ class="method-args">(mpq)</span>
275
+ <span class="method-click-advice">click to toggle source</span>
276
+ </div>
277
+
278
+
279
+ <div class="method-description">
280
+
281
+ <p>Translates microseconds per quarter note (beat) to beats per minute.</p>
282
+
283
+
284
+
285
+ <div class="method-source-code" id="mpq_to_bpm-source">
286
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 513</span>
287
+ <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>
289
+ <span class="ruby-keyword">end</span></pre>
290
+ </div><!-- mpq_to_bpm-source -->
291
+
292
+ </div>
293
+
294
+
295
+
296
+
297
+ </div><!-- mpq_to_bpm-method -->
298
+
299
+
300
+ <div id="method-c-new" class="method-detail ">
301
+
302
+ <div class="method-heading">
303
+ <span class="method-name">new</span><span
304
+ class="method-args">(msecs_per_qnote, delta_time = 0)</span>
305
+ <span class="method-click-advice">click to toggle source</span>
306
+ </div>
307
+
308
+
309
+ <div class="method-description">
310
+
311
+
312
+
313
+
314
+
315
+ <div class="method-source-code" id="new-source">
316
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 517</span>
317
+ <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>)
319
+ <span class="ruby-keyword">end</span></pre>
320
+ </div><!-- new-source -->
321
+
322
+ </div>
323
+
324
+
325
+
326
+
327
+ </div><!-- new-method -->
328
+
329
+
330
+ </section><!-- public-class-method-details -->
331
+
332
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
333
+ <h3 class="section-header">Public Instance Methods</h3>
334
+
335
+
336
+ <div id="method-i-data_as_bytes" class="method-detail ">
337
+
338
+ <div class="method-heading">
339
+ <span class="method-name">data_as_bytes</span><span
340
+ class="method-args">()</span>
341
+ <span class="method-click-advice">click to toggle source</span>
342
+ </div>
343
+
344
+
345
+ <div class="method-description">
346
+
347
+
348
+
349
+
350
+
351
+ <div class="method-source-code" id="data_as_bytes-source">
352
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 529</span>
353
+ <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>)
361
+ <span class="ruby-keyword">end</span></pre>
362
+ </div><!-- data_as_bytes-source -->
363
+
364
+ </div>
365
+
366
+
367
+
368
+
369
+ </div><!-- data_as_bytes-method -->
370
+
371
+
372
+ <div id="method-i-tempo" class="method-detail ">
373
+
374
+ <div class="method-heading">
375
+ <span class="method-name">tempo</span><span
376
+ class="method-args">()</span>
377
+ <span class="method-click-advice">click to toggle source</span>
378
+ </div>
379
+
380
+
381
+ <div class="method-description">
382
+
383
+
384
+
385
+
386
+
387
+ <div class="method-source-code" id="tempo-source">
388
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 521</span>
389
+ <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>
391
+ <span class="ruby-keyword">end</span></pre>
392
+ </div><!-- tempo-source -->
393
+
394
+ </div>
395
+
396
+
397
+
398
+
399
+ </div><!-- tempo-method -->
400
+
401
+
402
+ <div id="method-i-tempo-3D" class="method-detail ">
403
+
404
+ <div class="method-heading">
405
+ <span class="method-name">tempo=</span><span
406
+ class="method-args">(val)</span>
407
+ <span class="method-click-advice">click to toggle source</span>
408
+ </div>
409
+
410
+
411
+ <div class="method-description">
412
+
413
+
414
+
415
+
416
+
417
+ <div class="method-source-code" id="tempo-3D-source">
418
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 525</span>
419
+ <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>
421
+ <span class="ruby-keyword">end</span></pre>
422
+ </div><!-- tempo-3D-source -->
423
+
424
+ </div>
425
+
426
+
427
+
428
+
429
+ </div><!-- tempo-3D-method -->
430
+
431
+
432
+ <div id="method-i-to_s" class="method-detail ">
433
+
434
+ <div class="method-heading">
435
+ <span class="method-name">to_s</span><span
436
+ class="method-args">()</span>
437
+ <span class="method-click-advice">click to toggle source</span>
438
+ </div>
439
+
440
+
441
+ <div class="method-description">
442
+
443
+
444
+
445
+
446
+
447
+ <div class="method-source-code" id="to_s-source">
448
+ <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 539</span>
449
+ <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>
451
+ <span class="ruby-keyword">end</span></pre>
452
+ </div><!-- to_s-source -->
453
+
454
+ </div>
455
+
456
+
457
+
458
+
459
+ </div><!-- to_s-method -->
460
+
461
+
462
+ </section><!-- public-instance-method-details -->
463
+
464
+ </section><!-- 5Buntitled-5D -->
465
+
466
+ </div><!-- documentation -->
467
+
468
+
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.
473
+ </footer>
474
+