Lines Matching defs:voices
103 private SoftVoice[] voices;
213 this.voices = synth.getVoices();
230 for (int i = x; i < voices.length; i++)
231 if (!voices[i].active)
243 for (int j = 0; j < voices.length; j++) {
244 if (voices[j].stealer_channel == null) {
246 steal_channel = voices[j].channel;
248 if (voices[j].channel != 9) {
249 if (voices[j].channel > steal_channel)
250 steal_channel = voices[j].channel;
260 for (int j = 0; j < voices.length; j++) {
261 if (voices[j].channel == steal_channel) {
262 if (voices[j].stealer_channel == null && !voices[j].on) {
264 v = voices[j];
267 if (voices[j].voiceID < v.voiceID) {
268 v = voices[j];
276 for (int j = 0; j < voices.length; j++) {
277 if (voices[j].channel == steal_channel) {
278 if (voices[j].stealer_channel == null) {
280 v = voices[j];
283 if (voices[j].voiceID < v.voiceID) {
284 v = voices[j];
305 for (int j = 0; j < voices.length; j++) {
306 if (voices[j].stealer_channel == null && !voices[j].on) {
308 v = voices[j];
311 if (voices[j].voiceID < v.voiceID) {
312 v = voices[j];
320 for (int j = 0; j < voices.length; j++) {
321 if (voices[j].stealer_channel == null) {
323 v = voices[j];
326 if (voices[j].voiceID < v.voiceID) {
327 v = voices[j];
352 for (int i = 0; i < voices.length; i++)
353 if (voices[i].active && voices[i].voiceID == voice.voiceID)
354 voices[i].soundOff();
435 for (int i = 0; i < voices.length; i++) {
436 if ((voices[i].sustain || voices[i].on)
437 && voices[i].channel == channel && voices[i].active
438 && voices[i].note == noteNumber) {
439 voices[i].sustain = false;
440 voices[i].on = true;
441 voices[i].noteOff(0);
452 for (int i = 0; i < voices.length; i++) {
453 if (voices[i].on && voices[i].channel == channel
454 && voices[i].active
455 && voices[i].releaseTriggered == false) {
456 voices[i].portamento = true;
457 voices[i].setNote(noteNumber);
469 for (int i = 0; i < voices.length; i++) {
470 if (voices[i].on && voices[i].channel == channel
471 && voices[i].active
472 && voices[i].note == controller[84]
473 && voices[i].releaseTriggered == false) {
474 voices[i].portamento = true;
475 voices[i].setNote(noteNumber);
524 for (int j = 0; j < voices.length; j++) {
525 if (voices[j].active
526 && voices[j].channel == channel
527 && voices[j].exclusiveClass == x) {
529 && voices[j].note == noteNumber))
530 voices[j].shutdown();
538 initVoice(voices[voiceNo], p, prevVoiceID, noteNumber,
569 for (int i = 0; i < voices.length; i++) {
570 if (voices[i].on && voices[i].channel == channel
571 && voices[i].note == noteNumber
572 && voices[i].releaseTriggered == false) {
573 voices[i].noteOff(velocity);
575 // We must also check stolen voices
576 if (voices[i].stealer_channel == this && voices[i].stealer_noteNumber == noteNumber) {
577 SoftVoice v = voices[i];
589 // Try play back note-off triggered voices,
641 for (int j = 0; j < voices.length; j++) {
642 if (voices[j].active && voices[j].channel == channel
643 && voices[j].exclusiveClass == x) {
644 if (!(p.selfNonExclusive && voices[j].note == noteNumber))
645 voices[j].shutdown();
656 initVoice(voices[voiceNo], p, prevVoiceID, noteNumber, velocity, delay,
676 for (int i = 0; i < voices.length; i++) {
677 if (voices[i].active && voices[i].note == noteNumber)
678 voices[i].setPolyPressure(pressure);
697 for (int i = 0; i < voices.length; i++) {
698 if (voices[i].active)
699 voices[i].setChannelPressure(pressure);
1033 for (int i = 0; i < voices.length; i++)
1034 if (voices[i].active)
1035 voices[i].controlChange(controller, -1);
1037 for (int i = 0; i < voices.length; i++)
1038 if (voices[i].active)
1039 voices[i].rpnChange(1, -1);
1041 for (int i = 0; i < voices.length; i++)
1042 if (voices[i].active)
1043 voices[i].rpnChange(2, -1);
1125 for (int i = 0; i < voices.length; i++) {
1126 if (voices[i].active && voices[i].sustain &&
1127 voices[i].channel == channel) {
1128 voices[i].sustain = false;
1129 if (!voices[i].on) {
1130 voices[i].on = true;
1131 voices[i].noteOff(0);
1136 for (int i = 0; i < voices.length; i++)
1137 if (voices[i].active && voices[i].channel == channel)
1138 voices[i].redamp();
1155 for (int i = 0; i < voices.length; i++) {
1156 if (voices[i].active && voices[i].on &&
1157 voices[i].channel == channel) {
1158 voices[i].sostenuto = true;
1163 for (int i = 0; i < voices.length; i++) {
1164 if (voices[i].active && voices[i].sostenuto &&
1165 voices[i].channel == channel) {
1166 voices[i].sostenuto = false;
1167 if (!voices[i].on) {
1168 voices[i].on = true;
1169 voices[i].noteOff(0);
1237 for (int i = 0; i < voices.length; i++)
1238 if (voices[i].active)
1239 voices[i].controlChange(controller, value);
1294 for (int i = 0; i < voices.length; i++)
1295 if (voices[i].active)
1296 voices[i].setPitchBend(bend);
1359 for (int i = 0; i < voices.length; i++)
1360 if (voices[i].active)
1361 voices[i].nrpnChange(controller, val_i[0]);
1396 for (int i = 0; i < voices.length; i++)
1397 if (voices[i].active)
1398 voices[i].rpnChange(controller, val_i[0]);
1470 for (int i = 0; i < voices.length; i++)
1471 if (voices[i].on && voices[i].channel == channel
1472 && voices[i].releaseTriggered == false) {
1473 voices[i].noteOff(0);
1482 for (int i = 0; i < voices.length; i++)
1483 if (voices[i].on && voices[i].channel == channel)
1484 voices[i].soundOff();
1523 for (int i = 0; i < voices.length; i++)
1524 if (voices[i].active && voices[i].channel == channel)
1525 voices[i].setMute(mute);
1568 for (int i = 0; i < voices.length; i++)
1569 if (voices[i].active && voices[i].channel == channel)
1570 voices[i].setSoloMute(solomute);