Fun with Sound Files

Making sound recordings is easy these days given that iPods, iPads and Android cell phones have this capability.

Here is a freeware program that can be used to process the sound data: Audacity

This program can also convert the sound file from one format to another.

* * *

Also, here is a Matlab script for converting wav files to ASCII text: audio_txt.m

A Fast Fourier transform or Waterfall FFT can then be calculated using scripts posted at:

Fourier Transform

Waterfall FFT

* * *

Here is a Matlab script for generating and playing Shepard tones:

shepard_tone.m
progressbar.m

* * *

Here is a Matlab GUI sound editor & player program that I am working on: sound_editor.zip

It can be used for converting accelerometer data into a sound file of sorts.

* * *

Matlab has a function to convert a time history to a wav file. The function is:

wavwrite(amplitude,Fs,filename)

where

amplitude is the sound pressure
FS is the sample rate (samples/sec)
filename is the output array name

A typical sample rate is 44100

The Audacity freeware program can then be used to convert the wav file to mp3 format.

* * *

See Also:

Python Audio Files

Vibrationdata Audio Files

Wikipedia Sampling Rate

Wikipedia Audacity Audio Editor

Some Music Acoustics

* * *

– Tom Irvine

3 thoughts on “Fun with Sound Files

  1. Pingback: Some Music Acoustics | Vibrationdata

  2. Pingback: Webinars 6 & 7 – Leakage Error, Hanning Window, FFTs | Vibrationdata

  3. Pingback: Audio Files | vibrationdatapython

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s