Tom's Hardware > Forum > Audio > Audio Technology > raw data to audio?

raw data to audio?

Forum Audio : Audio Technology - raw data to audio?

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: rec.audio.tech (More info?)

 

I have some oscillating function I want to listen to. It's easy enough
for me to sample the function periodically and convert the amplitude to
a number in 0..65535, mean 32768. But then what? Can I feed a bunch
of these numbers into some free software and produce a .WAV file? Or
do I have to generate something more complicated than that as input?

Sponsored Links
Register or log in to remove.

Archived from groups: rec.audio.tech (More info?)

 

<bob_jenkins@burtleburtle.net> wrote in message
news:1116459266.634938.54750@g43g2000cwa.googlegroups.com...
> I have some oscillating function I want to listen to. It's easy enough
> for me to sample the function periodically and convert the amplitude to
> a number in 0..65535, mean 32768. But then what? Can I feed a bunch
> of these numbers into some free software and produce a .WAV file? Or
> do I have to generate something more complicated than that as input?

The shareware (try-before-you-buy) program Goldwave includes an expression
evaluator

To give some idea, a supplied example is the following

sin(2*pi*t*2000)*exp(-t*3)*(sin(2*pi*3*t)+sin(2*pi*23*t))/2

I found Goldwave such a useful program for all things audio that I paid the
55 Canadian dollars for it ... you can download it from www.goldwave.com

Tim

Reply to Anonymous

Archived from groups: rec.audio.tech (More info?)

 

bob_jenkins@burtleburtle.net wrote:

>I have some oscillating function I want to listen to. It's easy enough
>for me to sample the function periodically and convert the amplitude to
>a number in 0..65535, mean 32768. But then what? Can I feed a bunch
>of these numbers into some free software and produce a .WAV file? Or
>do I have to generate something more complicated than that as input?

Many audio editors are able to process raw data, but you are asked for
the sample rate, word length, number of channels.

OTOH you may add a wave header to your data and thusly produce a wav
format. For a simple applicatin the wave header is simple as you need
only the format chunk and the data chunk.

The format chunk contains the sample rate, number of channels, word
length, block alignment, data format and such. The data chunk contains
the number of data bytes and the sample numbers in Intel format (low
order byte first). For more information you may look at www.wotsit.org
goto "Sound and Music" and on page 8 you'll see three entries for wav.
The first entry is what you need.

Norbert

Reply to Anonymous
Tom's Hardware > Forum > Audio > Audio Technology > raw data to audio?
Go to:

There are 1276 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them