midilib 2.0.5 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +5 -5
  2. data/ChangeLog +2 -1
  3. data/Credits +39 -2
  4. data/README.rdoc +5 -6
  5. data/Rakefile +36 -49
  6. data/TODO.rdoc +13 -2
  7. data/examples/from_scratch.rb +1 -1
  8. data/examples/measures_mbt.rb +11 -11
  9. data/examples/print_program_changes.rb +2 -2
  10. data/examples/reader2text.rb +47 -47
  11. data/examples/seq2text.rb +1 -1
  12. data/examples/split.rb +4 -3
  13. data/examples/strings.rb +4 -4
  14. data/examples/transpose.rb +19 -20
  15. data/install.rb +21 -13
  16. data/lib/midilib/consts.rb +237 -239
  17. data/lib/midilib/event.rb +128 -100
  18. data/lib/midilib/info.rb +3 -5
  19. data/lib/midilib/io/midifile.rb +155 -182
  20. data/lib/midilib/io/seqreader.rb +80 -85
  21. data/lib/midilib/io/seqwriter.rb +93 -88
  22. data/lib/midilib/measure.rb +78 -80
  23. data/lib/midilib/mergesort.rb +39 -0
  24. data/lib/midilib/sequence.rb +40 -32
  25. data/lib/midilib/track.rb +16 -57
  26. data/lib/midilib/utils.rb +4 -7
  27. data/lib/midilib.rb +5 -5
  28. data/test/event_equality.rb +28 -30
  29. data/test/test_event.rb +9 -11
  30. data/test/test_io.rb +83 -3
  31. data/test/test_mergesort.rb +37 -0
  32. data/test/test_midifile.rb +6 -19
  33. data/test/test_sequence.rb +5 -4
  34. data/test/test_track.rb +9 -38
  35. data/test/test_varlen.rb +1 -3
  36. metadata +8 -95
  37. data/html/IO.html +0 -155
  38. data/html/MIDI/ActiveSense.html +0 -206
  39. data/html/MIDI/ChannelEvent.html +0 -231
  40. data/html/MIDI/ChannelPressure.html +0 -265
  41. data/html/MIDI/Clock.html +0 -206
  42. data/html/MIDI/Continue.html +0 -206
  43. data/html/MIDI/Controller.html +0 -280
  44. data/html/MIDI/Event.html +0 -489
  45. data/html/MIDI/IO/MIDIFile.html +0 -2024
  46. data/html/MIDI/IO/SeqReader.html +0 -904
  47. data/html/MIDI/IO/SeqWriter.html +0 -572
  48. data/html/MIDI/IO.html +0 -95
  49. data/html/MIDI/KeySig.html +0 -353
  50. data/html/MIDI/MIDI/MIDI/Array.html +0 -255
  51. data/html/MIDI/MIDI/MIDI.html +0 -95
  52. data/html/MIDI/MIDI.html +0 -95
  53. data/html/MIDI/Marker.html +0 -158
  54. data/html/MIDI/Measure.html +0 -328
  55. data/html/MIDI/Measures.html +0 -285
  56. data/html/MIDI/MetaEvent.html +0 -461
  57. data/html/MIDI/NoteEvent.html +0 -331
  58. data/html/MIDI/NoteOff.html +0 -228
  59. data/html/MIDI/NoteOn.html +0 -228
  60. data/html/MIDI/PitchBend.html +0 -266
  61. data/html/MIDI/PolyPressure.html +0 -277
  62. data/html/MIDI/ProgramChange.html +0 -265
  63. data/html/MIDI/Realtime.html +0 -242
  64. data/html/MIDI/Sequence.html +0 -896
  65. data/html/MIDI/SongPointer.html +0 -266
  66. data/html/MIDI/SongSelect.html +0 -265
  67. data/html/MIDI/Start.html +0 -206
  68. data/html/MIDI/Stop.html +0 -206
  69. data/html/MIDI/SystemCommon.html +0 -158
  70. data/html/MIDI/SystemExclusive.html +0 -268
  71. data/html/MIDI/SystemReset.html +0 -206
  72. data/html/MIDI/Tempo.html +0 -396
  73. data/html/MIDI/TimeSig.html +0 -388
  74. data/html/MIDI/Track.html +0 -695
  75. data/html/MIDI/TuneRequest.html +0 -242
  76. data/html/MIDI/Utils.html +0 -220
  77. data/html/MIDI.html +0 -547
  78. data/html/README_rdoc.html +0 -731
  79. data/html/TODO_rdoc.html +0 -125
  80. data/html/created.rid +0 -14
  81. data/html/css/fonts.css +0 -167
  82. data/html/css/rdoc.css +0 -590
  83. data/html/fonts/Lato-Light.ttf +0 -0
  84. data/html/fonts/Lato-LightItalic.ttf +0 -0
  85. data/html/fonts/Lato-Regular.ttf +0 -0
  86. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  87. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  88. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  89. data/html/images/add.png +0 -0
  90. data/html/images/arrow_up.png +0 -0
  91. data/html/images/brick.png +0 -0
  92. data/html/images/brick_link.png +0 -0
  93. data/html/images/bug.png +0 -0
  94. data/html/images/bullet_black.png +0 -0
  95. data/html/images/bullet_toggle_minus.png +0 -0
  96. data/html/images/bullet_toggle_plus.png +0 -0
  97. data/html/images/date.png +0 -0
  98. data/html/images/delete.png +0 -0
  99. data/html/images/find.png +0 -0
  100. data/html/images/loadingAnimation.gif +0 -0
  101. data/html/images/macFFBgHack.png +0 -0
  102. data/html/images/package.png +0 -0
  103. data/html/images/page_green.png +0 -0
  104. data/html/images/page_white_text.png +0 -0
  105. data/html/images/page_white_width.png +0 -0
  106. data/html/images/plugin.png +0 -0
  107. data/html/images/ruby.png +0 -0
  108. data/html/images/tag_blue.png +0 -0
  109. data/html/images/tag_green.png +0 -0
  110. data/html/images/transparent.png +0 -0
  111. data/html/images/wrench.png +0 -0
  112. data/html/images/wrench_orange.png +0 -0
  113. data/html/images/zoom.png +0 -0
  114. data/html/index.html +0 -768
  115. data/html/js/darkfish.js +0 -161
  116. data/html/js/jquery.js +0 -4
  117. data/html/js/navigation.js +0 -142
  118. data/html/js/navigation.js.gz +0 -0
  119. data/html/js/search.js +0 -109
  120. data/html/js/search_index.js +0 -1
  121. data/html/js/search_index.js.gz +0 -0
  122. data/html/js/searcher.js +0 -228
  123. data/html/js/searcher.js.gz +0 -0
  124. data/html/table_of_contents.html +0 -1265
data/html/MIDI/Clock.html DELETED
@@ -1,206 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class MIDI::Clock - midilib</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../";
11
- </script>
12
-
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
-
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>
28
-
29
- <div id="table-of-contents-navigation">
30
- <a href="../table_of_contents.html#pages">Pages</a>
31
- <a href="../table_of_contents.html#classes">Classes</a>
32
- <a href="../table_of_contents.html#methods">Methods</a>
33
- </div>
34
- </div>
35
-
36
- <div id="search-section" role="search" class="project-section initially-hidden">
37
- <form action="#" method="get" accept-charset="utf-8">
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"
42
- title="Type to search, Up and Down to navigate, Enter to load">
43
- </div>
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>
50
-
51
- </div>
52
-
53
-
54
-
55
- <div id="class-metadata">
56
-
57
- <div id="parent-class-section" class="nav-section">
58
- <h3>Parent</h3>
59
-
60
-
61
- <p class="link"><a href="Realtime.html">MIDI::Realtime</a>
62
-
63
- </div>
64
-
65
-
66
-
67
- <!-- Method Quickref -->
68
- <div id="method-list-section" class="nav-section">
69
- <h3>Methods</h3>
70
-
71
- <ul class="link-list" role="directory">
72
-
73
- <li class="calls-super" ><a href="#method-c-new">::new</a>
74
-
75
- <li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
76
-
77
- </ul>
78
- </div>
79
-
80
- </div>
81
- </nav>
82
-
83
- <main role="main" aria-labelledby="class-MIDI::Clock">
84
- <h1 id="class-MIDI::Clock" class="class">
85
- class MIDI::Clock
86
- </h1>
87
-
88
- <section class="description">
89
-
90
- </section>
91
-
92
-
93
-
94
-
95
- <section id="5Buntitled-5D" class="documentation-section">
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
106
- <header>
107
- <h3>Public Class Methods</h3>
108
- </header>
109
-
110
-
111
- <div id="method-c-new" class="method-detail ">
112
-
113
- <div class="method-heading">
114
- <span class="method-name">new</span><span
115
- class="method-args">(delta_time = 0)</span>
116
-
117
- <span class="method-click-advice">click to toggle source</span>
118
-
119
- </div>
120
-
121
-
122
- <div class="method-description">
123
-
124
-
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
-
132
-
133
-
134
- <div class="method-source-code" id="new-source">
135
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 358</span>
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>)
137
- <span class="ruby-keyword">super</span>(<span class="ruby-constant">CLOCK</span>, <span class="ruby-identifier">delta_time</span>)
138
- <span class="ruby-keyword">end</span></pre>
139
- </div>
140
-
141
- </div>
142
-
143
-
144
-
145
-
146
- </div>
147
-
148
-
149
- </section>
150
-
151
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
152
- <header>
153
- <h3>Public Instance Methods</h3>
154
- </header>
155
-
156
-
157
- <div id="method-i-to_s" class="method-detail ">
158
-
159
- <div class="method-heading">
160
- <span class="method-name">to_s</span><span
161
- class="method-args">()</span>
162
-
163
- <span class="method-click-advice">click to toggle source</span>
164
-
165
- </div>
166
-
167
-
168
- <div class="method-description">
169
-
170
-
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
-
178
-
179
-
180
- <div class="method-source-code" id="to_s-source">
181
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 362</span>
182
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</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;clock&quot;</span>
184
- <span class="ruby-keyword">end</span></pre>
185
- </div>
186
-
187
- </div>
188
-
189
-
190
-
191
-
192
- </div>
193
-
194
-
195
- </section>
196
-
197
- </section>
198
- </main>
199
-
200
-
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>.
205
- </footer>
206
-
@@ -1,206 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class MIDI::Continue - midilib</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../";
11
- </script>
12
-
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
-
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>
28
-
29
- <div id="table-of-contents-navigation">
30
- <a href="../table_of_contents.html#pages">Pages</a>
31
- <a href="../table_of_contents.html#classes">Classes</a>
32
- <a href="../table_of_contents.html#methods">Methods</a>
33
- </div>
34
- </div>
35
-
36
- <div id="search-section" role="search" class="project-section initially-hidden">
37
- <form action="#" method="get" accept-charset="utf-8">
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"
42
- title="Type to search, Up and Down to navigate, Enter to load">
43
- </div>
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>
50
-
51
- </div>
52
-
53
-
54
-
55
- <div id="class-metadata">
56
-
57
- <div id="parent-class-section" class="nav-section">
58
- <h3>Parent</h3>
59
-
60
-
61
- <p class="link"><a href="Realtime.html">MIDI::Realtime</a>
62
-
63
- </div>
64
-
65
-
66
-
67
- <!-- Method Quickref -->
68
- <div id="method-list-section" class="nav-section">
69
- <h3>Methods</h3>
70
-
71
- <ul class="link-list" role="directory">
72
-
73
- <li class="calls-super" ><a href="#method-c-new">::new</a>
74
-
75
- <li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
76
-
77
- </ul>
78
- </div>
79
-
80
- </div>
81
- </nav>
82
-
83
- <main role="main" aria-labelledby="class-MIDI::Continue">
84
- <h1 id="class-MIDI::Continue" class="class">
85
- class MIDI::Continue
86
- </h1>
87
-
88
- <section class="description">
89
-
90
- </section>
91
-
92
-
93
-
94
-
95
- <section id="5Buntitled-5D" class="documentation-section">
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
106
- <header>
107
- <h3>Public Class Methods</h3>
108
- </header>
109
-
110
-
111
- <div id="method-c-new" class="method-detail ">
112
-
113
- <div class="method-heading">
114
- <span class="method-name">new</span><span
115
- class="method-args">(delta_time = 0)</span>
116
-
117
- <span class="method-click-advice">click to toggle source</span>
118
-
119
- </div>
120
-
121
-
122
- <div class="method-description">
123
-
124
-
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
-
132
-
133
-
134
- <div class="method-source-code" id="new-source">
135
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 377</span>
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>)
137
- <span class="ruby-keyword">super</span>(<span class="ruby-constant">CONTINUE</span>, <span class="ruby-identifier">delta_time</span>)
138
- <span class="ruby-keyword">end</span></pre>
139
- </div>
140
-
141
- </div>
142
-
143
-
144
-
145
-
146
- </div>
147
-
148
-
149
- </section>
150
-
151
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
152
- <header>
153
- <h3>Public Instance Methods</h3>
154
- </header>
155
-
156
-
157
- <div id="method-i-to_s" class="method-detail ">
158
-
159
- <div class="method-heading">
160
- <span class="method-name">to_s</span><span
161
- class="method-args">()</span>
162
-
163
- <span class="method-click-advice">click to toggle source</span>
164
-
165
- </div>
166
-
167
-
168
- <div class="method-description">
169
-
170
-
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
-
178
-
179
-
180
- <div class="method-source-code" id="to_s-source">
181
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 380</span>
182
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</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;continue&quot;</span>
184
- <span class="ruby-keyword">end</span></pre>
185
- </div>
186
-
187
- </div>
188
-
189
-
190
-
191
-
192
- </div>
193
-
194
-
195
- </section>
196
-
197
- </section>
198
- </main>
199
-
200
-
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>.
205
- </footer>
206
-
@@ -1,280 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class MIDI::Controller - midilib</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../";
11
- </script>
12
-
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
-
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>
28
-
29
- <div id="table-of-contents-navigation">
30
- <a href="../table_of_contents.html#pages">Pages</a>
31
- <a href="../table_of_contents.html#classes">Classes</a>
32
- <a href="../table_of_contents.html#methods">Methods</a>
33
- </div>
34
- </div>
35
-
36
- <div id="search-section" role="search" class="project-section initially-hidden">
37
- <form action="#" method="get" accept-charset="utf-8">
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"
42
- title="Type to search, Up and Down to navigate, Enter to load">
43
- </div>
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>
50
-
51
- </div>
52
-
53
-
54
-
55
- <div id="class-metadata">
56
-
57
- <div id="parent-class-section" class="nav-section">
58
- <h3>Parent</h3>
59
-
60
-
61
- <p class="link"><a href="ChannelEvent.html">MIDI::ChannelEvent</a>
62
-
63
- </div>
64
-
65
-
66
-
67
- <!-- Method Quickref -->
68
- <div id="method-list-section" class="nav-section">
69
- <h3>Methods</h3>
70
-
71
- <ul class="link-list" role="directory">
72
-
73
- <li class="calls-super" ><a href="#method-c-new">::new</a>
74
-
75
- <li ><a href="#method-i-data_as_bytes">#data_as_bytes</a>
76
-
77
- <li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
78
-
79
- </ul>
80
- </div>
81
-
82
- </div>
83
- </nav>
84
-
85
- <main role="main" aria-labelledby="class-MIDI::Controller">
86
- <h1 id="class-MIDI::Controller" class="class">
87
- class MIDI::Controller
88
- </h1>
89
-
90
- <section class="description">
91
-
92
- </section>
93
-
94
-
95
-
96
-
97
- <section id="5Buntitled-5D" class="documentation-section">
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
- <section class="attribute-method-details" class="method-section">
106
- <header>
107
- <h3>Attributes</h3>
108
- </header>
109
-
110
-
111
- <div id="attribute-i-controller" class="method-detail">
112
- <div class="method-heading attribute-method-heading">
113
- <span class="method-name">controller</span><span
114
- class="attribute-access-type">[RW]</span>
115
- </div>
116
-
117
- <div class="method-description">
118
-
119
-
120
-
121
- </div>
122
- </div>
123
-
124
- <div id="attribute-i-value" class="method-detail">
125
- <div class="method-heading attribute-method-heading">
126
- <span class="method-name">value</span><span
127
- class="attribute-access-type">[RW]</span>
128
- </div>
129
-
130
- <div class="method-description">
131
-
132
-
133
-
134
- </div>
135
- </div>
136
-
137
- </section>
138
-
139
-
140
-
141
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
142
- <header>
143
- <h3>Public Class Methods</h3>
144
- </header>
145
-
146
-
147
- <div id="method-c-new" class="method-detail ">
148
-
149
- <div class="method-heading">
150
- <span class="method-name">new</span><span
151
- class="method-args">(channel = 0, controller = 0, value = 0, delta_time = 0)</span>
152
-
153
- <span class="method-click-advice">click to toggle source</span>
154
-
155
- </div>
156
-
157
-
158
- <div class="method-description">
159
-
160
-
161
-
162
-
163
- <div class="method-calls-super">
164
- Calls superclass method
165
- <a href="ChannelEvent.html#method-c-new">MIDI::ChannelEvent.new</a>
166
- </div>
167
-
168
-
169
-
170
- <div class="method-source-code" id="new-source">
171
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 184</span>
172
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">channel</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">controller</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>)
173
- <span class="ruby-keyword">super</span>(<span class="ruby-constant">CONTROLLER</span>, <span class="ruby-identifier">channel</span>, <span class="ruby-identifier">delta_time</span>)
174
- <span class="ruby-ivar">@controller</span> = <span class="ruby-identifier">controller</span>
175
- <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span>
176
- <span class="ruby-keyword">end</span></pre>
177
- </div>
178
-
179
- </div>
180
-
181
-
182
-
183
-
184
- </div>
185
-
186
-
187
- </section>
188
-
189
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
190
- <header>
191
- <h3>Public Instance Methods</h3>
192
- </header>
193
-
194
-
195
- <div id="method-i-data_as_bytes" class="method-detail ">
196
-
197
- <div class="method-heading">
198
- <span class="method-name">data_as_bytes</span><span
199
- class="method-args">()</span>
200
-
201
- <span class="method-click-advice">click to toggle source</span>
202
-
203
- </div>
204
-
205
-
206
- <div class="method-description">
207
-
208
-
209
-
210
-
211
-
212
-
213
- <div class="method-source-code" id="data_as_bytes-source">
214
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 190</span>
215
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">data_as_bytes</span>
216
- <span class="ruby-identifier">data</span> = []
217
- <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>)
218
- <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@controller</span>
219
- <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@value</span>
220
- <span class="ruby-keyword">end</span></pre>
221
- </div>
222
-
223
- </div>
224
-
225
-
226
-
227
-
228
- </div>
229
-
230
-
231
- <div id="method-i-to_s" class="method-detail ">
232
-
233
- <div class="method-heading">
234
- <span class="method-name">to_s</span><span
235
- class="method-args">()</span>
236
-
237
- <span class="method-click-advice">click to toggle source</span>
238
-
239
- </div>
240
-
241
-
242
- <div class="method-description">
243
-
244
-
245
-
246
-
247
- <div class="method-calls-super">
248
- Calls superclass method
249
- <a href="ChannelEvent.html#method-i-to_s">MIDI::ChannelEvent#to_s</a>
250
- </div>
251
-
252
-
253
-
254
- <div class="method-source-code" id="to_s-source">
255
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 197</span>
256
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
257
- <span class="ruby-keyword">return</span> <span class="ruby-keyword">super</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;cntl #{number_to_s(@controller)} #{number_to_s(@value)}&quot;</span>
258
- <span class="ruby-keyword">end</span></pre>
259
- </div>
260
-
261
- </div>
262
-
263
-
264
-
265
-
266
- </div>
267
-
268
-
269
- </section>
270
-
271
- </section>
272
- </main>
273
-
274
-
275
- <footer id="validator-badges" role="contentinfo">
276
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
277
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
278
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
279
- </footer>
280
-