MIDI velocity mapping, part 1
This commit is contained in:
parent
d37669a8f0
commit
99dd85bcb4
12 changed files with 41 additions and 2 deletions
|
|
@ -718,6 +718,10 @@ DivDispatchOscBuffer* DivPlatformAY8930::getOscBuffer(int ch) {
|
|||
return oscBuf[ch];
|
||||
}
|
||||
|
||||
int DivPlatformAY8930::mapVelocity(int ch, unsigned char vel) {
|
||||
return round(31.0*pow(((double)vel/127.0),0.22));
|
||||
}
|
||||
|
||||
unsigned char* DivPlatformAY8930::getRegisterPool() {
|
||||
return regPool;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue