/usr/share/doc/libjuce/apiref/classMidiMessageSequence.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 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 | <!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: MidiMessageSequence 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="#nested-classes">Classes</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="classMidiMessageSequence-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">MidiMessageSequence Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A sequence of timestamped midi messages.
<a href="classMidiMessageSequence.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence_1_1MidiEventHolder.html">MidiEventHolder</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Structure used to hold midi events in the sequence. <a href="classMidiMessageSequence_1_1MidiEventHolder.html#details">More...</a><br /></td></tr>
<tr class="separator:"><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:a29929e2219c0e52cc7da1d0d9cef2c82"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a29929e2219c0e52cc7da1d0d9cef2c82">MidiMessageSequence</a> ()</td></tr>
<tr class="memdesc:a29929e2219c0e52cc7da1d0d9cef2c82"><td class="mdescLeft"> </td><td class="mdescRight">Creates an empty midi sequence object. <a href="#a29929e2219c0e52cc7da1d0d9cef2c82">More...</a><br /></td></tr>
<tr class="separator:a29929e2219c0e52cc7da1d0d9cef2c82"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a89919c97af606bbe7b0dcdf77c4f9c3f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a89919c97af606bbe7b0dcdf77c4f9c3f">MidiMessageSequence</a> (const <a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> &)</td></tr>
<tr class="memdesc:a89919c97af606bbe7b0dcdf77c4f9c3f"><td class="mdescLeft"> </td><td class="mdescRight">Creates a copy of another sequence. <a href="#a89919c97af606bbe7b0dcdf77c4f9c3f">More...</a><br /></td></tr>
<tr class="separator:a89919c97af606bbe7b0dcdf77c4f9c3f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a67fb24813234146636aeb309e2bb4354"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a67fb24813234146636aeb309e2bb4354">operator=</a> (const <a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> &)</td></tr>
<tr class="memdesc:a67fb24813234146636aeb309e2bb4354"><td class="mdescLeft"> </td><td class="mdescRight">Replaces this sequence with another one. <a href="#a67fb24813234146636aeb309e2bb4354">More...</a><br /></td></tr>
<tr class="separator:a67fb24813234146636aeb309e2bb4354"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af537eeb78ee14af78034bc5661298c08"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#af537eeb78ee14af78034bc5661298c08">MidiMessageSequence</a> (<a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> &&other) noexcept</td></tr>
<tr class="separator:af537eeb78ee14af78034bc5661298c08"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a64800a707bf39517dfc6e5b0842683b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a64800a707bf39517dfc6e5b0842683b1">operator=</a> (<a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> &&other) noexcept</td></tr>
<tr class="separator:a64800a707bf39517dfc6e5b0842683b1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a072fd14cf8b73d09cdb54373f74f294a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a072fd14cf8b73d09cdb54373f74f294a">~MidiMessageSequence</a> ()</td></tr>
<tr class="memdesc:a072fd14cf8b73d09cdb54373f74f294a"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a072fd14cf8b73d09cdb54373f74f294a">More...</a><br /></td></tr>
<tr class="separator:a072fd14cf8b73d09cdb54373f74f294a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9bf65342afa0261969d2d55834798763"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a9bf65342afa0261969d2d55834798763">clear</a> ()</td></tr>
<tr class="memdesc:a9bf65342afa0261969d2d55834798763"><td class="mdescLeft"> </td><td class="mdescRight">Clears the sequence. <a href="#a9bf65342afa0261969d2d55834798763">More...</a><br /></td></tr>
<tr class="separator:a9bf65342afa0261969d2d55834798763"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a54fba19a0c5a4ae97e16b4e8f1c2ddb7"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a54fba19a0c5a4ae97e16b4e8f1c2ddb7">getNumEvents</a> () const noexcept</td></tr>
<tr class="memdesc:a54fba19a0c5a4ae97e16b4e8f1c2ddb7"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of events in the sequence. <a href="#a54fba19a0c5a4ae97e16b4e8f1c2ddb7">More...</a><br /></td></tr>
<tr class="separator:a54fba19a0c5a4ae97e16b4e8f1c2ddb7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af5004c2160fdcf3cb4746f81388fa1f1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMidiMessageSequence_1_1MidiEventHolder.html">MidiEventHolder</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#af5004c2160fdcf3cb4746f81388fa1f1">getEventPointer</a> (int index) const noexcept</td></tr>
<tr class="memdesc:af5004c2160fdcf3cb4746f81388fa1f1"><td class="mdescLeft"> </td><td class="mdescRight">Returns a pointer to one of the events. <a href="#af5004c2160fdcf3cb4746f81388fa1f1">More...</a><br /></td></tr>
<tr class="separator:af5004c2160fdcf3cb4746f81388fa1f1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6d0aa2e9c4c4abad5fdf1c0c83a8b60d"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a6d0aa2e9c4c4abad5fdf1c0c83a8b60d">getTimeOfMatchingKeyUp</a> (int index) const noexcept</td></tr>
<tr class="memdesc:a6d0aa2e9c4c4abad5fdf1c0c83a8b60d"><td class="mdescLeft"> </td><td class="mdescRight">Returns the time of the note-up that matches the note-on at this index. <a href="#a6d0aa2e9c4c4abad5fdf1c0c83a8b60d">More...</a><br /></td></tr>
<tr class="separator:a6d0aa2e9c4c4abad5fdf1c0c83a8b60d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad8a3d2903d373c73922de382b7d4542d"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#ad8a3d2903d373c73922de382b7d4542d">getIndexOfMatchingKeyUp</a> (int index) const noexcept</td></tr>
<tr class="memdesc:ad8a3d2903d373c73922de382b7d4542d"><td class="mdescLeft"> </td><td class="mdescRight">Returns the index of the note-up that matches the note-on at this index. <a href="#ad8a3d2903d373c73922de382b7d4542d">More...</a><br /></td></tr>
<tr class="separator:ad8a3d2903d373c73922de382b7d4542d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a58868f291be0de95375e3ecb11d30ba6"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a58868f291be0de95375e3ecb11d30ba6">getIndexOf</a> (const <a class="el" href="classMidiMessageSequence_1_1MidiEventHolder.html">MidiEventHolder</a> *event) const noexcept</td></tr>
<tr class="memdesc:a58868f291be0de95375e3ecb11d30ba6"><td class="mdescLeft"> </td><td class="mdescRight">Returns the index of an event. <a href="#a58868f291be0de95375e3ecb11d30ba6">More...</a><br /></td></tr>
<tr class="separator:a58868f291be0de95375e3ecb11d30ba6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8dcca263a16b99179fa3b7fdb9092acb"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a8dcca263a16b99179fa3b7fdb9092acb">getNextIndexAtTime</a> (double timeStamp) const noexcept</td></tr>
<tr class="memdesc:a8dcca263a16b99179fa3b7fdb9092acb"><td class="mdescLeft"> </td><td class="mdescRight">Returns the index of the first event on or after the given timestamp. <a href="#a8dcca263a16b99179fa3b7fdb9092acb">More...</a><br /></td></tr>
<tr class="separator:a8dcca263a16b99179fa3b7fdb9092acb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5b0fd95e0e378095a961ebd874fe7c8a"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a5b0fd95e0e378095a961ebd874fe7c8a">getStartTime</a> () const noexcept</td></tr>
<tr class="memdesc:a5b0fd95e0e378095a961ebd874fe7c8a"><td class="mdescLeft"> </td><td class="mdescRight">Returns the timestamp of the first event in the sequence. <a href="#a5b0fd95e0e378095a961ebd874fe7c8a">More...</a><br /></td></tr>
<tr class="separator:a5b0fd95e0e378095a961ebd874fe7c8a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aef21c164edd0f9e09809725cbcc38adf"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#aef21c164edd0f9e09809725cbcc38adf">getEndTime</a> () const noexcept</td></tr>
<tr class="memdesc:aef21c164edd0f9e09809725cbcc38adf"><td class="mdescLeft"> </td><td class="mdescRight">Returns the timestamp of the last event in the sequence. <a href="#aef21c164edd0f9e09809725cbcc38adf">More...</a><br /></td></tr>
<tr class="separator:aef21c164edd0f9e09809725cbcc38adf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5a873cd5ba67c7b1d9d1a2d39b983d01"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a5a873cd5ba67c7b1d9d1a2d39b983d01">getEventTime</a> (int index) const noexcept</td></tr>
<tr class="memdesc:a5a873cd5ba67c7b1d9d1a2d39b983d01"><td class="mdescLeft"> </td><td class="mdescRight">Returns the timestamp of the event at a given index. <a href="#a5a873cd5ba67c7b1d9d1a2d39b983d01">More...</a><br /></td></tr>
<tr class="separator:a5a873cd5ba67c7b1d9d1a2d39b983d01"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abcfb3b7334ccd8bf72fc95e5019cddd6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMidiMessageSequence_1_1MidiEventHolder.html">MidiEventHolder</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#abcfb3b7334ccd8bf72fc95e5019cddd6">addEvent</a> (const <a class="el" href="classMidiMessage.html">MidiMessage</a> &newMessage, double timeAdjustment=0)</td></tr>
<tr class="memdesc:abcfb3b7334ccd8bf72fc95e5019cddd6"><td class="mdescLeft"> </td><td class="mdescRight">Inserts a midi message into the sequence. <a href="#abcfb3b7334ccd8bf72fc95e5019cddd6">More...</a><br /></td></tr>
<tr class="separator:abcfb3b7334ccd8bf72fc95e5019cddd6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a67b6db1465ea07fb7493909409d89a44"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a67b6db1465ea07fb7493909409d89a44">deleteEvent</a> (int index, bool deleteMatchingNoteUp)</td></tr>
<tr class="memdesc:a67b6db1465ea07fb7493909409d89a44"><td class="mdescLeft"> </td><td class="mdescRight">Deletes one of the events in the sequence. <a href="#a67b6db1465ea07fb7493909409d89a44">More...</a><br /></td></tr>
<tr class="separator:a67b6db1465ea07fb7493909409d89a44"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a287c649d4618e657fe2fe3c54d16473a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a287c649d4618e657fe2fe3c54d16473a">addSequence</a> (const <a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> &other, double timeAdjustmentDelta, double firstAllowableDestTime, double endOfAllowableDestTimes)</td></tr>
<tr class="memdesc:a287c649d4618e657fe2fe3c54d16473a"><td class="mdescLeft"> </td><td class="mdescRight">Merges another sequence into this one. <a href="#a287c649d4618e657fe2fe3c54d16473a">More...</a><br /></td></tr>
<tr class="separator:a287c649d4618e657fe2fe3c54d16473a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3cae20c271279cc719219edfadb944fe"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a3cae20c271279cc719219edfadb944fe">addSequence</a> (const <a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> &other, double timeAdjustmentDelta)</td></tr>
<tr class="memdesc:a3cae20c271279cc719219edfadb944fe"><td class="mdescLeft"> </td><td class="mdescRight">Merges another sequence into this one. <a href="#a3cae20c271279cc719219edfadb944fe">More...</a><br /></td></tr>
<tr class="separator:a3cae20c271279cc719219edfadb944fe"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a84c73c931fad6357ea81af0323109606"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a84c73c931fad6357ea81af0323109606">updateMatchedPairs</a> () noexcept</td></tr>
<tr class="memdesc:a84c73c931fad6357ea81af0323109606"><td class="mdescLeft"> </td><td class="mdescRight">Makes sure all the note-on and note-off pairs are up-to-date. <a href="#a84c73c931fad6357ea81af0323109606">More...</a><br /></td></tr>
<tr class="separator:a84c73c931fad6357ea81af0323109606"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0b8079f18ac0e01d4bb1bc3c20114965"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a0b8079f18ac0e01d4bb1bc3c20114965">sort</a> () noexcept</td></tr>
<tr class="memdesc:a0b8079f18ac0e01d4bb1bc3c20114965"><td class="mdescLeft"> </td><td class="mdescRight">Forces a sort of the sequence. <a href="#a0b8079f18ac0e01d4bb1bc3c20114965">More...</a><br /></td></tr>
<tr class="separator:a0b8079f18ac0e01d4bb1bc3c20114965"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a015ae1710ef4163d264e169f37691da0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a015ae1710ef4163d264e169f37691da0">extractMidiChannelMessages</a> (int channelNumberToExtract, <a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> &destSequence, bool alsoIncludeMetaEvents) const</td></tr>
<tr class="memdesc:a015ae1710ef4163d264e169f37691da0"><td class="mdescLeft"> </td><td class="mdescRight">Copies all the messages for a particular midi channel to another sequence. <a href="#a015ae1710ef4163d264e169f37691da0">More...</a><br /></td></tr>
<tr class="separator:a015ae1710ef4163d264e169f37691da0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3c79b44f8af0bf1bf9e1e66036a2a62a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a3c79b44f8af0bf1bf9e1e66036a2a62a">extractSysExMessages</a> (<a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> &destSequence) const</td></tr>
<tr class="memdesc:a3c79b44f8af0bf1bf9e1e66036a2a62a"><td class="mdescLeft"> </td><td class="mdescRight">Copies all midi sys-ex messages to another sequence. <a href="#a3c79b44f8af0bf1bf9e1e66036a2a62a">More...</a><br /></td></tr>
<tr class="separator:a3c79b44f8af0bf1bf9e1e66036a2a62a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a47466395fc2296b724defd56076cd5ed"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a47466395fc2296b724defd56076cd5ed">deleteMidiChannelMessages</a> (int channelNumberToRemove)</td></tr>
<tr class="memdesc:a47466395fc2296b724defd56076cd5ed"><td class="mdescLeft"> </td><td class="mdescRight">Removes any messages in this sequence that have a specific midi channel. <a href="#a47466395fc2296b724defd56076cd5ed">More...</a><br /></td></tr>
<tr class="separator:a47466395fc2296b724defd56076cd5ed"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9654788bd88928d6853d260d4e323e01"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a9654788bd88928d6853d260d4e323e01">deleteSysExMessages</a> ()</td></tr>
<tr class="memdesc:a9654788bd88928d6853d260d4e323e01"><td class="mdescLeft"> </td><td class="mdescRight">Removes any sys-ex messages from this sequence. <a href="#a9654788bd88928d6853d260d4e323e01">More...</a><br /></td></tr>
<tr class="separator:a9654788bd88928d6853d260d4e323e01"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad19c814526207b0f38c12307f5588510"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#ad19c814526207b0f38c12307f5588510">addTimeToMessages</a> (double deltaTime) noexcept</td></tr>
<tr class="memdesc:ad19c814526207b0f38c12307f5588510"><td class="mdescLeft"> </td><td class="mdescRight">Adds an offset to the timestamps of all events in the sequence. <a href="#ad19c814526207b0f38c12307f5588510">More...</a><br /></td></tr>
<tr class="separator:ad19c814526207b0f38c12307f5588510"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a10b6a4cb06c33a2bc85c138ded7707ce"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a10b6a4cb06c33a2bc85c138ded7707ce">createControllerUpdatesForTime</a> (int channelNumber, double time, <a class="el" href="classArray.html">Array</a>< <a class="el" href="classMidiMessage.html">MidiMessage</a> > &resultMessages)</td></tr>
<tr class="memdesc:a10b6a4cb06c33a2bc85c138ded7707ce"><td class="mdescLeft"> </td><td class="mdescRight">Scans through the sequence to determine the state of any midi controllers at a given time. <a href="#a10b6a4cb06c33a2bc85c138ded7707ce">More...</a><br /></td></tr>
<tr class="separator:a10b6a4cb06c33a2bc85c138ded7707ce"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a56ba1ede2962342760a6d5c4b0489bdf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMidiMessageSequence.html#a56ba1ede2962342760a6d5c4b0489bdf">swapWith</a> (<a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> &) noexcept</td></tr>
<tr class="memdesc:a56ba1ede2962342760a6d5c4b0489bdf"><td class="mdescLeft"> </td><td class="mdescRight">Swaps this sequence with another one. <a href="#a56ba1ede2962342760a6d5c4b0489bdf">More...</a><br /></td></tr>
<tr class="separator:a56ba1ede2962342760a6d5c4b0489bdf"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A sequence of timestamped midi messages. </p>
<p>This allows the sequence to be manipulated, and also to be read from and written to a standard midi file.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMidiMessage.html" title="Encapsulates a MIDI message. ">MidiMessage</a>, <a class="el" href="classMidiFile.html" title="Reads/writes standard midi format files. ">MidiFile</a> </dd></dl>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="a29929e2219c0e52cc7da1d0d9cef2c82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29929e2219c0e52cc7da1d0d9cef2c82">§ </a></span>MidiMessageSequence() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">MidiMessageSequence::MidiMessageSequence </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an empty midi sequence object. </p>
</div>
</div>
<a id="a89919c97af606bbe7b0dcdf77c4f9c3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89919c97af606bbe7b0dcdf77c4f9c3f">§ </a></span>MidiMessageSequence() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">MidiMessageSequence::MidiMessageSequence </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> & </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a copy of another sequence. </p>
</div>
</div>
<a id="af537eeb78ee14af78034bc5661298c08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af537eeb78ee14af78034bc5661298c08">§ </a></span>MidiMessageSequence() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">MidiMessageSequence::MidiMessageSequence </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> && </td>
<td class="paramname"><em>other</em></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">
</div>
</div>
<a id="a072fd14cf8b73d09cdb54373f74f294a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a072fd14cf8b73d09cdb54373f74f294a">§ </a></span>~MidiMessageSequence()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">MidiMessageSequence::~MidiMessageSequence </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="a67fb24813234146636aeb309e2bb4354"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67fb24813234146636aeb309e2bb4354">§ </a></span>operator=() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a>& MidiMessageSequence::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> & </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Replaces this sequence with another one. </p>
</div>
</div>
<a id="a64800a707bf39517dfc6e5b0842683b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64800a707bf39517dfc6e5b0842683b1">§ </a></span>operator=() <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"><a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a>& MidiMessageSequence::operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> && </td>
<td class="paramname"><em>other</em></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">
</div>
</div>
<a id="a9bf65342afa0261969d2d55834798763"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9bf65342afa0261969d2d55834798763">§ </a></span>clear()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MidiMessageSequence::clear </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Clears the sequence. </p>
</div>
</div>
<a id="a54fba19a0c5a4ae97e16b4e8f1c2ddb7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54fba19a0c5a4ae97e16b4e8f1c2ddb7">§ </a></span>getNumEvents()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int MidiMessageSequence::getNumEvents </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 number of events in the sequence. </p>
</div>
</div>
<a id="af5004c2160fdcf3cb4746f81388fa1f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5004c2160fdcf3cb4746f81388fa1f1">§ </a></span>getEventPointer()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classMidiMessageSequence_1_1MidiEventHolder.html">MidiEventHolder</a>* MidiMessageSequence::getEventPointer </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</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 a pointer to one of the events. </p>
</div>
</div>
<a id="a6d0aa2e9c4c4abad5fdf1c0c83a8b60d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d0aa2e9c4c4abad5fdf1c0c83a8b60d">§ </a></span>getTimeOfMatchingKeyUp()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">double MidiMessageSequence::getTimeOfMatchingKeyUp </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</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 the time of the note-up that matches the note-on at this index. </p>
<p>If the event at this index isn't a note-on, it'll just return 0. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classMidiMessageSequence_1_1MidiEventHolder.html#abd0fc0f7b71616c7a9f6f70b2a499de5" title="The matching note-off event (if this is a note-on event). ">MidiMessageSequence::MidiEventHolder::noteOffObject</a> </dd></dl>
</div>
</div>
<a id="ad8a3d2903d373c73922de382b7d4542d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8a3d2903d373c73922de382b7d4542d">§ </a></span>getIndexOfMatchingKeyUp()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int MidiMessageSequence::getIndexOfMatchingKeyUp </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</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 the index of the note-up that matches the note-on at this index. </p>
<p>If the event at this index isn't a note-on, it'll just return -1. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classMidiMessageSequence_1_1MidiEventHolder.html#abd0fc0f7b71616c7a9f6f70b2a499de5" title="The matching note-off event (if this is a note-on event). ">MidiMessageSequence::MidiEventHolder::noteOffObject</a> </dd></dl>
</div>
</div>
<a id="a58868f291be0de95375e3ecb11d30ba6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58868f291be0de95375e3ecb11d30ba6">§ </a></span>getIndexOf()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int MidiMessageSequence::getIndexOf </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classMidiMessageSequence_1_1MidiEventHolder.html">MidiEventHolder</a> * </td>
<td class="paramname"><em>event</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 the index of an event. </p>
</div>
</div>
<a id="a8dcca263a16b99179fa3b7fdb9092acb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8dcca263a16b99179fa3b7fdb9092acb">§ </a></span>getNextIndexAtTime()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int MidiMessageSequence::getNextIndexAtTime </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>timeStamp</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 the index of the first event on or after the given timestamp. </p>
<p>If the time is beyond the end of the sequence, this will return the number of events. </p>
</div>
</div>
<a id="a5b0fd95e0e378095a961ebd874fe7c8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b0fd95e0e378095a961ebd874fe7c8a">§ </a></span>getStartTime()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">double MidiMessageSequence::getStartTime </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 timestamp of the first event in the sequence. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMidiMessageSequence.html#aef21c164edd0f9e09809725cbcc38adf" title="Returns the timestamp of the last event in the sequence. ">getEndTime</a> </dd></dl>
</div>
</div>
<a id="aef21c164edd0f9e09809725cbcc38adf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef21c164edd0f9e09809725cbcc38adf">§ </a></span>getEndTime()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">double MidiMessageSequence::getEndTime </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 timestamp of the last event in the sequence. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMidiMessageSequence.html#a5b0fd95e0e378095a961ebd874fe7c8a" title="Returns the timestamp of the first event in the sequence. ">getStartTime</a> </dd></dl>
</div>
</div>
<a id="a5a873cd5ba67c7b1d9d1a2d39b983d01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a873cd5ba67c7b1d9d1a2d39b983d01">§ </a></span>getEventTime()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">double MidiMessageSequence::getEventTime </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</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 the timestamp of the event at a given index. </p>
<p>If the index is out-of-range, this will return 0.0 </p>
</div>
</div>
<a id="abcfb3b7334ccd8bf72fc95e5019cddd6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abcfb3b7334ccd8bf72fc95e5019cddd6">§ </a></span>addEvent()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classMidiMessageSequence_1_1MidiEventHolder.html">MidiEventHolder</a>* MidiMessageSequence::addEvent </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classMidiMessage.html">MidiMessage</a> & </td>
<td class="paramname"><em>newMessage</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>timeAdjustment</em> = <code>0</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Inserts a midi message into the sequence. </p>
<p>The index at which the new message gets inserted will depend on its timestamp, because the sequence is kept sorted.</p>
<p>Remember to call <a class="el" href="classMidiMessageSequence.html#a84c73c931fad6357ea81af0323109606" title="Makes sure all the note-on and note-off pairs are up-to-date. ">updateMatchedPairs()</a> after adding note-on events.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">newMessage</td><td>the new message to add (an internal copy will be made) </td></tr>
<tr><td class="paramname">timeAdjustment</td><td>an optional value to add to the timestamp of the message that will be inserted </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMidiMessageSequence.html#a84c73c931fad6357ea81af0323109606" title="Makes sure all the note-on and note-off pairs are up-to-date. ">updateMatchedPairs</a> </dd></dl>
</div>
</div>
<a id="a67b6db1465ea07fb7493909409d89a44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67b6db1465ea07fb7493909409d89a44">§ </a></span>deleteEvent()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MidiMessageSequence::deleteEvent </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>deleteMatchingNoteUp</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Deletes one of the events in the sequence. </p>
<p>Remember to call <a class="el" href="classMidiMessageSequence.html#a84c73c931fad6357ea81af0323109606" title="Makes sure all the note-on and note-off pairs are up-to-date. ">updateMatchedPairs()</a> after removing events.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>the index of the event to delete </td></tr>
<tr><td class="paramname">deleteMatchingNoteUp</td><td>whether to also remove the matching note-off if the event you're removing is a note-on </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a287c649d4618e657fe2fe3c54d16473a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a287c649d4618e657fe2fe3c54d16473a">§ </a></span>addSequence() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MidiMessageSequence::addSequence </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> & </td>
<td class="paramname"><em>other</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>timeAdjustmentDelta</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>firstAllowableDestTime</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>endOfAllowableDestTimes</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Merges another sequence into this one. </p>
<p>Remember to call <a class="el" href="classMidiMessageSequence.html#a84c73c931fad6357ea81af0323109606" title="Makes sure all the note-on and note-off pairs are up-to-date. ">updateMatchedPairs()</a> after using this method.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">other</td><td>the sequence to add from </td></tr>
<tr><td class="paramname">timeAdjustmentDelta</td><td>an amount to add to the timestamps of the midi events as they are read from the other sequence </td></tr>
<tr><td class="paramname">firstAllowableDestTime</td><td>events will not be added if their time is earlier than this time. (This is after their time has been adjusted by the timeAdjustmentDelta) </td></tr>
<tr><td class="paramname">endOfAllowableDestTimes</td><td>events will not be added if their time is equal to or greater than this time. (This is after their time has been adjusted by the timeAdjustmentDelta) </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a3cae20c271279cc719219edfadb944fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3cae20c271279cc719219edfadb944fe">§ </a></span>addSequence() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MidiMessageSequence::addSequence </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> & </td>
<td class="paramname"><em>other</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>timeAdjustmentDelta</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Merges another sequence into this one. </p>
<p>Remember to call <a class="el" href="classMidiMessageSequence.html#a84c73c931fad6357ea81af0323109606" title="Makes sure all the note-on and note-off pairs are up-to-date. ">updateMatchedPairs()</a> after using this method.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">other</td><td>the sequence to add from </td></tr>
<tr><td class="paramname">timeAdjustmentDelta</td><td>an amount to add to the timestamps of the midi events as they are read from the other sequence </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a84c73c931fad6357ea81af0323109606"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a84c73c931fad6357ea81af0323109606">§ </a></span>updateMatchedPairs()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void MidiMessageSequence::updateMatchedPairs </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>Makes sure all the note-on and note-off pairs are up-to-date. </p>
<p>Call this after re-ordering messages or deleting/adding messages, and it will scan the list and make sure all the note-offs in the <a class="el" href="classMidiMessageSequence_1_1MidiEventHolder.html" title="Structure used to hold midi events in the sequence. ">MidiEventHolder</a> structures are pointing at the correct ones. </p>
</div>
</div>
<a id="a0b8079f18ac0e01d4bb1bc3c20114965"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b8079f18ac0e01d4bb1bc3c20114965">§ </a></span>sort()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void MidiMessageSequence::sort </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>Forces a sort of the sequence. </p>
<p>You may need to call this if you've manually modified the timestamps of some events such that the overall order now needs updating. </p>
</div>
</div>
<a id="a015ae1710ef4163d264e169f37691da0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a015ae1710ef4163d264e169f37691da0">§ </a></span>extractMidiChannelMessages()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MidiMessageSequence::extractMidiChannelMessages </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>channelNumberToExtract</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> & </td>
<td class="paramname"><em>destSequence</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>alsoIncludeMetaEvents</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Copies all the messages for a particular midi channel to another sequence. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">channelNumberToExtract</td><td>the midi channel to look for, in the range 1 to 16 </td></tr>
<tr><td class="paramname">destSequence</td><td>the sequence that the chosen events should be copied to </td></tr>
<tr><td class="paramname">alsoIncludeMetaEvents</td><td>if true, any meta-events (which don't apply to a specific channel) will also be copied across. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMidiMessageSequence.html#a3c79b44f8af0bf1bf9e1e66036a2a62a" title="Copies all midi sys-ex messages to another sequence. ">extractSysExMessages</a> </dd></dl>
</div>
</div>
<a id="a3c79b44f8af0bf1bf9e1e66036a2a62a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c79b44f8af0bf1bf9e1e66036a2a62a">§ </a></span>extractSysExMessages()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MidiMessageSequence::extractSysExMessages </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> & </td>
<td class="paramname"><em>destSequence</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Copies all midi sys-ex messages to another sequence. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">destSequence</td><td>this is the sequence to which any sys-exes in this sequence will be added </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMidiMessageSequence.html#a015ae1710ef4163d264e169f37691da0" title="Copies all the messages for a particular midi channel to another sequence. ">extractMidiChannelMessages</a> </dd></dl>
</div>
</div>
<a id="a47466395fc2296b724defd56076cd5ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47466395fc2296b724defd56076cd5ed">§ </a></span>deleteMidiChannelMessages()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MidiMessageSequence::deleteMidiChannelMessages </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>channelNumberToRemove</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Removes any messages in this sequence that have a specific midi channel. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">channelNumberToRemove</td><td>the midi channel to look for, in the range 1 to 16 </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a9654788bd88928d6853d260d4e323e01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9654788bd88928d6853d260d4e323e01">§ </a></span>deleteSysExMessages()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MidiMessageSequence::deleteSysExMessages </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Removes any sys-ex messages from this sequence. </p>
</div>
</div>
<a id="ad19c814526207b0f38c12307f5588510"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad19c814526207b0f38c12307f5588510">§ </a></span>addTimeToMessages()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void MidiMessageSequence::addTimeToMessages </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>deltaTime</em></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>Adds an offset to the timestamps of all events in the sequence. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">deltaTime</td><td>the amount to add to each timestamp. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a10b6a4cb06c33a2bc85c138ded7707ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10b6a4cb06c33a2bc85c138ded7707ce">§ </a></span>createControllerUpdatesForTime()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void MidiMessageSequence::createControllerUpdatesForTime </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>channelNumber</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>time</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classArray.html">Array</a>< <a class="el" href="classMidiMessage.html">MidiMessage</a> > & </td>
<td class="paramname"><em>resultMessages</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Scans through the sequence to determine the state of any midi controllers at a given time. </p>
<p>This will create a sequence of midi controller changes that can be used to set all midi controllers to the state they would be in at the specified time within this sequence.</p>
<p>As well as controllers, it will also recreate the midi program number and pitch bend position.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">channelNumber</td><td>the midi channel to look for, in the range 1 to 16. Controllers for other channels will be ignored. </td></tr>
<tr><td class="paramname">time</td><td>the time at which you want to find out the state - there are no explicit units for this time measurement, it's the same units as used for the timestamps of the messages </td></tr>
<tr><td class="paramname">resultMessages</td><td>an array to which midi controller-change messages will be added. This will be the minimum number of controller changes to recreate the state at the required time. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a56ba1ede2962342760a6d5c4b0489bdf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56ba1ede2962342760a6d5c4b0489bdf">§ </a></span>swapWith()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void MidiMessageSequence::swapWith </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classMidiMessageSequence.html">MidiMessageSequence</a> & </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>Swaps this sequence with another one. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__MidiMessageSequence_8h.html">juce_MidiMessageSequence.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content © ROLI Ltd.</small></address><br/>
</body>
</html>
|