R/E/P Community

Please login or register.

Login with username, password and session length
Advanced search  

Pages: 1 [2] 3 4   Go Down

Author Topic: Advantage of 32 bit floating processing ?  (Read 20566 times)

mpd

  • Newbie
  • *
  • Offline Offline
  • Posts: 15
Re: Advantage of 32 bit floating processing ?
« Reply #15 on: February 15, 2006, 10:22:13 AM »

Jumping in late...

I was going to post some comments on this (I used to be a DSP engineer), but I lost track of time and have some real work to do, but the following may be of interest for those who want to understand how floating point math works:

http://docs.sun.com/source/806-3568/ncg_goldberg.html

I will try to add some additional information to the thread later in the day.
Logged

Ivo

  • Full Member
  • ***
  • Offline Offline
  • Posts: 169
Re: Advantage of 32 bit floating processing ?
« Reply #16 on: February 16, 2006, 12:08:50 PM »

Thanks friends for all the replies. But to say the truth, now I am even less sure than before:

Shall I set Samplitude to 24 bit or 32 bit floating ? What would be better for a practical recording and editing ?
Logged
Ivo

VELVET MASTERING
www.velvetmastering.com

SAVITA MUSIC
www.savita.cz

UnderTow

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 393
Re: Advantage of 32 bit floating processing ?
« Reply #17 on: February 16, 2006, 06:17:07 PM »

Ivo wrote on Thu, 16 February 2006 17:08



Shall I set Samplitude to 24 bit or 32 bit floating ? What would be better for a practical recording and editing ?


My choice would be 32 bit float.

UnderTow
Logged

Buzz

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 717
Re: Advantage of 32 bit floating processing ?
« Reply #18 on: February 28, 2006, 12:46:21 AM »

So what about 64 bit fixed ???? any insite there

LAter
Buzz

Jon Hodgson

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1854
Re: Advantage of 32 bit floating processing ?
« Reply #19 on: February 28, 2006, 07:34:56 AM »

Buzz wrote on Tue, 28 February 2006 05:46

So what about 64 bit fixed ???? any insite there

LAter
Buzz



Properly implemented it should be great, better than 32 bit float. Improperly implemented you might see no improvement over 24 bit integer. The thing is to scale values so you use as many of the bits as possible to maintain accuracy, whilst not saturating (Floats basically take care of this bit for you automatically).

Strictly speaking it can also be better than 64 bit float, but quite frankly if you can tell the difference between 64 bit float processing and 64 bit integer processing (in a proper blind test), then I'd say there's a DSP programmer who needs their wrist slapping.

Of the two, 64 bit float is easier to get right.
Logged

Ronny

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2739
Re: Advantage of 32 bit floating processing ?
« Reply #20 on: February 28, 2006, 11:49:02 AM »

Jon Hodgson wrote on Tue, 28 February 2006 07:34

Buzz wrote on Tue, 28 February 2006 05:46

So what about 64 bit fixed ???? any insite there

LAter
Buzz



Properly implemented it should be great, better than 32 bit float. Improperly implemented you might see no improvement over 24 bit integer. The thing is to scale values so you use as many of the bits as possible to maintain accuracy, whilst not saturating (Floats basically take care of this bit for you automatically).

Strictly speaking it can also be better than 64 bit float, but quite frankly if you can tell the difference between 64 bit float processing and 64 bit integer processing (in a proper blind test), then I'd say there's a DSP programmer who needs their wrist slapping.

Of the two, 64 bit float is easier to get right.



I have a couple of 64 bit processors. What about CPU taxation, Jon? Would the difference between 64 bit fixed int. and 32 floar be significant in terms of how much power is needed for processing at the higher resolution. For example it seems that it's going to 64 bit with the new AMD's and Windows talking of 64 bit for the future. Does this mean that we are going to have to have more RAM and GHz at the CPU level to operate at native 64 bit?  
Logged
------Ronny Morris - Digitak Mastering------
---------http://digitakmastering.com---------
----------Powered By Experience-------------
-------------Driven To Perfection---------------

UnderTow

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 393
Re: Advantage of 32 bit floating processing ?
« Reply #21 on: March 03, 2006, 02:42:15 PM »

Ronny wrote on Tue, 28 February 2006 16:49



I have a couple of 64 bit processors. What about CPU taxation, Jon? Would the difference between 64 bit fixed int. and 32 floar be significant in terms of how much power is needed for processing at the higher resolution. For example it seems that it's going to 64 bit with the new AMD's and Windows talking of 64 bit for the future. Does this mean that we are going to have to have more RAM and GHz at the CPU level to operate at native 64 bit?  




In Sonar, when I switch the audio engine from 32 bit float to 64 bit float I see a small increase in CPU. Nothing close to double.

UnderTow
Logged

Buzz

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 717
Re: Advantage of 32 bit floating processing ?
« Reply #22 on: March 03, 2006, 04:24:19 PM »

I was just curious I use SAW Studios as my DAW software which  operates at 64 bit FIXED so ???? ,

Anyhow I like the program and it runs seamlessly on XP also it is programmed in assembly language so there is low overhead on the CPU not having to do all those DLL calls

Anyhow just curious what you guys were thinking

LAter
Buzz

Patrik T

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 833
Re: Advantage of 32 bit floating processing ?
« Reply #23 on: March 05, 2006, 11:05:09 AM »

Quote:

I was just curious I use SAW Studios as my DAW software which operates at 64 bit FIXED so ???? ,

Anyhow I like the program and it runs seamlessly on XP also it is programmed in assembly language so there is low overhead on the CPU not having to do all those DLL calls

Anyhow just curious what you guys were thinking

LAter
Buzz



After having purchased the SAW Basic just recently, I have to say that mixing in the SAW environment feels more like a behaviour of a analogue console - soundwise that is.

I can best describe it as like the audio's integrity is kept better throughout different scaling operations than doing the same scenario in my floating point host.

Simply less muffled and unpleasantly un-phased.

I wish I knew why. Until then I'm just happy that I gave SAW a chance and will remix all present projects in that host instead of with a floating point mix engine.

I guess I prefer 64 fixed bits before 64 floating bits for the moment.

Logged

James Perrett

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 339
Re: Advantage of 32 bit floating processing ?
« Reply #24 on: March 07, 2006, 08:26:24 AM »

Ronny wrote on Tue, 28 February 2006 16:49



I have a couple of 64 bit processors. What about CPU taxation, Jon? Would the difference between 64 bit fixed int. and 32 floar be significant in terms of how much power is needed for processing at the higher resolution.



I'm not a DSP engineer but the conventional wisdom in computing circles is that 64 bit integer calculations would be faster than 32 bit float calculations. That's why Bob Lentini always used to use integers in his software (I don't know if he still does). Modern processors reduce the difference by using hardware floating point processing.

Cheers

James.
Logged
James Perrett - JRP Music - Audio Mastering and Restoration.
http://www.jrpmusic.net

TotalSonic

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3728
Re: Advantage of 32 bit floating processing ?
« Reply #25 on: March 07, 2006, 10:32:49 AM »

jamesp wrote on Tue, 07 March 2006 13:26

Ronny wrote on Tue, 28 February 2006 16:49



I have a couple of 64 bit processors. What about CPU taxation, Jon? Would the difference between 64 bit fixed int. and 32 floar be significant in terms of how much power is needed for processing at the higher resolution.



I'm not a DSP engineer but the conventional wisdom in computing circles is that 64 bit integer calculations would be faster than 32 bit float calculations. That's why Bob Lentini always used to use integers in his software (I don't know if he still does). Modern processors reduce the difference by using hardware floating point processing.

Cheers

James.


In the case of Bob Lentini's SAWStudio: yes, I can confirm via many internet conversations with Bob that it currently uses 64bit integer math for all multiples and divides (except for the built in eq's which use 64bit floating point math) which return an undithered full 32bit DWORD (instead of the 24bit + 8bit mantissa of a 32bit IEEE file) and pass this on to the next process in line - until final output, where the end user has the option of either truncating or dithering to 24bit.

SAWStudio achieves its incredible cpu efficiency due to having its engine hand coded in assembly language (the entire program install file is under 4megs!), and by having many of its calls bypass Windows' various shells and instead address the machine more directly.  While it is certainly not well known, and does not do things in an "orthodox" manner typical of most DAW apps, I find that it is an extremely elegant piece of coding, and by far my favorite DAW app to work in.

Best regards,
Steve Berson

Patrik T

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 833
Re: Advantage of 32 bit floating processing ?
« Reply #26 on: March 07, 2006, 01:37:30 PM »

TotalSonic wrote on Tue, 07 March 2006 15:32

In the case of Bob Lentini's SAWStudio: yes, I can confirm via many internet conversations with Bob that it currently uses 64bit integer math for all multiples and divides (except for the built in eq's which use 64bit floating point math) which return an undithered full 32bit DWORD (instead of the 24bit + 8bit mantissa of a 32bit IEEE file) and pass this on to the next process in line - until final output, where the end user has the option of either truncating or dithering to 24bit.




Steve, just a rapid question - Do you dither the output (post fader) with 24 bit dither when mixing in SAW (in the case of recording and exporting audio at 24 bits)?
Logged

Buzz

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 717
Re: Advantage of 32 bit floating processing ?
« Reply #27 on: March 07, 2006, 04:23:02 PM »

Patrick there are 4 selections for dither in mixdown @ 24 bit in SAW

LAter
Buzz

trock

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2018
Re: Advantage of 32 bit floating processing ?
« Reply #28 on: March 22, 2006, 12:29:40 PM »

thanks buzz and steve etc for jumping in here, as i was reading this i was hoping someone would ask about Bob's code and the 64 bit interger math
Logged

TotalSonic

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3728
Re: Advantage of 32 bit floating processing ?
« Reply #29 on: March 25, 2006, 07:02:46 PM »

Patrik T wrote on Tue, 07 March 2006 18:37

TotalSonic wrote on Tue, 07 March 2006 15:32

In the case of Bob Lentini's SAWStudio: yes, I can confirm via many internet conversations with Bob that it currently uses 64bit integer math for all multiples and divides (except for the built in eq's which use 64bit floating point math) which return an undithered full 32bit DWORD (instead of the 24bit + 8bit mantissa of a 32bit IEEE file) and pass this on to the next process in line - until final output, where the end user has the option of either truncating or dithering to 24bit.




Steve, just a rapid question - Do you dither the output (post fader) with 24 bit dither when mixing in SAW (in the case of recording and exporting audio at 24 bits)?


Hi Patrik -
I simply haven't been able to hear any difference between just truncating the 32bit integer sum to 24bit output against dithering at the 24th bit when bouncing to disc in SAWStudio to 24bit - as any distortion that is possibly happening from requantizing from 32bit to 24bit is far below the noise floor - so I currently don't add dither to my 24bit in-the-box mixes.  

When going to 16bit I always add dither though - as truncation is very easy to hear when going to that level.

Best regards,
Steve Berson
Pages: 1 [2] 3 4   Go Up
 

Site Hosted By Ashdown Technologies, Inc.

Page created in 0.056 seconds with 16 queries.