Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #16708

Exporting wav file in Integer16 format (without normalization )?

From Brentt <brenttnewman@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Exporting wav file in Integer16 format (without normalization )?
Date 2014-03-29 06:15 +0000
Message-ID <lh5oe7$4ng$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


 I want to specify amplitudes an audio file's native format, so for example
16-bit wav files use Integer16 amplitudes (-2^16 , 2^16-1). I'd like to use
functions   like


 In[1]:= soundData=  Table[Floor[2^16 Sin[2*Pi (f/44100)  t ]],
{t,0,441000}]



to specify exact (Integer16)  amplitudes to be written to the wave file.

But Mathematica, at least on the surface   seems to represent audio with
amplitude values between (-1,1), and how it maps these values to the
Integer16 values is opaque. Is there a way to make sure Mathematica writes
a list of amplitudes to the wave file exactly as given (i.e. Integer16)?


I've been playing around with Export options, but I've not found anything
that works.

Any help would be greatly appreciated.

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar


Thread

Exporting wav file in Integer16 format (without normalization )? Brentt <brenttnewman@gmail.com> - 2014-03-29 06:15 +0000

csiph-web