implement getGain for a couple chips
the ones with log volume
This commit is contained in:
parent
b108156954
commit
b2223ccd0f
17 changed files with 65 additions and 1 deletions
|
|
@ -792,6 +792,11 @@ int DivPlatformAY8930::mapVelocity(int ch, float vel) {
|
|||
return round(31.0*pow(vel,0.22));
|
||||
}
|
||||
|
||||
float DivPlatformAY8930::getGain(int ch, int vol) {
|
||||
if (vol==0) return 0;
|
||||
return 1.0/pow(10.0,(float)(31-vol)*1.5/20.0);
|
||||
}
|
||||
|
||||
unsigned char* DivPlatformAY8930::getRegisterPool() {
|
||||
return regPool;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue