mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-25 22:15:14 +00:00
Reverting back to linear
This commit is contained in:
parent
b6d632bc9c
commit
a25bc61ff2
1 changed files with 1 additions and 1 deletions
|
@ -1021,7 +1021,7 @@ void DivPlatformESFM::notifyInsDeletion(void* ins) {
|
|||
|
||||
int DivPlatformESFM::mapVelocity(int ch, float vel) {
|
||||
const int volMax=MAX(1,dispatch(DivCommand(DIV_CMD_GET_VOLMAX,MAX(ch,0))));
|
||||
double attenDb=40*log10(vel); // 40dB/decade for a quadratic mapping, per MIDI standard
|
||||
double attenDb=20*log10(vel); // 20dB/decade for a linear mapping
|
||||
double attenUnits=attenDb/0.75; // 0.75dB/unit
|
||||
return MAX(0,volMax+attenUnits);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue