543 |
} |
} |
544 |
} |
} |
545 |
} |
} |
546 |
|
|
547 |
|
/** |
548 |
|
* Recalculate the pitch of all active voices. |
549 |
|
*/ |
550 |
|
void OnScaleTuningChanged() { |
551 |
|
RTList<uint>::Iterator iuiKey = pActiveKeys->first(); |
552 |
|
for (; iuiKey; ++iuiKey) { |
553 |
|
MidiKey* pKey = &pMIDIKeyInfo[*iuiKey]; |
554 |
|
RTListVoiceIterator itVoice = pKey->pActiveVoices->first(); |
555 |
|
for (; itVoice; ++itVoice) { |
556 |
|
itVoice->onScaleTuningChanged(); |
557 |
|
} |
558 |
|
} |
559 |
|
} |
560 |
|
|
561 |
void ProcessSustainPedalDown(Pool<Event>::Iterator& itEvent) { |
void ProcessSustainPedalDown(Pool<Event>::Iterator& itEvent) { |
562 |
// Cancel release process of all voices |
// Cancel release process of all voices |
563 |
RTList<uint>::Iterator iuiKey = pActiveKeys->first(); |
RTList<uint>::Iterator iuiKey = pActiveKeys->first(); |