prepare for MIDI velocity mapping

This commit is contained in:
tildearrow 2023-12-13 20:44:32 -05:00
parent bdef72666b
commit 69998e2c7e
4 changed files with 21 additions and 2 deletions

View file

@ -102,6 +102,11 @@ bool DivDispatch::isVolGlobal() {
return false;
}
int DivDispatch::mapVelocity(int ch, unsigned char vel) {
const int volMax=MAX(1,dispatch(DivCommand(DIV_CMD_GET_VOLMAX,MAX(ch,0))));
return (vel*volMax)/127;
}
int DivDispatch::getPortaFloor(int ch) {
return 0x00;
}