1334 |
pKey->itSelf = pChannel->pActiveKeys->allocAppend(); |
pKey->itSelf = pChannel->pActiveKeys->allocAppend(); |
1335 |
*pKey->itSelf = itNoteOnEvent->Param.Note.Key; |
*pKey->itSelf = itNoteOnEvent->Param.Note.Key; |
1336 |
} |
} |
|
if (itNewVoice->KeyGroup) { |
|
|
uint** ppKeyGroup = &pChannel->ActiveKeyGroups[itNewVoice->KeyGroup]; |
|
|
*ppKeyGroup = &*pKey->itSelf; // put key as the (new) active key to its key group |
|
|
} |
|
1337 |
if (itNewVoice->Type == Voice::type_release_trigger_required) pKey->ReleaseTrigger = true; // mark key for the need of release triggered voice(s) |
if (itNewVoice->Type == Voice::type_release_trigger_required) pKey->ReleaseTrigger = true; // mark key for the need of release triggered voice(s) |
1338 |
return 0; // success |
return 0; // success |
1339 |
} |
} |