5.0

5.0 | 1 rating Rate this file 257 downloads (last 30 days) File Size: 1.73 MB File ID: #19933

Generate Animated GIF Files for Plotting Audio Data

by Theodoros Giannakopoulos

 

15 May 2008 (Updated 20 May 2008)

This m-file generates a animated GIF file that visualizes audio data.

Download Now | Watch this File

File Information
Description

------------------------------------  
Theodoros Giannakopoulos  
http://www.di.uoa.gr/~tyiannak  
------------------------------------  
 
The provided m-file:  
    * Reads a wav file.  
    * Splits the audio data into non-overlapping windows (e.g 1 second).  
    * For each window, an image of the audio data and the corresponding spectrogram is created and attached to an animated .gif file.  
 
M-file description:  
 
function createAnimatedGifFromWav(wavFileName, windowLength, Width, framesPerSec)  
 
ARGUMENTS:  
- wavFileName: the name of the .wav file to read  
- windowLength: the length (in seconds) of each window to be plotted in the gif  
- Width: the width of the generated .gif file  
- framesPerSec: frames per second for the gif annotated file.  
 
NOTE: the generated .gif file's name is [wavFileName_animatedGIF.gif]  
 
------------------------------------  
Theodoros Giannakopoulos  
http://www.di.uoa.gr/~tyiannak  
------------------------------------

MATLAB release MATLAB 7.5 (R2007b)
Zip File Content  
HTML Files Documentation.html
Other Files b_animatedGIF.gif,
createAnimatedGifFromWav.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
18 Jun 2008 I. P. Very interesting.
Please login to add a comment or rating.

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com