This file is indexed.

/usr/share/doc/libjuce/apiref/classMidiOutput.html is in libjuce-doc 4.3.0~repack-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JUCE: MidiOutput Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JUCE
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classMidiOutput-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">MidiOutput Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Controls a physical MIDI output device.  
 <a href="classMidiOutput.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for MidiOutput:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
 <div class="center">
  <img src="classMidiOutput.png" usemap="#MidiOutput_map" alt=""/>
  <map id="MidiOutput_map" name="MidiOutput_map">
<area href="classThread.html" title="Encapsulates a thread. " alt="Thread" shape="rect" coords="0,0,73,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5a2e715734b8b6bcf096eca26893125e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiOutput.html#a5a2e715734b8b6bcf096eca26893125e">~MidiOutput</a> ()</td></tr>
<tr class="memdesc:a5a2e715734b8b6bcf096eca26893125e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a5a2e715734b8b6bcf096eca26893125e">More...</a><br /></td></tr>
<tr class="separator:a5a2e715734b8b6bcf096eca26893125e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5662e29a58faebe2398b9be73728cf54"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classString.html">String</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiOutput.html#a5662e29a58faebe2398b9be73728cf54">getName</a> () const noexcept</td></tr>
<tr class="memdesc:a5662e29a58faebe2398b9be73728cf54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the name of this device.  <a href="#a5662e29a58faebe2398b9be73728cf54">More...</a><br /></td></tr>
<tr class="separator:a5662e29a58faebe2398b9be73728cf54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19c8d64553e0787c920f5b140f7267e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiOutput.html#a19c8d64553e0787c920f5b140f7267e9">sendMessageNow</a> (const <a class="el" href="classMidiMessage.html">MidiMessage</a> &amp;message)</td></tr>
<tr class="memdesc:a19c8d64553e0787c920f5b140f7267e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends out a MIDI message immediately.  <a href="#a19c8d64553e0787c920f5b140f7267e9">More...</a><br /></td></tr>
<tr class="separator:a19c8d64553e0787c920f5b140f7267e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae54072205364d56260eaa11c7771289f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiOutput.html#ae54072205364d56260eaa11c7771289f">sendBlockOfMessagesNow</a> (const <a class="el" href="classMidiBuffer.html">MidiBuffer</a> &amp;buffer)</td></tr>
<tr class="memdesc:ae54072205364d56260eaa11c7771289f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends out a sequence of MIDI messages immediately.  <a href="#ae54072205364d56260eaa11c7771289f">More...</a><br /></td></tr>
<tr class="separator:ae54072205364d56260eaa11c7771289f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1356a3303e8f56389ea52f98b56577b6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiOutput.html#a1356a3303e8f56389ea52f98b56577b6">sendBlockOfMessages</a> (const <a class="el" href="classMidiBuffer.html">MidiBuffer</a> &amp;buffer, double millisecondCounterToStartAt, double samplesPerSecondForBuffer)</td></tr>
<tr class="memdesc:a1356a3303e8f56389ea52f98b56577b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">This lets you supply a block of messages that will be sent out at some point in the future.  <a href="#a1356a3303e8f56389ea52f98b56577b6">More...</a><br /></td></tr>
<tr class="separator:a1356a3303e8f56389ea52f98b56577b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a93ddda8444806f3daf69c1486ae5be"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiOutput.html#a9a93ddda8444806f3daf69c1486ae5be">clearAllPendingMessages</a> ()</td></tr>
<tr class="memdesc:a9a93ddda8444806f3daf69c1486ae5be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets rid of any midi messages that had been added by <a class="el" href="classMidiOutput.html#a1356a3303e8f56389ea52f98b56577b6" title="This lets you supply a block of messages that will be sent out at some point in the future...">sendBlockOfMessages()</a>.  <a href="#a9a93ddda8444806f3daf69c1486ae5be">More...</a><br /></td></tr>
<tr class="separator:a9a93ddda8444806f3daf69c1486ae5be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4037a74a2ba5206ea12bc706132e9c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiOutput.html#ab4037a74a2ba5206ea12bc706132e9c6">startBackgroundThread</a> ()</td></tr>
<tr class="memdesc:ab4037a74a2ba5206ea12bc706132e9c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts up a background thread so that the device can send blocks of data.  <a href="#ab4037a74a2ba5206ea12bc706132e9c6">More...</a><br /></td></tr>
<tr class="separator:ab4037a74a2ba5206ea12bc706132e9c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a250a8b0691928959e09b84f7bc7593a1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiOutput.html#a250a8b0691928959e09b84f7bc7593a1">stopBackgroundThread</a> ()</td></tr>
<tr class="memdesc:a250a8b0691928959e09b84f7bc7593a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops the background thread, and clears any pending midi events.  <a href="#a250a8b0691928959e09b84f7bc7593a1">More...</a><br /></td></tr>
<tr class="separator:a250a8b0691928959e09b84f7bc7593a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a59a303f5b44aa772903984818b6b7275"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classStringArray.html">StringArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiOutput.html#a59a303f5b44aa772903984818b6b7275">getDevices</a> ()</td></tr>
<tr class="memdesc:a59a303f5b44aa772903984818b6b7275"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a list of the available midi output devices.  <a href="#a59a303f5b44aa772903984818b6b7275">More...</a><br /></td></tr>
<tr class="separator:a59a303f5b44aa772903984818b6b7275"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5459a18d9b1b9a5fe27e95e6e9e06a87"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiOutput.html#a5459a18d9b1b9a5fe27e95e6e9e06a87">getDefaultDeviceIndex</a> ()</td></tr>
<tr class="memdesc:a5459a18d9b1b9a5fe27e95e6e9e06a87"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the index of the default midi output device to use.  <a href="#a5459a18d9b1b9a5fe27e95e6e9e06a87">More...</a><br /></td></tr>
<tr class="separator:a5459a18d9b1b9a5fe27e95e6e9e06a87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add5366efd74e5c5ee665af4592c6b15e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classMidiOutput.html">MidiOutput</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiOutput.html#add5366efd74e5c5ee665af4592c6b15e">openDevice</a> (int deviceIndex)</td></tr>
<tr class="memdesc:add5366efd74e5c5ee665af4592c6b15e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tries to open one of the midi output devices.  <a href="#add5366efd74e5c5ee665af4592c6b15e">More...</a><br /></td></tr>
<tr class="separator:add5366efd74e5c5ee665af4592c6b15e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04169caa4a0c533c57a55357f2e13cc8"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classMidiOutput.html">MidiOutput</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiOutput.html#a04169caa4a0c533c57a55357f2e13cc8">createNewDevice</a> (const <a class="el" href="classString.html">String</a> &amp;deviceName)</td></tr>
<tr class="memdesc:a04169caa4a0c533c57a55357f2e13cc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">This will try to create a new midi output device (Not available on Windows).  <a href="#a04169caa4a0c533c57a55357f2e13cc8">More...</a><br /></td></tr>
<tr class="separator:a04169caa4a0c533c57a55357f2e13cc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Controls a physical MIDI output device. </p>
<p>To create one of these, use the static <a class="el" href="classMidiOutput.html#a59a303f5b44aa772903984818b6b7275" title="Returns a list of the available midi output devices. ">getDevices()</a> method to get a list of the available output devices, then use the <a class="el" href="classMidiOutput.html#add5366efd74e5c5ee665af4592c6b15e" title="Tries to open one of the midi output devices. ">openDevice()</a> method to try to open one.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMidiInput.html" title="Represents a midi input device. ">MidiInput</a> </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5a2e715734b8b6bcf096eca26893125e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a2e715734b8b6bcf096eca26893125e">&sect;&nbsp;</a></span>~MidiOutput()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MidiOutput::~MidiOutput </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a59a303f5b44aa772903984818b6b7275"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59a303f5b44aa772903984818b6b7275">&sect;&nbsp;</a></span>getDevices()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classStringArray.html">StringArray</a> MidiOutput::getDevices </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a list of the available midi output devices. </p>
<p>You can open one of the devices by passing its index into the <a class="el" href="classMidiOutput.html#add5366efd74e5c5ee665af4592c6b15e" title="Tries to open one of the midi output devices. ">openDevice()</a> method.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMidiOutput.html#a5459a18d9b1b9a5fe27e95e6e9e06a87" title="Returns the index of the default midi output device to use. ">getDefaultDeviceIndex</a>, <a class="el" href="classMidiOutput.html#add5366efd74e5c5ee665af4592c6b15e" title="Tries to open one of the midi output devices. ">openDevice</a> </dd></dl>

</div>
</div>
<a id="a5459a18d9b1b9a5fe27e95e6e9e06a87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5459a18d9b1b9a5fe27e95e6e9e06a87">&sect;&nbsp;</a></span>getDefaultDeviceIndex()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int MidiOutput::getDefaultDeviceIndex </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the index of the default midi output device to use. </p>
<p>This refers to the index in the list returned by <a class="el" href="classMidiOutput.html#a59a303f5b44aa772903984818b6b7275" title="Returns a list of the available midi output devices. ">getDevices()</a>. </p>

</div>
</div>
<a id="add5366efd74e5c5ee665af4592c6b15e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add5366efd74e5c5ee665af4592c6b15e">&sect;&nbsp;</a></span>openDevice()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classMidiOutput.html">MidiOutput</a>* MidiOutput::openDevice </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>deviceIndex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Tries to open one of the midi output devices. </p>
<p>This will return a <a class="el" href="classMidiOutput.html" title="Controls a physical MIDI output device. ">MidiOutput</a> object if it manages to open it. You can then send messages to this device, and delete it when no longer needed.</p>
<p>If the device can't be opened, this will return a null pointer.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">deviceIndex</td><td>the index of a device from the list returned by <a class="el" href="classMidiOutput.html#a59a303f5b44aa772903984818b6b7275" title="Returns a list of the available midi output devices. ">getDevices()</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMidiOutput.html#a59a303f5b44aa772903984818b6b7275" title="Returns a list of the available midi output devices. ">getDevices</a> </dd></dl>

</div>
</div>
<a id="a04169caa4a0c533c57a55357f2e13cc8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04169caa4a0c533c57a55357f2e13cc8">&sect;&nbsp;</a></span>createNewDevice()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classMidiOutput.html">MidiOutput</a>* MidiOutput::createNewDevice </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classString.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>deviceName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This will try to create a new midi output device (Not available on Windows). </p>
<p>This will attempt to create a new midi output device that other apps can connect to and use as their midi input.</p>
<p>Returns nullptr if a device can't be created.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">deviceName</td><td>the name to use for the new device </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5662e29a58faebe2398b9be73728cf54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5662e29a58faebe2398b9be73728cf54">&sect;&nbsp;</a></span>getName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classString.html">String</a>&amp; MidiOutput::getName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the name of this device. </p>

<p>References <a class="el" href="juce__PlatformDefs_8h.html#a851b02724a8158a7f746c66b5758b3dd">JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR</a>, and <a class="el" href="classThread.html#aae90dfabab3e1776cf01a26e7ee3a620">Thread::run()</a>.</p>

</div>
</div>
<a id="a19c8d64553e0787c920f5b140f7267e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19c8d64553e0787c920f5b140f7267e9">&sect;&nbsp;</a></span>sendMessageNow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MidiOutput::sendMessageNow </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classMidiMessage.html">MidiMessage</a> &amp;&#160;</td>
          <td class="paramname"><em>message</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sends out a MIDI message immediately. </p>

</div>
</div>
<a id="ae54072205364d56260eaa11c7771289f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae54072205364d56260eaa11c7771289f">&sect;&nbsp;</a></span>sendBlockOfMessagesNow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MidiOutput::sendBlockOfMessagesNow </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classMidiBuffer.html">MidiBuffer</a> &amp;&#160;</td>
          <td class="paramname"><em>buffer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sends out a sequence of MIDI messages immediately. </p>

</div>
</div>
<a id="a1356a3303e8f56389ea52f98b56577b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1356a3303e8f56389ea52f98b56577b6">&sect;&nbsp;</a></span>sendBlockOfMessages()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MidiOutput::sendBlockOfMessages </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classMidiBuffer.html">MidiBuffer</a> &amp;&#160;</td>
          <td class="paramname"><em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>millisecondCounterToStartAt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>samplesPerSecondForBuffer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This lets you supply a block of messages that will be sent out at some point in the future. </p>
<p>The <a class="el" href="classMidiOutput.html" title="Controls a physical MIDI output device. ">MidiOutput</a> class has an internal thread that can send out timestamped messages - this appends a set of messages to its internal buffer, ready for sending.</p>
<p>This will only work if you've already started the thread with <a class="el" href="classMidiOutput.html#ab4037a74a2ba5206ea12bc706132e9c6" title="Starts up a background thread so that the device can send blocks of data. ">startBackgroundThread()</a>.</p>
<p>A time is specified, at which the block of messages should be sent. This time uses the same time base as <a class="el" href="classTime.html#a8aa2b95bb1fc2fd7a2df29736bad3a37" title="Returns the number of millisecs since a fixed event (usually system startup). ">Time::getMillisecondCounter()</a>, and must be in the future.</p>
<p>The samplesPerSecondForBuffer parameter indicates the number of samples per second used by the <a class="el" href="classMidiBuffer.html" title="Holds a sequence of time-stamped midi events. ">MidiBuffer</a>. Each event in a <a class="el" href="classMidiBuffer.html" title="Holds a sequence of time-stamped midi events. ">MidiBuffer</a> has a sample position, and the samplesPerSecondForBuffer value is needed to convert this sample position to a real time. </p>

</div>
</div>
<a id="a9a93ddda8444806f3daf69c1486ae5be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a93ddda8444806f3daf69c1486ae5be">&sect;&nbsp;</a></span>clearAllPendingMessages()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MidiOutput::clearAllPendingMessages </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets rid of any midi messages that had been added by <a class="el" href="classMidiOutput.html#a1356a3303e8f56389ea52f98b56577b6" title="This lets you supply a block of messages that will be sent out at some point in the future...">sendBlockOfMessages()</a>. </p>

</div>
</div>
<a id="ab4037a74a2ba5206ea12bc706132e9c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4037a74a2ba5206ea12bc706132e9c6">&sect;&nbsp;</a></span>startBackgroundThread()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MidiOutput::startBackgroundThread </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Starts up a background thread so that the device can send blocks of data. </p>
<p>Call this to get the device ready, before using <a class="el" href="classMidiOutput.html#a1356a3303e8f56389ea52f98b56577b6" title="This lets you supply a block of messages that will be sent out at some point in the future...">sendBlockOfMessages()</a>. </p>

</div>
</div>
<a id="a250a8b0691928959e09b84f7bc7593a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a250a8b0691928959e09b84f7bc7593a1">&sect;&nbsp;</a></span>stopBackgroundThread()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MidiOutput::stopBackgroundThread </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stops the background thread, and clears any pending midi events. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMidiOutput.html#ab4037a74a2ba5206ea12bc706132e9c6" title="Starts up a background thread so that the device can send blocks of data. ">startBackgroundThread</a> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__MidiOutput_8h.html">juce_MidiOutput.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content &copy ROLI Ltd.</small></address><br/>
</body>
</html>