apply volExp on velocity input - PLEASE READ
DivDispatch::mapVelocity() now takes a float instead of an unsigned char
This commit is contained in:
parent
99dd85bcb4
commit
51b385a1ef
18 changed files with 39 additions and 24 deletions
|
|
@ -308,8 +308,8 @@ 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));
|
||||
int DivPlatformT6W28::mapVelocity(int ch, float vel) {
|
||||
return round(15.0*pow(vel,0.33));
|
||||
}
|
||||
|
||||
unsigned char* DivPlatformT6W28::getRegisterPool() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue