NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectLogarithmic conversions...  
Posted byAnonymous
Posted on5/21/03 1:12 PM
From IP65.41.175.152  



This is a somewhat unrelated question to NES emulation, and I will likely ask it wrong...I am not all that great with "sound" issues.


What are db equivelants to the 16 different steps of Amplitude of the pAPU (if 0 db = 0x0F (full sound).......and ........-100 db = 0 (silence)? How do I calculate (or what are) reasonable db values (I don't know how to convert Logarithmic db values to a "linear" representation of these 16 steps....

So if I was to build a chart, I have.....

0x0F ------------- 0 db (highest Vollume)
0x0E
0x0D
...
...
0x01
0x00 ------------- -100 db (No sound heard)

Obviously I can't devide the steps into Equal (100/16 different vollume steps) parts becuase db do not operate on a linear scale....In fact silence will come long before -100 db is reached...

So if if the APU wants to Fade the sound, I can (through directsound) fade the current Amplitude by setting the new Vollume. The only problem is the Vollume is set in Decibals (0 -> -100 db). I don't know how to convert the Vollume steps to db to get a nice "smooth" fade. I'm guessing at the values now, but I'd like some accurate numbers....Anybody know how to figure them out?


Thanks again






-
Entire Thread
Subject  Posted byPosted On
.Logarithmic conversions...  Anonymous5/21/03 1:12 PM
.*Re: Logarithmic conversions...  quietust5/21/03 7:25 PM
..*Re: Logarithmic conversions...  Anonymous5/21/03 8:13 PM
...*Re: Logarithmic conversions...  Memblers5/22/03 01:46 AM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo