/usr/share/doc/libjuce/apiref/structMPENote.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 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 | <!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: MPENote Struct 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-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-attribs">Public Attributes</a> |
<a href="structMPENote-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">MPENote Struct Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>This struct represents a playing MPE note.
<a href="structMPENote.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a20106ff137c1a5f0b8e6e099ff3fc922"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922">KeyState</a> { <a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922adeb8e0c25e24978beb9013836745cb4b">off</a> = 0,
<a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922a895ffc865cb90899c347efefb881e2ce">keyDown</a> = 1,
<a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922a3394b891d4bdd77fd39d141102c4a4bd">sustained</a> = 2,
<a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922a31c427116ac75e042f9f5315a7aad129">keyDownAndSustained</a> = 3
}</td></tr>
<tr class="separator:a20106ff137c1a5f0b8e6e099ff3fc922"><td class="memSeparator" colspan="2"> </td></tr>
</table><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:af1c2cff864c387bedf8ec5c06e5a8660"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#af1c2cff864c387bedf8ec5c06e5a8660">MPENote</a> (int <a class="el" href="structMPENote.html#a642fb34a5721d3eb5d3cf84e92706164">midiChannel</a>, int <a class="el" href="structMPENote.html#a76415e99eca6956fd16ed014e226a5ce">initialNote</a>, <a class="el" href="classMPEValue.html">MPEValue</a> velocity, <a class="el" href="classMPEValue.html">MPEValue</a> <a class="el" href="structMPENote.html#aebfdbfc173bc19cc97b97659c412078f">pitchbend</a>, <a class="el" href="classMPEValue.html">MPEValue</a> <a class="el" href="structMPENote.html#af04939884198c48da9927e76e4f3ff90">pressure</a>, <a class="el" href="classMPEValue.html">MPEValue</a> <a class="el" href="structMPENote.html#aea15b7b7d5b9c55cbf7d479aa8e46a90">timbre</a>, <a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922">KeyState</a> <a class="el" href="structMPENote.html#a971b45daba4a89318713bcb4678dbc4b">keyState</a>=<a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922a895ffc865cb90899c347efefb881e2ce">MPENote::keyDown</a>) noexcept</td></tr>
<tr class="memdesc:af1c2cff864c387bedf8ec5c06e5a8660"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#af1c2cff864c387bedf8ec5c06e5a8660">More...</a><br /></td></tr>
<tr class="separator:af1c2cff864c387bedf8ec5c06e5a8660"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae7a1417b7ed74b278e1ba3787e24aa59"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#ae7a1417b7ed74b278e1ba3787e24aa59">MPENote</a> () noexcept</td></tr>
<tr class="memdesc:ae7a1417b7ed74b278e1ba3787e24aa59"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#ae7a1417b7ed74b278e1ba3787e24aa59">More...</a><br /></td></tr>
<tr class="separator:ae7a1417b7ed74b278e1ba3787e24aa59"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7cc337facd416d2da4ff19a16af1f842"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#a7cc337facd416d2da4ff19a16af1f842">isValid</a> () const noexcept</td></tr>
<tr class="memdesc:a7cc337facd416d2da4ff19a16af1f842"><td class="mdescLeft"> </td><td class="mdescRight">Checks whether the MPE note is valid. <a href="#a7cc337facd416d2da4ff19a16af1f842">More...</a><br /></td></tr>
<tr class="separator:a7cc337facd416d2da4ff19a16af1f842"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab2c9c6399f9e500314762ce488cc227d"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#ab2c9c6399f9e500314762ce488cc227d">getFrequencyInHertz</a> (double frequencyOfA=440.0) const noexcept</td></tr>
<tr class="memdesc:ab2c9c6399f9e500314762ce488cc227d"><td class="mdescLeft"> </td><td class="mdescRight">Returns the current frequency of the note in Hertz. <a href="#ab2c9c6399f9e500314762ce488cc227d">More...</a><br /></td></tr>
<tr class="separator:ab2c9c6399f9e500314762ce488cc227d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a743fe2c2da9fb745b4d2b1de647007cc"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#a743fe2c2da9fb745b4d2b1de647007cc">operator==</a> (const <a class="el" href="structMPENote.html">MPENote</a> &other) const noexcept</td></tr>
<tr class="memdesc:a743fe2c2da9fb745b4d2b1de647007cc"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if two notes are the same, determined by their unique ID. <a href="#a743fe2c2da9fb745b4d2b1de647007cc">More...</a><br /></td></tr>
<tr class="separator:a743fe2c2da9fb745b4d2b1de647007cc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab9fe1c72c698427d79569e10d18ad8c2"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#ab9fe1c72c698427d79569e10d18ad8c2">operator!=</a> (const <a class="el" href="structMPENote.html">MPENote</a> &other) const noexcept</td></tr>
<tr class="memdesc:ab9fe1c72c698427d79569e10d18ad8c2"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if two notes are different notes, determined by their unique ID. <a href="#ab9fe1c72c698427d79569e10d18ad8c2">More...</a><br /></td></tr>
<tr class="separator:ab9fe1c72c698427d79569e10d18ad8c2"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aa718127706bfef0ea4bb58a5dd4fd65a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="juce__MathsFunctions_8h.html#a05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#aa718127706bfef0ea4bb58a5dd4fd65a">noteID</a></td></tr>
<tr class="memdesc:aa718127706bfef0ea4bb58a5dd4fd65a"><td class="mdescLeft"> </td><td class="mdescRight">A unique ID. <a href="#aa718127706bfef0ea4bb58a5dd4fd65a">More...</a><br /></td></tr>
<tr class="separator:aa718127706bfef0ea4bb58a5dd4fd65a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a642fb34a5721d3eb5d3cf84e92706164"><td class="memItemLeft" align="right" valign="top"><a class="el" href="juce__MathsFunctions_8h.html#adde6aaee8457bee49c2a92621fe22b79">uint8</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#a642fb34a5721d3eb5d3cf84e92706164">midiChannel</a></td></tr>
<tr class="memdesc:a642fb34a5721d3eb5d3cf84e92706164"><td class="mdescLeft"> </td><td class="mdescRight">The MIDI channel which this note uses. <a href="#a642fb34a5721d3eb5d3cf84e92706164">More...</a><br /></td></tr>
<tr class="separator:a642fb34a5721d3eb5d3cf84e92706164"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a76415e99eca6956fd16ed014e226a5ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="juce__MathsFunctions_8h.html#adde6aaee8457bee49c2a92621fe22b79">uint8</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#a76415e99eca6956fd16ed014e226a5ce">initialNote</a></td></tr>
<tr class="memdesc:a76415e99eca6956fd16ed014e226a5ce"><td class="mdescLeft"> </td><td class="mdescRight">The MIDI note number that was sent when the note was triggered. <a href="#a76415e99eca6956fd16ed014e226a5ce">More...</a><br /></td></tr>
<tr class="separator:a76415e99eca6956fd16ed014e226a5ce"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9322650db7f2e76cec724746d1a75c1a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMPEValue.html">MPEValue</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#a9322650db7f2e76cec724746d1a75c1a">noteOnVelocity</a></td></tr>
<tr class="memdesc:a9322650db7f2e76cec724746d1a75c1a"><td class="mdescLeft"> </td><td class="mdescRight">The velocity ("strike") of the note-on. <a href="#a9322650db7f2e76cec724746d1a75c1a">More...</a><br /></td></tr>
<tr class="separator:a9322650db7f2e76cec724746d1a75c1a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aebfdbfc173bc19cc97b97659c412078f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMPEValue.html">MPEValue</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#aebfdbfc173bc19cc97b97659c412078f">pitchbend</a></td></tr>
<tr class="memdesc:aebfdbfc173bc19cc97b97659c412078f"><td class="mdescLeft"> </td><td class="mdescRight">Current per-note pitchbend of the note (in units of MIDI pitchwheel position). <a href="#aebfdbfc173bc19cc97b97659c412078f">More...</a><br /></td></tr>
<tr class="separator:aebfdbfc173bc19cc97b97659c412078f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af04939884198c48da9927e76e4f3ff90"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMPEValue.html">MPEValue</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#af04939884198c48da9927e76e4f3ff90">pressure</a></td></tr>
<tr class="memdesc:af04939884198c48da9927e76e4f3ff90"><td class="mdescLeft"> </td><td class="mdescRight">Current pressure with which the note is held down. <a href="#af04939884198c48da9927e76e4f3ff90">More...</a><br /></td></tr>
<tr class="separator:af04939884198c48da9927e76e4f3ff90"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aea15b7b7d5b9c55cbf7d479aa8e46a90"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMPEValue.html">MPEValue</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#aea15b7b7d5b9c55cbf7d479aa8e46a90">timbre</a></td></tr>
<tr class="memdesc:aea15b7b7d5b9c55cbf7d479aa8e46a90"><td class="mdescLeft"> </td><td class="mdescRight">Current value of the note's third expressive dimension, tyically encoding some kind of timbre parameter. <a href="#aea15b7b7d5b9c55cbf7d479aa8e46a90">More...</a><br /></td></tr>
<tr class="separator:aea15b7b7d5b9c55cbf7d479aa8e46a90"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9e46888c40a2d3eaf4b8c5129b21de6e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMPEValue.html">MPEValue</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#a9e46888c40a2d3eaf4b8c5129b21de6e">noteOffVelocity</a></td></tr>
<tr class="memdesc:a9e46888c40a2d3eaf4b8c5129b21de6e"><td class="mdescLeft"> </td><td class="mdescRight">The release velocity ("lift") of the note after a note-off has been received. <a href="#a9e46888c40a2d3eaf4b8c5129b21de6e">More...</a><br /></td></tr>
<tr class="separator:a9e46888c40a2d3eaf4b8c5129b21de6e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aad33696be29262c8591266f0ab37d534"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#aad33696be29262c8591266f0ab37d534">totalPitchbendInSemitones</a></td></tr>
<tr class="memdesc:aad33696be29262c8591266f0ab37d534"><td class="mdescLeft"> </td><td class="mdescRight">Current effective pitchbend of the note in units of semitones, relative to initialNote. <a href="#aad33696be29262c8591266f0ab37d534">More...</a><br /></td></tr>
<tr class="separator:aad33696be29262c8591266f0ab37d534"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a971b45daba4a89318713bcb4678dbc4b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922">KeyState</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structMPENote.html#a971b45daba4a89318713bcb4678dbc4b">keyState</a></td></tr>
<tr class="memdesc:a971b45daba4a89318713bcb4678dbc4b"><td class="mdescLeft"> </td><td class="mdescRight">Current key state. <a href="#a971b45daba4a89318713bcb4678dbc4b">More...</a><br /></td></tr>
<tr class="separator:a971b45daba4a89318713bcb4678dbc4b"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This struct represents a playing MPE note. </p>
<p>A note is identified by a unique ID, or alternatively, by a MIDI channel and an initial note. It is characterised by five dimensions of continuous expressive control. Their current values are represented as <a class="el" href="classMPEValue.html" title="This class represents a single value for any of the MPE dimensions of control. ">MPEValue</a> objects.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMPEValue.html" title="This class represents a single value for any of the MPE dimensions of control. ">MPEValue</a> </dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a20106ff137c1a5f0b8e6e099ff3fc922"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20106ff137c1a5f0b8e6e099ff3fc922">§ </a></span>KeyState</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922">MPENote::KeyState</a></td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a20106ff137c1a5f0b8e6e099ff3fc922adeb8e0c25e24978beb9013836745cb4b"></a>off </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a20106ff137c1a5f0b8e6e099ff3fc922a895ffc865cb90899c347efefb881e2ce"></a>keyDown </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a20106ff137c1a5f0b8e6e099ff3fc922a3394b891d4bdd77fd39d141102c4a4bd"></a>sustained </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a20106ff137c1a5f0b8e6e099ff3fc922a31c427116ac75e042f9f5315a7aad129"></a>keyDownAndSustained </td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="af1c2cff864c387bedf8ec5c06e5a8660"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1c2cff864c387bedf8ec5c06e5a8660">§ </a></span>MPENote() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">MPENote::MPENote </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>midiChannel</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>initialNote</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classMPEValue.html">MPEValue</a> </td>
<td class="paramname"><em>velocity</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classMPEValue.html">MPEValue</a> </td>
<td class="paramname"><em>pitchbend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classMPEValue.html">MPEValue</a> </td>
<td class="paramname"><em>pressure</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classMPEValue.html">MPEValue</a> </td>
<td class="paramname"><em>timbre</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922">KeyState</a> </td>
<td class="paramname"><em>keyState</em> = <code><a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922a895ffc865cb90899c347efefb881e2ce">MPENote::keyDown</a></code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></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>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">midiChannel</td><td>The MIDI channel of the note, between 2 and 16. (Channel 1 can never be a note channel in MPE).</td></tr>
<tr><td class="paramname">initialNote</td><td>The MIDI note number, between 0 and 127.</td></tr>
<tr><td class="paramname">velocity</td><td>The note-on velocity of the note.</td></tr>
<tr><td class="paramname">pitchbend</td><td>The initial per-note pitchbend of the note.</td></tr>
<tr><td class="paramname">pressure</td><td>The initial pressure of the note.</td></tr>
<tr><td class="paramname">timbre</td><td>The timbre value of the note.</td></tr>
<tr><td class="paramname">keyState</td><td>The key state of the note (whether the key is down and/or the note is sustained). This value must not be <a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922adeb8e0c25e24978beb9013836745cb4b">MPENote::off</a>, since you are triggering a new note. (If not specified, the default value will be MPENOte::keyDown.) </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ae7a1417b7ed74b278e1ba3787e24aa59"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7a1417b7ed74b278e1ba3787e24aa59">§ </a></span>MPENote() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">MPENote::MPENote </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></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>Default constructor. </p>
<p>Constructs an invalid MPE note (a note with the key state <a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922adeb8e0c25e24978beb9013836745cb4b">MPENote::off</a> and an invalid MIDI channel. The only allowed use for such a note is to call <a class="el" href="structMPENote.html#a7cc337facd416d2da4ff19a16af1f842" title="Checks whether the MPE note is valid. ">isValid()</a> on it; everything else is undefined behaviour. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a7cc337facd416d2da4ff19a16af1f842"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7cc337facd416d2da4ff19a16af1f842">§ </a></span>isValid()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool MPENote::isValid </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>Checks whether the MPE note is valid. </p>
</div>
</div>
<a id="ab2c9c6399f9e500314762ce488cc227d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2c9c6399f9e500314762ce488cc227d">§ </a></span>getFrequencyInHertz()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">double MPENote::getFrequencyInHertz </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>frequencyOfA</em> = <code>440.0</code></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 current frequency of the note in Hertz. </p>
<p>This is the a sum of the initialNote and the totalPitchbendInSemitones, converted to Hertz. </p>
</div>
</div>
<a id="a743fe2c2da9fb745b4d2b1de647007cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a743fe2c2da9fb745b4d2b1de647007cc">§ </a></span>operator==()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool MPENote::operator== </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structMPENote.html">MPENote</a> & </td>
<td class="paramname"><em>other</em></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 true if two notes are the same, determined by their unique ID. </p>
</div>
</div>
<a id="ab9fe1c72c698427d79569e10d18ad8c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9fe1c72c698427d79569e10d18ad8c2">§ </a></span>operator!=()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool MPENote::operator!= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structMPENote.html">MPENote</a> & </td>
<td class="paramname"><em>other</em></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 true if two notes are different notes, determined by their unique ID. </p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aa718127706bfef0ea4bb58a5dd4fd65a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa718127706bfef0ea4bb58a5dd4fd65a">§ </a></span>noteID</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="juce__MathsFunctions_8h.html#a05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> MPENote::noteID</td>
</tr>
</table>
</div><div class="memdoc">
<p>A unique ID. </p>
<p>Useful to distinguish the note from other simultaneously sounding notes that may use the same note number or MIDI channel. This should never change during the lifetime of a note object. </p>
</div>
</div>
<a id="a642fb34a5721d3eb5d3cf84e92706164"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a642fb34a5721d3eb5d3cf84e92706164">§ </a></span>midiChannel</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="juce__MathsFunctions_8h.html#adde6aaee8457bee49c2a92621fe22b79">uint8</a> MPENote::midiChannel</td>
</tr>
</table>
</div><div class="memdoc">
<p>The MIDI channel which this note uses. </p>
<p>This should never change during the lifetime of an <a class="el" href="structMPENote.html" title="This struct represents a playing MPE note. ">MPENote</a> object. </p>
</div>
</div>
<a id="a76415e99eca6956fd16ed014e226a5ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76415e99eca6956fd16ed014e226a5ce">§ </a></span>initialNote</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="juce__MathsFunctions_8h.html#adde6aaee8457bee49c2a92621fe22b79">uint8</a> MPENote::initialNote</td>
</tr>
</table>
</div><div class="memdoc">
<p>The MIDI note number that was sent when the note was triggered. </p>
<p>This should never change during the lifetime of an <a class="el" href="structMPENote.html" title="This struct represents a playing MPE note. ">MPENote</a> object. </p>
</div>
</div>
<a id="a9322650db7f2e76cec724746d1a75c1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9322650db7f2e76cec724746d1a75c1a">§ </a></span>noteOnVelocity</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classMPEValue.html">MPEValue</a> MPENote::noteOnVelocity</td>
</tr>
</table>
</div><div class="memdoc">
<p>The velocity ("strike") of the note-on. </p>
<p>This dimension will stay constant after the note has been turned on. </p>
</div>
</div>
<a id="aebfdbfc173bc19cc97b97659c412078f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebfdbfc173bc19cc97b97659c412078f">§ </a></span>pitchbend</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classMPEValue.html">MPEValue</a> MPENote::pitchbend</td>
</tr>
</table>
</div><div class="memdoc">
<p>Current per-note pitchbend of the note (in units of MIDI pitchwheel position). </p>
<p>This dimension can be modulated while the note sounds.</p>
<p>Note: This value is not aware of the currently used pitchbend range, or an additional master pitchbend that may be simultaneously applied. To compute the actual effective pitchbend of an <a class="el" href="structMPENote.html" title="This struct represents a playing MPE note. ">MPENote</a>, you should probably use the member totalPitchbendInSemitones instead.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="structMPENote.html#aad33696be29262c8591266f0ab37d534" title="Current effective pitchbend of the note in units of semitones, relative to initialNote. ">totalPitchbendInSemitones</a>, <a class="el" href="structMPENote.html#ab2c9c6399f9e500314762ce488cc227d" title="Returns the current frequency of the note in Hertz. ">getFrequencyInHertz</a> </dd></dl>
</div>
</div>
<a id="af04939884198c48da9927e76e4f3ff90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af04939884198c48da9927e76e4f3ff90">§ </a></span>pressure</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classMPEValue.html">MPEValue</a> MPENote::pressure</td>
</tr>
</table>
</div><div class="memdoc">
<p>Current pressure with which the note is held down. </p>
<p>This dimension can be modulated while the note sounds. </p>
</div>
</div>
<a id="aea15b7b7d5b9c55cbf7d479aa8e46a90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea15b7b7d5b9c55cbf7d479aa8e46a90">§ </a></span>timbre</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classMPEValue.html">MPEValue</a> MPENote::timbre</td>
</tr>
</table>
</div><div class="memdoc">
<p>Current value of the note's third expressive dimension, tyically encoding some kind of timbre parameter. </p>
<p>This dimension can be modulated while the note sounds. </p>
</div>
</div>
<a id="a9e46888c40a2d3eaf4b8c5129b21de6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e46888c40a2d3eaf4b8c5129b21de6e">§ </a></span>noteOffVelocity</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classMPEValue.html">MPEValue</a> MPENote::noteOffVelocity</td>
</tr>
</table>
</div><div class="memdoc">
<p>The release velocity ("lift") of the note after a note-off has been received. </p>
<p>This dimension will only have a meaningful value after a note-off has been received for the note (and keyState is set to <a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922adeb8e0c25e24978beb9013836745cb4b">MPENote::off</a> or MPENOte::sustained). Initially, the value is undefined. </p>
</div>
</div>
<a id="aad33696be29262c8591266f0ab37d534"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad33696be29262c8591266f0ab37d534">§ </a></span>totalPitchbendInSemitones</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double MPENote::totalPitchbendInSemitones</td>
</tr>
</table>
</div><div class="memdoc">
<p>Current effective pitchbend of the note in units of semitones, relative to initialNote. </p>
<p>You should use this to compute the actual effective pitch of the note. This value is computed and set by an <a class="el" href="classMPEInstrument.html">MPEInstrument</a> to the sum of the per-note pitchbend value (stored in MPEValue::pitchbend) and the master pitchbend of the MPE zone, weighted with the per-note pitchbend range and master pitchbend range of the zone, respectively.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="structMPENote.html#ab2c9c6399f9e500314762ce488cc227d" title="Returns the current frequency of the note in Hertz. ">getFrequencyInHertz</a> </dd></dl>
</div>
</div>
<a id="a971b45daba4a89318713bcb4678dbc4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a971b45daba4a89318713bcb4678dbc4b">§ </a></span>keyState</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structMPENote.html#a20106ff137c1a5f0b8e6e099ff3fc922">KeyState</a> MPENote::keyState</td>
</tr>
</table>
</div><div class="memdoc">
<p>Current key state. </p>
<p>Indicates whether the note key is currently down (pressed) and/or the note is sustained (by a sustain or sostenuto pedal). </p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="juce__MPENote_8h.html">juce_MPENote.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content © ROLI Ltd.</small></address><br/>
</body>
</html>
|