midilib 1.2.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. data/ChangeLog +3 -1
  2. data/Credits +6 -1
  3. data/README.rdoc +41 -15
  4. data/Rakefile +3 -11
  5. data/TODO.rdoc +4 -7
  6. data/examples/from_scratch.rb +2 -2
  7. data/examples/measures_mbt.rb +1 -1
  8. data/examples/print_program_changes.rb +1 -1
  9. data/examples/strings.rb +1 -1
  10. data/examples/transpose.rb +1 -1
  11. data/html/Array.html +382 -0
  12. data/html/IO.html +277 -0
  13. data/html/MIDI.html +829 -0
  14. data/html/MIDI/ActiveSense.html +317 -0
  15. data/html/MIDI/ChannelEvent.html +347 -0
  16. data/html/MIDI/ChannelPressure.html +379 -0
  17. data/html/MIDI/Clock.html +317 -0
  18. data/html/MIDI/Continue.html +317 -0
  19. data/html/MIDI/Controller.html +398 -0
  20. data/html/MIDI/Event.html +659 -0
  21. data/html/MIDI/IO.html +238 -0
  22. data/html/MIDI/IO/MIDIFile.html +2269 -0
  23. data/html/MIDI/IO/SeqReader.html +1051 -0
  24. data/html/MIDI/IO/SeqWriter.html +706 -0
  25. data/html/MIDI/KeySig.html +487 -0
  26. data/html/MIDI/Marker.html +275 -0
  27. data/html/MIDI/Measure.html +479 -0
  28. data/html/MIDI/Measures.html +416 -0
  29. data/html/MIDI/MetaEvent.html +617 -0
  30. data/html/MIDI/NoteEvent.html +459 -0
  31. data/html/MIDI/NoteOff.html +341 -0
  32. data/html/MIDI/NoteOn.html +341 -0
  33. data/html/MIDI/PitchBend.html +380 -0
  34. data/html/MIDI/PolyPressure.html +390 -0
  35. data/html/MIDI/ProgramChange.html +379 -0
  36. data/html/MIDI/Realtime.html +354 -0
  37. data/html/MIDI/Sequence.html +1063 -0
  38. data/html/MIDI/SongPointer.html +380 -0
  39. data/html/MIDI/SongSelect.html +379 -0
  40. data/html/MIDI/Start.html +317 -0
  41. data/html/MIDI/Stop.html +317 -0
  42. data/html/MIDI/SystemCommon.html +275 -0
  43. data/html/MIDI/SystemExclusive.html +382 -0
  44. data/html/MIDI/SystemReset.html +317 -0
  45. data/html/MIDI/Tempo.html +519 -0
  46. data/html/MIDI/TimeSig.html +524 -0
  47. data/html/MIDI/Track.html +859 -0
  48. data/html/MIDI/TuneRequest.html +354 -0
  49. data/html/MIDI/Utils.html +350 -0
  50. data/html/README_rdoc.html +882 -0
  51. data/html/TODO_rdoc.html +215 -0
  52. data/html/created.rid +14 -0
  53. data/html/images/brick.png +0 -0
  54. data/html/images/brick_link.png +0 -0
  55. data/html/images/bug.png +0 -0
  56. data/html/images/bullet_black.png +0 -0
  57. data/html/images/bullet_toggle_minus.png +0 -0
  58. data/html/images/bullet_toggle_plus.png +0 -0
  59. data/html/images/date.png +0 -0
  60. data/html/images/find.png +0 -0
  61. data/html/images/loadingAnimation.gif +0 -0
  62. data/html/images/macFFBgHack.png +0 -0
  63. data/html/images/package.png +0 -0
  64. data/html/images/page_green.png +0 -0
  65. data/html/images/page_white_text.png +0 -0
  66. data/html/images/page_white_width.png +0 -0
  67. data/html/images/plugin.png +0 -0
  68. data/html/images/ruby.png +0 -0
  69. data/html/images/tag_green.png +0 -0
  70. data/html/images/wrench.png +0 -0
  71. data/html/images/wrench_orange.png +0 -0
  72. data/html/images/zoom.png +0 -0
  73. data/html/index.html +1266 -0
  74. data/html/js/darkfish.js +116 -0
  75. data/html/js/jquery.js +32 -0
  76. data/html/js/quicksearch.js +114 -0
  77. data/html/js/thickbox-compressed.js +10 -0
  78. data/html/lib/midilib/consts_rb.html +55 -0
  79. data/html/lib/midilib/event_rb.html +56 -0
  80. data/html/lib/midilib/info_rb.html +52 -0
  81. data/html/lib/midilib/io/midifile_rb.html +54 -0
  82. data/html/lib/midilib/io/seqreader_rb.html +58 -0
  83. data/html/lib/midilib/io/seqwriter_rb.html +59 -0
  84. data/html/lib/midilib/measure_rb.html +54 -0
  85. data/html/lib/midilib/sequence_rb.html +58 -0
  86. data/html/lib/midilib/track_rb.html +54 -0
  87. data/html/lib/midilib/utils_rb.html +52 -0
  88. data/html/lib/midilib_rb.html +71 -0
  89. data/html/rdoc.css +706 -0
  90. data/install.rb +1 -1
  91. data/lib/midilib/event.rb +11 -77
  92. data/lib/midilib/info.rb +4 -4
  93. data/lib/midilib/io/seqreader.rb +2 -2
  94. data/lib/midilib/io/seqwriter.rb +1 -1
  95. data/lib/midilib/sequence.rb +1 -1
  96. data/lib/midilib/track.rb +54 -8
  97. data/test/test_event.rb +4 -62
  98. data/test/test_sequence.rb +1 -1
  99. data/test/test_track.rb +39 -5
  100. metadata +102 -9
@@ -0,0 +1,380 @@
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::PitchBend</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="ChannelEvent.html">MIDI::ChannelEvent</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-to_s">#to_s</a></li>
77
+
78
+ </ul>
79
+ </div>
80
+
81
+
82
+ <!-- Included Modules -->
83
+
84
+ </div>
85
+
86
+ <div id="project-metadata">
87
+
88
+
89
+ <div id="fileindex-section" class="section project-section">
90
+ <h3 class="section-header">Files</h3>
91
+ <ul>
92
+
93
+ <li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
94
+
95
+ <li class="file"><a href="../TODO_rdoc.html">TODO.rdoc</a></li>
96
+
97
+ </ul>
98
+ </div>
99
+
100
+
101
+ <div id="classindex-section" class="section project-section">
102
+ <h3 class="section-header">Class Index
103
+ <span class="search-toggle"><img src="../images/find.png"
104
+ height="16" width="16" alt="[+]"
105
+ title="show/hide quicksearch" /></span></h3>
106
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
107
+ <fieldset>
108
+ <legend>Quicksearch</legend>
109
+ <input type="text" name="quicksearch" value=""
110
+ class="quicksearch-field" />
111
+ </fieldset>
112
+ </form>
113
+
114
+ <ul class="link-list">
115
+
116
+ <li><a href="../MIDI.html">MIDI</a></li>
117
+
118
+ <li><a href="../MIDI/ActiveSense.html">MIDI::ActiveSense</a></li>
119
+
120
+ <li><a href="../MIDI/ChannelEvent.html">MIDI::ChannelEvent</a></li>
121
+
122
+ <li><a href="../MIDI/ChannelPressure.html">MIDI::ChannelPressure</a></li>
123
+
124
+ <li><a href="../MIDI/Clock.html">MIDI::Clock</a></li>
125
+
126
+ <li><a href="../MIDI/Continue.html">MIDI::Continue</a></li>
127
+
128
+ <li><a href="../MIDI/Controller.html">MIDI::Controller</a></li>
129
+
130
+ <li><a href="../MIDI/Event.html">MIDI::Event</a></li>
131
+
132
+ <li><a href="../MIDI/IO.html">MIDI::IO</a></li>
133
+
134
+ <li><a href="../MIDI/IO/MIDIFile.html">MIDI::IO::MIDIFile</a></li>
135
+
136
+ <li><a href="../MIDI/IO/SeqReader.html">MIDI::IO::SeqReader</a></li>
137
+
138
+ <li><a href="../MIDI/IO/SeqWriter.html">MIDI::IO::SeqWriter</a></li>
139
+
140
+ <li><a href="../MIDI/KeySig.html">MIDI::KeySig</a></li>
141
+
142
+ <li><a href="../MIDI/Marker.html">MIDI::Marker</a></li>
143
+
144
+ <li><a href="../MIDI/Measure.html">MIDI::Measure</a></li>
145
+
146
+ <li><a href="../MIDI/Measures.html">MIDI::Measures</a></li>
147
+
148
+ <li><a href="../MIDI/MetaEvent.html">MIDI::MetaEvent</a></li>
149
+
150
+ <li><a href="../MIDI/NoteEvent.html">MIDI::NoteEvent</a></li>
151
+
152
+ <li><a href="../MIDI/NoteOff.html">MIDI::NoteOff</a></li>
153
+
154
+ <li><a href="../MIDI/NoteOff.html">MIDI::NoteOff</a></li>
155
+
156
+ <li><a href="../MIDI/NoteOn.html">MIDI::NoteOn</a></li>
157
+
158
+ <li><a href="../MIDI/NoteOn.html">MIDI::NoteOn</a></li>
159
+
160
+ <li><a href="../MIDI/PitchBend.html">MIDI::PitchBend</a></li>
161
+
162
+ <li><a href="../MIDI/PolyPressure.html">MIDI::PolyPressure</a></li>
163
+
164
+ <li><a href="../MIDI/ProgramChange.html">MIDI::ProgramChange</a></li>
165
+
166
+ <li><a href="../MIDI/Realtime.html">MIDI::Realtime</a></li>
167
+
168
+ <li><a href="../MIDI/Sequence.html">MIDI::Sequence</a></li>
169
+
170
+ <li><a href="../MIDI/SongPointer.html">MIDI::SongPointer</a></li>
171
+
172
+ <li><a href="../MIDI/SongSelect.html">MIDI::SongSelect</a></li>
173
+
174
+ <li><a href="../MIDI/Start.html">MIDI::Start</a></li>
175
+
176
+ <li><a href="../MIDI/Stop.html">MIDI::Stop</a></li>
177
+
178
+ <li><a href="../MIDI/SystemCommon.html">MIDI::SystemCommon</a></li>
179
+
180
+ <li><a href="../MIDI/SystemExclusive.html">MIDI::SystemExclusive</a></li>
181
+
182
+ <li><a href="../MIDI/SystemReset.html">MIDI::SystemReset</a></li>
183
+
184
+ <li><a href="../MIDI/Tempo.html">MIDI::Tempo</a></li>
185
+
186
+ <li><a href="../MIDI/TimeSig.html">MIDI::TimeSig</a></li>
187
+
188
+ <li><a href="../MIDI/Track.html">MIDI::Track</a></li>
189
+
190
+ <li><a href="../MIDI/TuneRequest.html">MIDI::TuneRequest</a></li>
191
+
192
+ <li><a href="../MIDI/Utils.html">MIDI::Utils</a></li>
193
+
194
+ <li><a href="../Array.html">Array</a></li>
195
+
196
+ <li><a href="../IO.html">IO</a></li>
197
+
198
+ </ul>
199
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
200
+ </div>
201
+
202
+
203
+ </div>
204
+ </div>
205
+
206
+ <div id="documentation">
207
+ <h1 class="class">MIDI::PitchBend</h1>
208
+
209
+ <div id="description">
210
+
211
+ </div>
212
+
213
+ <!-- Constants -->
214
+
215
+
216
+ <!-- Attributes -->
217
+
218
+ <div id="attribute-method-details" class="method-section section">
219
+ <h3 class="section-header">Attributes</h3>
220
+
221
+
222
+ <div id="value-attribute-method" class="method-detail">
223
+ <a name="value"></a>
224
+
225
+ <a name="value="></a>
226
+
227
+ <div class="method-heading attribute-method-heading">
228
+ <span class="method-name">value</span><span
229
+ class="attribute-access-type">[RW]</span>
230
+ </div>
231
+
232
+ <div class="method-description">
233
+
234
+
235
+
236
+ </div>
237
+ </div>
238
+
239
+ </div>
240
+
241
+
242
+ <!-- Methods -->
243
+
244
+ <div id="public-class-method-details" class="method-section section">
245
+ <h3 class="section-header">Public Class Methods</h3>
246
+
247
+
248
+ <div id="new-method" class="method-detail ">
249
+ <a name="method-c-new"></a>
250
+
251
+ <div class="method-heading">
252
+
253
+ <span class="method-name">new</span><span
254
+ class="method-args">(channel = 0, value = 0, delta_time = 0)</span>
255
+ <span class="method-click-advice">click to toggle source</span>
256
+
257
+ </div>
258
+
259
+ <div class="method-description">
260
+
261
+
262
+
263
+
264
+
265
+ <div class="method-source-code"
266
+ id="new-source">
267
+ <pre>
268
+ <span class="ruby-comment cmt"># File lib/midilib/event.rb, line 242</span>
269
+ 242: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">channel</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">value</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">delta_time</span> = <span class="ruby-value">0</span>)
270
+ 243: <span class="ruby-keyword kw">super</span>(<span class="ruby-constant">PITCH_BEND</span>, <span class="ruby-identifier">channel</span>, <span class="ruby-identifier">delta_time</span>)
271
+ 244: <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span>
272
+ 245: <span class="ruby-keyword kw">end</span></pre>
273
+ </div>
274
+
275
+ </div>
276
+
277
+
278
+
279
+
280
+ </div>
281
+
282
+
283
+ </div>
284
+
285
+ <div id="public-instance-method-details" class="method-section section">
286
+ <h3 class="section-header">Public Instance Methods</h3>
287
+
288
+
289
+ <div id="data-as-bytes-method" class="method-detail ">
290
+ <a name="method-i-data_as_bytes"></a>
291
+
292
+ <div class="method-heading">
293
+
294
+ <span class="method-name">data_as_bytes</span><span
295
+ class="method-args">()</span>
296
+ <span class="method-click-advice">click to toggle source</span>
297
+
298
+ </div>
299
+
300
+ <div class="method-description">
301
+
302
+
303
+
304
+
305
+
306
+ <div class="method-source-code"
307
+ id="data-as-bytes-source">
308
+ <pre>
309
+ <span class="ruby-comment cmt"># File lib/midilib/event.rb, line 247</span>
310
+ 247: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">data_as_bytes</span>
311
+ 248: <span class="ruby-identifier">data</span> = []
312
+ 249: <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-ivar">@status</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@channel</span>)
313
+ 250: <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-ivar">@value</span> &amp; <span class="ruby-value">0x7f</span>) <span class="ruby-comment cmt"># lsb</span>
314
+ 251: <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> ((<span class="ruby-ivar">@value</span> <span class="ruby-operator">&gt;&gt;</span> <span class="ruby-value">7</span>) &amp; <span class="ruby-value">0x7f</span>) <span class="ruby-comment cmt"># msb</span>
315
+ 252: <span class="ruby-keyword kw">end</span></pre>
316
+ </div>
317
+
318
+ </div>
319
+
320
+
321
+
322
+
323
+ </div>
324
+
325
+
326
+ <div id="to-s-method" class="method-detail ">
327
+ <a name="method-i-to_s"></a>
328
+
329
+ <div class="method-heading">
330
+
331
+ <span class="method-name">to_s</span><span
332
+ class="method-args">()</span>
333
+ <span class="method-click-advice">click to toggle source</span>
334
+
335
+ </div>
336
+
337
+ <div class="method-description">
338
+
339
+
340
+
341
+
342
+
343
+ <div class="method-source-code"
344
+ id="to-s-source">
345
+ <pre>
346
+ <span class="ruby-comment cmt"># File lib/midilib/event.rb, line 254</span>
347
+ 254: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
348
+ 255: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">super</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;pb #{number_to_s(@value)}&quot;</span>
349
+ 256: <span class="ruby-keyword kw">end</span></pre>
350
+ </div>
351
+
352
+ </div>
353
+
354
+
355
+
356
+
357
+ </div>
358
+
359
+
360
+ </div>
361
+
362
+
363
+ </div>
364
+
365
+
366
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
367
+
368
+ <p>Disabled; run with --debug to generate this.</p>
369
+
370
+ </div>
371
+
372
+ <div id="validator-badges">
373
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
374
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
375
+ Rdoc Generator</a> 1.1.6</small>.</p>
376
+ </div>
377
+
378
+ </body>
379
+ </html>
380
+
@@ -0,0 +1,390 @@
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::PolyPressure</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="NoteEvent.html">MIDI::NoteEvent</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-pressure">#pressure</a></li>
75
+
76
+ <li><a href="#method-i-pressure%3D">#pressure=</a></li>
77
+
78
+ <li><a href="#method-i-to_s">#to_s</a></li>
79
+
80
+ </ul>
81
+ </div>
82
+
83
+
84
+ <!-- Included Modules -->
85
+
86
+ </div>
87
+
88
+ <div id="project-metadata">
89
+
90
+
91
+ <div id="fileindex-section" class="section project-section">
92
+ <h3 class="section-header">Files</h3>
93
+ <ul>
94
+
95
+ <li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
96
+
97
+ <li class="file"><a href="../TODO_rdoc.html">TODO.rdoc</a></li>
98
+
99
+ </ul>
100
+ </div>
101
+
102
+
103
+ <div id="classindex-section" class="section project-section">
104
+ <h3 class="section-header">Class Index
105
+ <span class="search-toggle"><img src="../images/find.png"
106
+ height="16" width="16" alt="[+]"
107
+ title="show/hide quicksearch" /></span></h3>
108
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
109
+ <fieldset>
110
+ <legend>Quicksearch</legend>
111
+ <input type="text" name="quicksearch" value=""
112
+ class="quicksearch-field" />
113
+ </fieldset>
114
+ </form>
115
+
116
+ <ul class="link-list">
117
+
118
+ <li><a href="../MIDI.html">MIDI</a></li>
119
+
120
+ <li><a href="../MIDI/ActiveSense.html">MIDI::ActiveSense</a></li>
121
+
122
+ <li><a href="../MIDI/ChannelEvent.html">MIDI::ChannelEvent</a></li>
123
+
124
+ <li><a href="../MIDI/ChannelPressure.html">MIDI::ChannelPressure</a></li>
125
+
126
+ <li><a href="../MIDI/Clock.html">MIDI::Clock</a></li>
127
+
128
+ <li><a href="../MIDI/Continue.html">MIDI::Continue</a></li>
129
+
130
+ <li><a href="../MIDI/Controller.html">MIDI::Controller</a></li>
131
+
132
+ <li><a href="../MIDI/Event.html">MIDI::Event</a></li>
133
+
134
+ <li><a href="../MIDI/IO.html">MIDI::IO</a></li>
135
+
136
+ <li><a href="../MIDI/IO/MIDIFile.html">MIDI::IO::MIDIFile</a></li>
137
+
138
+ <li><a href="../MIDI/IO/SeqReader.html">MIDI::IO::SeqReader</a></li>
139
+
140
+ <li><a href="../MIDI/IO/SeqWriter.html">MIDI::IO::SeqWriter</a></li>
141
+
142
+ <li><a href="../MIDI/KeySig.html">MIDI::KeySig</a></li>
143
+
144
+ <li><a href="../MIDI/Marker.html">MIDI::Marker</a></li>
145
+
146
+ <li><a href="../MIDI/Measure.html">MIDI::Measure</a></li>
147
+
148
+ <li><a href="../MIDI/Measures.html">MIDI::Measures</a></li>
149
+
150
+ <li><a href="../MIDI/MetaEvent.html">MIDI::MetaEvent</a></li>
151
+
152
+ <li><a href="../MIDI/NoteEvent.html">MIDI::NoteEvent</a></li>
153
+
154
+ <li><a href="../MIDI/NoteOff.html">MIDI::NoteOff</a></li>
155
+
156
+ <li><a href="../MIDI/NoteOff.html">MIDI::NoteOff</a></li>
157
+
158
+ <li><a href="../MIDI/NoteOn.html">MIDI::NoteOn</a></li>
159
+
160
+ <li><a href="../MIDI/NoteOn.html">MIDI::NoteOn</a></li>
161
+
162
+ <li><a href="../MIDI/PitchBend.html">MIDI::PitchBend</a></li>
163
+
164
+ <li><a href="../MIDI/PolyPressure.html">MIDI::PolyPressure</a></li>
165
+
166
+ <li><a href="../MIDI/ProgramChange.html">MIDI::ProgramChange</a></li>
167
+
168
+ <li><a href="../MIDI/Realtime.html">MIDI::Realtime</a></li>
169
+
170
+ <li><a href="../MIDI/Sequence.html">MIDI::Sequence</a></li>
171
+
172
+ <li><a href="../MIDI/SongPointer.html">MIDI::SongPointer</a></li>
173
+
174
+ <li><a href="../MIDI/SongSelect.html">MIDI::SongSelect</a></li>
175
+
176
+ <li><a href="../MIDI/Start.html">MIDI::Start</a></li>
177
+
178
+ <li><a href="../MIDI/Stop.html">MIDI::Stop</a></li>
179
+
180
+ <li><a href="../MIDI/SystemCommon.html">MIDI::SystemCommon</a></li>
181
+
182
+ <li><a href="../MIDI/SystemExclusive.html">MIDI::SystemExclusive</a></li>
183
+
184
+ <li><a href="../MIDI/SystemReset.html">MIDI::SystemReset</a></li>
185
+
186
+ <li><a href="../MIDI/Tempo.html">MIDI::Tempo</a></li>
187
+
188
+ <li><a href="../MIDI/TimeSig.html">MIDI::TimeSig</a></li>
189
+
190
+ <li><a href="../MIDI/Track.html">MIDI::Track</a></li>
191
+
192
+ <li><a href="../MIDI/TuneRequest.html">MIDI::TuneRequest</a></li>
193
+
194
+ <li><a href="../MIDI/Utils.html">MIDI::Utils</a></li>
195
+
196
+ <li><a href="../Array.html">Array</a></li>
197
+
198
+ <li><a href="../IO.html">IO</a></li>
199
+
200
+ </ul>
201
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
202
+ </div>
203
+
204
+
205
+ </div>
206
+ </div>
207
+
208
+ <div id="documentation">
209
+ <h1 class="class">MIDI::PolyPressure</h1>
210
+
211
+ <div id="description">
212
+
213
+ </div>
214
+
215
+ <!-- Constants -->
216
+
217
+
218
+ <!-- Attributes -->
219
+
220
+
221
+ <!-- Methods -->
222
+
223
+ <div id="public-class-method-details" class="method-section section">
224
+ <h3 class="section-header">Public Class Methods</h3>
225
+
226
+
227
+ <div id="new-method" class="method-detail ">
228
+ <a name="method-c-new"></a>
229
+
230
+ <div class="method-heading">
231
+
232
+ <span class="method-name">new</span><span
233
+ class="method-args">(channel = 0, note = 64, value = 0, delta_time = 0)</span>
234
+ <span class="method-click-advice">click to toggle source</span>
235
+
236
+ </div>
237
+
238
+ <div class="method-description">
239
+
240
+
241
+
242
+
243
+
244
+ <div class="method-source-code"
245
+ id="new-source">
246
+ <pre>
247
+ <span class="ruby-comment cmt"># File lib/midilib/event.rb, line 164</span>
248
+ 164: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">channel</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">note</span> = <span class="ruby-value">64</span>, <span class="ruby-identifier">value</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">delta_time</span> = <span class="ruby-value">0</span>)
249
+ 165: <span class="ruby-keyword kw">super</span>(<span class="ruby-constant">POLY_PRESSURE</span>, <span class="ruby-identifier">channel</span>, <span class="ruby-identifier">note</span>, <span class="ruby-identifier">value</span>, <span class="ruby-identifier">delta_time</span>)
250
+ 166: <span class="ruby-keyword kw">end</span></pre>
251
+ </div>
252
+
253
+ </div>
254
+
255
+
256
+
257
+
258
+ </div>
259
+
260
+
261
+ </div>
262
+
263
+ <div id="public-instance-method-details" class="method-section section">
264
+ <h3 class="section-header">Public Instance Methods</h3>
265
+
266
+
267
+ <div id="pressure-method" class="method-detail ">
268
+ <a name="method-i-pressure"></a>
269
+
270
+ <div class="method-heading">
271
+
272
+ <span class="method-name">pressure</span><span
273
+ class="method-args">()</span>
274
+ <span class="method-click-advice">click to toggle source</span>
275
+
276
+ </div>
277
+
278
+ <div class="method-description">
279
+
280
+
281
+
282
+
283
+
284
+ <div class="method-source-code"
285
+ id="pressure-source">
286
+ <pre>
287
+ <span class="ruby-comment cmt"># File lib/midilib/event.rb, line 168</span>
288
+ 168: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pressure</span>
289
+ 169: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@velocity</span>
290
+ 170: <span class="ruby-keyword kw">end</span></pre>
291
+ </div>
292
+
293
+ </div>
294
+
295
+
296
+
297
+
298
+ </div>
299
+
300
+
301
+ <div id="pressure--method" class="method-detail ">
302
+ <a name="method-i-pressure%3D"></a>
303
+
304
+ <div class="method-heading">
305
+
306
+ <span class="method-name">pressure=</span><span
307
+ class="method-args">(val)</span>
308
+ <span class="method-click-advice">click to toggle source</span>
309
+
310
+ </div>
311
+
312
+ <div class="method-description">
313
+
314
+
315
+
316
+
317
+
318
+ <div class="method-source-code"
319
+ id="pressure--source">
320
+ <pre>
321
+ <span class="ruby-comment cmt"># File lib/midilib/event.rb, line 171</span>
322
+ 171: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pressure=</span>(<span class="ruby-identifier">val</span>)
323
+ 172: <span class="ruby-ivar">@velocity</span> = <span class="ruby-identifier">val</span>
324
+ 173: <span class="ruby-keyword kw">end</span></pre>
325
+ </div>
326
+
327
+ </div>
328
+
329
+
330
+
331
+
332
+ </div>
333
+
334
+
335
+ <div id="to-s-method" class="method-detail ">
336
+ <a name="method-i-to_s"></a>
337
+
338
+ <div class="method-heading">
339
+
340
+ <span class="method-name">to_s</span><span
341
+ class="method-args">()</span>
342
+ <span class="method-click-advice">click to toggle source</span>
343
+
344
+ </div>
345
+
346
+ <div class="method-description">
347
+
348
+
349
+
350
+
351
+
352
+ <div class="method-source-code"
353
+ id="to-s-source">
354
+ <pre>
355
+ <span class="ruby-comment cmt"># File lib/midilib/event.rb, line 174</span>
356
+ 174: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
357
+ 175: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">super</span> <span class="ruby-operator">&lt;&lt;</span>
358
+ 176: <span class="ruby-node">&quot;poly press #{channel_to_s(@channel)} #{note_to_s} #{number_to_s(@velocity)}&quot;</span>
359
+ 177: <span class="ruby-keyword kw">end</span></pre>
360
+ </div>
361
+
362
+ </div>
363
+
364
+
365
+
366
+
367
+ </div>
368
+
369
+
370
+ </div>
371
+
372
+
373
+ </div>
374
+
375
+
376
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
377
+
378
+ <p>Disabled; run with --debug to generate this.</p>
379
+
380
+ </div>
381
+
382
+ <div id="validator-badges">
383
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
384
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
385
+ Rdoc Generator</a> 1.1.6</small>.</p>
386
+ </div>
387
+
388
+ </body>
389
+ </html>
390
+