midi-communications-windows 0.0.3
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/.gitignore +8 -0
- data/.version +6 -0
- data/.yardoc/checksums +8 -0
- data/.yardoc/complete +0 -0
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/.yardopts +8 -0
- data/Gemfile +3 -0
- data/LICENSE +165 -0
- data/README.md +176 -0
- data/Rakefile +13 -0
- data/doc/MIDICommunicationsWindows/API/MIDIHdr.html +144 -0
- data/doc/MIDICommunicationsWindows/API/MIDIInCaps.html +142 -0
- data/doc/MIDICommunicationsWindows/API/MIDIOutCaps.html +140 -0
- data/doc/MIDICommunicationsWindows/API/MSG.html +143 -0
- data/doc/MIDICommunicationsWindows/API.html +981 -0
- data/doc/MIDICommunicationsWindows/Device/ClassMethods.html +365 -0
- data/doc/MIDICommunicationsWindows/Device/InstanceMethods.html +1096 -0
- data/doc/MIDICommunicationsWindows/Device.html +988 -0
- data/doc/MIDICommunicationsWindows/Error.html +438 -0
- data/doc/MIDICommunicationsWindows/Input.html +1554 -0
- data/doc/MIDICommunicationsWindows/Message.html +700 -0
- data/doc/MIDICommunicationsWindows/Output.html +1697 -0
- data/doc/MIDICommunicationsWindows/TypeConversion.html +369 -0
- data/doc/MIDICommunicationsWindows.html +210 -0
- data/doc/_index.html +262 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +206 -0
- data/doc/css/style.css +1089 -0
- data/doc/file.README.html +240 -0
- data/doc/file.testing-on-windows.html +253 -0
- data/doc/file_list.html +64 -0
- data/doc/frames.html +22 -0
- data/doc/index.html +240 -0
- data/doc/js/app.js +801 -0
- data/doc/js/full_list.js +334 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +382 -0
- data/doc/top-level-namespace.html +112 -0
- data/docs/testing-on-windows.md +222 -0
- data/examples/input.rb +27 -0
- data/examples/list_ports.rb +17 -0
- data/examples/output.rb +22 -0
- data/examples/sysex_output.rb +15 -0
- data/lib/midi-communications-windows/api.rb +340 -0
- data/lib/midi-communications-windows/device.rb +310 -0
- data/lib/midi-communications-windows/input.rb +486 -0
- data/lib/midi-communications-windows/message.rb +133 -0
- data/lib/midi-communications-windows/output.rb +206 -0
- data/lib/midi-communications-windows/type_conversion.rb +20 -0
- data/lib/midi-communications-windows/version.rb +4 -0
- data/lib/midi-communications-windows.rb +76 -0
- data/midi-communications-windows.gemspec +32 -0
- metadata +220 -0
|
@@ -0,0 +1,1096 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>
|
|
7
|
+
Module: MIDICommunicationsWindows::Device::InstanceMethods
|
|
8
|
+
|
|
9
|
+
— MIDI Communications Windows API
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css">
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css">
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript">
|
|
18
|
+
pathId = "MIDICommunicationsWindows::Device::InstanceMethods";
|
|
19
|
+
relpath = '../../';
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
|
24
|
+
|
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
</head>
|
|
29
|
+
<body>
|
|
30
|
+
<div id="main_progress" aria-hidden="true"></div>
|
|
31
|
+
|
|
32
|
+
<div class="nav_wrap">
|
|
33
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
|
34
|
+
<div id="resizer"></div>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<div id="main" tabindex="-1">
|
|
38
|
+
<div id="header">
|
|
39
|
+
<div id="menu">
|
|
40
|
+
|
|
41
|
+
<a href="../../_index.html">Index (I)</a> »
|
|
42
|
+
<span class='title'><span class='object_link'><a href="../../MIDICommunicationsWindows.html" title="MIDICommunicationsWindows (module)">MIDICommunicationsWindows</a></span></span> » <span class='title'><span class='object_link'><a href="../Device.html" title="MIDICommunicationsWindows::Device (module)">Device</a></span></span>
|
|
43
|
+
»
|
|
44
|
+
<span class="title">InstanceMethods</span>
|
|
45
|
+
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<div id="search">
|
|
49
|
+
|
|
50
|
+
<a class="full_list_link" id="class_list_link"
|
|
51
|
+
href="../../class_list.html">
|
|
52
|
+
|
|
53
|
+
<svg width="24" height="24">
|
|
54
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
|
55
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
|
56
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
|
57
|
+
</svg>
|
|
58
|
+
</a>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
<div class="clear"></div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<div id="content"><h1>Module: MIDICommunicationsWindows::Device::InstanceMethods
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</h1>
|
|
69
|
+
<div class="box_info">
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<dl>
|
|
80
|
+
<dt>Included in:</dt>
|
|
81
|
+
<dd><span class='object_link'><a href="../Input.html" title="MIDICommunicationsWindows::Input (class)">Input</a></span>, <span class='object_link'><a href="../Output.html" title="MIDICommunicationsWindows::Output (class)">Output</a></span></dd>
|
|
82
|
+
</dl>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<dl>
|
|
87
|
+
<dt>Defined in:</dt>
|
|
88
|
+
<dd>lib/midi-communications-windows/device.rb
|
|
89
|
+
</dd>
|
|
90
|
+
</dl>
|
|
91
|
+
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
<h2>Overview</h2><div class="docstring">
|
|
95
|
+
<div class="discussion">
|
|
96
|
+
<p>Methods on an individual port.</p>
|
|
97
|
+
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="tags">
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
108
|
+
<ul class="summary">
|
|
109
|
+
|
|
110
|
+
<li class="public ">
|
|
111
|
+
<span class="summary_signature">
|
|
112
|
+
|
|
113
|
+
<a href="#enabled-instance_method" title="#enabled (instance method)">#<strong>enabled</strong> ⇒ Object </a>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
(also: #enabled?)
|
|
118
|
+
|
|
119
|
+
</span>
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
<span class="note title readonly">readonly</span>
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
135
|
+
|
|
136
|
+
</li>
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
<li class="public ">
|
|
140
|
+
<span class="summary_signature">
|
|
141
|
+
|
|
142
|
+
<a href="#id-instance_method" title="#id (instance method)">#<strong>id</strong> ⇒ Integer </a>
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
</span>
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
<span class="note title readonly">readonly</span>
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
<span class="summary_desc"><div class='inline'><p>The port's WinMM index <strong>within its direction</strong>; see the note on identity in <span class='object_link'><a href="../Device.html" title="MIDICommunicationsWindows::Device (module)">MIDICommunicationsWindows::Device</a></span>.</p></div></span>
|
|
162
|
+
|
|
163
|
+
</li>
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
<li class="public ">
|
|
167
|
+
<span class="summary_signature">
|
|
168
|
+
|
|
169
|
+
<a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> ⇒ String </a>
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
</span>
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
<span class="note title readonly">readonly</span>
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
<span class="summary_desc"><div class='inline'><p>The port's name, as WinMM reports it, truncated to 31 characters.</p></div></span>
|
|
189
|
+
|
|
190
|
+
</li>
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
</ul>
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
<h2>
|
|
200
|
+
Instance Method Summary
|
|
201
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
202
|
+
</h2>
|
|
203
|
+
|
|
204
|
+
<ul class="summary">
|
|
205
|
+
|
|
206
|
+
<li class="public ">
|
|
207
|
+
<span class="summary_signature">
|
|
208
|
+
|
|
209
|
+
<a href="#close-instance_method" title="#close (instance method)">#<strong>close</strong> ⇒ Boolean </a>
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
</span>
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
<span class="summary_desc"><div class='inline'><p>Closes the port.</p></div></span>
|
|
224
|
+
|
|
225
|
+
</li>
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
<li class="public ">
|
|
229
|
+
<span class="summary_signature">
|
|
230
|
+
|
|
231
|
+
<a href="#display_name-instance_method" title="#display_name (instance method)">#<strong>display_name</strong> ⇒ String </a>
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
</span>
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
<span class="summary_desc"><div class='inline'><p>The name to show a person choosing a port.</p></div></span>
|
|
246
|
+
|
|
247
|
+
</li>
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
<li class="public ">
|
|
251
|
+
<span class="summary_signature">
|
|
252
|
+
|
|
253
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(id, name) ⇒ Object </a>
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
</span>
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
<span class="private note title">private</span>
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
268
|
+
|
|
269
|
+
</li>
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
<li class="public ">
|
|
273
|
+
<span class="summary_signature">
|
|
274
|
+
|
|
275
|
+
<a href="#manufacturer-instance_method" title="#manufacturer (instance method)">#<strong>manufacturer</strong> ⇒ nil </a>
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
</span>
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
<span class="summary_desc"><div class='inline'><p>Who made the device.</p></div></span>
|
|
290
|
+
|
|
291
|
+
</li>
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
<li class="public ">
|
|
295
|
+
<span class="summary_signature">
|
|
296
|
+
|
|
297
|
+
<a href="#model-instance_method" title="#model (instance method)">#<strong>model</strong> ⇒ nil </a>
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
</span>
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
<span class="summary_desc"><div class='inline'><p>The device model.</p></div></span>
|
|
312
|
+
|
|
313
|
+
</li>
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
<li class="public ">
|
|
317
|
+
<span class="summary_signature">
|
|
318
|
+
|
|
319
|
+
<a href="#open-instance_method" title="#open (instance method)">#<strong>open</strong> {|self| ... } ⇒ self </a>
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
(also: #enable, #start)
|
|
324
|
+
|
|
325
|
+
</span>
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
<span class="summary_desc"><div class='inline'><p>Opens the port.</p></div></span>
|
|
336
|
+
|
|
337
|
+
</li>
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
<li class="public ">
|
|
341
|
+
<span class="summary_signature">
|
|
342
|
+
|
|
343
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> ⇒ String </a>
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
</span>
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
358
|
+
|
|
359
|
+
</li>
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
<li class="public ">
|
|
363
|
+
<span class="summary_signature">
|
|
364
|
+
|
|
365
|
+
<a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> ⇒ Symbol </a>
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
</span>
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
<span class="summary_desc"><div class='inline'><p>The port's direction.</p></div></span>
|
|
380
|
+
|
|
381
|
+
</li>
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
</ul>
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
<div id="instance_attr_details" class="attr_details">
|
|
390
|
+
<h2>Instance Attribute Details</h2>
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
<span id=""></span>
|
|
394
|
+
<div class="method_details first">
|
|
395
|
+
<h3 class="signature first" id="enabled-instance_method">
|
|
396
|
+
|
|
397
|
+
#<strong>enabled</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
<span class="aliases">Also known as:
|
|
402
|
+
<span class="names"><span id='enabled?-instance_method'>enabled?</span></span>
|
|
403
|
+
</span>
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
</h3><div class="docstring">
|
|
408
|
+
<div class="discussion">
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
</div>
|
|
412
|
+
</div>
|
|
413
|
+
<div class="tags">
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
</div><table class="source_code">
|
|
417
|
+
<tr>
|
|
418
|
+
<td>
|
|
419
|
+
<pre class="lines">
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
98</pre>
|
|
423
|
+
</td>
|
|
424
|
+
<td>
|
|
425
|
+
<pre class="code"><span class="info file"># File 'lib/midi-communications-windows/device.rb', line 98</span>
|
|
426
|
+
|
|
427
|
+
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:id</span><span class='comma'>,</span> <span class='symbol'>:name</span><span class='comma'>,</span> <span class='symbol'>:enabled</span></pre>
|
|
428
|
+
</td>
|
|
429
|
+
</tr>
|
|
430
|
+
</table>
|
|
431
|
+
</div>
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
<span id=""></span>
|
|
435
|
+
<div class="method_details ">
|
|
436
|
+
<h3 class="signature " id="id-instance_method">
|
|
437
|
+
|
|
438
|
+
#<strong>id</strong> ⇒ <tt>Integer</tt> <span class="extras">(readonly)</span>
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
</h3><div class="docstring">
|
|
445
|
+
<div class="discussion">
|
|
446
|
+
<p>Returns the port's WinMM index <strong>within its direction</strong>;
|
|
447
|
+
see the note on identity in <span class='object_link'><a href="../Device.html" title="MIDICommunicationsWindows::Device (module)">MIDICommunicationsWindows::Device</a></span>.</p>
|
|
448
|
+
|
|
449
|
+
</div>
|
|
450
|
+
</div>
|
|
451
|
+
<div class="tags">
|
|
452
|
+
|
|
453
|
+
<p class="tag_title">Returns:</p>
|
|
454
|
+
<ul class="return">
|
|
455
|
+
|
|
456
|
+
<li>
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
—
|
|
464
|
+
<div class='inline'><p>the port's WinMM index <strong>within its direction</strong>;
|
|
465
|
+
see the note on identity in <span class='object_link'><a href="../Device.html" title="MIDICommunicationsWindows::Device (module)">MIDICommunicationsWindows::Device</a></span></p></div>
|
|
466
|
+
|
|
467
|
+
</li>
|
|
468
|
+
|
|
469
|
+
</ul>
|
|
470
|
+
|
|
471
|
+
</div><table class="source_code">
|
|
472
|
+
<tr>
|
|
473
|
+
<td>
|
|
474
|
+
<pre class="lines">
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
98
|
|
478
|
+
99
|
|
479
|
+
100</pre>
|
|
480
|
+
</td>
|
|
481
|
+
<td>
|
|
482
|
+
<pre class="code"><span class="info file"># File 'lib/midi-communications-windows/device.rb', line 98</span>
|
|
483
|
+
|
|
484
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
|
|
485
|
+
<span class='ivar'>@id</span>
|
|
486
|
+
<span class='kw'>end</span></pre>
|
|
487
|
+
</td>
|
|
488
|
+
</tr>
|
|
489
|
+
</table>
|
|
490
|
+
</div>
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
<span id=""></span>
|
|
494
|
+
<div class="method_details ">
|
|
495
|
+
<h3 class="signature " id="name-instance_method">
|
|
496
|
+
|
|
497
|
+
#<strong>name</strong> ⇒ <tt>String</tt> <span class="extras">(readonly)</span>
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
</h3><div class="docstring">
|
|
504
|
+
<div class="discussion">
|
|
505
|
+
<p>Returns the port's name, as WinMM reports it, truncated to
|
|
506
|
+
31 characters. <strong>Not unique</strong>: see the note on names in <span class='object_link'><a href="../Device.html" title="MIDICommunicationsWindows::Device (module)">MIDICommunicationsWindows::Device</a></span>.</p>
|
|
507
|
+
|
|
508
|
+
</div>
|
|
509
|
+
</div>
|
|
510
|
+
<div class="tags">
|
|
511
|
+
|
|
512
|
+
<p class="tag_title">Returns:</p>
|
|
513
|
+
<ul class="return">
|
|
514
|
+
|
|
515
|
+
<li>
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
—
|
|
523
|
+
<div class='inline'><p>the port's name, as WinMM reports it, truncated to
|
|
524
|
+
31 characters. <strong>Not unique</strong>: see the note on names in <span class='object_link'><a href="../Device.html" title="MIDICommunicationsWindows::Device (module)">MIDICommunicationsWindows::Device</a></span>.</p></div>
|
|
525
|
+
|
|
526
|
+
</li>
|
|
527
|
+
|
|
528
|
+
</ul>
|
|
529
|
+
|
|
530
|
+
</div><table class="source_code">
|
|
531
|
+
<tr>
|
|
532
|
+
<td>
|
|
533
|
+
<pre class="lines">
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
98</pre>
|
|
537
|
+
</td>
|
|
538
|
+
<td>
|
|
539
|
+
<pre class="code"><span class="info file"># File 'lib/midi-communications-windows/device.rb', line 98</span>
|
|
540
|
+
|
|
541
|
+
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:id</span><span class='comma'>,</span> <span class='symbol'>:name</span><span class='comma'>,</span> <span class='symbol'>:enabled</span></pre>
|
|
542
|
+
</td>
|
|
543
|
+
</tr>
|
|
544
|
+
</table>
|
|
545
|
+
</div>
|
|
546
|
+
|
|
547
|
+
</div>
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
<div id="instance_method_details" class="method_details_list">
|
|
551
|
+
<h2>Instance Method Details</h2>
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
<div class="method_details first">
|
|
555
|
+
<h3 class="signature first" id="close-instance_method">
|
|
556
|
+
|
|
557
|
+
#<strong>close</strong> ⇒ <tt>Boolean</tt>
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
</h3><div class="docstring">
|
|
564
|
+
<div class="discussion">
|
|
565
|
+
<p>Closes the port.</p>
|
|
566
|
+
|
|
567
|
+
</div>
|
|
568
|
+
</div>
|
|
569
|
+
<div class="tags">
|
|
570
|
+
|
|
571
|
+
<p class="tag_title">Returns:</p>
|
|
572
|
+
<ul class="return">
|
|
573
|
+
|
|
574
|
+
<li>
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
—
|
|
582
|
+
<div class='inline'><p>true if it was open, false if it already was not</p></div>
|
|
583
|
+
|
|
584
|
+
</li>
|
|
585
|
+
|
|
586
|
+
</ul>
|
|
587
|
+
|
|
588
|
+
</div><table class="source_code">
|
|
589
|
+
<tr>
|
|
590
|
+
<td>
|
|
591
|
+
<pre class="lines">
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
181
|
|
595
|
+
182
|
|
596
|
+
183
|
|
597
|
+
184
|
|
598
|
+
185
|
|
599
|
+
186
|
|
600
|
+
187
|
|
601
|
+
188</pre>
|
|
602
|
+
</td>
|
|
603
|
+
<td>
|
|
604
|
+
<pre class="code"><span class="info file"># File 'lib/midi-communications-windows/device.rb', line 181</span>
|
|
605
|
+
|
|
606
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span>
|
|
607
|
+
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='ivar'>@enabled</span>
|
|
608
|
+
|
|
609
|
+
<span class='id identifier rubyid_disconnect'>disconnect</span>
|
|
610
|
+
<span class='ivar'>@enabled</span> <span class='op'>=</span> <span class='kw'>false</span>
|
|
611
|
+
|
|
612
|
+
<span class='kw'>true</span>
|
|
613
|
+
<span class='kw'>end</span></pre>
|
|
614
|
+
</td>
|
|
615
|
+
</tr>
|
|
616
|
+
</table>
|
|
617
|
+
</div>
|
|
618
|
+
|
|
619
|
+
<div class="method_details ">
|
|
620
|
+
<h3 class="signature " id="display_name-instance_method">
|
|
621
|
+
|
|
622
|
+
#<strong>display_name</strong> ⇒ <tt>String</tt>
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
</h3><div class="docstring">
|
|
629
|
+
<div class="discussion">
|
|
630
|
+
<p>The name to show a person choosing a port.</p>
|
|
631
|
+
<p>This is the port name unchanged. On macOS the display name is built as
|
|
632
|
+
"manufacturer model (name)", which here would render as a name wrapped
|
|
633
|
+
in the punctuation of two absent fields.</p>
|
|
634
|
+
|
|
635
|
+
</div>
|
|
636
|
+
</div>
|
|
637
|
+
<div class="tags">
|
|
638
|
+
|
|
639
|
+
<p class="tag_title">Returns:</p>
|
|
640
|
+
<ul class="return">
|
|
641
|
+
|
|
642
|
+
<li>
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
</li>
|
|
650
|
+
|
|
651
|
+
</ul>
|
|
652
|
+
|
|
653
|
+
</div><table class="source_code">
|
|
654
|
+
<tr>
|
|
655
|
+
<td>
|
|
656
|
+
<pre class="lines">
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
146
|
|
660
|
+
147
|
|
661
|
+
148</pre>
|
|
662
|
+
</td>
|
|
663
|
+
<td>
|
|
664
|
+
<pre class="code"><span class="info file"># File 'lib/midi-communications-windows/device.rb', line 146</span>
|
|
665
|
+
|
|
666
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_display_name'>display_name</span>
|
|
667
|
+
<span class='ivar'>@name</span>
|
|
668
|
+
<span class='kw'>end</span></pre>
|
|
669
|
+
</td>
|
|
670
|
+
</tr>
|
|
671
|
+
</table>
|
|
672
|
+
</div>
|
|
673
|
+
|
|
674
|
+
<div class="method_details ">
|
|
675
|
+
<h3 class="signature " id="initialize-instance_method">
|
|
676
|
+
|
|
677
|
+
#<strong>initialize</strong>(id, name) ⇒ <tt>Object</tt>
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
</h3><div class="docstring">
|
|
684
|
+
<div class="discussion">
|
|
685
|
+
<p class="note private">
|
|
686
|
+
<strong>This method is part of a private API.</strong>
|
|
687
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
688
|
+
</p>
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
</div>
|
|
692
|
+
</div>
|
|
693
|
+
<div class="tags">
|
|
694
|
+
<p class="tag_title">Parameters:</p>
|
|
695
|
+
<ul class="param">
|
|
696
|
+
|
|
697
|
+
<li>
|
|
698
|
+
|
|
699
|
+
<span class='name'>id</span>
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
—
|
|
707
|
+
<div class='inline'><p>the port's WinMM index within its direction</p></div>
|
|
708
|
+
|
|
709
|
+
</li>
|
|
710
|
+
|
|
711
|
+
<li>
|
|
712
|
+
|
|
713
|
+
<span class='name'>name</span>
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
—
|
|
721
|
+
<div class='inline'><p>the port's name as reported by WinMM</p></div>
|
|
722
|
+
|
|
723
|
+
</li>
|
|
724
|
+
|
|
725
|
+
</ul>
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
</div><table class="source_code">
|
|
729
|
+
<tr>
|
|
730
|
+
<td>
|
|
731
|
+
<pre class="lines">
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
107
|
|
735
|
+
108
|
|
736
|
+
109
|
|
737
|
+
110
|
|
738
|
+
111</pre>
|
|
739
|
+
</td>
|
|
740
|
+
<td>
|
|
741
|
+
<pre class="code"><span class="info file"># File 'lib/midi-communications-windows/device.rb', line 107</span>
|
|
742
|
+
|
|
743
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
|
744
|
+
<span class='ivar'>@id</span> <span class='op'>=</span> <span class='id identifier rubyid_id'>id</span>
|
|
745
|
+
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
|
|
746
|
+
<span class='ivar'>@enabled</span> <span class='op'>=</span> <span class='kw'>false</span>
|
|
747
|
+
<span class='kw'>end</span></pre>
|
|
748
|
+
</td>
|
|
749
|
+
</tr>
|
|
750
|
+
</table>
|
|
751
|
+
</div>
|
|
752
|
+
|
|
753
|
+
<div class="method_details ">
|
|
754
|
+
<h3 class="signature " id="manufacturer-instance_method">
|
|
755
|
+
|
|
756
|
+
#<strong>manufacturer</strong> ⇒ <tt>nil</tt>
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
</h3><div class="docstring">
|
|
763
|
+
<div class="discussion">
|
|
764
|
+
<p>Who made the device.</p>
|
|
765
|
+
<p>Always nil on Windows. See the note in <span class='object_link'><a href="../Device.html" title="MIDICommunicationsWindows::Device (module)">MIDICommunicationsWindows::Device</a></span> for why this is not
|
|
766
|
+
derived from <code>wMid</code>.</p>
|
|
767
|
+
|
|
768
|
+
</div>
|
|
769
|
+
</div>
|
|
770
|
+
<div class="tags">
|
|
771
|
+
|
|
772
|
+
<p class="tag_title">Returns:</p>
|
|
773
|
+
<ul class="return">
|
|
774
|
+
|
|
775
|
+
<li>
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
<span class='type'>(<tt>nil</tt>)</span>
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
</li>
|
|
783
|
+
|
|
784
|
+
</ul>
|
|
785
|
+
|
|
786
|
+
</div><table class="source_code">
|
|
787
|
+
<tr>
|
|
788
|
+
<td>
|
|
789
|
+
<pre class="lines">
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
126
|
|
793
|
+
127
|
|
794
|
+
128</pre>
|
|
795
|
+
</td>
|
|
796
|
+
<td>
|
|
797
|
+
<pre class="code"><span class="info file"># File 'lib/midi-communications-windows/device.rb', line 126</span>
|
|
798
|
+
|
|
799
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_manufacturer'>manufacturer</span>
|
|
800
|
+
<span class='kw'>nil</span>
|
|
801
|
+
<span class='kw'>end</span></pre>
|
|
802
|
+
</td>
|
|
803
|
+
</tr>
|
|
804
|
+
</table>
|
|
805
|
+
</div>
|
|
806
|
+
|
|
807
|
+
<div class="method_details ">
|
|
808
|
+
<h3 class="signature " id="model-instance_method">
|
|
809
|
+
|
|
810
|
+
#<strong>model</strong> ⇒ <tt>nil</tt>
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
</h3><div class="docstring">
|
|
817
|
+
<div class="discussion">
|
|
818
|
+
<p>The device model.</p>
|
|
819
|
+
<p>Always nil on Windows, for the same reason as <span class='object_link'><a href="#manufacturer-instance_method" title="MIDICommunicationsWindows::Device::InstanceMethods#manufacturer (method)">#manufacturer</a></span>.</p>
|
|
820
|
+
|
|
821
|
+
</div>
|
|
822
|
+
</div>
|
|
823
|
+
<div class="tags">
|
|
824
|
+
|
|
825
|
+
<p class="tag_title">Returns:</p>
|
|
826
|
+
<ul class="return">
|
|
827
|
+
|
|
828
|
+
<li>
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
<span class='type'>(<tt>nil</tt>)</span>
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
</li>
|
|
836
|
+
|
|
837
|
+
</ul>
|
|
838
|
+
|
|
839
|
+
</div><table class="source_code">
|
|
840
|
+
<tr>
|
|
841
|
+
<td>
|
|
842
|
+
<pre class="lines">
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
135
|
|
846
|
+
136
|
|
847
|
+
137</pre>
|
|
848
|
+
</td>
|
|
849
|
+
<td>
|
|
850
|
+
<pre class="code"><span class="info file"># File 'lib/midi-communications-windows/device.rb', line 135</span>
|
|
851
|
+
|
|
852
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_model'>model</span>
|
|
853
|
+
<span class='kw'>nil</span>
|
|
854
|
+
<span class='kw'>end</span></pre>
|
|
855
|
+
</td>
|
|
856
|
+
</tr>
|
|
857
|
+
</table>
|
|
858
|
+
</div>
|
|
859
|
+
|
|
860
|
+
<div class="method_details ">
|
|
861
|
+
<h3 class="signature " id="open-instance_method">
|
|
862
|
+
|
|
863
|
+
#<strong>open</strong> {|self| ... } ⇒ <tt>self</tt>
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
<span class="aliases">Also known as:
|
|
868
|
+
<span class="names"><span id='enable-instance_method'>enable</span>, <span id='start-instance_method'>start</span></span>
|
|
869
|
+
</span>
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
</h3><div class="docstring">
|
|
874
|
+
<div class="discussion">
|
|
875
|
+
<p>Opens the port.</p>
|
|
876
|
+
<p>Opening twice is not an error and does nothing the second time, which
|
|
877
|
+
is what <code>midi-communications</code> relies on when it opens a port a caller
|
|
878
|
+
may already hold.</p>
|
|
879
|
+
|
|
880
|
+
</div>
|
|
881
|
+
</div>
|
|
882
|
+
<div class="tags">
|
|
883
|
+
|
|
884
|
+
<p class="tag_title">Yields:</p>
|
|
885
|
+
<ul class="yield">
|
|
886
|
+
|
|
887
|
+
<li>
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
<span class='type'>(<tt>self</tt>)</span>
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
—
|
|
895
|
+
<div class='inline'><p>if a block is given, the port is closed when it returns</p></div>
|
|
896
|
+
|
|
897
|
+
</li>
|
|
898
|
+
|
|
899
|
+
</ul>
|
|
900
|
+
<p class="tag_title">Returns:</p>
|
|
901
|
+
<ul class="return">
|
|
902
|
+
|
|
903
|
+
<li>
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
<span class='type'>(<tt>self</tt>)</span>
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
</li>
|
|
911
|
+
|
|
912
|
+
</ul>
|
|
913
|
+
<p class="tag_title">Raises:</p>
|
|
914
|
+
<ul class="raise">
|
|
915
|
+
|
|
916
|
+
<li>
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Error.html" title="MIDICommunicationsWindows::Error (class)">Error</a></span></tt>)</span>
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
—
|
|
924
|
+
<div class='inline'><p>if WinMM refuses to open the port</p></div>
|
|
925
|
+
|
|
926
|
+
</li>
|
|
927
|
+
|
|
928
|
+
</ul>
|
|
929
|
+
|
|
930
|
+
</div><table class="source_code">
|
|
931
|
+
<tr>
|
|
932
|
+
<td>
|
|
933
|
+
<pre class="lines">
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
159
|
|
937
|
+
160
|
|
938
|
+
161
|
|
939
|
+
162
|
|
940
|
+
163
|
|
941
|
+
164
|
|
942
|
+
165
|
|
943
|
+
166
|
|
944
|
+
167
|
|
945
|
+
168
|
|
946
|
+
169
|
|
947
|
+
170
|
|
948
|
+
171
|
|
949
|
+
172
|
|
950
|
+
173
|
|
951
|
+
174</pre>
|
|
952
|
+
</td>
|
|
953
|
+
<td>
|
|
954
|
+
<pre class="code"><span class="info file"># File 'lib/midi-communications-windows/device.rb', line 159</span>
|
|
955
|
+
|
|
956
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_open'>open</span>
|
|
957
|
+
<span class='kw'>unless</span> <span class='ivar'>@enabled</span>
|
|
958
|
+
<span class='id identifier rubyid_connect'>connect</span>
|
|
959
|
+
<span class='ivar'>@enabled</span> <span class='op'>=</span> <span class='kw'>true</span>
|
|
960
|
+
<span class='kw'>end</span>
|
|
961
|
+
|
|
962
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
|
963
|
+
<span class='kw'>begin</span>
|
|
964
|
+
<span class='kw'>yield</span> <span class='kw'>self</span>
|
|
965
|
+
<span class='kw'>ensure</span>
|
|
966
|
+
<span class='id identifier rubyid_close'>close</span>
|
|
967
|
+
<span class='kw'>end</span>
|
|
968
|
+
<span class='kw'>end</span>
|
|
969
|
+
|
|
970
|
+
<span class='kw'>self</span>
|
|
971
|
+
<span class='kw'>end</span></pre>
|
|
972
|
+
</td>
|
|
973
|
+
</tr>
|
|
974
|
+
</table>
|
|
975
|
+
</div>
|
|
976
|
+
|
|
977
|
+
<div class="method_details ">
|
|
978
|
+
<h3 class="signature " id="to_s-instance_method">
|
|
979
|
+
|
|
980
|
+
#<strong>to_s</strong> ⇒ <tt>String</tt>
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
</h3><div class="docstring">
|
|
987
|
+
<div class="discussion">
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
</div>
|
|
991
|
+
</div>
|
|
992
|
+
<div class="tags">
|
|
993
|
+
|
|
994
|
+
<p class="tag_title">Returns:</p>
|
|
995
|
+
<ul class="return">
|
|
996
|
+
|
|
997
|
+
<li>
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
</li>
|
|
1005
|
+
|
|
1006
|
+
</ul>
|
|
1007
|
+
|
|
1008
|
+
</div><table class="source_code">
|
|
1009
|
+
<tr>
|
|
1010
|
+
<td>
|
|
1011
|
+
<pre class="lines">
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
191
|
|
1015
|
+
192
|
|
1016
|
+
193</pre>
|
|
1017
|
+
</td>
|
|
1018
|
+
<td>
|
|
1019
|
+
<pre class="code"><span class="info file"># File 'lib/midi-communications-windows/device.rb', line 191</span>
|
|
1020
|
+
|
|
1021
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
|
1022
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>::</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@id</span><span class='embexpr_end'>}</span><span class='tstring_content'>: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
1023
|
+
<span class='kw'>end</span></pre>
|
|
1024
|
+
</td>
|
|
1025
|
+
</tr>
|
|
1026
|
+
</table>
|
|
1027
|
+
</div>
|
|
1028
|
+
|
|
1029
|
+
<div class="method_details ">
|
|
1030
|
+
<h3 class="signature " id="type-instance_method">
|
|
1031
|
+
|
|
1032
|
+
#<strong>type</strong> ⇒ <tt>Symbol</tt>
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
</h3><div class="docstring">
|
|
1039
|
+
<div class="discussion">
|
|
1040
|
+
<p>The port's direction.</p>
|
|
1041
|
+
|
|
1042
|
+
</div>
|
|
1043
|
+
</div>
|
|
1044
|
+
<div class="tags">
|
|
1045
|
+
|
|
1046
|
+
<p class="tag_title">Returns:</p>
|
|
1047
|
+
<ul class="return">
|
|
1048
|
+
|
|
1049
|
+
<li>
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
—
|
|
1057
|
+
<div class='inline'><p><code>:input</code> or <code>:output</code></p></div>
|
|
1058
|
+
|
|
1059
|
+
</li>
|
|
1060
|
+
|
|
1061
|
+
</ul>
|
|
1062
|
+
|
|
1063
|
+
</div><table class="source_code">
|
|
1064
|
+
<tr>
|
|
1065
|
+
<td>
|
|
1066
|
+
<pre class="lines">
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
116
|
|
1070
|
+
117
|
|
1071
|
+
118</pre>
|
|
1072
|
+
</td>
|
|
1073
|
+
<td>
|
|
1074
|
+
<pre class="code"><span class="info file"># File 'lib/midi-communications-windows/device.rb', line 116</span>
|
|
1075
|
+
|
|
1076
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
|
|
1077
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_direction'>direction</span>
|
|
1078
|
+
<span class='kw'>end</span></pre>
|
|
1079
|
+
</td>
|
|
1080
|
+
</tr>
|
|
1081
|
+
</table>
|
|
1082
|
+
</div>
|
|
1083
|
+
|
|
1084
|
+
</div>
|
|
1085
|
+
|
|
1086
|
+
</div>
|
|
1087
|
+
|
|
1088
|
+
<div id="footer">
|
|
1089
|
+
Generated on Sun Sep 6 21:20:52 2026 by
|
|
1090
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1091
|
+
0.9.45 (ruby-3.4.7).
|
|
1092
|
+
</div>
|
|
1093
|
+
|
|
1094
|
+
</div>
|
|
1095
|
+
</body>
|
|
1096
|
+
</html>
|