150 |
void EngineChannel::ProcessKeySwitchChange(int key) { } |
void EngineChannel::ProcessKeySwitchChange(int key) { } |
151 |
|
|
152 |
void EngineChannel::PreProcessNoteOn(uint8_t key, uint8_t velocity) { |
void EngineChannel::PreProcessNoteOn(uint8_t key, uint8_t velocity) { |
|
LastKey = key; |
|
153 |
if(pInstrument != NULL && pInstrument->HasKeySwitchBinding(key)) LastKeySwitch = key; |
if(pInstrument != NULL && pInstrument->HasKeySwitchBinding(key)) LastKeySwitch = key; |
154 |
PressedKeys[key] = true; |
PressedKeys[key] = true; |
155 |
} |
} |
156 |
|
|
157 |
|
void EngineChannel::PostProcessNoteOn(uint8_t key, uint8_t velocity) { |
158 |
|
LastKey = key; |
159 |
|
} |
160 |
|
|
161 |
void EngineChannel::PreProcessNoteOff(uint8_t key, uint8_t velocity) { |
void EngineChannel::PreProcessNoteOff(uint8_t key, uint8_t velocity) { |
162 |
PressedKeys[key] = false; |
PressedKeys[key] = false; |
163 |
} |
} |