Sample Data Export
Forum rules
This forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Sample Data Export
Hey there! We are two physics majors working on a project where we analyze drumbeats. We need to be able to see the amplitude of a specific sound wave as well as the exact time that the amplitude occurs. Our thought was to use "Sample Data Export", but that doesn't seem to be giving us what we'd like. Preferably, we'd be able to see the data in a CSV or text file, as you can with "Sample Data Export". Is there any way to use "Sample Data Export" to see both time and amplitude? Any help is greatly appreciated! Thanks!
Re: Sample Data Export
How does "Sample Data Export" differ from "what you'd like"?drumz wrote:Our thought was to use "Sample Data Export", but that doesn't seem to be giving us what we'd like.
That's what "Sample Data Export" does. Each value is an amplitude value. The time between each sample is 1/(sample rate) so for example, with a sample rate of 44100 Hz, the time between each sample is 0.000022676 seconds.drumz wrote:Is there any way to use "Sample Data Export" to see both time and amplitude?
Tip: for easy calculation of time periods, record with a convenient sample rate, such as 100000 Hz.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: Sample Data Export
I believe most people doing "serious" numerical analysis use MATLAB (or a MATLAB clone).
MATLAB can open WAV files and apparently it can handle the massive amount of data from an audio file.
MATLAB can open WAV files and apparently it can handle the massive amount of data from an audio file.
Re: Sample Data Export
MATLAB is also a lot more complicated to use than Nyquist.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
-
Robert J. H.
- Posts: 3633
- Joined: Thu May 31, 2012 8:33 am
- Operating System: Windows 10
Re: Sample Data Export
In general, only short sounds can be analyzed with Matlab or Octave. You run rapidly out of memory or indexes.steve wrote:MATLAB is also a lot more complicated to use than Nyquist.
Of course, there are always workarounds...
-
jarydmiles
- Posts: 10
- Joined: Tue Jun 21, 2016 9:03 pm
- Operating System: Windows 10
Re: Sample Data Export
But what frequency does the amplitude represent?steve wrote:How does "Sample Data Export" differ from "what you'd like"?drumz wrote:Our thought was to use "Sample Data Export", but that doesn't seem to be giving us what we'd like.That's what "Sample Data Export" does. Each value is an amplitude value. The time between each sample is 1/(sample rate) so for example, with a sample rate of 44100 Hz, the time between each sample is 0.000022676 seconds.drumz wrote:Is there any way to use "Sample Data Export" to see both time and amplitude?
Tip: for easy calculation of time periods, record with a convenient sample rate, such as 100000 Hz.
Is there are way to export spectrum data over time? Basically, like exporting the data from a waterfall plot?
Re: Sample Data Export
Amplitude is not frequency.jarydmiles wrote:But what frequency does the amplitude represent?
Amplitude of a sound is how "big" the sound vibrations are and is represented in Audacity as the vertical height of the waveform. Amplitude of a waveform is the measure of the amount of displacement away from the mean position (distance from the "zero" centre line).
Frequency of a sound is "how rapidly the vibrations oscillate".
If you zoom in close on a waveform, you can see the waveform moving up and down, crossing the centre line many times. How far away from the centre line it moves is the "amplitude", whereas "how frequently it cycles between going up and going down" is the frequency. An approximation of the fundamental frequency can be derived from the exported sample data by counting the number of times the data crosses zero per second.
You can take a screen-shot of the track spectrogram view.jarydmiles wrote:Is there are way to export spectrum data over time?
See: http://manual.audacityteam.org/man/spec ... _view.html
and: http://manual.audacityteam.org/man/help_menu.html#tools
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
-
jarydmiles
- Posts: 10
- Joined: Tue Jun 21, 2016 9:03 pm
- Operating System: Windows 10
Re: Sample Data Export
Ok, but is it possible to export numerical spectral data over time. I.e. Sound pressure level over say, 20 - 200Hz, over a recorded time of 5 seconds?
-
Gale Andrews
- Quality Assurance
- Posts: 41761
- Joined: Fri Jul 27, 2007 12:02 am
- Operating System: Windows 10
Re: Sample Data Export
Or you can make small selections over five seconds and export each selection from Analyze > Plot Spectrum... .jarydmiles wrote:Ok, but is it possible to export numerical spectral data over time. I.e. Sound pressure level over say, 20 - 200Hz, over a recorded time of 5 seconds?
Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Re: Sample Data Export
Audacity cannot give you "Sound pressure level" (SPL)jarydmiles wrote: I.e. Sound pressure level over say, 20 - 200Hz, over a recorded time of 5 seconds?
(see: https://en.wikipedia.org/wiki/Sound_pressure)
To calculate the sound pressure level via Audacity, your "system" (microphone / pre-amp / sound card / sound card settings / recording software) need to be calibrated so that you know that a specific SPL produces a specific amplitude of the recorded signal. Alternatively you use a "SPL meter" (which is already calibrated).
What are you actually trying to do?
Is this a school project?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)