Logarithmic increment.


hi,

i'm working on project controls digital volume control chip (ti pga2311). it's working fine, i'd implement logarithmic volume scale instead of linear one.

the pga2311 has range of -96db +31.5db in 0.5db steps. controlled sending values between 0 , 255. don't want go above 0db value of 192. don't need way 0 (-96db). 0 mute, , low numbers below audible, there bit of flexibility in range.

i have 63 available increments go 0 192. i'm incrementing 3 each of 63 volume steps. 1 of kind souls possibly advise how increment in more logarithmic fashion ?

i appreciate won't 100% logarithmic, can send whole numbers chip, floats need rounded up/down.

thanks,

ian.

could use array?



Arduino Forum > Using Arduino > Programming Questions > Logarithmic increment.


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support