All times are UTC+02:00




Post new topic  Reply to topic  [ 387 posts ]  Go to page Previous 122 23 24 25 2639 Next
Author Message
PostPosted: Mon Mar 26, 2012 4:53 pm 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11425
Phoenix, think of it like this.

a = 11
b = 2
c = b / a = 0.18181818181818181818.......
Rounding to 2 digits gives c = 0.18
Now c * a = 11 * .18 = 1.98.

So depending on how smart the compiler is, the following code can give different results:

c = b / a
d = c * a

If a compiler is dumb, you'll get c = .18, d = .18 * 11 = 1.98.
If the compiler is smart, it will see that d = (b/a)*a = d = 2.

And if the compiler is strict, it will still reply with 1.98 because that's what the programmer asked - this makes floating point calculation optimizations nearly impossible (and I've turned this strictness off).

Moving code around leads to different "smartness" of the compiler, hence to (slightly) different results.


Top
   
PostPosted: Mon Mar 26, 2012 8:09 pm 
User avatar

Joined: Wed Jun 16, 2010 4:30 pm
Posts: 600
Location: Buenos Aires, Argentina
Quote:
On my system if "Allowed High Distortions" is setting a value, when I remove the checkbox HQ (on the next "if preemphasized") for the first time, the slider is set to a minimum but the value is not updated. Then if you press the slider is updated as 20%.
This happens to another? :shock:
This keeps happening, the only thing is that I should rectify the slider is moved to another preset value of this and 20% (depending on initial state) :shock:

_________________
by GAP
"Less is More" (Bob Katz)


Top
   
PostPosted: Tue Mar 27, 2012 12:26 am 
User avatar

Joined: Sat May 02, 2009 5:40 pm
Posts: 475
Quote:
If you are designing software handling telemetry for rocket propulsion or nuclear reactor controls, the signficance will generally be more than that of an application that handles, for example, stock market transactions.
.... If an application dealing in currency transactions in the United States has a rounding error at the 10th decimal place, it is not worth putting effort into fixing that. On the other hand, if the rounding error is at the 2nd or even 3rd decimal place, then it IS necessary to fix it.
:arrow:
http://mathworld.wolfram.com/RoundoffError.html
http://www-aix.gsi.de/~giese/swr/allehtml.html


Top
   
PostPosted: Tue Mar 27, 2012 12:45 am 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11425
Lol! Some great examples and stories there ;)


Top
   
PostPosted: Tue Mar 27, 2012 12:51 am 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11425
BETA032:
- Problem with lower Quality setting should be fixed now
- Overall audio quality should be improved (biggest difference is at low latencies): There are less artifacts now (no CPU load effect, but the audio is closer to the optimal audio at the double CPU load). *MAYBE* the voice vibrations are reduced as well. At lower Quality settings the artifacts might actually be worse than before, although I've also fixed a bug in the handling of lower Qualiy settings that caused artifacts. I may need to look into this further.
- Slightly (a few hundred kB I think) reduced the memory usage.

Winamp/DSP: http://www.stereotool.com/download/dsp_ ... 22-032.exe
Stand alone: http://www.stereotool.com/download/ster ... 22-032.exe
VST: http://www.stereotool.com/download/vst_ ... 22-032.dll
Command line: http://www.stereotool.com/download/ster ... 22-032.exe


IMPORTANT: LOW LATENCY OUTPUT IN THE STAND ALONE VERSION IS BROKEN AND MIGHT EVEN CAUSE CRASHES. SO MAKE SURE TO TURN IT OFF BEFORE UPGRADING!
The good news here is that with the new design it should be pretty simple to get a much better working low latency output which might even have a lower latency than before.

I have received a report about sudden deep volume drops in BS412 (once or twice a day), I'll look into that tomorrow.


Top
   
PostPosted: Tue Mar 27, 2012 12:53 am 
User avatar

Joined: Fri Oct 08, 2010 3:58 am
Posts: 304
Quote:
If a compiler is dumb, you'll get c = .18, d = .18 * 11 = 1.98.
If the compiler is smart, it will see that d = (b/a)*a = d = 2.

And if the compiler is strict, it will still reply with 1.98 because that's what the programmer asked - this makes floating point calculation optimizations nearly impossible (and I've turned this strictness off).

Moving code around leads to different "smartness" of the compiler, hence to (slightly) different results.
Ah ... clear now. Thanks for exemplifying this. So, if I understood you right, post organizing your code, there's a variance in 'obscurity' to the compiler for such floating point operations. Nothing relevant to the output of the filter quality.

_________________
visit website


Top
   
PostPosted: Tue Mar 27, 2012 12:57 am 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11425
Quote:
Quote:
If a compiler is dumb, you'll get c = .18, d = .18 * 11 = 1.98.
If the compiler is smart, it will see that d = (b/a)*a = d = 2.

And if the compiler is strict, it will still reply with 1.98 because that's what the programmer asked - this makes floating point calculation optimizations nearly impossible (and I've turned this strictness off).

Moving code around leads to different "smartness" of the compiler, hence to (slightly) different results.
Ah ... clear now. Thanks for exemplifying this. So, if I understood you right, post organizing your code, there's a variance in 'obscurity' to the compiler for such floating point operations. Nothing relevant to the output of the filter quality.
Yes. At least that's what I think it is. I compared the audio of the latest build (before the quality improvement) against that of 029 and I saw some difference in the last bit, sometimes even the last 2-3 bits, in some presets (some others were 100% identical). Since I didn't change anything in what the code should do, and real bugs would cause *much* bigger differences, I figured it has to be a rounding issue.

By the way, if I turn *all* the optimizations off, the difference can sometimes even amount to over 5% of the total signal! Which is quite insane... (And runs at about 1/10th of the speed, so it's completely unusable).


Top
   
PostPosted: Tue Mar 27, 2012 2:47 am 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11425
Hm. Bojcha ran some tests and voice vibrations are not changed. But... His analysis did show what is wrong in the current clipper protection (if you set the bass clipping to -6 dB the vibrations are gone, BUT far too much bass is gone too. And that SEEMS to be caused by a wrong filter order).


Top
   
PostPosted: Tue Mar 27, 2012 4:22 am 

Joined: Sun Dec 12, 2010 2:26 pm
Posts: 885
Quote:
Hm. Bojcha ran some tests and voice vibrations are not changed. But... His analysis did show what is wrong in the current clipper protection (if you set the bass clipping to -6 dB the vibrations are gone, BUT far too much bass is gone too. And that SEEMS to be caused by a wrong filter order).
Could you notate a specific track that has clearly audible voice vibrations, not something determined by scopes or frequency analyzers?

The reason I ask is because I was told that my H7RC1 had vibrations with a specific track, and I flat out do not hear them. I have posted H7RC2, and had asked that it be checked to see if the alleged situation was better or worse, and I have not been given a reply. As such, I am about to finalize H7RC3, which will probably be the final RC unless someone can demonstrate to me the alleged issue.

Thanks...


Top
   
PostPosted: Tue Mar 27, 2012 11:00 am 
Site Admin
User avatar

Joined: Mon Mar 17, 2008 1:40 am
Posts: 11425
The worst track I know is one that Bojcha sent to me over a year ago, http://www6.zippyshare.com/v/35161681/file.html . The worst part is the "woo" at 0:14.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 387 posts ]  Go to page Previous 122 23 24 25 2639 Next

All times are UTC+02:00


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited