This file is indexed.

/usr/share/doc/libjuce/apiref/classMPESynthesiser.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
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
<!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: MPESynthesiser 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="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classMPESynthesiser-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">MPESynthesiser Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Base class for an MPE-compatible musical device that can play sounds.  
 <a href="classMPESynthesiser.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 MPESynthesiser:</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="classMPESynthesiser.png" usemap="#MPESynthesiser_map" alt=""/>
  <map id="MPESynthesiser_map" name="MPESynthesiser_map">
<area href="structMPESynthesiserBase.html" title="Derive from this class to create a basic audio generator capable of MPE. " alt="MPESynthesiserBase" shape="rect" coords="0,56,147,80"/>
<area href="classMPEInstrument_1_1Listener.html" title="Derive from this class to be informed about any changes in the expressive MIDI notes played by this i..." alt="MPEInstrument::Listener" shape="rect" coords="0,0,147,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:a64e54c0339818c5df93c2cb531b249c8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a64e54c0339818c5df93c2cb531b249c8">MPESynthesiser</a> ()</td></tr>
<tr class="memdesc:a64e54c0339818c5df93c2cb531b249c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#a64e54c0339818c5df93c2cb531b249c8">More...</a><br /></td></tr>
<tr class="separator:a64e54c0339818c5df93c2cb531b249c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23c16b0fed549ee37e887695976cebad"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a23c16b0fed549ee37e887695976cebad">MPESynthesiser</a> (<a class="el" href="classMPEInstrument.html">MPEInstrument</a> *<a class="el" href="structMPESynthesiserBase.html#a714dfff07d6efda0363f4f0e62839482">instrument</a>)</td></tr>
<tr class="memdesc:a23c16b0fed549ee37e887695976cebad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor to pass to the synthesiser a custom <a class="el" href="classMPEInstrument.html">MPEInstrument</a> object to handle the MPE note state, MIDI channel assignment etc.  <a href="#a23c16b0fed549ee37e887695976cebad">More...</a><br /></td></tr>
<tr class="separator:a23c16b0fed549ee37e887695976cebad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12a9a600b33b5c04c3616b7ed724e689"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a12a9a600b33b5c04c3616b7ed724e689">~MPESynthesiser</a> ()</td></tr>
<tr class="memdesc:a12a9a600b33b5c04c3616b7ed724e689"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a12a9a600b33b5c04c3616b7ed724e689">More...</a><br /></td></tr>
<tr class="separator:a12a9a600b33b5c04c3616b7ed724e689"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7b8329a8fe49c0d47a39d2c6a446aa1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#ae7b8329a8fe49c0d47a39d2c6a446aa1">clearVoices</a> ()</td></tr>
<tr class="memdesc:ae7b8329a8fe49c0d47a39d2c6a446aa1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deletes all voices.  <a href="#ae7b8329a8fe49c0d47a39d2c6a446aa1">More...</a><br /></td></tr>
<tr class="separator:ae7b8329a8fe49c0d47a39d2c6a446aa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30cf6e16df8dff774936e40f28a3c120"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a30cf6e16df8dff774936e40f28a3c120">getNumVoices</a> () const noexcept</td></tr>
<tr class="memdesc:a30cf6e16df8dff774936e40f28a3c120"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of voices that have been added.  <a href="#a30cf6e16df8dff774936e40f28a3c120">More...</a><br /></td></tr>
<tr class="separator:a30cf6e16df8dff774936e40f28a3c120"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49b1c44fae1020cb73d0a98b5188bbd5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a49b1c44fae1020cb73d0a98b5188bbd5">getVoice</a> (int index) const</td></tr>
<tr class="memdesc:a49b1c44fae1020cb73d0a98b5188bbd5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns one of the voices that have been added.  <a href="#a49b1c44fae1020cb73d0a98b5188bbd5">More...</a><br /></td></tr>
<tr class="separator:a49b1c44fae1020cb73d0a98b5188bbd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd5a57224ed678670766c3f0e1c611ac"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#acd5a57224ed678670766c3f0e1c611ac">addVoice</a> (<a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a> *newVoice)</td></tr>
<tr class="memdesc:acd5a57224ed678670766c3f0e1c611ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a new voice to the synth.  <a href="#acd5a57224ed678670766c3f0e1c611ac">More...</a><br /></td></tr>
<tr class="separator:acd5a57224ed678670766c3f0e1c611ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a836247c3df5b53979d28cf6a1c3ba83d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a836247c3df5b53979d28cf6a1c3ba83d">removeVoice</a> (int index)</td></tr>
<tr class="memdesc:a836247c3df5b53979d28cf6a1c3ba83d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deletes one of the voices.  <a href="#a836247c3df5b53979d28cf6a1c3ba83d">More...</a><br /></td></tr>
<tr class="separator:a836247c3df5b53979d28cf6a1c3ba83d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b3e0b278f6f848abac1ab5552c5d04d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a6b3e0b278f6f848abac1ab5552c5d04d">reduceNumVoices</a> (int newNumVoices)</td></tr>
<tr class="memdesc:a6b3e0b278f6f848abac1ab5552c5d04d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reduces the number of voices to newNumVoices.  <a href="#a6b3e0b278f6f848abac1ab5552c5d04d">More...</a><br /></td></tr>
<tr class="separator:a6b3e0b278f6f848abac1ab5552c5d04d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77ee38c3f403695970cffb51f3e8ebdb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a77ee38c3f403695970cffb51f3e8ebdb">turnOffAllVoices</a> (bool allowTailOff)</td></tr>
<tr class="memdesc:a77ee38c3f403695970cffb51f3e8ebdb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Release all MPE notes and turn off all voices.  <a href="#a77ee38c3f403695970cffb51f3e8ebdb">More...</a><br /></td></tr>
<tr class="separator:a77ee38c3f403695970cffb51f3e8ebdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a711a9bb400e273117c88095a1f1cced7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a711a9bb400e273117c88095a1f1cced7">setVoiceStealingEnabled</a> (bool shouldSteal) noexcept</td></tr>
<tr class="memdesc:a711a9bb400e273117c88095a1f1cced7"><td class="mdescLeft">&#160;</td><td class="mdescRight">If set to true, then the synth will try to take over an existing voice if it runs out and needs to play another note.  <a href="#a711a9bb400e273117c88095a1f1cced7">More...</a><br /></td></tr>
<tr class="separator:a711a9bb400e273117c88095a1f1cced7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66626bd58b9d126ed61d847a572441ee"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a66626bd58b9d126ed61d847a572441ee">isVoiceStealingEnabled</a> () const noexcept</td></tr>
<tr class="memdesc:a66626bd58b9d126ed61d847a572441ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if note-stealing is enabled.  <a href="#a66626bd58b9d126ed61d847a572441ee">More...</a><br /></td></tr>
<tr class="separator:a66626bd58b9d126ed61d847a572441ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa4de3655921d4971ad4334001f096b1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#aaa4de3655921d4971ad4334001f096b1">setCurrentPlaybackSampleRate</a> (double newRate) override</td></tr>
<tr class="memdesc:aaa4de3655921d4971ad4334001f096b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tells the synthesiser what the sample rate is for the audio it's being used to render.  <a href="#aaa4de3655921d4971ad4334001f096b1">More...</a><br /></td></tr>
<tr class="separator:aaa4de3655921d4971ad4334001f096b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2dd519f9423daede17cc9658b90235e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a2dd519f9423daede17cc9658b90235e9">handleMidiEvent</a> (const <a class="el" href="classMidiMessage.html">MidiMessage</a> &amp;) override</td></tr>
<tr class="memdesc:a2dd519f9423daede17cc9658b90235e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handle incoming MIDI events.  <a href="#a2dd519f9423daede17cc9658b90235e9">More...</a><br /></td></tr>
<tr class="separator:a2dd519f9423daede17cc9658b90235e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7e0785bd58e274b3ae7218bb468cb44"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#ae7e0785bd58e274b3ae7218bb468cb44">handleController</a> (int, int, int)</td></tr>
<tr class="memdesc:ae7e0785bd58e274b3ae7218bb468cb44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback for MIDI controller messages.  <a href="#ae7e0785bd58e274b3ae7218bb468cb44">More...</a><br /></td></tr>
<tr class="separator:ae7e0785bd58e274b3ae7218bb468cb44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8902a959475b2c1a22f04c6235edf214"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a8902a959475b2c1a22f04c6235edf214">handleProgramChange</a> (int, int)</td></tr>
<tr class="memdesc:a8902a959475b2c1a22f04c6235edf214"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback for MIDI program change messages.  <a href="#a8902a959475b2c1a22f04c6235edf214">More...</a><br /></td></tr>
<tr class="separator:a8902a959475b2c1a22f04c6235edf214"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_structMPESynthesiserBase"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_structMPESynthesiserBase')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="structMPESynthesiserBase.html">MPESynthesiserBase</a></td></tr>
<tr class="memitem:a74424e05c011bc07e8c626e6911b5fd6 inherit pub_methods_structMPESynthesiserBase"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#a74424e05c011bc07e8c626e6911b5fd6">MPESynthesiserBase</a> ()</td></tr>
<tr class="memdesc:a74424e05c011bc07e8c626e6911b5fd6 inherit pub_methods_structMPESynthesiserBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="structMPESynthesiserBase.html#a74424e05c011bc07e8c626e6911b5fd6">More...</a><br /></td></tr>
<tr class="separator:a74424e05c011bc07e8c626e6911b5fd6 inherit pub_methods_structMPESynthesiserBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15daf0b062b97aed7d4b1eb9fa0112ce inherit pub_methods_structMPESynthesiserBase"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#a15daf0b062b97aed7d4b1eb9fa0112ce">MPESynthesiserBase</a> (<a class="el" href="classMPEInstrument.html">MPEInstrument</a> *<a class="el" href="structMPESynthesiserBase.html#a714dfff07d6efda0363f4f0e62839482">instrument</a>)</td></tr>
<tr class="memdesc:a15daf0b062b97aed7d4b1eb9fa0112ce inherit pub_methods_structMPESynthesiserBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="structMPESynthesiserBase.html#a15daf0b062b97aed7d4b1eb9fa0112ce">More...</a><br /></td></tr>
<tr class="separator:a15daf0b062b97aed7d4b1eb9fa0112ce inherit pub_methods_structMPESynthesiserBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae3ea68ecf5083e8b12a89f59935c61e inherit pub_methods_structMPESynthesiserBase"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMPEZoneLayout.html">MPEZoneLayout</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#aae3ea68ecf5083e8b12a89f59935c61e">getZoneLayout</a> () const noexcept</td></tr>
<tr class="memdesc:aae3ea68ecf5083e8b12a89f59935c61e inherit pub_methods_structMPESynthesiserBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the synthesiser's internal MPE zone layout.  <a href="structMPESynthesiserBase.html#aae3ea68ecf5083e8b12a89f59935c61e">More...</a><br /></td></tr>
<tr class="separator:aae3ea68ecf5083e8b12a89f59935c61e inherit pub_methods_structMPESynthesiserBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afeac8dac88466e65c1b86c94be91fe02 inherit pub_methods_structMPESynthesiserBase"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#afeac8dac88466e65c1b86c94be91fe02">setZoneLayout</a> (<a class="el" href="classMPEZoneLayout.html">MPEZoneLayout</a> newLayout)</td></tr>
<tr class="memdesc:afeac8dac88466e65c1b86c94be91fe02 inherit pub_methods_structMPESynthesiserBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Re-sets the synthesiser's internal MPE zone layout to the one passed in.  <a href="structMPESynthesiserBase.html#afeac8dac88466e65c1b86c94be91fe02">More...</a><br /></td></tr>
<tr class="separator:afeac8dac88466e65c1b86c94be91fe02 inherit pub_methods_structMPESynthesiserBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeeb6866efb815c5fecfaeee7a25df4f8 inherit pub_methods_structMPESynthesiserBase"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#aeeb6866efb815c5fecfaeee7a25df4f8">getSampleRate</a> () const noexcept</td></tr>
<tr class="memdesc:aeeb6866efb815c5fecfaeee7a25df4f8 inherit pub_methods_structMPESynthesiserBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current target sample rate at which rendering is being done.  <a href="structMPESynthesiserBase.html#aeeb6866efb815c5fecfaeee7a25df4f8">More...</a><br /></td></tr>
<tr class="separator:aeeb6866efb815c5fecfaeee7a25df4f8 inherit pub_methods_structMPESynthesiserBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b0bfbf04857771b9df5c49ea7ba14df inherit pub_methods_structMPESynthesiserBase"><td class="memTemplParams" colspan="2">template&lt;typename floatType &gt; </td></tr>
<tr class="memitem:a6b0bfbf04857771b9df5c49ea7ba14df inherit pub_methods_structMPESynthesiserBase"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#a6b0bfbf04857771b9df5c49ea7ba14df">renderNextBlock</a> (<a class="el" href="classAudioBuffer.html">AudioBuffer</a>&lt; floatType &gt; &amp;outputAudio, const <a class="el" href="classMidiBuffer.html">MidiBuffer</a> &amp;inputMidi, int startSample, int numSamples)</td></tr>
<tr class="memdesc:a6b0bfbf04857771b9df5c49ea7ba14df inherit pub_methods_structMPESynthesiserBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates the next block of audio output.  <a href="structMPESynthesiserBase.html#a6b0bfbf04857771b9df5c49ea7ba14df">More...</a><br /></td></tr>
<tr class="separator:a6b0bfbf04857771b9df5c49ea7ba14df inherit pub_methods_structMPESynthesiserBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86d907030c48a8abf67810ba08a8ff98 inherit pub_methods_structMPESynthesiserBase"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#a86d907030c48a8abf67810ba08a8ff98">setMinimumRenderingSubdivisionSize</a> (int numSamples, bool shouldBeStrict=false) noexcept</td></tr>
<tr class="memdesc:a86d907030c48a8abf67810ba08a8ff98 inherit pub_methods_structMPESynthesiserBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a minimum limit on the size to which audio sub-blocks will be divided when rendering.  <a href="structMPESynthesiserBase.html#a86d907030c48a8abf67810ba08a8ff98">More...</a><br /></td></tr>
<tr class="separator:a86d907030c48a8abf67810ba08a8ff98 inherit pub_methods_structMPESynthesiserBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4abccdd51b94666cd099d115152da4e5 inherit pub_methods_structMPESynthesiserBase"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#a4abccdd51b94666cd099d115152da4e5">enableLegacyMode</a> (int pitchbendRange=2, <a class="el" href="classRange.html">Range</a>&lt; int &gt; channelRange=<a class="el" href="classRange.html">Range</a>&lt; int &gt;(1, 17))</td></tr>
<tr class="memdesc:a4abccdd51b94666cd099d115152da4e5 inherit pub_methods_structMPESynthesiserBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Puts the synthesiser into legacy mode.  <a href="structMPESynthesiserBase.html#a4abccdd51b94666cd099d115152da4e5">More...</a><br /></td></tr>
<tr class="separator:a4abccdd51b94666cd099d115152da4e5 inherit pub_methods_structMPESynthesiserBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa7616a70ce2cb4e9253d85031caf309 inherit pub_methods_structMPESynthesiserBase"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#aaa7616a70ce2cb4e9253d85031caf309">isLegacyModeEnabled</a> () const noexcept</td></tr>
<tr class="memdesc:aaa7616a70ce2cb4e9253d85031caf309 inherit pub_methods_structMPESynthesiserBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the instrument is in legacy mode, false otherwise.  <a href="structMPESynthesiserBase.html#aaa7616a70ce2cb4e9253d85031caf309">More...</a><br /></td></tr>
<tr class="separator:aaa7616a70ce2cb4e9253d85031caf309 inherit pub_methods_structMPESynthesiserBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d9886cbd222f3bc01858659fb187787 inherit pub_methods_structMPESynthesiserBase"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classRange.html">Range</a>&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#a1d9886cbd222f3bc01858659fb187787">getLegacyModeChannelRange</a> () const noexcept</td></tr>
<tr class="memdesc:a1d9886cbd222f3bc01858659fb187787 inherit pub_methods_structMPESynthesiserBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the range of MIDI channels (1-16) to be used for notes when in legacy mode.  <a href="structMPESynthesiserBase.html#a1d9886cbd222f3bc01858659fb187787">More...</a><br /></td></tr>
<tr class="separator:a1d9886cbd222f3bc01858659fb187787 inherit pub_methods_structMPESynthesiserBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4695668d9cc9ad26f3bb1a5a370d582 inherit pub_methods_structMPESynthesiserBase"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#ac4695668d9cc9ad26f3bb1a5a370d582">setLegacyModeChannelRange</a> (<a class="el" href="classRange.html">Range</a>&lt; int &gt; channelRange)</td></tr>
<tr class="memdesc:ac4695668d9cc9ad26f3bb1a5a370d582 inherit pub_methods_structMPESynthesiserBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Re-sets the range of MIDI channels (1-16) to be used for notes when in legacy mode.  <a href="structMPESynthesiserBase.html#ac4695668d9cc9ad26f3bb1a5a370d582">More...</a><br /></td></tr>
<tr class="separator:ac4695668d9cc9ad26f3bb1a5a370d582 inherit pub_methods_structMPESynthesiserBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5edf96cd4354ea30d38350f2f4b38647 inherit pub_methods_structMPESynthesiserBase"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#a5edf96cd4354ea30d38350f2f4b38647">getLegacyModePitchbendRange</a> () const noexcept</td></tr>
<tr class="memdesc:a5edf96cd4354ea30d38350f2f4b38647 inherit pub_methods_structMPESynthesiserBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the pitchbend range in semitones (0-96) to be used for notes when in legacy mode.  <a href="structMPESynthesiserBase.html#a5edf96cd4354ea30d38350f2f4b38647">More...</a><br /></td></tr>
<tr class="separator:a5edf96cd4354ea30d38350f2f4b38647 inherit pub_methods_structMPESynthesiserBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ed7113fa62ec1f9e979b568c6d99893 inherit pub_methods_structMPESynthesiserBase"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#a9ed7113fa62ec1f9e979b568c6d99893">setLegacyModePitchbendRange</a> (int pitchbendRange)</td></tr>
<tr class="memdesc:a9ed7113fa62ec1f9e979b568c6d99893 inherit pub_methods_structMPESynthesiserBase"><td class="mdescLeft">&#160;</td><td class="mdescRight">Re-sets the pitchbend range in semitones (0-96) to be used for notes when in legacy mode.  <a href="structMPESynthesiserBase.html#a9ed7113fa62ec1f9e979b568c6d99893">More...</a><br /></td></tr>
<tr class="separator:a9ed7113fa62ec1f9e979b568c6d99893 inherit pub_methods_structMPESynthesiserBase"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classMPEInstrument_1_1Listener"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classMPEInstrument_1_1Listener')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classMPEInstrument_1_1Listener.html">MPEInstrument::Listener</a></td></tr>
<tr class="memitem:ac877fa9127b1c3718ebad025fcb0ff85 inherit pub_methods_classMPEInstrument_1_1Listener"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPEInstrument_1_1Listener.html#ac877fa9127b1c3718ebad025fcb0ff85">~Listener</a> ()</td></tr>
<tr class="memdesc:ac877fa9127b1c3718ebad025fcb0ff85 inherit pub_methods_classMPEInstrument_1_1Listener"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="classMPEInstrument_1_1Listener.html#ac877fa9127b1c3718ebad025fcb0ff85">More...</a><br /></td></tr>
<tr class="separator:ac877fa9127b1c3718ebad025fcb0ff85 inherit pub_methods_classMPEInstrument_1_1Listener"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a41a82fda29e8bc58d808abc111824a59"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a41a82fda29e8bc58d808abc111824a59">noteAdded</a> (<a class="el" href="structMPENote.html">MPENote</a> newNote) override</td></tr>
<tr class="memdesc:a41a82fda29e8bc58d808abc111824a59"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attempts to start playing a new note.  <a href="#a41a82fda29e8bc58d808abc111824a59">More...</a><br /></td></tr>
<tr class="separator:a41a82fda29e8bc58d808abc111824a59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bfb98acd150148652391b21e18a07cd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a4bfb98acd150148652391b21e18a07cd">noteReleased</a> (<a class="el" href="structMPENote.html">MPENote</a> finishedNote) override</td></tr>
<tr class="memdesc:a4bfb98acd150148652391b21e18a07cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops playing a note.  <a href="#a4bfb98acd150148652391b21e18a07cd">More...</a><br /></td></tr>
<tr class="separator:a4bfb98acd150148652391b21e18a07cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2afc5267ae10e717565683d0c90d5c87"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a2afc5267ae10e717565683d0c90d5c87">notePressureChanged</a> (<a class="el" href="structMPENote.html">MPENote</a> changedNote) override</td></tr>
<tr class="memdesc:a2afc5267ae10e717565683d0c90d5c87"><td class="mdescLeft">&#160;</td><td class="mdescRight">Will find any voice that is currently playing changedNote, update its currently playing note, and call its notePressureChanged method.  <a href="#a2afc5267ae10e717565683d0c90d5c87">More...</a><br /></td></tr>
<tr class="separator:a2afc5267ae10e717565683d0c90d5c87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6418065d8ba1be8e20661fd5a8c8eaa9"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a6418065d8ba1be8e20661fd5a8c8eaa9">notePitchbendChanged</a> (<a class="el" href="structMPENote.html">MPENote</a> changedNote) override</td></tr>
<tr class="memdesc:a6418065d8ba1be8e20661fd5a8c8eaa9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Will find any voice that is currently playing changedNote, update its currently playing note, and call its notePitchbendChanged method.  <a href="#a6418065d8ba1be8e20661fd5a8c8eaa9">More...</a><br /></td></tr>
<tr class="separator:a6418065d8ba1be8e20661fd5a8c8eaa9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8a1c829e7c570e844d855ce8c1cbec0"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#ae8a1c829e7c570e844d855ce8c1cbec0">noteTimbreChanged</a> (<a class="el" href="structMPENote.html">MPENote</a> changedNote) override</td></tr>
<tr class="memdesc:ae8a1c829e7c570e844d855ce8c1cbec0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Will find any voice that is currently playing changedNote, update its currently playing note, and call its noteTimbreChanged method.  <a href="#ae8a1c829e7c570e844d855ce8c1cbec0">More...</a><br /></td></tr>
<tr class="separator:ae8a1c829e7c570e844d855ce8c1cbec0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a738389fa41b37f7cfe71db404eae0fa5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a738389fa41b37f7cfe71db404eae0fa5">noteKeyStateChanged</a> (<a class="el" href="structMPENote.html">MPENote</a> changedNote) override</td></tr>
<tr class="memdesc:a738389fa41b37f7cfe71db404eae0fa5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Will find any voice that is currently playing changedNote, update its currently playing note, and call its noteKeyStateChanged method.  <a href="#a738389fa41b37f7cfe71db404eae0fa5">More...</a><br /></td></tr>
<tr class="separator:a738389fa41b37f7cfe71db404eae0fa5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5192d64f9a0f664dbeb28b34e216381c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a5192d64f9a0f664dbeb28b34e216381c">renderNextSubBlock</a> (<a class="el" href="classAudioBuffer.html">AudioBuffer</a>&lt; float &gt; &amp;outputAudio, int startSample, int numSamples) override</td></tr>
<tr class="memdesc:a5192d64f9a0f664dbeb28b34e216381c"><td class="mdescLeft">&#160;</td><td class="mdescRight">This will simply call renderNextBlock for each currently active voice and fill the buffer with the sum.  <a href="#a5192d64f9a0f664dbeb28b34e216381c">More...</a><br /></td></tr>
<tr class="separator:a5192d64f9a0f664dbeb28b34e216381c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98c17883ec58f43951ac70026cb7ffd8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#a98c17883ec58f43951ac70026cb7ffd8">renderNextSubBlock</a> (<a class="el" href="classAudioBuffer.html">AudioBuffer</a>&lt; double &gt; &amp;outputAudio, int startSample, int numSamples) override</td></tr>
<tr class="memdesc:a98c17883ec58f43951ac70026cb7ffd8"><td class="mdescLeft">&#160;</td><td class="mdescRight">This will simply call renderNextBlock for each currently active voice and fill the buffer with the sum.  <a href="#a98c17883ec58f43951ac70026cb7ffd8">More...</a><br /></td></tr>
<tr class="separator:a98c17883ec58f43951ac70026cb7ffd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada24675620470ce5c9b76dbf97af672c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#ada24675620470ce5c9b76dbf97af672c">findFreeVoice</a> (<a class="el" href="structMPENote.html">MPENote</a> noteToFindVoiceFor, bool stealIfNoneAvailable) const</td></tr>
<tr class="memdesc:ada24675620470ce5c9b76dbf97af672c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Searches through the voices to find one that's not currently playing, and which can play the given MPE note.  <a href="#ada24675620470ce5c9b76dbf97af672c">More...</a><br /></td></tr>
<tr class="separator:ada24675620470ce5c9b76dbf97af672c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa05024e912f26a9e34e3ef8a65c4985"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#aaa05024e912f26a9e34e3ef8a65c4985">findVoiceToSteal</a> (<a class="el" href="structMPENote.html">MPENote</a> noteToStealVoiceFor=<a class="el" href="structMPENote.html">MPENote</a>()) const</td></tr>
<tr class="memdesc:aaa05024e912f26a9e34e3ef8a65c4985"><td class="mdescLeft">&#160;</td><td class="mdescRight">Chooses a voice that is most suitable for being re-used to play a new note, or for being deleted by reduceNumVoices.  <a href="#aaa05024e912f26a9e34e3ef8a65c4985">More...</a><br /></td></tr>
<tr class="separator:aaa05024e912f26a9e34e3ef8a65c4985"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee6881d2b047430ac2886fb606de6630"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#aee6881d2b047430ac2886fb606de6630">startVoice</a> (<a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a> *voice, <a class="el" href="structMPENote.html">MPENote</a> noteToStart)</td></tr>
<tr class="memdesc:aee6881d2b047430ac2886fb606de6630"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts a specified voice and tells it to play a particular <a class="el" href="structMPENote.html" title="This struct represents a playing MPE note. ">MPENote</a>.  <a href="#aee6881d2b047430ac2886fb606de6630">More...</a><br /></td></tr>
<tr class="separator:aee6881d2b047430ac2886fb606de6630"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3bc7bb58287b2ee1828fbca0ad40a19"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#ad3bc7bb58287b2ee1828fbca0ad40a19">stopVoice</a> (<a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a> *voice, <a class="el" href="structMPENote.html">MPENote</a> noteToStop, bool allowTailOff)</td></tr>
<tr class="memdesc:ad3bc7bb58287b2ee1828fbca0ad40a19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops a given voice and tells it to stop playing a particular <a class="el" href="structMPENote.html" title="This struct represents a playing MPE note. ">MPENote</a> (which should be the same note it is actually playing).  <a href="#ad3bc7bb58287b2ee1828fbca0ad40a19">More...</a><br /></td></tr>
<tr class="separator:ad3bc7bb58287b2ee1828fbca0ad40a19"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:ae8ff04bfb33a5de6d649ed78bab37274"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOwnedArray.html">OwnedArray</a>&lt; <a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMPESynthesiser.html#ae8ff04bfb33a5de6d649ed78bab37274">voices</a></td></tr>
<tr class="separator:ae8ff04bfb33a5de6d649ed78bab37274"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_structMPESynthesiserBase"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_structMPESynthesiserBase')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="structMPESynthesiserBase.html">MPESynthesiserBase</a></td></tr>
<tr class="memitem:a714dfff07d6efda0363f4f0e62839482 inherit pro_attribs_structMPESynthesiserBase"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classScopedPointer.html">ScopedPointer</a>&lt; <a class="el" href="classMPEInstrument.html">MPEInstrument</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMPESynthesiserBase.html#a714dfff07d6efda0363f4f0e62839482">instrument</a></td></tr>
<tr class="separator:a714dfff07d6efda0363f4f0e62839482 inherit pro_attribs_structMPESynthesiserBase"><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>Base class for an MPE-compatible musical device that can play sounds. </p>
<p>This class extends <a class="el" href="structMPESynthesiserBase.html" title="Derive from this class to create a basic audio generator capable of MPE. ">MPESynthesiserBase</a> by adding the concept of voices, each of which can play a sound triggered by a <a class="el" href="structMPENote.html" title="This struct represents a playing MPE note. ">MPENote</a> that can be modulated by MPE dimensions like pressure, pitchbend, and timbre, while the note is sounding.</p>
<p>To create a synthesiser, you'll need to create a subclass of <a class="el" href="classMPESynthesiserVoice.html" title="Represents an MPE voice that an MPESynthesiser can use to play a sound. ">MPESynthesiserVoice</a> which can play back one of these sounds at a time.</p>
<p>Then you can use the <a class="el" href="classMPESynthesiser.html#acd5a57224ed678670766c3f0e1c611ac" title="Adds a new voice to the synth. ">addVoice()</a> methods to give the synthesiser a set of voices it can use to play notes. If you only give it one voice it will be monophonic - the more voices it has, the more polyphony it'll have available.</p>
<p>Then repeatedly call the <a class="el" href="structMPESynthesiserBase.html#a6b0bfbf04857771b9df5c49ea7ba14df" title="Creates the next block of audio output. ">renderNextBlock()</a> method to produce the audio (inherited from <a class="el" href="structMPESynthesiserBase.html" title="Derive from this class to create a basic audio generator capable of MPE. ">MPESynthesiserBase</a>). The voices will be started, stopped, and modulated automatically, based on the MPE/MIDI messages that the synthesiser receives.</p>
<p>Before rendering, be sure to call the <a class="el" href="classMPESynthesiser.html#aaa4de3655921d4971ad4334001f096b1" title="Tells the synthesiser what the sample rate is for the audio it&#39;s being used to render. ">setCurrentPlaybackSampleRate()</a> to tell it what the target playback rate is. This value is passed on to the voices so that they can pitch their output correctly.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="structMPESynthesiserBase.html" title="Derive from this class to create a basic audio generator capable of MPE. ">MPESynthesiserBase</a>, MPESythesiserVoice, <a class="el" href="structMPENote.html" title="This struct represents a playing MPE note. ">MPENote</a>, <a class="el" href="classMPEInstrument.html">MPEInstrument</a> </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a64e54c0339818c5df93c2cb531b249c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64e54c0339818c5df93c2cb531b249c8">&sect;&nbsp;</a></span>MPESynthesiser() <span class="overload">[1/2]</span></h2>

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

<p>Constructor. </p>
<p>You'll need to add some voices before it'll make any sound.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classMPESynthesiser.html#acd5a57224ed678670766c3f0e1c611ac" title="Adds a new voice to the synth. ">addVoice</a> </dd></dl>

</div>
</div>
<a id="a23c16b0fed549ee37e887695976cebad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23c16b0fed549ee37e887695976cebad">&sect;&nbsp;</a></span>MPESynthesiser() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MPESynthesiser::MPESynthesiser </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classMPEInstrument.html">MPEInstrument</a> *&#160;</td>
          <td class="paramname"><em>instrument</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor to pass to the synthesiser a custom <a class="el" href="classMPEInstrument.html">MPEInstrument</a> object to handle the MPE note state, MIDI channel assignment etc. </p>
<p>(in case you need custom logic for this that goes beyond MIDI and MPE). The synthesiser will take ownership of this object.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="structMPESynthesiserBase.html" title="Derive from this class to create a basic audio generator capable of MPE. ">MPESynthesiserBase</a>, <a class="el" href="classMPEInstrument.html">MPEInstrument</a> </dd></dl>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MPESynthesiser::~MPESynthesiser </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="ae7b8329a8fe49c0d47a39d2c6a446aa1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7b8329a8fe49c0d47a39d2c6a446aa1">&sect;&nbsp;</a></span>clearVoices()</h2>

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

<p>Deletes all voices. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int MPESynthesiser::getNumVoices </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 voices that have been added. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a>* MPESynthesiser::getVoice </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns one of the voices that have been added. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MPESynthesiser::addVoice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a> *&#160;</td>
          <td class="paramname"><em>newVoice</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a new voice to the synth. </p>
<p>All the voices should be the same class of object and are treated equally.</p>
<p>The object passed in will be managed by the synthesiser, which will delete it later on when no longer needed. The caller should not retain a pointer to the voice. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MPESynthesiser::removeVoice </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Deletes one of the voices. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MPESynthesiser::reduceNumVoices </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>newNumVoices</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reduces the number of voices to newNumVoices. </p>
<p>This will repeatedly call <a class="el" href="classMPESynthesiser.html#aaa05024e912f26a9e34e3ef8a65c4985" title="Chooses a voice that is most suitable for being re-used to play a new note, or for being deleted by r...">findVoiceToSteal()</a> and remove that voice, until the total number of voices equals newNumVoices. If newNumVoices is greater than or equal to the current number of voices, this method does nothing. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MPESynthesiser::turnOffAllVoices </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>allowTailOff</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Release all MPE notes and turn off all voices. </p>
<p>If allowTailOff is true, the voices will be allowed to fade out the notes gracefully (if they can do). If this is false, the notes will all be cut off immediately.</p>
<p>This method is meant to be called by the user, for example to implement a MIDI panic button in a synth. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MPESynthesiser::setVoiceStealingEnabled </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>shouldSteal</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>If set to true, then the synth will try to take over an existing voice if it runs out and needs to play another note. </p>
<p>The value of this boolean is passed into <a class="el" href="classMPESynthesiser.html#ada24675620470ce5c9b76dbf97af672c" title="Searches through the voices to find one that&#39;s not currently playing, and which can play the given MP...">findFreeVoice()</a>, so the result will depend on the implementation of this method. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool MPESynthesiser::isVoiceStealingEnabled </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 true if note-stealing is enabled. </p>

<p>References <a class="el" href="structMPESynthesiserBase.html#a4d2ec25d39adbbe075cc73b16ac57350">MPESynthesiserBase::handleMidiEvent()</a>, and <a class="el" href="structMPESynthesiserBase.html#aa4b7f08d7300b5fd4b7dee5afe0a5b6e">MPESynthesiserBase::setCurrentPlaybackSampleRate()</a>.</p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MPESynthesiser::setCurrentPlaybackSampleRate </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>newRate</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Tells the synthesiser what the sample rate is for the audio it's being used to render. </p>
<p>This overrides the implementation in <a class="el" href="structMPESynthesiserBase.html" title="Derive from this class to create a basic audio generator capable of MPE. ">MPESynthesiserBase</a>, to additionally propagate the new value to the voices so that they can use it to render the correct pitches. </p>

<p>Reimplemented from <a class="el" href="structMPESynthesiserBase.html#aa4b7f08d7300b5fd4b7dee5afe0a5b6e">MPESynthesiserBase</a>.</p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MPESynthesiser::handleMidiEvent </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classMidiMessage.html">MidiMessage</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Handle incoming MIDI events. </p>
<p>This method will be called automatically according to the MIDI data passed into <a class="el" href="structMPESynthesiserBase.html#a6b0bfbf04857771b9df5c49ea7ba14df" title="Creates the next block of audio output. ">renderNextBlock()</a>, but you can also call it yourself to manually inject MIDI events.</p>
<p>This implementation forwards program change messages and non-MPE-related controller messages to handleProgramChange and handleController, respectively, and then simply calls through to <a class="el" href="structMPESynthesiserBase.html#a4d2ec25d39adbbe075cc73b16ac57350" title="Handle incoming MIDI events (called from renderNextBlock). ">MPESynthesiserBase::handleMidiEvent</a> to deal with MPE-related MIDI messages used for MPE notes, zones etc.</p>
<p>This method can be overridden further if you need to do custom MIDI handling on top of what is provided here. </p>

<p>Reimplemented from <a class="el" href="structMPESynthesiserBase.html#a4d2ec25d39adbbe075cc73b16ac57350">MPESynthesiserBase</a>.</p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MPESynthesiser::handleController </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Callback for MIDI controller messages. </p>
<p>The default implementation provided here does nothing; override this method if you need custom MIDI controller handling on top of MPE.</p>
<p>This method will be called automatically according to the midi data passed into <a class="el" href="structMPESynthesiserBase.html#a6b0bfbf04857771b9df5c49ea7ba14df" title="Creates the next block of audio output. ">renderNextBlock()</a>. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MPESynthesiser::handleProgramChange </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Callback for MIDI program change messages. </p>
<p>The default implementation provided here does nothing; override this method if you need to handle those messages.</p>
<p>This method will be called automatically according to the midi data passed into <a class="el" href="structMPESynthesiserBase.html#a6b0bfbf04857771b9df5c49ea7ba14df" title="Creates the next block of audio output. ">renderNextBlock()</a>. </p>

<p>References <a class="el" href="classMPEInstrument_1_1Listener.html#a3ed24fc611a2d655a0a7c06eb0883b6a">MPEInstrument::Listener::noteAdded()</a>, <a class="el" href="classMPEInstrument_1_1Listener.html#a88c9dda48fed8107b7b5e355b1273d73">MPEInstrument::Listener::noteKeyStateChanged()</a>, <a class="el" href="classMPEInstrument_1_1Listener.html#a47609333f6dc48544da697e9d42188ae">MPEInstrument::Listener::notePitchbendChanged()</a>, <a class="el" href="classMPEInstrument_1_1Listener.html#adc06f3989c5cd699ae97c391d2117b42">MPEInstrument::Listener::notePressureChanged()</a>, <a class="el" href="classMPEInstrument_1_1Listener.html#ac5ebbf72827b08d96c1e9c45de27c317">MPEInstrument::Listener::noteReleased()</a>, <a class="el" href="classMPEInstrument_1_1Listener.html#a2479e31f024803b3a3379341c5a6fda1">MPEInstrument::Listener::noteTimbreChanged()</a>, and <a class="el" href="structMPESynthesiserBase.html#a35cb8fe7b87b603884ee3f4837be07aa">MPESynthesiserBase::renderNextSubBlock()</a>.</p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MPESynthesiser::noteAdded </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMPENote.html">MPENote</a>&#160;</td>
          <td class="paramname"><em>newNote</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Attempts to start playing a new note. </p>
<p>The default method here will find a free voice that is appropriate for playing the given <a class="el" href="structMPENote.html" title="This struct represents a playing MPE note. ">MPENote</a>, and use that voice to start playing the sound. If isNoteStealingEnabled returns true (set this by calling setNoteStealingEnabled), the synthesiser will use the voice stealing algorithm to find a free voice for the note (if no voices are free otherwise).</p>
<p>This method will be called automatically according to the midi data passed into <a class="el" href="structMPESynthesiserBase.html#a6b0bfbf04857771b9df5c49ea7ba14df" title="Creates the next block of audio output. ">renderNextBlock()</a>. Do not call it yourself, otherwise the internal MPE note state will become inconsistent. </p>

<p>Implements <a class="el" href="classMPEInstrument_1_1Listener.html#a3ed24fc611a2d655a0a7c06eb0883b6a">MPEInstrument::Listener</a>.</p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MPESynthesiser::noteReleased </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMPENote.html">MPENote</a>&#160;</td>
          <td class="paramname"><em>finishedNote</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Stops playing a note. </p>
<p>This will be called whenever an MPE note is released (either by a note-off message, or by a sustain/sostenuto pedal release for a note that already received a note-off), and should therefore stop playing.</p>
<p>This will find any voice that is currently playing finishedNote, turn its currently playing note off, and call its noteStopped callback.</p>
<p>This method will be called automatically according to the midi data passed into <a class="el" href="structMPESynthesiserBase.html#a6b0bfbf04857771b9df5c49ea7ba14df" title="Creates the next block of audio output. ">renderNextBlock()</a>. Do not call it yourself, otherwise the internal MPE note state will become inconsistent. </p>

<p>Implements <a class="el" href="classMPEInstrument_1_1Listener.html#ac5ebbf72827b08d96c1e9c45de27c317">MPEInstrument::Listener</a>.</p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MPESynthesiser::notePressureChanged </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMPENote.html">MPENote</a>&#160;</td>
          <td class="paramname"><em>changedNote</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Will find any voice that is currently playing changedNote, update its currently playing note, and call its notePressureChanged method. </p>
<p>This method will be called automatically according to the midi data passed into <a class="el" href="structMPESynthesiserBase.html#a6b0bfbf04857771b9df5c49ea7ba14df" title="Creates the next block of audio output. ">renderNextBlock()</a>. Do not call it yourself. </p>

<p>Implements <a class="el" href="classMPEInstrument_1_1Listener.html#adc06f3989c5cd699ae97c391d2117b42">MPEInstrument::Listener</a>.</p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MPESynthesiser::notePitchbendChanged </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMPENote.html">MPENote</a>&#160;</td>
          <td class="paramname"><em>changedNote</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Will find any voice that is currently playing changedNote, update its currently playing note, and call its notePitchbendChanged method. </p>
<p>This method will be called automatically according to the midi data passed into <a class="el" href="structMPESynthesiserBase.html#a6b0bfbf04857771b9df5c49ea7ba14df" title="Creates the next block of audio output. ">renderNextBlock()</a>. Do not call it yourself. </p>

<p>Implements <a class="el" href="classMPEInstrument_1_1Listener.html#a47609333f6dc48544da697e9d42188ae">MPEInstrument::Listener</a>.</p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MPESynthesiser::noteTimbreChanged </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMPENote.html">MPENote</a>&#160;</td>
          <td class="paramname"><em>changedNote</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Will find any voice that is currently playing changedNote, update its currently playing note, and call its noteTimbreChanged method. </p>
<p>This method will be called automatically according to the midi data passed into <a class="el" href="structMPESynthesiserBase.html#a6b0bfbf04857771b9df5c49ea7ba14df" title="Creates the next block of audio output. ">renderNextBlock()</a>. Do not call it yourself. </p>

<p>Implements <a class="el" href="classMPEInstrument_1_1Listener.html#a2479e31f024803b3a3379341c5a6fda1">MPEInstrument::Listener</a>.</p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MPESynthesiser::noteKeyStateChanged </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMPENote.html">MPENote</a>&#160;</td>
          <td class="paramname"><em>changedNote</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Will find any voice that is currently playing changedNote, update its currently playing note, and call its noteKeyStateChanged method. </p>
<p>This method will be called automatically according to the midi data passed into <a class="el" href="structMPESynthesiserBase.html#a6b0bfbf04857771b9df5c49ea7ba14df" title="Creates the next block of audio output. ">renderNextBlock()</a>. Do not call it yourself. </p>

<p>Implements <a class="el" href="classMPEInstrument_1_1Listener.html#a88c9dda48fed8107b7b5e355b1273d73">MPEInstrument::Listener</a>.</p>

</div>
</div>
<a id="a5192d64f9a0f664dbeb28b34e216381c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5192d64f9a0f664dbeb28b34e216381c">&sect;&nbsp;</a></span>renderNextSubBlock() <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">virtual void MPESynthesiser::renderNextSubBlock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classAudioBuffer.html">AudioBuffer</a>&lt; float &gt; &amp;&#160;</td>
          <td class="paramname"><em>outputAudio</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>startSample</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numSamples</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This will simply call renderNextBlock for each currently active voice and fill the buffer with the sum. </p>
<p>Override this method if you need to do more work to render your audio. </p>

<p>Implements <a class="el" href="structMPESynthesiserBase.html#a35cb8fe7b87b603884ee3f4837be07aa">MPESynthesiserBase</a>.</p>

</div>
</div>
<a id="a98c17883ec58f43951ac70026cb7ffd8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98c17883ec58f43951ac70026cb7ffd8">&sect;&nbsp;</a></span>renderNextSubBlock() <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">virtual void MPESynthesiser::renderNextSubBlock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classAudioBuffer.html">AudioBuffer</a>&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>outputAudio</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>startSample</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numSamples</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This will simply call renderNextBlock for each currently active voice and fill the buffer with the sum. </p>
<p>(souble-precision version) Override this method if you need to do more work to render your audio. </p>

<p>Reimplemented from <a class="el" href="structMPESynthesiserBase.html#a7eb0cef08098b387967879d30efee749">MPESynthesiserBase</a>.</p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a>* MPESynthesiser::findFreeVoice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMPENote.html">MPENote</a>&#160;</td>
          <td class="paramname"><em>noteToFindVoiceFor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>stealIfNoneAvailable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Searches through the voices to find one that's not currently playing, and which can play the given MPE note. </p>
<p>If all voices are active and stealIfNoneAvailable is false, this returns a nullptr. If all voices are active and stealIfNoneAvailable is true, this will call <a class="el" href="classMPESynthesiser.html#aaa05024e912f26a9e34e3ef8a65c4985" title="Chooses a voice that is most suitable for being re-used to play a new note, or for being deleted by r...">findVoiceToSteal()</a> to find a voice.</p>
<p>If you need to find a free voice for something else than playing a note (e.g. for deleting it), you can pass an invalid (default-constructed) <a class="el" href="structMPENote.html" title="This struct represents a playing MPE note. ">MPENote</a>. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a>* MPESynthesiser::findVoiceToSteal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMPENote.html">MPENote</a>&#160;</td>
          <td class="paramname"><em>noteToStealVoiceFor</em> = <code><a class="el" href="structMPENote.html">MPENote</a>()</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Chooses a voice that is most suitable for being re-used to play a new note, or for being deleted by reduceNumVoices. </p>
<p>The default method will attempt to find the oldest voice that isn't the bottom or top note being played. If that's not suitable for your synth, you can override this method and do something more cunning instead.</p>
<p>If you pass a valid <a class="el" href="structMPENote.html" title="This struct represents a playing MPE note. ">MPENote</a> for the optional argument, then the note number of that note will be taken into account for finding the ideal voice to steal. If you pass an invalid (default-constructed) <a class="el" href="structMPENote.html" title="This struct represents a playing MPE note. ">MPENote</a> instead, this part of the algorithm will be ignored. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MPESynthesiser::startVoice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a> *&#160;</td>
          <td class="paramname"><em>voice</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structMPENote.html">MPENote</a>&#160;</td>
          <td class="paramname"><em>noteToStart</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Starts a specified voice and tells it to play a particular <a class="el" href="structMPENote.html" title="This struct represents a playing MPE note. ">MPENote</a>. </p>
<p>You should never need to call this, it's called internally by <a class="el" href="structMPESynthesiserBase.html#a714dfff07d6efda0363f4f0e62839482">MPESynthesiserBase::instrument</a> via the noteStarted callback, but is protected in case it's useful for some custom subclasses. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MPESynthesiser::stopVoice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a> *&#160;</td>
          <td class="paramname"><em>voice</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structMPENote.html">MPENote</a>&#160;</td>
          <td class="paramname"><em>noteToStop</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>allowTailOff</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Stops a given voice and tells it to stop playing a particular <a class="el" href="structMPENote.html" title="This struct represents a playing MPE note. ">MPENote</a> (which should be the same note it is actually playing). </p>
<p>You should never need to call this, it's called internally by <a class="el" href="structMPESynthesiserBase.html#a714dfff07d6efda0363f4f0e62839482">MPESynthesiserBase::instrument</a> via the noteReleased callback, but is protected in case it's useful for some custom subclasses. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ae8ff04bfb33a5de6d649ed78bab37274"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8ff04bfb33a5de6d649ed78bab37274">&sect;&nbsp;</a></span>voices</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="classOwnedArray.html">OwnedArray</a>&lt;<a class="el" href="classMPESynthesiserVoice.html">MPESynthesiserVoice</a>&gt; MPESynthesiser::voices</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

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