DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

error when save a file as .wav format

I was trying to save some sound pressure data into .wav file.  I have a single wavform channel looks like this:

before

Once saved as .wav file, the data becomes:

 

p2.jpg

What did I do wrong?

 

0 Kudos
Message 1 of 4
(4,782 Views)

I do have the audio data plugin installed, but I do not know how to use it.  The save as give me the same results before and after the installation. 

0 Kudos
Message 2 of 4
(4,779 Views)

The *.wav file specification says that the DBL data type may only be used if all the channel values are between -1 and +1.  That channel exceeds these limits slightly, therefore an integer data type is used.

 

You can simply rescale the channel prior to saving-- either smaller in amplitude to use the DBL data type or larger in amplitude to use the full range of an Int16 or an Int32.

0 Kudos
Message 3 of 4
(4,753 Views)

Thanks!  I scaled the data up to use the 32 bites integer.  It worked!

0 Kudos
Message 4 of 4
(4,737 Views)