Chat

Author Topic: Volume slide to 0x0-0x7F range conversion  (Read 526 times)

Offline BigEvilCorporation

  • Newbie
  • Posts: 6
  • Delek FTW
Volume slide to 0x0-0x7F range conversion
« on: July 11, 2016, 08:49:23 AM »
Hi!

How does the volume slider's current value get translated to the 0x0-0x7F range? The documentation says:

Quote
Positive x value and zero y value defines speed of the volume slide going up, positive y value and zero x value defines speed of the volume slide going down

Does this just add the speed value to the output value each tick, or is there some sort of linear->dB->reg table at work?

This is for Genesis YM2612 if that makes a difference.

Cheers!