Extract amplitude/time data from wav file?

5 messages Options
Embed this post
Permalink
Tom Harding

Extract amplitude/time data from wav file?

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
For a math project on trigonometry I am trying to get amplitude data for a recorded sine wave in order to fit a sine model to it. I have searched google extensively for a way to do this in audacity or otherwise but have found nothing so far.
 
What I want is a text table with time/sample against current amplitude or pressure. Is there any way to achieve this?
 
Thanks for your time,
 
Tom Harding

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
--
Mailing list: [hidden email]
To UNSUBSCRIBE, use the form at the bottom of this web page:
https://lists.sourceforge.net/lists/listinfo/audacity-users
David R. Sky

Re: Extract amplitude/time data from wav file?

Reply Threaded More More options
Print post
Permalink
Hi Tom,

Does the table of time/amplitude pairs _have_ to be generated using audio?
Reason I'm asking is that one of Audacity's abilities is to use the
Nyquist programming language for some effects and sound generators... and
Nyquist itself is based on  one version of XLISP, which doesn't have
anything to do with audio. It's very simple to write a simple routine to
generate a table of angle and corresponding sine eaquivalents. What do you
specifically want?

David



  --
David R. Sky
http://www.shellworld.net/~davidsky/


On Tue, 29 Sep 2009, Tom Harding wrote:

> For a math project on trigonometry I am trying to get amplitude data for a recorded sine wave in order to fit a sine model to it. I have searched google extensively for a way to do this in audacity or otherwise but have found nothing so far.
>
> What I want is a text table with time/sample against current amplitude or pressure. Is there any way to achieve this?
>
> Thanks for your time,
>
> Tom Harding
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
--
Mailing list: [hidden email]
To UNSUBSCRIBE, use the form at the bottom of this web page:
https://lists.sourceforge.net/lists/listinfo/audacity-users
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
--
Mailing list: [hidden email]
To UNSUBSCRIBE, use the form at the bottom of this web page:
https://lists.sourceforge.net/lists/listinfo/audacity-users
Gale (Audacity Team)

Re: Extract amplitude/time data from wav file?

Reply Threaded More More options
Print post
Permalink


On Wed, 30 Sep 2009 01:04:01 -0700 (PDT)
"David R. Sky" <[hidden email]> wrote:

> Does the table of time/amplitude pairs _have_ to be generated using audio?
> Reason I'm asking is that one of Audacity's abilities is to use the
> Nyquist programming language for some effects and sound generators... and
> Nyquist itself is based on  one version of XLISP, which doesn't have
> anything to do with audio. It's very simple to write a simple routine to
> generate a table of angle and corresponding sine eaquivalents. What do you
> specifically want?
>
> David
>
> David R. Sky
> http://www.shellworld.net/~davidsky/

We're quite often asked for this but it isn't directly possible
with Audacity yet. We'll add your vote for it, though.

If you are on Windows, export the file from Audacity as
WAV, then open the WAV in Wavosaur:
http://www.wavosaur.com/

Wavosaur will let you export the WAV as a text file
giving you the amplitude of each sample as a long list.
For a stereo file, column 1 in the list is the left channel
and Column 2 is the right channel.

If you are on Linux, use SOX:
http://sox.sourceforge.net/

and output the WAV as a .dat (raw text data) file.



Gale


 

> On Tue, 29 Sep 2009, Tom Harding wrote:
>
> > For a math project on trigonometry I am trying to get
> > amplitude data for a recorded sine wave in order to fit a sine model to
> it. I have searched google extensively for a way to do this in audacity
> or otherwise but have found nothing so far.
> >
> > What I want is a text table with time/sample against current
> > amplitude or pressure. Is there any way to achieve this?
>
> >
> > Thanks for your time,
> >
> > Tom Harding





------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
--
Mailing list: [hidden email]
To UNSUBSCRIBE, use the form at the bottom of this web page:
https://lists.sourceforge.net/lists/listinfo/audacity-users
Tom Harding

Re: Extract amplitude/time data from wav file?

Reply Threaded More More options
Print post
Permalink
In reply to this post by David R. Sky
Some javascript/style in this post has been disabled (why?)
Hi David,

Thanks for the reply - i was really looking for a table of values as I have to go through the process for my coursework of recording values in a table, finding a model and testing it etc. I am open to doing something with nyquist or even another language if this is easier. Basically I want a column for time and a column for amplitude, although the formatting is not important.

Thanks

Tom

On Wed, Sep 30, 2009 at 9:04 AM [hidden email] wrote:

Hi Tom,

Does the table of time/amplitude pairs _have_ to be generated using audio?
Reason I'm asking is that one of Audacity's abilities is to use the
Nyquist programming language for some effects and sound generators... and
Nyquist itself is based on one version of XLISP, which doesn't have
anything to do with audio. It's very simple to write a simple routine to
generate a table of angle and corresponding sine eaquivalents. What do you
specifically want?

David



--
David R. Sky
http://www.shellworld.net/~davidsky/


On Tue, 29 Sep 2009, Tom Harding wrote:

> For a math project on trigonometry I am trying to get amplitude data for a recorded sine wave in order to fit a sine model to it. I have searched google extensively for a way to do this in audacity or otherwise but have found nothing so far.
>
> What I want is a text table with time/sample against current amplitude or pressure. Is there any way to achieve this?
>
> Thanks for your time,
>
> Tom Harding

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
--
Mailing list: [hidden email]
To UNSUBSCRIBE, use the form at the bottom of this web page:
https://lists.sourceforge.net/lists/listinfo/audacity-users
Tom Harding

Re: Extract amplitude/time data from wav file?

Reply Threaded More More options
Print post
Permalink
In reply to this post by Gale (Audacity Team)
Some javascript/style in this post has been disabled (why?)
This is exactly what I was looking for - thanks.

I will download it now

On Thu, Oct 1, 2009 at 2:17 AM [hidden email] wrote:




We're quite often asked for this but it isn't directly possible
with Audacity yet. We'll add your vote for it, though.

If you are on Windows, export the file from Audacity as
WAV, then open the WAV in Wavosaur:
http://www.wavosaur.com/

Wavosaur will let you export the WAV as a text file
giving you the amplitude of each sample as a long list.
For a stereo file, column 1 in the list is the left channel
and Column 2 is the right channel.

If you are on Linux, use SOX:
http://sox.sourceforge.net/

and output the WAV as a .dat (raw text data) file.



Gale



> On Tue, 29 Sep 2009, Tom Harding wrote:

>
> > For a math project on trigonometry I am trying to get
> > amplitude data for a recorded sine wave in order to fit a sine model to
> it. I have searched google extensively for a way to do this in audacity
> or otherwise but have found nothing so far.
> >
> > What I want is a text table with time/sample against current
> > amplitude or pressure. Is there any way to achieve this?
>
> >
> > Thanks for your time,
> >
> > Tom Harding





------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
--

Mailing list: [hidden email]
To UNSUBSCRIBE, use the form at the bottom of this web page:
https://lists.sourceforge.net/lists/listinfo/audacity-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
--
Mailing list: [hidden email]
To UNSUBSCRIBE, use the form at the bottom of this web page:
https://lists.sourceforge.net/lists/listinfo/audacity-users