midilib 2.0.4 → 2.0.5
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.
- checksums.yaml +7 -0
- data/README.rdoc +9 -4
- data/Rakefile +2 -6
- data/examples/from_scratch.rb +3 -5
- data/examples/measures_mbt.rb +4 -4
- data/examples/print_program_changes.rb +9 -9
- data/examples/reader2text.rb +188 -188
- data/examples/seq2text.rb +17 -17
- data/examples/split.rb +19 -19
- data/examples/strings.rb +14 -14
- data/examples/transpose.rb +31 -31
- data/html/IO.html +65 -169
- data/html/MIDI.html +138 -256
- data/html/MIDI/ActiveSense.html +89 -178
- data/html/MIDI/ChannelEvent.html +95 -183
- data/html/MIDI/ChannelPressure.html +105 -190
- data/html/MIDI/Clock.html +89 -178
- data/html/MIDI/Continue.html +89 -178
- data/html/MIDI/Controller.html +107 -192
- data/html/MIDI/Event.html +138 -222
- data/html/MIDI/IO.html +45 -157
- data/html/MIDI/IO/MIDIFile.html +596 -568
- data/html/MIDI/IO/SeqReader.html +272 -314
- data/html/MIDI/IO/SeqWriter.html +229 -305
- data/html/MIDI/KeySig.html +129 -211
- data/html/MIDI/MIDI.html +45 -154
- data/html/MIDI/MIDI/MIDI.html +45 -154
- data/html/MIDI/MIDI/MIDI/Array.html +87 -185
- data/html/MIDI/Marker.html +71 -170
- data/html/MIDI/Measure.html +95 -190
- data/html/MIDI/Measures.html +103 -193
- data/html/MIDI/MetaEvent.html +180 -253
- data/html/MIDI/NoteEvent.html +118 -204
- data/html/MIDI/NoteOff.html +95 -183
- data/html/MIDI/NoteOn.html +95 -183
- data/html/MIDI/PitchBend.html +106 -191
- data/html/MIDI/PolyPressure.html +106 -189
- data/html/MIDI/ProgramChange.html +105 -190
- data/html/MIDI/Realtime.html +98 -184
- data/html/MIDI/Sequence.html +246 -311
- data/html/MIDI/SongPointer.html +106 -191
- data/html/MIDI/SongSelect.html +105 -190
- data/html/MIDI/Start.html +89 -178
- data/html/MIDI/Stop.html +89 -178
- data/html/MIDI/SystemCommon.html +71 -170
- data/html/MIDI/SystemExclusive.html +108 -193
- data/html/MIDI/SystemReset.html +89 -178
- data/html/MIDI/Tempo.html +135 -213
- data/html/MIDI/TimeSig.html +135 -214
- data/html/MIDI/Track.html +217 -291
- data/html/MIDI/TuneRequest.html +98 -184
- data/html/MIDI/Utils.html +89 -189
- data/html/README_rdoc.html +237 -257
- data/html/TODO_rdoc.html +64 -139
- data/html/created.rid +14 -14
- data/html/css/fonts.css +167 -0
- data/html/{rdoc.css → css/rdoc.css} +265 -218
- data/html/fonts/Lato-Light.ttf +0 -0
- data/html/fonts/Lato-LightItalic.ttf +0 -0
- data/html/fonts/Lato-Regular.ttf +0 -0
- data/html/fonts/Lato-RegularItalic.ttf +0 -0
- data/html/fonts/SourceCodePro-Bold.ttf +0 -0
- data/html/fonts/SourceCodePro-Regular.ttf +0 -0
- data/html/images/add.png +0 -0
- data/html/images/arrow_up.png +0 -0
- data/html/images/delete.png +0 -0
- data/html/images/tag_blue.png +0 -0
- data/html/index.html +187 -169
- data/html/js/darkfish.js +41 -33
- data/html/js/jquery.js +4 -18
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +20 -5
- data/html/js/search_index.js +1 -1
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +1111 -498
- data/install.rb +43 -32
- data/lib/midilib/consts.rb +407 -407
- data/lib/midilib/event.rb +295 -294
- data/lib/midilib/info.rb +5 -5
- data/lib/midilib/io/midifile.rb +266 -267
- data/lib/midilib/io/seqreader.rb +106 -106
- data/lib/midilib/io/seqwriter.rb +59 -60
- data/lib/midilib/measure.rb +69 -69
- data/lib/midilib/sequence.rb +68 -70
- data/lib/midilib/track.rb +96 -102
- data/lib/midilib/utils.rb +15 -15
- data/test/event_equality.rb +50 -50
- data/test/test_event.rb +120 -122
- data/test/test_io.rb +35 -48
- data/test/test_sequence.rb +60 -60
- data/test/test_track.rb +154 -154
- data/test/test_varlen.rb +23 -25
- metadata +65 -57
data/html/MIDI/PitchBend.html
CHANGED
@@ -2,201 +2,94 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
5
|
+
<meta charset="UTF-8">
|
6
6
|
|
7
7
|
<title>class MIDI::PitchBend - midilib</title>
|
8
8
|
|
9
|
-
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
-
|
11
9
|
<script type="text/javascript">
|
12
10
|
var rdoc_rel_prefix = "../";
|
13
11
|
</script>
|
14
12
|
|
15
|
-
<script
|
16
|
-
<script
|
17
|
-
|
18
|
-
<
|
19
|
-
<
|
20
|
-
|
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
|
+
|
21
19
|
|
22
20
|
|
23
|
-
<body id="top" class="class">
|
24
|
-
<nav
|
25
|
-
<
|
26
|
-
|
27
|
-
|
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>
|
28
31
|
<a href="../table_of_contents.html#classes">Classes</a>
|
29
32
|
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
-
</
|
31
|
-
</
|
32
|
-
|
33
|
+
</div>
|
34
|
+
</div>
|
33
35
|
|
34
|
-
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
35
37
|
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<
|
37
|
-
<input
|
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"
|
38
42
|
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
44
|
-
|
43
|
+
</div>
|
45
44
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
</ul>
|
52
|
-
</nav>
|
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>
|
53
50
|
|
54
|
-
|
55
51
|
</div>
|
56
52
|
|
53
|
+
|
54
|
+
|
57
55
|
<div id="class-metadata">
|
58
56
|
|
59
|
-
<
|
60
|
-
<h3
|
57
|
+
<div id="parent-class-section" class="nav-section">
|
58
|
+
<h3>Parent</h3>
|
59
|
+
|
61
60
|
|
62
61
|
<p class="link"><a href="ChannelEvent.html">MIDI::ChannelEvent</a>
|
63
62
|
|
64
|
-
</
|
63
|
+
</div>
|
65
64
|
|
66
65
|
|
66
|
+
|
67
67
|
<!-- Method Quickref -->
|
68
|
-
<
|
69
|
-
<h3
|
68
|
+
<div id="method-list-section" class="nav-section">
|
69
|
+
<h3>Methods</h3>
|
70
70
|
|
71
|
-
<ul class="link-list">
|
71
|
+
<ul class="link-list" role="directory">
|
72
72
|
|
73
|
-
<li><a href="#method-c-new">::new</a>
|
73
|
+
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
74
74
|
|
75
|
-
<li><a href="#method-i-data_as_bytes">#data_as_bytes</a>
|
75
|
+
<li ><a href="#method-i-data_as_bytes">#data_as_bytes</a>
|
76
76
|
|
77
|
-
<li><a href="#method-i-to_s">#to_s</a>
|
77
|
+
<li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
|
78
78
|
|
79
79
|
</ul>
|
80
|
-
</
|
80
|
+
</div>
|
81
81
|
|
82
82
|
</div>
|
83
|
-
|
84
|
-
<div id="project-metadata">
|
85
|
-
<nav id="fileindex-section" class="section project-section">
|
86
|
-
<h3 class="section-header">Pages</h3>
|
87
|
-
|
88
|
-
<ul>
|
89
|
-
|
90
|
-
<li class="file"><a href="../README_rdoc.html">README</a>
|
91
|
-
|
92
|
-
<li class="file"><a href="../TODO_rdoc.html">TODO</a>
|
93
|
-
|
94
|
-
</ul>
|
95
83
|
</nav>
|
96
84
|
|
97
|
-
|
98
|
-
<
|
85
|
+
<main role="main" aria-labelledby="class-MIDI::PitchBend">
|
86
|
+
<h1 id="class-MIDI::PitchBend" class="class">
|
87
|
+
class MIDI::PitchBend
|
88
|
+
</h1>
|
99
89
|
|
100
|
-
<
|
101
|
-
|
102
|
-
<li><a href="../MIDI.html">MIDI</a>
|
103
|
-
|
104
|
-
<li><a href="../MIDI/ActiveSense.html">MIDI::ActiveSense</a>
|
105
|
-
|
106
|
-
<li><a href="../MIDI/ChannelEvent.html">MIDI::ChannelEvent</a>
|
107
|
-
|
108
|
-
<li><a href="../MIDI/ChannelPressure.html">MIDI::ChannelPressure</a>
|
109
|
-
|
110
|
-
<li><a href="../MIDI/Clock.html">MIDI::Clock</a>
|
111
|
-
|
112
|
-
<li><a href="../MIDI/Continue.html">MIDI::Continue</a>
|
113
|
-
|
114
|
-
<li><a href="../MIDI/Controller.html">MIDI::Controller</a>
|
115
|
-
|
116
|
-
<li><a href="../MIDI/Event.html">MIDI::Event</a>
|
117
|
-
|
118
|
-
<li><a href="../MIDI/IO.html">MIDI::IO</a>
|
119
|
-
|
120
|
-
<li><a href="../MIDI/IO/MIDIFile.html">MIDI::IO::MIDIFile</a>
|
121
|
-
|
122
|
-
<li><a href="../MIDI/IO/SeqReader.html">MIDI::IO::SeqReader</a>
|
123
|
-
|
124
|
-
<li><a href="../MIDI/IO/SeqWriter.html">MIDI::IO::SeqWriter</a>
|
125
|
-
|
126
|
-
<li><a href="../MIDI/KeySig.html">MIDI::KeySig</a>
|
127
|
-
|
128
|
-
<li><a href="../MIDI/MIDI.html">MIDI::MIDI</a>
|
129
|
-
|
130
|
-
<li><a href="../MIDI/MIDI/MIDI.html">MIDI::MIDI::MIDI</a>
|
131
|
-
|
132
|
-
<li><a href="../MIDI/MIDI/MIDI/Array.html">MIDI::MIDI::MIDI::Array</a>
|
133
|
-
|
134
|
-
<li><a href="../MIDI/Marker.html">MIDI::Marker</a>
|
135
|
-
|
136
|
-
<li><a href="../MIDI/Measure.html">MIDI::Measure</a>
|
137
|
-
|
138
|
-
<li><a href="../MIDI/Measures.html">MIDI::Measures</a>
|
139
|
-
|
140
|
-
<li><a href="../MIDI/MetaEvent.html">MIDI::MetaEvent</a>
|
141
|
-
|
142
|
-
<li><a href="../MIDI/NoteEvent.html">MIDI::NoteEvent</a>
|
143
|
-
|
144
|
-
<li><a href="../MIDI/NoteOff.html">MIDI::NoteOff</a>
|
145
|
-
|
146
|
-
<li><a href="../MIDI/NoteOff.html">MIDI::NoteOffEvent</a>
|
147
|
-
|
148
|
-
<li><a href="../MIDI/NoteOn.html">MIDI::NoteOn</a>
|
149
|
-
|
150
|
-
<li><a href="../MIDI/NoteOn.html">MIDI::NoteOnEvent</a>
|
151
|
-
|
152
|
-
<li><a href="../MIDI/PitchBend.html">MIDI::PitchBend</a>
|
153
|
-
|
154
|
-
<li><a href="../MIDI/PolyPressure.html">MIDI::PolyPressure</a>
|
155
|
-
|
156
|
-
<li><a href="../MIDI/ProgramChange.html">MIDI::ProgramChange</a>
|
157
|
-
|
158
|
-
<li><a href="../MIDI/Realtime.html">MIDI::Realtime</a>
|
159
|
-
|
160
|
-
<li><a href="../MIDI/Sequence.html">MIDI::Sequence</a>
|
161
|
-
|
162
|
-
<li><a href="../MIDI/SongPointer.html">MIDI::SongPointer</a>
|
163
|
-
|
164
|
-
<li><a href="../MIDI/SongSelect.html">MIDI::SongSelect</a>
|
165
|
-
|
166
|
-
<li><a href="../MIDI/Start.html">MIDI::Start</a>
|
167
|
-
|
168
|
-
<li><a href="../MIDI/Stop.html">MIDI::Stop</a>
|
169
|
-
|
170
|
-
<li><a href="../MIDI/SystemCommon.html">MIDI::SystemCommon</a>
|
171
|
-
|
172
|
-
<li><a href="../MIDI/SystemExclusive.html">MIDI::SystemExclusive</a>
|
173
|
-
|
174
|
-
<li><a href="../MIDI/SystemReset.html">MIDI::SystemReset</a>
|
175
|
-
|
176
|
-
<li><a href="../MIDI/Tempo.html">MIDI::Tempo</a>
|
177
|
-
|
178
|
-
<li><a href="../MIDI/TimeSig.html">MIDI::TimeSig</a>
|
179
|
-
|
180
|
-
<li><a href="../MIDI/Track.html">MIDI::Track</a>
|
181
|
-
|
182
|
-
<li><a href="../MIDI/TuneRequest.html">MIDI::TuneRequest</a>
|
183
|
-
|
184
|
-
<li><a href="../MIDI/Utils.html">MIDI::Utils</a>
|
185
|
-
|
186
|
-
<li><a href="../IO.html">IO</a>
|
187
|
-
|
188
|
-
</ul>
|
189
|
-
</nav>
|
190
|
-
|
191
|
-
</div>
|
192
|
-
</nav>
|
193
|
-
|
194
|
-
<div id="documentation">
|
195
|
-
<h1 class="class">class MIDI::PitchBend</h1>
|
196
|
-
|
197
|
-
<div id="description" class="description">
|
90
|
+
<section class="description">
|
198
91
|
|
199
|
-
</
|
92
|
+
</section>
|
200
93
|
|
201
94
|
|
202
95
|
|
@@ -209,9 +102,10 @@
|
|
209
102
|
|
210
103
|
|
211
104
|
|
212
|
-
|
213
|
-
|
214
|
-
|
105
|
+
<section class="attribute-method-details" class="method-section">
|
106
|
+
<header>
|
107
|
+
<h3>Attributes</h3>
|
108
|
+
</header>
|
215
109
|
|
216
110
|
|
217
111
|
<div id="attribute-i-value" class="method-detail">
|
@@ -227,13 +121,14 @@
|
|
227
121
|
</div>
|
228
122
|
</div>
|
229
123
|
|
230
|
-
</section
|
124
|
+
</section>
|
231
125
|
|
232
126
|
|
233
|
-
<!-- Methods -->
|
234
127
|
|
235
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section
|
236
|
-
|
128
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
129
|
+
<header>
|
130
|
+
<h3>Public Class Methods</h3>
|
131
|
+
</header>
|
237
132
|
|
238
133
|
|
239
134
|
<div id="method-c-new" class="method-detail ">
|
@@ -241,7 +136,9 @@
|
|
241
136
|
<div class="method-heading">
|
242
137
|
<span class="method-name">new</span><span
|
243
138
|
class="method-args">(channel = 0, value = 0, delta_time = 0)</span>
|
139
|
+
|
244
140
|
<span class="method-click-advice">click to toggle source</span>
|
141
|
+
|
245
142
|
</div>
|
246
143
|
|
247
144
|
|
@@ -249,28 +146,36 @@
|
|
249
146
|
|
250
147
|
|
251
148
|
|
149
|
+
|
150
|
+
<div class="method-calls-super">
|
151
|
+
Calls superclass method
|
152
|
+
<a href="ChannelEvent.html#method-c-new">MIDI::ChannelEvent.new</a>
|
153
|
+
</div>
|
154
|
+
|
252
155
|
|
253
156
|
|
254
157
|
<div class="method-source-code" id="new-source">
|
255
|
-
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line
|
158
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 243</span>
|
256
159
|
<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">value</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">delta_time</span> = <span class="ruby-value">0</span>)
|
257
|
-
|
258
|
-
|
160
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-constant">PITCH_BEND</span>, <span class="ruby-identifier">channel</span>, <span class="ruby-identifier">delta_time</span>)
|
161
|
+
<span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span>
|
259
162
|
<span class="ruby-keyword">end</span></pre>
|
260
|
-
</div
|
163
|
+
</div>
|
261
164
|
|
262
165
|
</div>
|
263
166
|
|
264
167
|
|
265
168
|
|
266
169
|
|
267
|
-
</div
|
170
|
+
</div>
|
268
171
|
|
269
172
|
|
270
|
-
</section
|
173
|
+
</section>
|
271
174
|
|
272
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section
|
273
|
-
|
175
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
176
|
+
<header>
|
177
|
+
<h3>Public Instance Methods</h3>
|
178
|
+
</header>
|
274
179
|
|
275
180
|
|
276
181
|
<div id="method-i-data_as_bytes" class="method-detail ">
|
@@ -278,7 +183,9 @@
|
|
278
183
|
<div class="method-heading">
|
279
184
|
<span class="method-name">data_as_bytes</span><span
|
280
185
|
class="method-args">()</span>
|
186
|
+
|
281
187
|
<span class="method-click-advice">click to toggle source</span>
|
188
|
+
|
282
189
|
</div>
|
283
190
|
|
284
191
|
|
@@ -286,24 +193,25 @@
|
|
286
193
|
|
287
194
|
|
288
195
|
|
196
|
+
|
289
197
|
|
290
198
|
|
291
199
|
<div class="method-source-code" id="data_as_bytes-source">
|
292
|
-
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line
|
200
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 248</span>
|
293
201
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">data_as_bytes</span>
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
202
|
+
<span class="ruby-identifier">data</span> = []
|
203
|
+
<span class="ruby-identifier">data</span> <span class="ruby-operator"><<</span> (<span class="ruby-ivar">@status</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@channel</span>)
|
204
|
+
<span class="ruby-identifier">data</span> <span class="ruby-operator"><<</span> (<span class="ruby-ivar">@value</span> <span class="ruby-operator">&</span> <span class="ruby-value">0x7f</span>) <span class="ruby-comment"># lsb</span>
|
205
|
+
<span class="ruby-identifier">data</span> <span class="ruby-operator"><<</span> ((<span class="ruby-ivar">@value</span> <span class="ruby-operator">>></span> <span class="ruby-value">7</span>) <span class="ruby-operator">&</span> <span class="ruby-value">0x7f</span>) <span class="ruby-comment"># msb</span>
|
298
206
|
<span class="ruby-keyword">end</span></pre>
|
299
|
-
</div
|
207
|
+
</div>
|
300
208
|
|
301
209
|
</div>
|
302
210
|
|
303
211
|
|
304
212
|
|
305
213
|
|
306
|
-
</div
|
214
|
+
</div>
|
307
215
|
|
308
216
|
|
309
217
|
<div id="method-i-to_s" class="method-detail ">
|
@@ -311,7 +219,9 @@
|
|
311
219
|
<div class="method-heading">
|
312
220
|
<span class="method-name">to_s</span><span
|
313
221
|
class="method-args">()</span>
|
222
|
+
|
314
223
|
<span class="method-click-advice">click to toggle source</span>
|
224
|
+
|
315
225
|
</div>
|
316
226
|
|
317
227
|
|
@@ -319,33 +229,38 @@
|
|
319
229
|
|
320
230
|
|
321
231
|
|
232
|
+
|
233
|
+
<div class="method-calls-super">
|
234
|
+
Calls superclass method
|
235
|
+
<a href="ChannelEvent.html#method-i-to_s">MIDI::ChannelEvent#to_s</a>
|
236
|
+
</div>
|
237
|
+
|
322
238
|
|
323
239
|
|
324
240
|
<div class="method-source-code" id="to_s-source">
|
325
|
-
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line
|
241
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 255</span>
|
326
242
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
327
|
-
|
243
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">super</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"pb #{number_to_s(@value)}"</span>
|
328
244
|
<span class="ruby-keyword">end</span></pre>
|
329
|
-
</div
|
245
|
+
</div>
|
330
246
|
|
331
247
|
</div>
|
332
248
|
|
333
249
|
|
334
250
|
|
335
251
|
|
336
|
-
</div
|
252
|
+
</div>
|
337
253
|
|
338
254
|
|
339
|
-
</section
|
255
|
+
</section>
|
340
256
|
|
341
|
-
</section
|
342
|
-
|
343
|
-
</div><!-- documentation -->
|
257
|
+
</section>
|
258
|
+
</main>
|
344
259
|
|
345
260
|
|
346
|
-
<footer id="validator-badges">
|
347
|
-
<p><a href="http://validator.w3.org/check/referer">
|
348
|
-
<p>Generated by <a href="
|
349
|
-
<p>
|
261
|
+
<footer id="validator-badges" role="contentinfo">
|
262
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
263
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
264
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
350
265
|
</footer>
|
351
266
|
|
data/html/MIDI/PolyPressure.html
CHANGED
@@ -2,203 +2,96 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
5
|
+
<meta charset="UTF-8">
|
6
6
|
|
7
7
|
<title>class MIDI::PolyPressure - midilib</title>
|
8
8
|
|
9
|
-
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
-
|
11
9
|
<script type="text/javascript">
|
12
10
|
var rdoc_rel_prefix = "../";
|
13
11
|
</script>
|
14
12
|
|
15
|
-
<script
|
16
|
-
<script
|
17
|
-
|
18
|
-
<
|
19
|
-
<
|
20
|
-
|
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
|
+
|
21
19
|
|
22
20
|
|
23
|
-
<body id="top" class="class">
|
24
|
-
<nav
|
25
|
-
<
|
26
|
-
|
27
|
-
|
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>
|
28
31
|
<a href="../table_of_contents.html#classes">Classes</a>
|
29
32
|
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
-
</
|
31
|
-
</
|
32
|
-
|
33
|
+
</div>
|
34
|
+
</div>
|
33
35
|
|
34
|
-
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
35
37
|
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<
|
37
|
-
<input
|
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"
|
38
42
|
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
44
|
-
|
43
|
+
</div>
|
45
44
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
</ul>
|
52
|
-
</nav>
|
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>
|
53
50
|
|
54
|
-
|
55
51
|
</div>
|
56
52
|
|
53
|
+
|
54
|
+
|
57
55
|
<div id="class-metadata">
|
58
56
|
|
59
|
-
<
|
60
|
-
<h3
|
57
|
+
<div id="parent-class-section" class="nav-section">
|
58
|
+
<h3>Parent</h3>
|
59
|
+
|
61
60
|
|
62
61
|
<p class="link"><a href="NoteEvent.html">MIDI::NoteEvent</a>
|
63
62
|
|
64
|
-
</
|
63
|
+
</div>
|
65
64
|
|
66
65
|
|
66
|
+
|
67
67
|
<!-- Method Quickref -->
|
68
|
-
<
|
69
|
-
<h3
|
68
|
+
<div id="method-list-section" class="nav-section">
|
69
|
+
<h3>Methods</h3>
|
70
70
|
|
71
|
-
<ul class="link-list">
|
71
|
+
<ul class="link-list" role="directory">
|
72
72
|
|
73
|
-
<li><a href="#method-c-new">::new</a>
|
73
|
+
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
74
74
|
|
75
|
-
<li><a href="#method-i-pressure">#pressure</a>
|
75
|
+
<li ><a href="#method-i-pressure">#pressure</a>
|
76
76
|
|
77
|
-
<li><a href="#method-i-pressure-3D">#pressure=</a>
|
77
|
+
<li ><a href="#method-i-pressure-3D">#pressure=</a>
|
78
78
|
|
79
|
-
<li><a href="#method-i-to_s">#to_s</a>
|
79
|
+
<li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
|
80
80
|
|
81
81
|
</ul>
|
82
|
-
</
|
82
|
+
</div>
|
83
83
|
|
84
84
|
</div>
|
85
|
-
|
86
|
-
<div id="project-metadata">
|
87
|
-
<nav id="fileindex-section" class="section project-section">
|
88
|
-
<h3 class="section-header">Pages</h3>
|
89
|
-
|
90
|
-
<ul>
|
91
|
-
|
92
|
-
<li class="file"><a href="../README_rdoc.html">README</a>
|
93
|
-
|
94
|
-
<li class="file"><a href="../TODO_rdoc.html">TODO</a>
|
95
|
-
|
96
|
-
</ul>
|
97
85
|
</nav>
|
98
86
|
|
99
|
-
|
100
|
-
<
|
87
|
+
<main role="main" aria-labelledby="class-MIDI::PolyPressure">
|
88
|
+
<h1 id="class-MIDI::PolyPressure" class="class">
|
89
|
+
class MIDI::PolyPressure
|
90
|
+
</h1>
|
101
91
|
|
102
|
-
<
|
103
|
-
|
104
|
-
<li><a href="../MIDI.html">MIDI</a>
|
105
|
-
|
106
|
-
<li><a href="../MIDI/ActiveSense.html">MIDI::ActiveSense</a>
|
107
|
-
|
108
|
-
<li><a href="../MIDI/ChannelEvent.html">MIDI::ChannelEvent</a>
|
109
|
-
|
110
|
-
<li><a href="../MIDI/ChannelPressure.html">MIDI::ChannelPressure</a>
|
111
|
-
|
112
|
-
<li><a href="../MIDI/Clock.html">MIDI::Clock</a>
|
113
|
-
|
114
|
-
<li><a href="../MIDI/Continue.html">MIDI::Continue</a>
|
115
|
-
|
116
|
-
<li><a href="../MIDI/Controller.html">MIDI::Controller</a>
|
117
|
-
|
118
|
-
<li><a href="../MIDI/Event.html">MIDI::Event</a>
|
119
|
-
|
120
|
-
<li><a href="../MIDI/IO.html">MIDI::IO</a>
|
121
|
-
|
122
|
-
<li><a href="../MIDI/IO/MIDIFile.html">MIDI::IO::MIDIFile</a>
|
123
|
-
|
124
|
-
<li><a href="../MIDI/IO/SeqReader.html">MIDI::IO::SeqReader</a>
|
125
|
-
|
126
|
-
<li><a href="../MIDI/IO/SeqWriter.html">MIDI::IO::SeqWriter</a>
|
127
|
-
|
128
|
-
<li><a href="../MIDI/KeySig.html">MIDI::KeySig</a>
|
129
|
-
|
130
|
-
<li><a href="../MIDI/MIDI.html">MIDI::MIDI</a>
|
131
|
-
|
132
|
-
<li><a href="../MIDI/MIDI/MIDI.html">MIDI::MIDI::MIDI</a>
|
133
|
-
|
134
|
-
<li><a href="../MIDI/MIDI/MIDI/Array.html">MIDI::MIDI::MIDI::Array</a>
|
135
|
-
|
136
|
-
<li><a href="../MIDI/Marker.html">MIDI::Marker</a>
|
137
|
-
|
138
|
-
<li><a href="../MIDI/Measure.html">MIDI::Measure</a>
|
139
|
-
|
140
|
-
<li><a href="../MIDI/Measures.html">MIDI::Measures</a>
|
141
|
-
|
142
|
-
<li><a href="../MIDI/MetaEvent.html">MIDI::MetaEvent</a>
|
143
|
-
|
144
|
-
<li><a href="../MIDI/NoteEvent.html">MIDI::NoteEvent</a>
|
145
|
-
|
146
|
-
<li><a href="../MIDI/NoteOff.html">MIDI::NoteOff</a>
|
147
|
-
|
148
|
-
<li><a href="../MIDI/NoteOff.html">MIDI::NoteOffEvent</a>
|
149
|
-
|
150
|
-
<li><a href="../MIDI/NoteOn.html">MIDI::NoteOn</a>
|
151
|
-
|
152
|
-
<li><a href="../MIDI/NoteOn.html">MIDI::NoteOnEvent</a>
|
153
|
-
|
154
|
-
<li><a href="../MIDI/PitchBend.html">MIDI::PitchBend</a>
|
155
|
-
|
156
|
-
<li><a href="../MIDI/PolyPressure.html">MIDI::PolyPressure</a>
|
157
|
-
|
158
|
-
<li><a href="../MIDI/ProgramChange.html">MIDI::ProgramChange</a>
|
159
|
-
|
160
|
-
<li><a href="../MIDI/Realtime.html">MIDI::Realtime</a>
|
161
|
-
|
162
|
-
<li><a href="../MIDI/Sequence.html">MIDI::Sequence</a>
|
163
|
-
|
164
|
-
<li><a href="../MIDI/SongPointer.html">MIDI::SongPointer</a>
|
165
|
-
|
166
|
-
<li><a href="../MIDI/SongSelect.html">MIDI::SongSelect</a>
|
167
|
-
|
168
|
-
<li><a href="../MIDI/Start.html">MIDI::Start</a>
|
169
|
-
|
170
|
-
<li><a href="../MIDI/Stop.html">MIDI::Stop</a>
|
171
|
-
|
172
|
-
<li><a href="../MIDI/SystemCommon.html">MIDI::SystemCommon</a>
|
173
|
-
|
174
|
-
<li><a href="../MIDI/SystemExclusive.html">MIDI::SystemExclusive</a>
|
175
|
-
|
176
|
-
<li><a href="../MIDI/SystemReset.html">MIDI::SystemReset</a>
|
177
|
-
|
178
|
-
<li><a href="../MIDI/Tempo.html">MIDI::Tempo</a>
|
179
|
-
|
180
|
-
<li><a href="../MIDI/TimeSig.html">MIDI::TimeSig</a>
|
181
|
-
|
182
|
-
<li><a href="../MIDI/Track.html">MIDI::Track</a>
|
183
|
-
|
184
|
-
<li><a href="../MIDI/TuneRequest.html">MIDI::TuneRequest</a>
|
185
|
-
|
186
|
-
<li><a href="../MIDI/Utils.html">MIDI::Utils</a>
|
187
|
-
|
188
|
-
<li><a href="../IO.html">IO</a>
|
189
|
-
|
190
|
-
</ul>
|
191
|
-
</nav>
|
192
|
-
|
193
|
-
</div>
|
194
|
-
</nav>
|
195
|
-
|
196
|
-
<div id="documentation">
|
197
|
-
<h1 class="class">class MIDI::PolyPressure</h1>
|
198
|
-
|
199
|
-
<div id="description" class="description">
|
92
|
+
<section class="description">
|
200
93
|
|
201
|
-
</
|
94
|
+
</section>
|
202
95
|
|
203
96
|
|
204
97
|
|
@@ -212,10 +105,11 @@
|
|
212
105
|
|
213
106
|
|
214
107
|
|
215
|
-
<!-- Methods -->
|
216
108
|
|
217
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section
|
218
|
-
|
109
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
110
|
+
<header>
|
111
|
+
<h3>Public Class Methods</h3>
|
112
|
+
</header>
|
219
113
|
|
220
114
|
|
221
115
|
<div id="method-c-new" class="method-detail ">
|
@@ -223,7 +117,9 @@
|
|
223
117
|
<div class="method-heading">
|
224
118
|
<span class="method-name">new</span><span
|
225
119
|
class="method-args">(channel = 0, note = 64, value = 0, delta_time = 0)</span>
|
120
|
+
|
226
121
|
<span class="method-click-advice">click to toggle source</span>
|
122
|
+
|
227
123
|
</div>
|
228
124
|
|
229
125
|
|
@@ -231,27 +127,35 @@
|
|
231
127
|
|
232
128
|
|
233
129
|
|
130
|
+
|
131
|
+
<div class="method-calls-super">
|
132
|
+
Calls superclass method
|
133
|
+
<a href="NoteEvent.html#method-c-new">MIDI::NoteEvent.new</a>
|
134
|
+
</div>
|
135
|
+
|
234
136
|
|
235
137
|
|
236
138
|
<div class="method-source-code" id="new-source">
|
237
|
-
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line
|
139
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 165</span>
|
238
140
|
<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">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>)
|
239
|
-
|
141
|
+
<span class="ruby-keyword">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>)
|
240
142
|
<span class="ruby-keyword">end</span></pre>
|
241
|
-
</div
|
143
|
+
</div>
|
242
144
|
|
243
145
|
</div>
|
244
146
|
|
245
147
|
|
246
148
|
|
247
149
|
|
248
|
-
</div
|
150
|
+
</div>
|
249
151
|
|
250
152
|
|
251
|
-
</section
|
153
|
+
</section>
|
252
154
|
|
253
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section
|
254
|
-
|
155
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
156
|
+
<header>
|
157
|
+
<h3>Public Instance Methods</h3>
|
158
|
+
</header>
|
255
159
|
|
256
160
|
|
257
161
|
<div id="method-i-pressure" class="method-detail ">
|
@@ -259,7 +163,9 @@
|
|
259
163
|
<div class="method-heading">
|
260
164
|
<span class="method-name">pressure</span><span
|
261
165
|
class="method-args">()</span>
|
166
|
+
|
262
167
|
<span class="method-click-advice">click to toggle source</span>
|
168
|
+
|
263
169
|
</div>
|
264
170
|
|
265
171
|
|
@@ -267,21 +173,22 @@
|
|
267
173
|
|
268
174
|
|
269
175
|
|
176
|
+
|
270
177
|
|
271
178
|
|
272
179
|
<div class="method-source-code" id="pressure-source">
|
273
|
-
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line
|
180
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 169</span>
|
274
181
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">pressure</span>
|
275
|
-
|
182
|
+
<span class="ruby-keyword">return</span> <span class="ruby-ivar">@velocity</span>
|
276
183
|
<span class="ruby-keyword">end</span></pre>
|
277
|
-
</div
|
184
|
+
</div>
|
278
185
|
|
279
186
|
</div>
|
280
187
|
|
281
188
|
|
282
189
|
|
283
190
|
|
284
|
-
</div
|
191
|
+
</div>
|
285
192
|
|
286
193
|
|
287
194
|
<div id="method-i-pressure-3D" class="method-detail ">
|
@@ -289,7 +196,9 @@
|
|
289
196
|
<div class="method-heading">
|
290
197
|
<span class="method-name">pressure=</span><span
|
291
198
|
class="method-args">(val)</span>
|
199
|
+
|
292
200
|
<span class="method-click-advice">click to toggle source</span>
|
201
|
+
|
293
202
|
</div>
|
294
203
|
|
295
204
|
|
@@ -297,21 +206,22 @@
|
|
297
206
|
|
298
207
|
|
299
208
|
|
209
|
+
|
300
210
|
|
301
211
|
|
302
212
|
<div class="method-source-code" id="pressure-3D-source">
|
303
|
-
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line
|
213
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 172</span>
|
304
214
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">pressure=</span>(<span class="ruby-identifier">val</span>)
|
305
|
-
|
215
|
+
<span class="ruby-ivar">@velocity</span> = <span class="ruby-identifier">val</span>
|
306
216
|
<span class="ruby-keyword">end</span></pre>
|
307
|
-
</div
|
217
|
+
</div>
|
308
218
|
|
309
219
|
</div>
|
310
220
|
|
311
221
|
|
312
222
|
|
313
223
|
|
314
|
-
</div
|
224
|
+
</div>
|
315
225
|
|
316
226
|
|
317
227
|
<div id="method-i-to_s" class="method-detail ">
|
@@ -319,7 +229,9 @@
|
|
319
229
|
<div class="method-heading">
|
320
230
|
<span class="method-name">to_s</span><span
|
321
231
|
class="method-args">()</span>
|
232
|
+
|
322
233
|
<span class="method-click-advice">click to toggle source</span>
|
234
|
+
|
323
235
|
</div>
|
324
236
|
|
325
237
|
|
@@ -327,34 +239,39 @@
|
|
327
239
|
|
328
240
|
|
329
241
|
|
242
|
+
|
243
|
+
<div class="method-calls-super">
|
244
|
+
Calls superclass method
|
245
|
+
<a href="ChannelEvent.html#method-i-to_s">MIDI::ChannelEvent#to_s</a>
|
246
|
+
</div>
|
247
|
+
|
330
248
|
|
331
249
|
|
332
250
|
<div class="method-source-code" id="to_s-source">
|
333
|
-
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line
|
251
|
+
<pre><span class="ruby-comment"># File lib/midilib/event.rb, line 175</span>
|
334
252
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
335
|
-
|
336
|
-
|
253
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">super</span> <span class="ruby-operator"><<</span>
|
254
|
+
<span class="ruby-node">"poly press #{channel_to_s(@channel)} #{note_to_s} #{number_to_s(@velocity)}"</span>
|
337
255
|
<span class="ruby-keyword">end</span></pre>
|
338
|
-
</div
|
256
|
+
</div>
|
339
257
|
|
340
258
|
</div>
|
341
259
|
|
342
260
|
|
343
261
|
|
344
262
|
|
345
|
-
</div
|
263
|
+
</div>
|
346
264
|
|
347
265
|
|
348
|
-
</section
|
266
|
+
</section>
|
349
267
|
|
350
|
-
</section
|
351
|
-
|
352
|
-
</div><!-- documentation -->
|
268
|
+
</section>
|
269
|
+
</main>
|
353
270
|
|
354
271
|
|
355
|
-
<footer id="validator-badges">
|
356
|
-
<p><a href="http://validator.w3.org/check/referer">
|
357
|
-
<p>Generated by <a href="
|
358
|
-
<p>
|
272
|
+
<footer id="validator-badges" role="contentinfo">
|
273
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
274
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
275
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
359
276
|
</footer>
|
360
277
|
|