MIDI velocity mapping, part 1

This commit is contained in:
tildearrow 2023-12-16 19:37:14 -05:00
parent d37669a8f0
commit 99dd85bcb4
12 changed files with 41 additions and 2 deletions

View file

@ -539,6 +539,10 @@ DivDispatchOscBuffer* DivPlatformPCE::getOscBuffer(int ch) {
return oscBuf[ch];
}
int DivPlatformPCE::mapVelocity(int ch, unsigned char vel) {
return round(31.0*pow(((double)vel/127.0),0.22));
}
unsigned char* DivPlatformPCE::getRegisterPool() {
return regPool;
}