midilib 3.1.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +12 -12
  3. data/Credits +7 -0
  4. data/README.rdoc +10 -1
  5. data/Rakefile +0 -1
  6. data/TODO.rdoc +8 -7
  7. data/lib/midilib/event.rb +2 -2
  8. data/lib/midilib/info.rb +3 -3
  9. data/lib/midilib/io/seqreader.rb +11 -27
  10. data/lib/midilib/io/seqwriter.rb +6 -4
  11. data/lib/midilib/track.rb +38 -6
  12. data/test/test_event.rb +12 -0
  13. data/test/test_io.rb +28 -2
  14. data/test/test_track.rb +65 -1
  15. metadata +3 -87
  16. data/html/MIDI/ActiveSense.html +0 -171
  17. data/html/MIDI/ChannelEvent.html +0 -190
  18. data/html/MIDI/ChannelPressure.html +0 -212
  19. data/html/MIDI/Clock.html +0 -171
  20. data/html/MIDI/Continue.html +0 -171
  21. data/html/MIDI/Controller.html +0 -224
  22. data/html/MIDI/Event.html +0 -349
  23. data/html/MIDI/IO/MIDIFile.html +0 -1392
  24. data/html/MIDI/IO/SeqReader.html +0 -642
  25. data/html/MIDI/IO/SeqWriter.html +0 -442
  26. data/html/MIDI/IO.html +0 -91
  27. data/html/MIDI/KeySig.html +0 -292
  28. data/html/MIDI/Marker.html +0 -138
  29. data/html/MIDI/Measure.html +0 -260
  30. data/html/MIDI/Measures.html +0 -222
  31. data/html/MIDI/MetaEvent.html +0 -353
  32. data/html/MIDI/NoteEvent.html +0 -255
  33. data/html/MIDI/NoteOff.html +0 -188
  34. data/html/MIDI/NoteOn.html +0 -188
  35. data/html/MIDI/PitchBend.html +0 -213
  36. data/html/MIDI/PolyPressure.html +0 -216
  37. data/html/MIDI/ProgramChange.html +0 -212
  38. data/html/MIDI/Realtime.html +0 -194
  39. data/html/MIDI/Sequence.html +0 -641
  40. data/html/MIDI/SongPointer.html +0 -213
  41. data/html/MIDI/SongSelect.html +0 -212
  42. data/html/MIDI/Start.html +0 -171
  43. data/html/MIDI/Stop.html +0 -171
  44. data/html/MIDI/SystemCommon.html +0 -138
  45. data/html/MIDI/SystemExclusive.html +0 -215
  46. data/html/MIDI/SystemReset.html +0 -171
  47. data/html/MIDI/Tempo.html +0 -292
  48. data/html/MIDI/TimeSig.html +0 -286
  49. data/html/MIDI/Track.html +0 -489
  50. data/html/MIDI/TuneRequest.html +0 -194
  51. data/html/MIDI/Utils.html +0 -178
  52. data/html/MIDI.html +0 -281
  53. data/html/Object.html +0 -197
  54. data/html/README_rdoc.html +0 -545
  55. data/html/TODO_rdoc.html +0 -123
  56. data/html/created.rid +0 -15
  57. data/html/css/fonts.css +0 -167
  58. data/html/css/rdoc.css +0 -639
  59. data/html/fonts/Lato-Light.ttf +0 -0
  60. data/html/fonts/Lato-LightItalic.ttf +0 -0
  61. data/html/fonts/Lato-Regular.ttf +0 -0
  62. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  63. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  64. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  65. data/html/images/add.png +0 -0
  66. data/html/images/arrow_up.png +0 -0
  67. data/html/images/brick.png +0 -0
  68. data/html/images/brick_link.png +0 -0
  69. data/html/images/bug.png +0 -0
  70. data/html/images/bullet_black.png +0 -0
  71. data/html/images/bullet_toggle_minus.png +0 -0
  72. data/html/images/bullet_toggle_plus.png +0 -0
  73. data/html/images/date.png +0 -0
  74. data/html/images/delete.png +0 -0
  75. data/html/images/find.png +0 -0
  76. data/html/images/loadingAnimation.gif +0 -0
  77. data/html/images/macFFBgHack.png +0 -0
  78. data/html/images/package.png +0 -0
  79. data/html/images/page_green.png +0 -0
  80. data/html/images/page_white_text.png +0 -0
  81. data/html/images/page_white_width.png +0 -0
  82. data/html/images/plugin.png +0 -0
  83. data/html/images/ruby.png +0 -0
  84. data/html/images/tag_blue.png +0 -0
  85. data/html/images/tag_green.png +0 -0
  86. data/html/images/transparent.png +0 -0
  87. data/html/images/wrench.png +0 -0
  88. data/html/images/wrench_orange.png +0 -0
  89. data/html/images/zoom.png +0 -0
  90. data/html/index.html +0 -534
  91. data/html/js/darkfish.js +0 -84
  92. data/html/js/navigation.js +0 -105
  93. data/html/js/navigation.js.gz +0 -0
  94. data/html/js/search.js +0 -110
  95. data/html/js/search_index.js +0 -1
  96. data/html/js/search_index.js.gz +0 -0
  97. data/html/js/searcher.js +0 -229
  98. data/html/js/searcher.js.gz +0 -0
  99. data/html/table_of_contents.html +0 -1258
@@ -1,171 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class MIDI::ActiveSense - midilib</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../";
11
- var index_rel_prefix = "../";
12
- </script>
13
-
14
- <script src="../js/navigation.js" defer></script>
15
- <script src="../js/search.js" defer></script>
16
- <script src="../js/search_index.js" defer></script>
17
- <script src="../js/searcher.js" defer></script>
18
- <script src="../js/darkfish.js" defer></script>
19
-
20
- <link href="../css/fonts.css" rel="stylesheet">
21
- <link href="../css/rdoc.css" rel="stylesheet">
22
-
23
-
24
- <body id="top" role="document" class="class">
25
- <nav role="navigation">
26
- <div id="project-navigation">
27
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
- <h2>
29
- <a href="../index.html" rel="home">Home</a>
30
- </h2>
31
-
32
- <div id="table-of-contents-navigation">
33
- <a href="../table_of_contents.html#pages">Pages</a>
34
- <a href="../table_of_contents.html#classes">Classes</a>
35
- <a href="../table_of_contents.html#methods">Methods</a>
36
- </div>
37
- </div>
38
-
39
- <div id="search-section" role="search" class="project-section initially-hidden">
40
- <form action="#" method="get" accept-charset="utf-8">
41
- <div id="search-field-wrapper">
42
- <input id="search-field" role="combobox" aria-label="Search"
43
- aria-autocomplete="list" aria-controls="search-results"
44
- type="text" name="search" placeholder="Search" spellcheck="false"
45
- title="Type to search, Up and Down to navigate, Enter to load">
46
- </div>
47
-
48
- <ul id="search-results" aria-label="Search Results"
49
- aria-busy="false" aria-expanded="false"
50
- aria-atomic="false" class="initially-hidden"></ul>
51
- </form>
52
- </div>
53
-
54
- </div>
55
-
56
-
57
-
58
- <div id="class-metadata">
59
-
60
-
61
- <div id="parent-class-section" class="nav-section">
62
- <h3>Parent</h3>
63
-
64
- <p class="link"><a href="Realtime.html">MIDI::Realtime</a>
65
- </div>
66
-
67
-
68
-
69
-
70
- <!-- Method Quickref -->
71
- <div id="method-list-section" class="nav-section">
72
- <h3>Methods</h3>
73
-
74
- <ul class="link-list" role="directory">
75
- <li class="calls-super" ><a href="#method-c-new">::new</a>
76
- <li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
77
- </ul>
78
- </div>
79
-
80
- </div>
81
- </nav>
82
-
83
- <main role="main" aria-labelledby="class-MIDI::ActiveSense">
84
- <h1 id="class-MIDI::ActiveSense" class="class">
85
- class MIDI::ActiveSense
86
- </h1>
87
-
88
- <section class="description">
89
-
90
- </section>
91
-
92
- <section id="5Buntitled-5D" class="documentation-section">
93
-
94
-
95
-
96
-
97
-
98
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
99
- <header>
100
- <h3>Public Class Methods</h3>
101
- </header>
102
-
103
- <div id="method-c-new" class="method-detail ">
104
- <div class="method-heading">
105
- <span class="method-name">new</span><span
106
- class="method-args">(delta_time = 0)</span>
107
- <span class="method-click-advice">click to toggle source</span>
108
- </div>
109
-
110
- <div class="method-description">
111
-
112
- <div class="method-calls-super">
113
- Calls superclass method
114
- <a href="Realtime.html#method-c-new"><code>MIDI::Realtime::new</code></a>
115
- </div>
116
-
117
- <div class="method-source-code" id="new-source">
118
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 401</span>
119
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">delta_time</span> = <span class="ruby-value">0</span>)
120
- <span class="ruby-keyword">super</span>(<span class="ruby-constant">ACTIVE_SENSE</span>, <span class="ruby-identifier">delta_time</span>)
121
- <span class="ruby-keyword">end</span></pre>
122
- </div>
123
- </div>
124
-
125
-
126
- </div>
127
-
128
- </section>
129
-
130
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
131
- <header>
132
- <h3>Public Instance Methods</h3>
133
- </header>
134
-
135
- <div id="method-i-to_s" class="method-detail ">
136
- <div class="method-heading">
137
- <span class="method-name">to_s</span><span
138
- class="method-args">()</span>
139
- <span class="method-click-advice">click to toggle source</span>
140
- </div>
141
-
142
- <div class="method-description">
143
-
144
- <div class="method-calls-super">
145
- Calls superclass method
146
- <a href="Realtime.html#method-i-to_s"><code>MIDI::Realtime#to_s</code></a>
147
- </div>
148
-
149
- <div class="method-source-code" id="to_s-source">
150
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 405</span>
151
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_s</span>
152
- <span class="ruby-keyword">super</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&#39;act sens&#39;</span>
153
- <span class="ruby-keyword">end</span></pre>
154
- </div>
155
- </div>
156
-
157
-
158
- </div>
159
-
160
- </section>
161
-
162
- </section>
163
- </main>
164
-
165
-
166
- <footer id="validator-badges" role="contentinfo">
167
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
168
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
169
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
170
- </footer>
171
-
@@ -1,190 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class MIDI::ChannelEvent - midilib</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../";
11
- var index_rel_prefix = "../";
12
- </script>
13
-
14
- <script src="../js/navigation.js" defer></script>
15
- <script src="../js/search.js" defer></script>
16
- <script src="../js/search_index.js" defer></script>
17
- <script src="../js/searcher.js" defer></script>
18
- <script src="../js/darkfish.js" defer></script>
19
-
20
- <link href="../css/fonts.css" rel="stylesheet">
21
- <link href="../css/rdoc.css" rel="stylesheet">
22
-
23
-
24
- <body id="top" role="document" class="class">
25
- <nav role="navigation">
26
- <div id="project-navigation">
27
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
- <h2>
29
- <a href="../index.html" rel="home">Home</a>
30
- </h2>
31
-
32
- <div id="table-of-contents-navigation">
33
- <a href="../table_of_contents.html#pages">Pages</a>
34
- <a href="../table_of_contents.html#classes">Classes</a>
35
- <a href="../table_of_contents.html#methods">Methods</a>
36
- </div>
37
- </div>
38
-
39
- <div id="search-section" role="search" class="project-section initially-hidden">
40
- <form action="#" method="get" accept-charset="utf-8">
41
- <div id="search-field-wrapper">
42
- <input id="search-field" role="combobox" aria-label="Search"
43
- aria-autocomplete="list" aria-controls="search-results"
44
- type="text" name="search" placeholder="Search" spellcheck="false"
45
- title="Type to search, Up and Down to navigate, Enter to load">
46
- </div>
47
-
48
- <ul id="search-results" aria-label="Search Results"
49
- aria-busy="false" aria-expanded="false"
50
- aria-atomic="false" class="initially-hidden"></ul>
51
- </form>
52
- </div>
53
-
54
- </div>
55
-
56
-
57
-
58
- <div id="class-metadata">
59
-
60
-
61
- <div id="parent-class-section" class="nav-section">
62
- <h3>Parent</h3>
63
-
64
- <p class="link"><a href="Event.html">MIDI::Event</a>
65
- </div>
66
-
67
-
68
-
69
-
70
- <!-- Method Quickref -->
71
- <div id="method-list-section" class="nav-section">
72
- <h3>Methods</h3>
73
-
74
- <ul class="link-list" role="directory">
75
- <li class="calls-super" ><a href="#method-c-new">::new</a>
76
- <li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
77
- </ul>
78
- </div>
79
-
80
- </div>
81
- </nav>
82
-
83
- <main role="main" aria-labelledby="class-MIDI::ChannelEvent">
84
- <h1 id="class-MIDI::ChannelEvent" class="class">
85
- class MIDI::ChannelEvent
86
- </h1>
87
-
88
- <section class="description">
89
-
90
- <p>The abstract superclass of all channel events (events that have a <a href="../MIDI.html"><code>MIDI</code></a> channel, like notes and program changes).</p>
91
-
92
- </section>
93
-
94
- <section id="5Buntitled-5D" class="documentation-section">
95
-
96
-
97
-
98
- <section class="attribute-method-details" class="method-section">
99
- <header>
100
- <h3>Attributes</h3>
101
- </header>
102
-
103
- <div id="attribute-i-channel" class="method-detail">
104
- <div class="method-heading attribute-method-heading">
105
- <span class="method-name">channel</span><span
106
- class="attribute-access-type">[RW]</span>
107
- </div>
108
-
109
- <div class="method-description">
110
- <p><a href="../MIDI.html"><code>MIDI</code></a> channel, 0-15.</p>
111
- </div>
112
- </div>
113
- </section>
114
-
115
-
116
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
117
- <header>
118
- <h3>Public Class Methods</h3>
119
- </header>
120
-
121
- <div id="method-c-new" class="method-detail ">
122
- <div class="method-heading">
123
- <span class="method-name">new</span><span
124
- class="method-args">(status, channel, delta_time)</span>
125
- <span class="method-click-advice">click to toggle source</span>
126
- </div>
127
-
128
- <div class="method-description">
129
-
130
- <div class="method-calls-super">
131
- Calls superclass method
132
- <a href="Event.html#method-c-new"><code>MIDI::Event::new</code></a>
133
- </div>
134
-
135
- <div class="method-source-code" id="new-source">
136
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 87</span>
137
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">status</span>, <span class="ruby-identifier">channel</span>, <span class="ruby-identifier">delta_time</span>)
138
- <span class="ruby-keyword">super</span>(<span class="ruby-identifier">status</span>, <span class="ruby-identifier">delta_time</span>)
139
- <span class="ruby-ivar">@channel</span> = <span class="ruby-identifier">channel</span>
140
- <span class="ruby-keyword">end</span></pre>
141
- </div>
142
- </div>
143
-
144
-
145
- </div>
146
-
147
- </section>
148
-
149
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
150
- <header>
151
- <h3>Public Instance Methods</h3>
152
- </header>
153
-
154
- <div id="method-i-to_s" class="method-detail ">
155
- <div class="method-heading">
156
- <span class="method-name">to_s</span><span
157
- class="method-args">()</span>
158
- <span class="method-click-advice">click to toggle source</span>
159
- </div>
160
-
161
- <div class="method-description">
162
-
163
- <div class="method-calls-super">
164
- Calls superclass method
165
- <a href="Event.html#method-i-to_s"><code>MIDI::Event#to_s</code></a>
166
- </div>
167
-
168
- <div class="method-source-code" id="to_s-source">
169
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 93</span>
170
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_s</span>
171
- <span class="ruby-keyword">super</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;ch #{channel_to_s(@channel)} &quot;</span>
172
- <span class="ruby-keyword">end</span></pre>
173
- </div>
174
- </div>
175
-
176
-
177
- </div>
178
-
179
- </section>
180
-
181
- </section>
182
- </main>
183
-
184
-
185
- <footer id="validator-badges" role="contentinfo">
186
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
187
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
188
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
189
- </footer>
190
-
@@ -1,212 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class MIDI::ChannelPressure - midilib</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "../";
11
- var index_rel_prefix = "../";
12
- </script>
13
-
14
- <script src="../js/navigation.js" defer></script>
15
- <script src="../js/search.js" defer></script>
16
- <script src="../js/search_index.js" defer></script>
17
- <script src="../js/searcher.js" defer></script>
18
- <script src="../js/darkfish.js" defer></script>
19
-
20
- <link href="../css/fonts.css" rel="stylesheet">
21
- <link href="../css/rdoc.css" rel="stylesheet">
22
-
23
-
24
- <body id="top" role="document" class="class">
25
- <nav role="navigation">
26
- <div id="project-navigation">
27
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
- <h2>
29
- <a href="../index.html" rel="home">Home</a>
30
- </h2>
31
-
32
- <div id="table-of-contents-navigation">
33
- <a href="../table_of_contents.html#pages">Pages</a>
34
- <a href="../table_of_contents.html#classes">Classes</a>
35
- <a href="../table_of_contents.html#methods">Methods</a>
36
- </div>
37
- </div>
38
-
39
- <div id="search-section" role="search" class="project-section initially-hidden">
40
- <form action="#" method="get" accept-charset="utf-8">
41
- <div id="search-field-wrapper">
42
- <input id="search-field" role="combobox" aria-label="Search"
43
- aria-autocomplete="list" aria-controls="search-results"
44
- type="text" name="search" placeholder="Search" spellcheck="false"
45
- title="Type to search, Up and Down to navigate, Enter to load">
46
- </div>
47
-
48
- <ul id="search-results" aria-label="Search Results"
49
- aria-busy="false" aria-expanded="false"
50
- aria-atomic="false" class="initially-hidden"></ul>
51
- </form>
52
- </div>
53
-
54
- </div>
55
-
56
-
57
-
58
- <div id="class-metadata">
59
-
60
-
61
- <div id="parent-class-section" class="nav-section">
62
- <h3>Parent</h3>
63
-
64
- <p class="link"><a href="ChannelEvent.html">MIDI::ChannelEvent</a>
65
- </div>
66
-
67
-
68
-
69
-
70
- <!-- Method Quickref -->
71
- <div id="method-list-section" class="nav-section">
72
- <h3>Methods</h3>
73
-
74
- <ul class="link-list" role="directory">
75
- <li class="calls-super" ><a href="#method-c-new">::new</a>
76
- <li ><a href="#method-i-data_as_bytes">#data_as_bytes</a>
77
- <li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
78
- </ul>
79
- </div>
80
-
81
- </div>
82
- </nav>
83
-
84
- <main role="main" aria-labelledby="class-MIDI::ChannelPressure">
85
- <h1 id="class-MIDI::ChannelPressure" class="class">
86
- class MIDI::ChannelPressure
87
- </h1>
88
-
89
- <section class="description">
90
-
91
- </section>
92
-
93
- <section id="5Buntitled-5D" class="documentation-section">
94
-
95
-
96
-
97
- <section class="attribute-method-details" class="method-section">
98
- <header>
99
- <h3>Attributes</h3>
100
- </header>
101
-
102
- <div id="attribute-i-pressure" class="method-detail">
103
- <div class="method-heading attribute-method-heading">
104
- <span class="method-name">pressure</span><span
105
- class="attribute-access-type">[RW]</span>
106
- </div>
107
-
108
- <div class="method-description">
109
-
110
- </div>
111
- </div>
112
- </section>
113
-
114
-
115
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
116
- <header>
117
- <h3>Public Class Methods</h3>
118
- </header>
119
-
120
- <div id="method-c-new" class="method-detail ">
121
- <div class="method-heading">
122
- <span class="method-name">new</span><span
123
- class="method-args">(channel = 0, pressure = 0, delta_time = 0)</span>
124
- <span class="method-click-advice">click to toggle source</span>
125
- </div>
126
-
127
- <div class="method-description">
128
-
129
- <div class="method-calls-super">
130
- Calls superclass method
131
- <a href="ChannelEvent.html#method-c-new"><code>MIDI::ChannelEvent::new</code></a>
132
- </div>
133
-
134
- <div class="method-source-code" id="new-source">
135
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 227</span>
136
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">channel</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">pressure</span> = <span class="ruby-value">0</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">CHANNEL_PRESSURE</span>, <span class="ruby-identifier">channel</span>, <span class="ruby-identifier">delta_time</span>)
138
- <span class="ruby-ivar">@pressure</span> = <span class="ruby-identifier">pressure</span>
139
- <span class="ruby-keyword">end</span></pre>
140
- </div>
141
- </div>
142
-
143
-
144
- </div>
145
-
146
- </section>
147
-
148
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
149
- <header>
150
- <h3>Public Instance Methods</h3>
151
- </header>
152
-
153
- <div id="method-i-data_as_bytes" class="method-detail ">
154
- <div class="method-heading">
155
- <span class="method-name">data_as_bytes</span><span
156
- class="method-args">()</span>
157
- <span class="method-click-advice">click to toggle source</span>
158
- </div>
159
-
160
- <div class="method-description">
161
-
162
-
163
- <div class="method-source-code" id="data_as_bytes-source">
164
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 232</span>
165
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">data_as_bytes</span>
166
- <span class="ruby-identifier">data</span> = []
167
- <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>)
168
- <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@pressure</span>
169
- <span class="ruby-keyword">end</span></pre>
170
- </div>
171
- </div>
172
-
173
-
174
- </div>
175
-
176
- <div id="method-i-to_s" class="method-detail ">
177
- <div class="method-heading">
178
- <span class="method-name">to_s</span><span
179
- class="method-args">()</span>
180
- <span class="method-click-advice">click to toggle source</span>
181
- </div>
182
-
183
- <div class="method-description">
184
-
185
- <div class="method-calls-super">
186
- Calls superclass method
187
- <a href="ChannelEvent.html#method-i-to_s"><code>MIDI::ChannelEvent#to_s</code></a>
188
- </div>
189
-
190
- <div class="method-source-code" id="to_s-source">
191
- <pre><span class="ruby-comment"># File lib/midilib/event.rb, line 238</span>
192
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">to_s</span>
193
- <span class="ruby-keyword">super</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;chan press #{number_to_s(@pressure)}&quot;</span>
194
- <span class="ruby-keyword">end</span></pre>
195
- </div>
196
- </div>
197
-
198
-
199
- </div>
200
-
201
- </section>
202
-
203
- </section>
204
- </main>
205
-
206
-
207
- <footer id="validator-badges" role="contentinfo">
208
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
209
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
210
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
211
- </footer>
212
-