fix velocity input

This commit is contained in:
tildearrow 2023-12-17 15:08:52 -05:00
parent 0208883fa1
commit 39481ab571
3 changed files with 12 additions and 2 deletions

View file

@ -2185,6 +2185,13 @@ int DivEngine::getMaxVolumeChan(int ch) {
return chan[ch].volMax>>8;
}
int DivEngine::mapVelocity(int ch, float vel) {
if (ch<0) return 0;
if (ch>=chans) return 0;
if (disCont[dispatchOfChan[ch]].dispatch==NULL) return 0;
return disCont[dispatchOfChan[ch]].dispatch->mapVelocity(dispatchChanOfChan[ch],vel);
}
unsigned char DivEngine::getOrder() {
return prevOrder;
}