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

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