This file is indexed.

/usr/share/doc/libjuce/apiref/classSynthesiser.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
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
<!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: Synthesiser 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="classSynthesiser-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Synthesiser Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Base class for a musical device that can play sounds.  
 <a href="classSynthesiser.html#details">More...</a></p>
<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:a8c313d6f1fa875790e5c79dc621ee437"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a8c313d6f1fa875790e5c79dc621ee437">Synthesiser</a> ()</td></tr>
<tr class="memdesc:a8c313d6f1fa875790e5c79dc621ee437"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new synthesiser.  <a href="#a8c313d6f1fa875790e5c79dc621ee437">More...</a><br /></td></tr>
<tr class="separator:a8c313d6f1fa875790e5c79dc621ee437"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af92647b0dced33f5c3a99be3ddcfcd8e"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#af92647b0dced33f5c3a99be3ddcfcd8e">~Synthesiser</a> ()</td></tr>
<tr class="memdesc:af92647b0dced33f5c3a99be3ddcfcd8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#af92647b0dced33f5c3a99be3ddcfcd8e">More...</a><br /></td></tr>
<tr class="separator:af92647b0dced33f5c3a99be3ddcfcd8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94391dd12deab56c0fa8079fd97e7f55"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a94391dd12deab56c0fa8079fd97e7f55">clearVoices</a> ()</td></tr>
<tr class="memdesc:a94391dd12deab56c0fa8079fd97e7f55"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deletes all voices.  <a href="#a94391dd12deab56c0fa8079fd97e7f55">More...</a><br /></td></tr>
<tr class="separator:a94391dd12deab56c0fa8079fd97e7f55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8c97159cdb74440314ca50ad312d31a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#ac8c97159cdb74440314ca50ad312d31a">getNumVoices</a> () const noexcept</td></tr>
<tr class="memdesc:ac8c97159cdb74440314ca50ad312d31a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of voices that have been added.  <a href="#ac8c97159cdb74440314ca50ad312d31a">More...</a><br /></td></tr>
<tr class="separator:ac8c97159cdb74440314ca50ad312d31a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab81708603690f13cf5c29b8e7e7e519c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSynthesiserVoice.html">SynthesiserVoice</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#ab81708603690f13cf5c29b8e7e7e519c">getVoice</a> (int index) const</td></tr>
<tr class="memdesc:ab81708603690f13cf5c29b8e7e7e519c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns one of the voices that have been added.  <a href="#ab81708603690f13cf5c29b8e7e7e519c">More...</a><br /></td></tr>
<tr class="separator:ab81708603690f13cf5c29b8e7e7e519c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0806a426d99a36367c714b7d433d4d4e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSynthesiserVoice.html">SynthesiserVoice</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a0806a426d99a36367c714b7d433d4d4e">addVoice</a> (<a class="el" href="classSynthesiserVoice.html">SynthesiserVoice</a> *newVoice)</td></tr>
<tr class="memdesc:a0806a426d99a36367c714b7d433d4d4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a new voice to the synth.  <a href="#a0806a426d99a36367c714b7d433d4d4e">More...</a><br /></td></tr>
<tr class="separator:a0806a426d99a36367c714b7d433d4d4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5478d766609fad27af17ed011f2422dd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a5478d766609fad27af17ed011f2422dd">removeVoice</a> (int index)</td></tr>
<tr class="memdesc:a5478d766609fad27af17ed011f2422dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deletes one of the voices.  <a href="#a5478d766609fad27af17ed011f2422dd">More...</a><br /></td></tr>
<tr class="separator:a5478d766609fad27af17ed011f2422dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6dc83c7e8c7ce8e06a5fe08ae2e3018"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#af6dc83c7e8c7ce8e06a5fe08ae2e3018">clearSounds</a> ()</td></tr>
<tr class="memdesc:af6dc83c7e8c7ce8e06a5fe08ae2e3018"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deletes all sounds.  <a href="#af6dc83c7e8c7ce8e06a5fe08ae2e3018">More...</a><br /></td></tr>
<tr class="separator:af6dc83c7e8c7ce8e06a5fe08ae2e3018"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed27b08e9ce240546294b109a6c31c7e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#aed27b08e9ce240546294b109a6c31c7e">getNumSounds</a> () const noexcept</td></tr>
<tr class="memdesc:aed27b08e9ce240546294b109a6c31c7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of sounds that have been added to the synth.  <a href="#aed27b08e9ce240546294b109a6c31c7e">More...</a><br /></td></tr>
<tr class="separator:aed27b08e9ce240546294b109a6c31c7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71626e6df15d04f19688a1f19e7a3285"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSynthesiserSound.html">SynthesiserSound</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a71626e6df15d04f19688a1f19e7a3285">getSound</a> (int index) const noexcept</td></tr>
<tr class="memdesc:a71626e6df15d04f19688a1f19e7a3285"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns one of the sounds.  <a href="#a71626e6df15d04f19688a1f19e7a3285">More...</a><br /></td></tr>
<tr class="separator:a71626e6df15d04f19688a1f19e7a3285"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac76a3fe3505d18da550eddec5d151cab"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSynthesiserSound.html">SynthesiserSound</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#ac76a3fe3505d18da550eddec5d151cab">addSound</a> (const <a class="el" href="classSynthesiserSound.html#a602e767cdfca63dd73df1f0d5c723ef8">SynthesiserSound::Ptr</a> &amp;newSound)</td></tr>
<tr class="memdesc:ac76a3fe3505d18da550eddec5d151cab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a new sound to the synthesiser.  <a href="#ac76a3fe3505d18da550eddec5d151cab">More...</a><br /></td></tr>
<tr class="separator:ac76a3fe3505d18da550eddec5d151cab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e90dec472345cac6c827fb402fd382f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a4e90dec472345cac6c827fb402fd382f">removeSound</a> (int index)</td></tr>
<tr class="memdesc:a4e90dec472345cac6c827fb402fd382f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes and deletes one of the sounds.  <a href="#a4e90dec472345cac6c827fb402fd382f">More...</a><br /></td></tr>
<tr class="separator:a4e90dec472345cac6c827fb402fd382f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0bbfe2c3819167dc5d98b27b21843eb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#ae0bbfe2c3819167dc5d98b27b21843eb">setNoteStealingEnabled</a> (bool shouldStealNotes)</td></tr>
<tr class="memdesc:ae0bbfe2c3819167dc5d98b27b21843eb"><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="#ae0bbfe2c3819167dc5d98b27b21843eb">More...</a><br /></td></tr>
<tr class="separator:ae0bbfe2c3819167dc5d98b27b21843eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a069564c6c68a5cbd4872fa3da0e80d1f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a069564c6c68a5cbd4872fa3da0e80d1f">isNoteStealingEnabled</a> () const noexcept</td></tr>
<tr class="memdesc:a069564c6c68a5cbd4872fa3da0e80d1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if note-stealing is enabled.  <a href="#a069564c6c68a5cbd4872fa3da0e80d1f">More...</a><br /></td></tr>
<tr class="separator:a069564c6c68a5cbd4872fa3da0e80d1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a488dbf4f02973011c95656eefc1fb862"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a488dbf4f02973011c95656eefc1fb862">noteOn</a> (int midiChannel, int midiNoteNumber, float velocity)</td></tr>
<tr class="memdesc:a488dbf4f02973011c95656eefc1fb862"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers a note-on event.  <a href="#a488dbf4f02973011c95656eefc1fb862">More...</a><br /></td></tr>
<tr class="separator:a488dbf4f02973011c95656eefc1fb862"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af67d93a1499cbd875c6187cbd4add517"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#af67d93a1499cbd875c6187cbd4add517">noteOff</a> (int midiChannel, int midiNoteNumber, float velocity, bool allowTailOff)</td></tr>
<tr class="memdesc:af67d93a1499cbd875c6187cbd4add517"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers a note-off event.  <a href="#af67d93a1499cbd875c6187cbd4add517">More...</a><br /></td></tr>
<tr class="separator:af67d93a1499cbd875c6187cbd4add517"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac39e7b038c545b92e9f69b47bce54934"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#ac39e7b038c545b92e9f69b47bce54934">allNotesOff</a> (int midiChannel, bool allowTailOff)</td></tr>
<tr class="memdesc:ac39e7b038c545b92e9f69b47bce54934"><td class="mdescLeft">&#160;</td><td class="mdescRight">Turns off all notes.  <a href="#ac39e7b038c545b92e9f69b47bce54934">More...</a><br /></td></tr>
<tr class="separator:ac39e7b038c545b92e9f69b47bce54934"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab0454e1b68d82aada5b7d4561b3af49"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#aab0454e1b68d82aada5b7d4561b3af49">handlePitchWheel</a> (int midiChannel, int wheelValue)</td></tr>
<tr class="memdesc:aab0454e1b68d82aada5b7d4561b3af49"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends a pitch-wheel message to any active voices.  <a href="#aab0454e1b68d82aada5b7d4561b3af49">More...</a><br /></td></tr>
<tr class="separator:aab0454e1b68d82aada5b7d4561b3af49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2dc8a91aff04f2e23b6ac22b4dd80a8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#ae2dc8a91aff04f2e23b6ac22b4dd80a8">handleController</a> (int midiChannel, int controllerNumber, int controllerValue)</td></tr>
<tr class="memdesc:ae2dc8a91aff04f2e23b6ac22b4dd80a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends a midi controller message to any active voices.  <a href="#ae2dc8a91aff04f2e23b6ac22b4dd80a8">More...</a><br /></td></tr>
<tr class="separator:ae2dc8a91aff04f2e23b6ac22b4dd80a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae92ed64d170257574b9009b3384bde01"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#ae92ed64d170257574b9009b3384bde01">handleAftertouch</a> (int midiChannel, int midiNoteNumber, int aftertouchValue)</td></tr>
<tr class="memdesc:ae92ed64d170257574b9009b3384bde01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends an aftertouch message.  <a href="#ae92ed64d170257574b9009b3384bde01">More...</a><br /></td></tr>
<tr class="separator:ae92ed64d170257574b9009b3384bde01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1f2fdbce8a6502c52c70d34c3e52697"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#aa1f2fdbce8a6502c52c70d34c3e52697">handleChannelPressure</a> (int midiChannel, int channelPressureValue)</td></tr>
<tr class="memdesc:aa1f2fdbce8a6502c52c70d34c3e52697"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sends a channel pressure message.  <a href="#aa1f2fdbce8a6502c52c70d34c3e52697">More...</a><br /></td></tr>
<tr class="separator:aa1f2fdbce8a6502c52c70d34c3e52697"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a393f210a6c793d6d38221a346e961a23"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a393f210a6c793d6d38221a346e961a23">handleSustainPedal</a> (int midiChannel, bool isDown)</td></tr>
<tr class="memdesc:a393f210a6c793d6d38221a346e961a23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles a sustain pedal event.  <a href="#a393f210a6c793d6d38221a346e961a23">More...</a><br /></td></tr>
<tr class="separator:a393f210a6c793d6d38221a346e961a23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7876cd621f700a1500cfc026f082f2a4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a7876cd621f700a1500cfc026f082f2a4">handleSostenutoPedal</a> (int midiChannel, bool isDown)</td></tr>
<tr class="memdesc:a7876cd621f700a1500cfc026f082f2a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles a sostenuto pedal event.  <a href="#a7876cd621f700a1500cfc026f082f2a4">More...</a><br /></td></tr>
<tr class="separator:a7876cd621f700a1500cfc026f082f2a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab543d69d50273a8adce9b54b145a28eb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#ab543d69d50273a8adce9b54b145a28eb">handleSoftPedal</a> (int midiChannel, bool isDown)</td></tr>
<tr class="memdesc:ab543d69d50273a8adce9b54b145a28eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Can be overridden to handle soft pedal events.  <a href="#ab543d69d50273a8adce9b54b145a28eb">More...</a><br /></td></tr>
<tr class="separator:ab543d69d50273a8adce9b54b145a28eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a542e7ea8aaed30728dfa72a898ae1a9f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a542e7ea8aaed30728dfa72a898ae1a9f">handleProgramChange</a> (int midiChannel, int programNumber)</td></tr>
<tr class="memdesc:a542e7ea8aaed30728dfa72a898ae1a9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Can be overridden to handle an incoming program change message.  <a href="#a542e7ea8aaed30728dfa72a898ae1a9f">More...</a><br /></td></tr>
<tr class="separator:a542e7ea8aaed30728dfa72a898ae1a9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0d6808e5a22bc3a56a68dab1f106ab8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#ae0d6808e5a22bc3a56a68dab1f106ab8">setCurrentPlaybackSampleRate</a> (double sampleRate)</td></tr>
<tr class="memdesc:ae0d6808e5a22bc3a56a68dab1f106ab8"><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="#ae0d6808e5a22bc3a56a68dab1f106ab8">More...</a><br /></td></tr>
<tr class="separator:ae0d6808e5a22bc3a56a68dab1f106ab8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56b85b35ec0fbf296c58571ab5bc2ed8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a56b85b35ec0fbf296c58571ab5bc2ed8">renderNextBlock</a> (<a class="el" href="classAudioBuffer.html">AudioBuffer</a>&lt; float &gt; &amp;outputAudio, const <a class="el" href="classMidiBuffer.html">MidiBuffer</a> &amp;inputMidi, int startSample, int numSamples)</td></tr>
<tr class="memdesc:a56b85b35ec0fbf296c58571ab5bc2ed8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates the next block of audio output.  <a href="#a56b85b35ec0fbf296c58571ab5bc2ed8">More...</a><br /></td></tr>
<tr class="separator:a56b85b35ec0fbf296c58571ab5bc2ed8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a639d740854635aa4e962367b380c655a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a639d740854635aa4e962367b380c655a">renderNextBlock</a> (<a class="el" href="classAudioBuffer.html">AudioBuffer</a>&lt; double &gt; &amp;outputAudio, const <a class="el" href="classMidiBuffer.html">MidiBuffer</a> &amp;inputMidi, int startSample, int numSamples)</td></tr>
<tr class="separator:a639d740854635aa4e962367b380c655a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af48b8565967d86777ac5229559635bd6"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#af48b8565967d86777ac5229559635bd6">getSampleRate</a> () const noexcept</td></tr>
<tr class="memdesc:af48b8565967d86777ac5229559635bd6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current target sample rate at which rendering is being done.  <a href="#af48b8565967d86777ac5229559635bd6">More...</a><br /></td></tr>
<tr class="separator:af48b8565967d86777ac5229559635bd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a8e6d1bffae06cbe61b69488c97fa49"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a4a8e6d1bffae06cbe61b69488c97fa49">setMinimumRenderingSubdivisionSize</a> (int numSamples, bool shouldBeStrict=false) noexcept</td></tr>
<tr class="memdesc:a4a8e6d1bffae06cbe61b69488c97fa49"><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="#a4a8e6d1bffae06cbe61b69488c97fa49">More...</a><br /></td></tr>
<tr class="separator:a4a8e6d1bffae06cbe61b69488c97fa49"><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:a838f270e38f2c79c38a1085284f1fc41"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a838f270e38f2c79c38a1085284f1fc41">renderVoices</a> (<a class="el" href="classAudioBuffer.html">AudioBuffer</a>&lt; float &gt; &amp;outputAudio, int startSample, int numSamples)</td></tr>
<tr class="memdesc:a838f270e38f2c79c38a1085284f1fc41"><td class="mdescLeft">&#160;</td><td class="mdescRight">Renders the voices for the given range.  <a href="#a838f270e38f2c79c38a1085284f1fc41">More...</a><br /></td></tr>
<tr class="separator:a838f270e38f2c79c38a1085284f1fc41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0682b53979e6f2ed5f08b385d155c60c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a0682b53979e6f2ed5f08b385d155c60c">renderVoices</a> (<a class="el" href="classAudioBuffer.html">AudioBuffer</a>&lt; double &gt; &amp;outputAudio, int startSample, int numSamples)</td></tr>
<tr class="separator:a0682b53979e6f2ed5f08b385d155c60c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e2681f24821206a0ea681cc72f5cffa"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classSynthesiserVoice.html">SynthesiserVoice</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a9e2681f24821206a0ea681cc72f5cffa">findFreeVoice</a> (<a class="el" href="classSynthesiserSound.html">SynthesiserSound</a> *soundToPlay, int midiChannel, int midiNoteNumber, bool stealIfNoneAvailable) const</td></tr>
<tr class="memdesc:a9e2681f24821206a0ea681cc72f5cffa"><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 sound.  <a href="#a9e2681f24821206a0ea681cc72f5cffa">More...</a><br /></td></tr>
<tr class="separator:a9e2681f24821206a0ea681cc72f5cffa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a472a534d47f7e02f1224e77a95eadb3b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classSynthesiserVoice.html">SynthesiserVoice</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a472a534d47f7e02f1224e77a95eadb3b">findVoiceToSteal</a> (<a class="el" href="classSynthesiserSound.html">SynthesiserSound</a> *soundToPlay, int midiChannel, int midiNoteNumber) const</td></tr>
<tr class="memdesc:a472a534d47f7e02f1224e77a95eadb3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Chooses a voice that is most suitable for being re-used.  <a href="#a472a534d47f7e02f1224e77a95eadb3b">More...</a><br /></td></tr>
<tr class="separator:a472a534d47f7e02f1224e77a95eadb3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7004a46197236e29ae67916f8932d0a4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a7004a46197236e29ae67916f8932d0a4">startVoice</a> (<a class="el" href="classSynthesiserVoice.html">SynthesiserVoice</a> *voice, <a class="el" href="classSynthesiserSound.html">SynthesiserSound</a> *sound, int midiChannel, int midiNoteNumber, float velocity)</td></tr>
<tr class="memdesc:a7004a46197236e29ae67916f8932d0a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts a specified voice playing a particular sound.  <a href="#a7004a46197236e29ae67916f8932d0a4">More...</a><br /></td></tr>
<tr class="separator:a7004a46197236e29ae67916f8932d0a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a715f8ad1d64d728fb2ab764acf939bdb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a715f8ad1d64d728fb2ab764acf939bdb">stopVoice</a> (<a class="el" href="classSynthesiserVoice.html">SynthesiserVoice</a> *, float velocity, bool allowTailOff)</td></tr>
<tr class="memdesc:a715f8ad1d64d728fb2ab764acf939bdb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops a given voice.  <a href="#a715f8ad1d64d728fb2ab764acf939bdb">More...</a><br /></td></tr>
<tr class="separator:a715f8ad1d64d728fb2ab764acf939bdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1b6110e669459c9b8571ade51dd9b91"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#ae1b6110e669459c9b8571ade51dd9b91">handleMidiEvent</a> (const <a class="el" href="classMidiMessage.html">MidiMessage</a> &amp;)</td></tr>
<tr class="memdesc:ae1b6110e669459c9b8571ade51dd9b91"><td class="mdescLeft">&#160;</td><td class="mdescRight">Can be overridden to do custom handling of incoming midi events.  <a href="#ae1b6110e669459c9b8571ade51dd9b91">More...</a><br /></td></tr>
<tr class="separator:ae1b6110e669459c9b8571ade51dd9b91"><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:ab55f2810b6455736110264625a25c4a6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCriticalSection.html">CriticalSection</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#ab55f2810b6455736110264625a25c4a6">lock</a></td></tr>
<tr class="memdesc:ab55f2810b6455736110264625a25c4a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is used to control access to the rendering callback and the note trigger methods.  <a href="#ab55f2810b6455736110264625a25c4a6">More...</a><br /></td></tr>
<tr class="separator:ab55f2810b6455736110264625a25c4a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a260d964d6764a51b2315233e0bf76980"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOwnedArray.html">OwnedArray</a>&lt; <a class="el" href="classSynthesiserVoice.html">SynthesiserVoice</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#a260d964d6764a51b2315233e0bf76980">voices</a></td></tr>
<tr class="separator:a260d964d6764a51b2315233e0bf76980"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac64f99f204a1d5a567422cd9d5217081"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; <a class="el" href="classSynthesiserSound.html">SynthesiserSound</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#ac64f99f204a1d5a567422cd9d5217081">sounds</a></td></tr>
<tr class="separator:ac64f99f204a1d5a567422cd9d5217081"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acceafe04420ce625e025e4a73c370ce4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSynthesiser.html#acceafe04420ce625e025e4a73c370ce4">lastPitchWheelValues</a> [16]</td></tr>
<tr class="memdesc:acceafe04420ce625e025e4a73c370ce4"><td class="mdescLeft">&#160;</td><td class="mdescRight">The last pitch-wheel values for each midi channel.  <a href="#acceafe04420ce625e025e4a73c370ce4">More...</a><br /></td></tr>
<tr class="separator:acceafe04420ce625e025e4a73c370ce4"><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 a musical device that can play sounds. </p>
<p>To create a synthesiser, you'll need to create a subclass of <a class="el" href="classSynthesiserSound.html" title="Describes one of the sounds that a Synthesiser can play. ">SynthesiserSound</a> to describe each sound available to your synth, and a subclass of <a class="el" href="classSynthesiserVoice.html" title="Represents a voice that a Synthesiser can use to play a SynthesiserSound. ">SynthesiserVoice</a> which can play back one of these sounds.</p>
<p>Then you can use the <a class="el" href="classSynthesiser.html#a0806a426d99a36367c714b7d433d4d4e" title="Adds a new voice to the synth. ">addVoice()</a> and <a class="el" href="classSynthesiser.html#ac76a3fe3505d18da550eddec5d151cab" title="Adds a new sound to the synthesiser. ">addSound()</a> methods to give the synthesiser a set of sounds, and a set of voices it can use to play them. 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="classSynthesiser.html#a56b85b35ec0fbf296c58571ab5bc2ed8" title="Creates the next block of audio output. ">renderNextBlock()</a> method to produce the audio. Any midi events that go in will be scanned for note on/off messages, and these are used to start and stop the voices playing the appropriate sounds.</p>
<p>While it's playing, you can also cause notes to be triggered by calling the <a class="el" href="classSynthesiser.html#a488dbf4f02973011c95656eefc1fb862" title="Triggers a note-on event. ">noteOn()</a>, <a class="el" href="classSynthesiser.html#af67d93a1499cbd875c6187cbd4add517" title="Triggers a note-off event. ">noteOff()</a> and other controller methods.</p>
<p>Before rendering, be sure to call the <a class="el" href="classSynthesiser.html#ae0d6808e5a22bc3a56a68dab1f106ab8" 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>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a8c313d6f1fa875790e5c79dc621ee437"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c313d6f1fa875790e5c79dc621ee437">&sect;&nbsp;</a></span>Synthesiser()</h2>

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

<p>Creates a new synthesiser. </p>
<p>You'll need to add some sounds and voices before it'll make any sound. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual Synthesiser::~Synthesiser </td>
          <td>(</td>
          <td class="paramname"></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>Destructor. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Synthesiser::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="ac8c97159cdb74440314ca50ad312d31a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8c97159cdb74440314ca50ad312d31a">&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 Synthesiser::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="ab81708603690f13cf5c29b8e7e7e519c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab81708603690f13cf5c29b8e7e7e519c">&sect;&nbsp;</a></span>getVoice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSynthesiserVoice.html">SynthesiserVoice</a>* Synthesiser::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="a0806a426d99a36367c714b7d433d4d4e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0806a426d99a36367c714b7d433d4d4e">&sect;&nbsp;</a></span>addVoice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSynthesiserVoice.html">SynthesiserVoice</a>* Synthesiser::addVoice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classSynthesiserVoice.html">SynthesiserVoice</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="a5478d766609fad27af17ed011f2422dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5478d766609fad27af17ed011f2422dd">&sect;&nbsp;</a></span>removeVoice()</h2>

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

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

<p>Deletes all sounds. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Synthesiser::getNumSounds </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 sounds that have been added to the synth. </p>

</div>
</div>
<a id="a71626e6df15d04f19688a1f19e7a3285"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71626e6df15d04f19688a1f19e7a3285">&sect;&nbsp;</a></span>getSound()</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="classSynthesiserSound.html">SynthesiserSound</a>* Synthesiser::getSound </td>
          <td>(</td>
          <td class="paramtype">int&#160;</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 one of the sounds. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classSynthesiserSound.html">SynthesiserSound</a>* Synthesiser::addSound </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classSynthesiserSound.html#a602e767cdfca63dd73df1f0d5c723ef8">SynthesiserSound::Ptr</a> &amp;&#160;</td>
          <td class="paramname"><em>newSound</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a new sound to the synthesiser. </p>
<p>The object passed in is reference counted, so will be deleted when the synthesiser and all voices are no longer using it. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Synthesiser::removeSound </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>Removes and deletes one of the sounds. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Synthesiser::setNoteStealingEnabled </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>shouldStealNotes</em></td><td>)</td>
          <td></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="classSynthesiser.html#a9e2681f24821206a0ea681cc72f5cffa" title="Searches through the voices to find one that&#39;s not currently playing, and which can play the given so...">findFreeVoice()</a>, so the result will depend on the implementation of this method. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Synthesiser::isNoteStealingEnabled </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>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classSynthesiser.html#ae0bbfe2c3819167dc5d98b27b21843eb" title="If set to true, then the synth will try to take over an existing voice if it runs out and needs to pl...">setNoteStealingEnabled</a> </dd></dl>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Synthesiser::noteOn </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiNoteNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>velocity</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Triggers a note-on event. </p>
<p>The default method here will find all the sounds that want to be triggered by this note/channel. For each sound, it'll try to find a free voice, and use the voice to start playing the sound.</p>
<p>Subclasses might want to override this if they need a more complex algorithm.</p>
<p>This method will be called automatically according to the midi data passed into <a class="el" href="classSynthesiser.html#a56b85b35ec0fbf296c58571ab5bc2ed8" title="Creates the next block of audio output. ">renderNextBlock()</a>, but may be called explicitly too.</p>
<p>The midiChannel parameter is the channel, between 1 and 16 inclusive. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Synthesiser::noteOff </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiNoteNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>velocity</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Triggers a note-off event. </p>
<p>This will turn off any voices that are playing a sound for the given note/channel.</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 will be called automatically according to the midi data passed into <a class="el" href="classSynthesiser.html#a56b85b35ec0fbf296c58571ab5bc2ed8" title="Creates the next block of audio output. ">renderNextBlock()</a>, but may be called explicitly too.</p>
<p>The midiChannel parameter is the channel, between 1 and 16 inclusive. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Synthesiser::allNotesOff </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Turns off all notes. </p>
<p>This will turn off any voices that are playing a sound on the given midi channel.</p>
<p>If midiChannel is 0 or less, then all voices will be turned off, regardless of which channel they're playing. Otherwise it represents a valid midi channel, from 1 to 16 inclusive.</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 will be called automatically according to the midi data passed into <a class="el" href="classSynthesiser.html#a56b85b35ec0fbf296c58571ab5bc2ed8" title="Creates the next block of audio output. ">renderNextBlock()</a>, but may be called explicitly too. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Synthesiser::handlePitchWheel </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>wheelValue</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sends a pitch-wheel message to any active voices. </p>
<p>This will send a pitch-wheel message to any voices that are playing sounds on the given midi channel.</p>
<p>This method will be called automatically according to the midi data passed into <a class="el" href="classSynthesiser.html#a56b85b35ec0fbf296c58571ab5bc2ed8" title="Creates the next block of audio output. ">renderNextBlock()</a>, but may be called explicitly too.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">midiChannel</td><td>the midi channel, from 1 to 16 inclusive </td></tr>
    <tr><td class="paramname">wheelValue</td><td>the wheel position, from 0 to 0x3fff, as returned by <a class="el" href="classMidiMessage.html#aaa9675ccbce68b47067b512370e2ac20" title="Returns the pitch wheel position from a pitch-wheel move message. ">MidiMessage::getPitchWheelValue()</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ae2dc8a91aff04f2e23b6ac22b4dd80a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae2dc8a91aff04f2e23b6ac22b4dd80a8">&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 Synthesiser::handleController </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>controllerNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>controllerValue</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sends a midi controller message to any active voices. </p>
<p>This will send a midi controller message to any voices that are playing sounds on the given midi channel.</p>
<p>This method will be called automatically according to the midi data passed into <a class="el" href="classSynthesiser.html#a56b85b35ec0fbf296c58571ab5bc2ed8" title="Creates the next block of audio output. ">renderNextBlock()</a>, but may be called explicitly too.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">midiChannel</td><td>the midi channel, from 1 to 16 inclusive </td></tr>
    <tr><td class="paramname">controllerNumber</td><td>the midi controller type, as returned by <a class="el" href="classMidiMessage.html#a772acb26aa7f2cdc1992210b6d2d496a" title="Returns the controller number of a controller message. ">MidiMessage::getControllerNumber()</a> </td></tr>
    <tr><td class="paramname">controllerValue</td><td>the midi controller value, between 0 and 127, as returned by <a class="el" href="classMidiMessage.html#aa301aa18dace968d5ebb2f809fd52522" title="Returns the controller value from a controller message. ">MidiMessage::getControllerValue()</a> </td></tr>
  </table>
  </dd>
</dl>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Synthesiser::handleAftertouch </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiNoteNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>aftertouchValue</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sends an aftertouch message. </p>
<p>This will send an aftertouch message to any voices that are playing sounds on the given midi channel and note number.</p>
<p>This method will be called automatically according to the midi data passed into <a class="el" href="classSynthesiser.html#a56b85b35ec0fbf296c58571ab5bc2ed8" title="Creates the next block of audio output. ">renderNextBlock()</a>, but may be called explicitly too.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">midiChannel</td><td>the midi channel, from 1 to 16 inclusive </td></tr>
    <tr><td class="paramname">midiNoteNumber</td><td>the midi note number, 0 to 127 </td></tr>
    <tr><td class="paramname">aftertouchValue</td><td>the aftertouch value, between 0 and 127, as returned by MidiMessage::getAftertouchValue() </td></tr>
  </table>
  </dd>
</dl>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Synthesiser::handleChannelPressure </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>channelPressureValue</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sends a channel pressure message. </p>
<p>This will send a channel pressure message to any voices that are playing sounds on the given midi channel.</p>
<p>This method will be called automatically according to the midi data passed into <a class="el" href="classSynthesiser.html#a56b85b35ec0fbf296c58571ab5bc2ed8" title="Creates the next block of audio output. ">renderNextBlock()</a>, but may be called explicitly too.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">midiChannel</td><td>the midi channel, from 1 to 16 inclusive </td></tr>
    <tr><td class="paramname">channelPressureValue</td><td>the pressure value, between 0 and 127, as returned by <a class="el" href="classMidiMessage.html#aa9dc36194c26bb72f35d8522f60b3ac1" title="Returns the pressure from a channel pressure change message. ">MidiMessage::getChannelPressureValue()</a> </td></tr>
  </table>
  </dd>
</dl>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Synthesiser::handleSustainPedal </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isDown</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Handles a sustain pedal event. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Synthesiser::handleSostenutoPedal </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isDown</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Handles a sostenuto pedal event. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Synthesiser::handleSoftPedal </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isDown</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Can be overridden to handle soft pedal events. </p>

</div>
</div>
<a id="a542e7ea8aaed30728dfa72a898ae1a9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a542e7ea8aaed30728dfa72a898ae1a9f">&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 Synthesiser::handleProgramChange </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>programNumber</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">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Can be overridden to handle an incoming program change message. </p>
<p>The base class implementation of this has no effect, but you may want to make your own synth react to program changes. </p>

</div>
</div>
<a id="ae0d6808e5a22bc3a56a68dab1f106ab8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0d6808e5a22bc3a56a68dab1f106ab8">&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">virtual void Synthesiser::setCurrentPlaybackSampleRate </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sampleRate</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>Tells the synthesiser what the sample rate is for the audio it's being used to render. </p>
<p>This value is propagated to the voices so that they can use it to render the correct pitches. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Synthesiser::renderNextBlock </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">const <a class="el" href="classMidiBuffer.html">MidiBuffer</a> &amp;&#160;</td>
          <td class="paramname"><em>inputMidi</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>
</div><div class="memdoc">

<p>Creates the next block of audio output. </p>
<p>This will process the next numSamples of data from all the voices, and add that output to the audio block supplied, starting from the offset specified. Note that the data will be added to the current contents of the buffer, so you should clear it before calling this method if necessary.</p>
<p>The midi events in the inputMidi buffer are parsed for note and controller events, and these are used to trigger the voices. Note that the startSample offset applies both to the audio output buffer and the midi input buffer, so any midi events with timestamps outside the specified region will be ignored. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Synthesiser::renderNextBlock </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">const <a class="el" href="classMidiBuffer.html">MidiBuffer</a> &amp;&#160;</td>
          <td class="paramname"><em>inputMidi</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>
</div><div class="memdoc">

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double Synthesiser::getSampleRate </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 current target sample rate at which rendering is being done. </p>
<p>Subclasses may need to know this so that they can pitch things correctly. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Synthesiser::setMinimumRenderingSubdivisionSize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>shouldBeStrict</em> = <code>false</code>&#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">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets a minimum limit on the size to which audio sub-blocks will be divided when rendering. </p>
<p>When rendering, the audio blocks that are passed into <a class="el" href="classSynthesiser.html#a56b85b35ec0fbf296c58571ab5bc2ed8" title="Creates the next block of audio output. ">renderNextBlock()</a> will be split up into smaller blocks that lie between all the incoming midi messages, and it is these smaller sub-blocks that are rendered with multiple calls to <a class="el" href="classSynthesiser.html#a838f270e38f2c79c38a1085284f1fc41" title="Renders the voices for the given range. ">renderVoices()</a>.</p>
<p>Obviously in a pathological case where there are midi messages on every sample, then <a class="el" href="classSynthesiser.html#a838f270e38f2c79c38a1085284f1fc41" title="Renders the voices for the given range. ">renderVoices()</a> could be called once per sample and lead to poor performance, so this setting allows you to set a lower limit on the block size.</p>
<p>The default setting is 32, which means that midi messages are accurate to about &lt; 1ms accuracy, which is probably fine for most purposes, but you may want to increase or decrease this value for your synth.</p>
<p>If shouldBeStrict is true, the audio sub-blocks will strictly never be smaller than numSamples.</p>
<p>If shouldBeStrict is false (default), the first audio sub-block in the buffer is allowed to be smaller, to make sure that the first MIDI event in a buffer will always be sample-accurate (this can sometimes help to avoid quantisation or phasing issues). </p>

</div>
</div>
<a id="a838f270e38f2c79c38a1085284f1fc41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a838f270e38f2c79c38a1085284f1fc41">&sect;&nbsp;</a></span>renderVoices() <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 Synthesiser::renderVoices </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">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Renders the voices for the given range. </p>
<p>By default this just calls <a class="el" href="classSynthesiser.html#a56b85b35ec0fbf296c58571ab5bc2ed8" title="Creates the next block of audio output. ">renderNextBlock()</a> on each voice, but you may need to override it to handle custom cases. </p>

</div>
</div>
<a id="a0682b53979e6f2ed5f08b385d155c60c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0682b53979e6f2ed5f08b385d155c60c">&sect;&nbsp;</a></span>renderVoices() <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 Synthesiser::renderVoices </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">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a9e2681f24821206a0ea681cc72f5cffa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e2681f24821206a0ea681cc72f5cffa">&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="classSynthesiserVoice.html">SynthesiserVoice</a>* Synthesiser::findFreeVoice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classSynthesiserSound.html">SynthesiserSound</a> *&#160;</td>
          <td class="paramname"><em>soundToPlay</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiNoteNumber</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 sound. </p>
<p>Returns nullptr if all voices are busy and stealing isn't enabled.</p>
<p>To implement a custom note-stealing algorithm, you can either override this method, or (preferably) override <a class="el" href="classSynthesiser.html#a472a534d47f7e02f1224e77a95eadb3b" title="Chooses a voice that is most suitable for being re-used. ">findVoiceToSteal()</a>. </p>

</div>
</div>
<a id="a472a534d47f7e02f1224e77a95eadb3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a472a534d47f7e02f1224e77a95eadb3b">&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="classSynthesiserVoice.html">SynthesiserVoice</a>* Synthesiser::findVoiceToSteal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classSynthesiserSound.html">SynthesiserSound</a> *&#160;</td>
          <td class="paramname"><em>soundToPlay</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiNoteNumber</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>Chooses a voice that is most suitable for being re-used. </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>

</div>
</div>
<a id="a7004a46197236e29ae67916f8932d0a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7004a46197236e29ae67916f8932d0a4">&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 Synthesiser::startVoice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classSynthesiserVoice.html">SynthesiserVoice</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="classSynthesiserSound.html">SynthesiserSound</a> *&#160;</td>
          <td class="paramname"><em>sound</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>midiNoteNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>velocity</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 playing a particular sound. </p>
<p>You'll probably never need to call this, it's used internally by <a class="el" href="classSynthesiser.html#a488dbf4f02973011c95656eefc1fb862" title="Triggers a note-on event. ">noteOn()</a>, but may be needed by subclasses for custom behaviours. </p>

</div>
</div>
<a id="a715f8ad1d64d728fb2ab764acf939bdb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a715f8ad1d64d728fb2ab764acf939bdb">&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 Synthesiser::stopVoice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classSynthesiserVoice.html">SynthesiserVoice</a> *&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>velocity</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. </p>
<p>You should never need to call this, it's used internally by noteOff, but is protected in case it's useful for some custom subclasses. It basically just calls through to <a class="el" href="classSynthesiserVoice.html#ae1faf9289de24cdeb1d42289754601e6" title="Called to stop a note. ">SynthesiserVoice::stopNote()</a>, and has some assertions to sanity-check a few things. </p>

</div>
</div>
<a id="ae1b6110e669459c9b8571ade51dd9b91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1b6110e669459c9b8571ade51dd9b91">&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">virtual void Synthesiser::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">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Can be overridden to do custom handling of incoming midi events. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ab55f2810b6455736110264625a25c4a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab55f2810b6455736110264625a25c4a6">&sect;&nbsp;</a></span>lock</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="classCriticalSection.html">CriticalSection</a> Synthesiser::lock</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>This is used to control access to the rendering callback and the note trigger methods. </p>

</div>
</div>
<a id="a260d964d6764a51b2315233e0bf76980"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a260d964d6764a51b2315233e0bf76980">&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="classSynthesiserVoice.html">SynthesiserVoice</a>&gt; Synthesiser::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>
<a id="ac64f99f204a1d5a567422cd9d5217081"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac64f99f204a1d5a567422cd9d5217081">&sect;&nbsp;</a></span>sounds</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="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt;<a class="el" href="classSynthesiserSound.html">SynthesiserSound</a>&gt; Synthesiser::sounds</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>
<a id="acceafe04420ce625e025e4a73c370ce4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acceafe04420ce625e025e4a73c370ce4">&sect;&nbsp;</a></span>lastPitchWheelValues</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Synthesiser::lastPitchWheelValues[16]</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>The last pitch-wheel values for each midi channel. </p>

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