midilib 2.0.0 → 2.0.1

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 +11 -2
  2. data/README.rdoc +17 -26
  3. data/Rakefile +34 -7
  4. data/install.rb +2 -2
  5. data/lib/midilib/info.rb +2 -2
  6. metadata +25 -119
  7. data/html/Array.html +0 -382
  8. data/html/IO.html +0 -277
  9. data/html/MIDI.html +0 -829
  10. data/html/MIDI/ActiveSense.html +0 -317
  11. data/html/MIDI/ChannelEvent.html +0 -347
  12. data/html/MIDI/ChannelPressure.html +0 -379
  13. data/html/MIDI/Clock.html +0 -317
  14. data/html/MIDI/Continue.html +0 -317
  15. data/html/MIDI/Controller.html +0 -398
  16. data/html/MIDI/Event.html +0 -659
  17. data/html/MIDI/IO.html +0 -238
  18. data/html/MIDI/IO/MIDIFile.html +0 -2269
  19. data/html/MIDI/IO/SeqReader.html +0 -1051
  20. data/html/MIDI/IO/SeqWriter.html +0 -706
  21. data/html/MIDI/KeySig.html +0 -487
  22. data/html/MIDI/Marker.html +0 -275
  23. data/html/MIDI/Measure.html +0 -479
  24. data/html/MIDI/Measures.html +0 -416
  25. data/html/MIDI/MetaEvent.html +0 -617
  26. data/html/MIDI/NoteEvent.html +0 -459
  27. data/html/MIDI/NoteOff.html +0 -341
  28. data/html/MIDI/NoteOn.html +0 -341
  29. data/html/MIDI/PitchBend.html +0 -380
  30. data/html/MIDI/PolyPressure.html +0 -390
  31. data/html/MIDI/ProgramChange.html +0 -379
  32. data/html/MIDI/Realtime.html +0 -354
  33. data/html/MIDI/Sequence.html +0 -1063
  34. data/html/MIDI/SongPointer.html +0 -380
  35. data/html/MIDI/SongSelect.html +0 -379
  36. data/html/MIDI/Start.html +0 -317
  37. data/html/MIDI/Stop.html +0 -317
  38. data/html/MIDI/SystemCommon.html +0 -275
  39. data/html/MIDI/SystemExclusive.html +0 -382
  40. data/html/MIDI/SystemReset.html +0 -317
  41. data/html/MIDI/Tempo.html +0 -519
  42. data/html/MIDI/TimeSig.html +0 -524
  43. data/html/MIDI/Track.html +0 -859
  44. data/html/MIDI/TuneRequest.html +0 -354
  45. data/html/MIDI/Utils.html +0 -350
  46. data/html/README_rdoc.html +0 -882
  47. data/html/TODO_rdoc.html +0 -215
  48. data/html/created.rid +0 -14
  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/find.png +0 -0
  57. data/html/images/loadingAnimation.gif +0 -0
  58. data/html/images/macFFBgHack.png +0 -0
  59. data/html/images/package.png +0 -0
  60. data/html/images/page_green.png +0 -0
  61. data/html/images/page_white_text.png +0 -0
  62. data/html/images/page_white_width.png +0 -0
  63. data/html/images/plugin.png +0 -0
  64. data/html/images/ruby.png +0 -0
  65. data/html/images/tag_green.png +0 -0
  66. data/html/images/wrench.png +0 -0
  67. data/html/images/wrench_orange.png +0 -0
  68. data/html/images/zoom.png +0 -0
  69. data/html/index.html +0 -1266
  70. data/html/js/darkfish.js +0 -116
  71. data/html/js/jquery.js +0 -32
  72. data/html/js/quicksearch.js +0 -114
  73. data/html/js/thickbox-compressed.js +0 -10
  74. data/html/lib/midilib/consts_rb.html +0 -55
  75. data/html/lib/midilib/event_rb.html +0 -56
  76. data/html/lib/midilib/info_rb.html +0 -52
  77. data/html/lib/midilib/io/midifile_rb.html +0 -54
  78. data/html/lib/midilib/io/seqreader_rb.html +0 -58
  79. data/html/lib/midilib/io/seqwriter_rb.html +0 -59
  80. data/html/lib/midilib/measure_rb.html +0 -54
  81. data/html/lib/midilib/sequence_rb.html +0 -58
  82. data/html/lib/midilib/track_rb.html +0 -54
  83. data/html/lib/midilib/utils_rb.html +0 -52
  84. data/html/lib/midilib_rb.html +0 -71
  85. data/html/rdoc.css +0 -706
@@ -1,487 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
-
8
- <title>Class: MIDI::KeySig</title>
9
-
10
- <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
-
12
- <script src="../js/jquery.js" type="text/javascript"
13
- charset="utf-8"></script>
14
- <script src="../js/thickbox-compressed.js" type="text/javascript"
15
- charset="utf-8"></script>
16
- <script src="../js/quicksearch.js" type="text/javascript"
17
- charset="utf-8"></script>
18
- <script src="../js/darkfish.js" type="text/javascript"
19
- charset="utf-8"></script>
20
-
21
- </head>
22
- <body class="class">
23
-
24
- <div id="metadata">
25
- <div id="home-metadata">
26
- <div id="home-section" class="section">
27
- <h3 class="section-header">
28
- <a href="../index.html">Home</a>
29
- <a href="../index.html#classes">Classes</a>
30
- <a href="../index.html#methods">Methods</a>
31
- </h3>
32
- </div>
33
- </div>
34
-
35
- <div id="file-metadata">
36
- <div id="file-list-section" class="section">
37
- <h3 class="section-header">In Files</h3>
38
- <div class="section-body">
39
- <ul>
40
-
41
- <li><a href="../lib/midilib/event_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
- class="thickbox" title="lib/midilib/event.rb">lib/midilib/event.rb</a></li>
43
-
44
- </ul>
45
- </div>
46
- </div>
47
-
48
-
49
- </div>
50
-
51
- <div id="class-metadata">
52
-
53
- <!-- Parent Class -->
54
-
55
- <div id="parent-class-section" class="section">
56
- <h3 class="section-header">Parent</h3>
57
-
58
- <p class="link"><a href="MetaEvent.html">MIDI::MetaEvent</a></p>
59
-
60
- </div>
61
-
62
-
63
- <!-- Namespace Contents -->
64
-
65
-
66
- <!-- Method Quickref -->
67
-
68
- <div id="method-list-section" class="section">
69
- <h3 class="section-header">Methods</h3>
70
- <ul class="link-list">
71
-
72
- <li><a href="#method-c-new">::new</a></li>
73
-
74
- <li><a href="#method-i-data_as_bytes">#data_as_bytes</a></li>
75
-
76
- <li><a href="#method-i-major_key%3F">#major_key?</a></li>
77
-
78
- <li><a href="#method-i-minor_key%3F">#minor_key?</a></li>
79
-
80
- <li><a href="#method-i-sharpflat">#sharpflat</a></li>
81
-
82
- <li><a href="#method-i-to_s">#to_s</a></li>
83
-
84
- </ul>
85
- </div>
86
-
87
-
88
- <!-- Included Modules -->
89
-
90
- </div>
91
-
92
- <div id="project-metadata">
93
-
94
-
95
- <div id="fileindex-section" class="section project-section">
96
- <h3 class="section-header">Files</h3>
97
- <ul>
98
-
99
- <li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
100
-
101
- <li class="file"><a href="../TODO_rdoc.html">TODO.rdoc</a></li>
102
-
103
- </ul>
104
- </div>
105
-
106
-
107
- <div id="classindex-section" class="section project-section">
108
- <h3 class="section-header">Class Index
109
- <span class="search-toggle"><img src="../images/find.png"
110
- height="16" width="16" alt="[+]"
111
- title="show/hide quicksearch" /></span></h3>
112
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
113
- <fieldset>
114
- <legend>Quicksearch</legend>
115
- <input type="text" name="quicksearch" value=""
116
- class="quicksearch-field" />
117
- </fieldset>
118
- </form>
119
-
120
- <ul class="link-list">
121
-
122
- <li><a href="../MIDI.html">MIDI</a></li>
123
-
124
- <li><a href="../MIDI/ActiveSense.html">MIDI::ActiveSense</a></li>
125
-
126
- <li><a href="../MIDI/ChannelEvent.html">MIDI::ChannelEvent</a></li>
127
-
128
- <li><a href="../MIDI/ChannelPressure.html">MIDI::ChannelPressure</a></li>
129
-
130
- <li><a href="../MIDI/Clock.html">MIDI::Clock</a></li>
131
-
132
- <li><a href="../MIDI/Continue.html">MIDI::Continue</a></li>
133
-
134
- <li><a href="../MIDI/Controller.html">MIDI::Controller</a></li>
135
-
136
- <li><a href="../MIDI/Event.html">MIDI::Event</a></li>
137
-
138
- <li><a href="../MIDI/IO.html">MIDI::IO</a></li>
139
-
140
- <li><a href="../MIDI/IO/MIDIFile.html">MIDI::IO::MIDIFile</a></li>
141
-
142
- <li><a href="../MIDI/IO/SeqReader.html">MIDI::IO::SeqReader</a></li>
143
-
144
- <li><a href="../MIDI/IO/SeqWriter.html">MIDI::IO::SeqWriter</a></li>
145
-
146
- <li><a href="../MIDI/KeySig.html">MIDI::KeySig</a></li>
147
-
148
- <li><a href="../MIDI/Marker.html">MIDI::Marker</a></li>
149
-
150
- <li><a href="../MIDI/Measure.html">MIDI::Measure</a></li>
151
-
152
- <li><a href="../MIDI/Measures.html">MIDI::Measures</a></li>
153
-
154
- <li><a href="../MIDI/MetaEvent.html">MIDI::MetaEvent</a></li>
155
-
156
- <li><a href="../MIDI/NoteEvent.html">MIDI::NoteEvent</a></li>
157
-
158
- <li><a href="../MIDI/NoteOff.html">MIDI::NoteOff</a></li>
159
-
160
- <li><a href="../MIDI/NoteOff.html">MIDI::NoteOff</a></li>
161
-
162
- <li><a href="../MIDI/NoteOn.html">MIDI::NoteOn</a></li>
163
-
164
- <li><a href="../MIDI/NoteOn.html">MIDI::NoteOn</a></li>
165
-
166
- <li><a href="../MIDI/PitchBend.html">MIDI::PitchBend</a></li>
167
-
168
- <li><a href="../MIDI/PolyPressure.html">MIDI::PolyPressure</a></li>
169
-
170
- <li><a href="../MIDI/ProgramChange.html">MIDI::ProgramChange</a></li>
171
-
172
- <li><a href="../MIDI/Realtime.html">MIDI::Realtime</a></li>
173
-
174
- <li><a href="../MIDI/Sequence.html">MIDI::Sequence</a></li>
175
-
176
- <li><a href="../MIDI/SongPointer.html">MIDI::SongPointer</a></li>
177
-
178
- <li><a href="../MIDI/SongSelect.html">MIDI::SongSelect</a></li>
179
-
180
- <li><a href="../MIDI/Start.html">MIDI::Start</a></li>
181
-
182
- <li><a href="../MIDI/Stop.html">MIDI::Stop</a></li>
183
-
184
- <li><a href="../MIDI/SystemCommon.html">MIDI::SystemCommon</a></li>
185
-
186
- <li><a href="../MIDI/SystemExclusive.html">MIDI::SystemExclusive</a></li>
187
-
188
- <li><a href="../MIDI/SystemReset.html">MIDI::SystemReset</a></li>
189
-
190
- <li><a href="../MIDI/Tempo.html">MIDI::Tempo</a></li>
191
-
192
- <li><a href="../MIDI/TimeSig.html">MIDI::TimeSig</a></li>
193
-
194
- <li><a href="../MIDI/Track.html">MIDI::Track</a></li>
195
-
196
- <li><a href="../MIDI/TuneRequest.html">MIDI::TuneRequest</a></li>
197
-
198
- <li><a href="../MIDI/Utils.html">MIDI::Utils</a></li>
199
-
200
- <li><a href="../Array.html">Array</a></li>
201
-
202
- <li><a href="../IO.html">IO</a></li>
203
-
204
- </ul>
205
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
206
- </div>
207
-
208
-
209
- </div>
210
- </div>
211
-
212
- <div id="documentation">
213
- <h1 class="class">MIDI::KeySig</h1>
214
-
215
- <div id="description">
216
- <p>
217
- Container for key signature events
218
- </p>
219
-
220
- </div>
221
-
222
- <!-- Constants -->
223
-
224
-
225
- <!-- Attributes -->
226
-
227
-
228
- <!-- Methods -->
229
-
230
- <div id="public-class-method-details" class="method-section section">
231
- <h3 class="section-header">Public Class Methods</h3>
232
-
233
-
234
- <div id="new-method" class="method-detail ">
235
- <a name="method-c-new"></a>
236
-
237
- <div class="method-heading">
238
-
239
- <span class="method-name">new</span><span
240
- class="method-args">(sharpflat, is_minor, delta_time = 0)</span>
241
- <span class="method-click-advice">click to toggle source</span>
242
-
243
- </div>
244
-
245
- <div class="method-description">
246
-
247
- <p>
248
- Constructor
249
- </p>
250
-
251
-
252
-
253
- <div class="method-source-code"
254
- id="new-source">
255
- <pre>
256
- <span class="ruby-comment cmt"># File lib/midilib/event.rb, line 597</span>
257
- 597: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">sharpflat</span>, <span class="ruby-identifier">is_minor</span>, <span class="ruby-identifier">delta_time</span> = <span class="ruby-value">0</span>)
258
- 598: <span class="ruby-keyword kw">super</span>(<span class="ruby-constant">META_KEY_SIG</span>, [<span class="ruby-identifier">sharpflat</span>, <span class="ruby-identifier">is_minor</span>], <span class="ruby-identifier">delta_time</span>)
259
- 599: <span class="ruby-keyword kw">end</span></pre>
260
- </div>
261
-
262
- </div>
263
-
264
-
265
-
266
-
267
- </div>
268
-
269
-
270
- </div>
271
-
272
- <div id="public-instance-method-details" class="method-section section">
273
- <h3 class="section-header">Public Instance Methods</h3>
274
-
275
-
276
- <div id="data-as-bytes-method" class="method-detail ">
277
- <a name="method-i-data_as_bytes"></a>
278
-
279
- <div class="method-heading">
280
-
281
- <span class="method-name">data_as_bytes</span><span
282
- class="method-args">()</span>
283
- <span class="method-click-advice">click to toggle source</span>
284
-
285
- </div>
286
-
287
- <div class="method-description">
288
-
289
- <p>
290
- Returns the complete event as stored in the sequence
291
- </p>
292
-
293
-
294
-
295
- <div class="method-source-code"
296
- id="data-as-bytes-source">
297
- <pre>
298
- <span class="ruby-comment cmt"># File lib/midilib/event.rb, line 602</span>
299
- 602: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">data_as_bytes</span>
300
- 603: <span class="ruby-identifier">data</span> = []
301
- 604: <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@status</span>
302
- 605: <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@meta_type</span>
303
- 606: <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value">2</span>
304
- 607: <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@data</span>[<span class="ruby-value">0</span>]
305
- 608: <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-ivar">@data</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">?</span> <span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>)
306
- 609: <span class="ruby-keyword kw">end</span></pre>
307
- </div>
308
-
309
- </div>
310
-
311
-
312
-
313
-
314
- </div>
315
-
316
-
317
- <div id="major-key--method" class="method-detail ">
318
- <a name="method-i-major_key%3F"></a>
319
-
320
- <div class="method-heading">
321
-
322
- <span class="method-name">major_key?</span><span
323
- class="method-args">()</span>
324
- <span class="method-click-advice">click to toggle source</span>
325
-
326
- </div>
327
-
328
- <div class="method-description">
329
-
330
- <p>
331
- Returns true if it&#8217;s a major key, false if minor key
332
- </p>
333
-
334
-
335
-
336
- <div class="method-source-code"
337
- id="major-key--source">
338
- <pre>
339
- <span class="ruby-comment cmt"># File lib/midilib/event.rb, line 617</span>
340
- 617: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">major_key?</span>
341
- 618: <span class="ruby-operator">!</span><span class="ruby-ivar">@data</span>[<span class="ruby-value">1</span>]
342
- 619: <span class="ruby-keyword kw">end</span></pre>
343
- </div>
344
-
345
- </div>
346
-
347
-
348
-
349
-
350
- </div>
351
-
352
-
353
- <div id="minor-key--method" class="method-detail ">
354
- <a name="method-i-minor_key%3F"></a>
355
-
356
- <div class="method-heading">
357
-
358
- <span class="method-name">minor_key?</span><span
359
- class="method-args">()</span>
360
- <span class="method-click-advice">click to toggle source</span>
361
-
362
- </div>
363
-
364
- <div class="method-description">
365
-
366
- <p>
367
- Returns true if it&#8217;s a minor key, false if major key
368
- </p>
369
-
370
-
371
-
372
- <div class="method-source-code"
373
- id="minor-key--source">
374
- <pre>
375
- <span class="ruby-comment cmt"># File lib/midilib/event.rb, line 612</span>
376
- 612: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">minor_key?</span>
377
- 613: <span class="ruby-ivar">@data</span>[<span class="ruby-value">1</span>]
378
- 614: <span class="ruby-keyword kw">end</span></pre>
379
- </div>
380
-
381
- </div>
382
-
383
-
384
-
385
-
386
- </div>
387
-
388
-
389
- <div id="sharpflat-method" class="method-detail ">
390
- <a name="method-i-sharpflat"></a>
391
-
392
- <div class="method-heading">
393
-
394
- <span class="method-name">sharpflat</span><span
395
- class="method-args">()</span>
396
- <span class="method-click-advice">click to toggle source</span>
397
-
398
- </div>
399
-
400
- <div class="method-description">
401
-
402
- <p>
403
- Returns the number of sharps/flats in the key sig. Negative for flats.
404
- </p>
405
-
406
-
407
-
408
- <div class="method-source-code"
409
- id="sharpflat-source">
410
- <pre>
411
- <span class="ruby-comment cmt"># File lib/midilib/event.rb, line 622</span>
412
- 622: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sharpflat</span>
413
- 623: <span class="ruby-ivar">@data</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">&gt;</span> <span class="ruby-value">7</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@data</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">-</span> <span class="ruby-value">256</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@data</span>[<span class="ruby-value">0</span>]
414
- 624: <span class="ruby-keyword kw">end</span></pre>
415
- </div>
416
-
417
- </div>
418
-
419
-
420
-
421
-
422
- </div>
423
-
424
-
425
- <div id="to-s-method" class="method-detail ">
426
- <a name="method-i-to_s"></a>
427
-
428
- <div class="method-heading">
429
-
430
- <span class="method-name">to_s</span><span
431
- class="method-args">()</span>
432
- <span class="method-click-advice">click to toggle source</span>
433
-
434
- </div>
435
-
436
- <div class="method-description">
437
-
438
- <p>
439
- Returns the key signature as a text string. Example: &#8220;key sig A flat
440
- major&#8220;
441
- </p>
442
-
443
-
444
-
445
- <div class="method-source-code"
446
- id="to-s-source">
447
- <pre>
448
- <span class="ruby-comment cmt"># File lib/midilib/event.rb, line 628</span>
449
- 628: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
450
- 629: <span class="ruby-identifier">majorkeys</span> = [<span class="ruby-value str">'C flat'</span>, <span class="ruby-value str">'G flat'</span>, <span class="ruby-value str">'D flat'</span>, <span class="ruby-value str">'A flat'</span>, <span class="ruby-value str">'E flat'</span>, <span class="ruby-value str">'B flat'</span>, <span class="ruby-value str">'F'</span>,
451
- 630: <span class="ruby-value str">'C'</span>, <span class="ruby-value str">'G'</span>, <span class="ruby-value str">'D'</span>, <span class="ruby-value str">'A'</span>, <span class="ruby-value str">'E'</span>, <span class="ruby-value str">'B'</span>, <span class="ruby-value str">'F#'</span>, <span class="ruby-value str">'C#'</span>]
452
- 631: <span class="ruby-identifier">minorkeys</span> = [<span class="ruby-value str">'a flat'</span>, <span class="ruby-value str">'e flat'</span>, <span class="ruby-value str">'b flat'</span>, <span class="ruby-value str">'f'</span>, <span class="ruby-value str">'c'</span>, <span class="ruby-value str">'g'</span>, <span class="ruby-value str">'d'</span>,
453
- 632: <span class="ruby-value str">'a'</span>, <span class="ruby-value str">'e'</span>, <span class="ruby-value str">'b'</span>, <span class="ruby-value str">'f#'</span>, <span class="ruby-value str">'c#'</span>, <span class="ruby-value str">'g#'</span>, <span class="ruby-value str">'d#'</span>, <span class="ruby-value str">'a#'</span>]
454
- 633: <span class="ruby-identifier">minor_key?</span> <span class="ruby-operator">?</span> <span class="ruby-node">&quot;key sig #{minorkeys[sharpflat + 7]} minor&quot;</span> <span class="ruby-operator">:</span>
455
- 634: <span class="ruby-node">&quot;key sig #{majorkeys[sharpflat + 7]} major&quot;</span>
456
- 635: <span class="ruby-keyword kw">end</span></pre>
457
- </div>
458
-
459
- </div>
460
-
461
-
462
-
463
-
464
- </div>
465
-
466
-
467
- </div>
468
-
469
-
470
- </div>
471
-
472
-
473
- <div id="rdoc-debugging-section-dump" class="debugging-section">
474
-
475
- <p>Disabled; run with --debug to generate this.</p>
476
-
477
- </div>
478
-
479
- <div id="validator-badges">
480
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
481
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
482
- Rdoc Generator</a> 1.1.6</small>.</p>
483
- </div>
484
-
485
- </body>
486
- </html>
487
-