Click here to Skip to main content
Licence 
First Posted 20 Aug 2001
Views 206,703
Bookmarked 84 times

MMWaveEditX - Advanced Wave File Editor Control

By | 20 Aug 2001 | Article
A control for editing wave files which uses peak values for visual display

Sample Image

Introduction

I have loads of ActiveX controls laying around that I have written.  Some seem somewhat useful, others are wasted drive space.  I came across this one the other day and decided somebody out there might be able to use it.

Audio programming is somewhat of a black art, it took me a while to figure out that "Peak" files are used by waveform editing software to visualize the waveform.

What are peak files? Well essentially you comb through a wave file and take snapshots of averages at different intervals.

The benefit is obvious, by using a peak file we can visualize a .wav file using a much smaller dataset than the 'pcm' data contained in it.

Here is an example: a .wav file whose size is 41.6 megabytes can be visualized with peak data totaling just under 333k. That is how we are able to do really fast zooms and selections on what is in reality a huge amount of data.

I tested my peak file algorithms against SoundForge ( a well known audio editor) and they come pretty close to matching the speed at which
a peak file can be built.

This control is not finished, has bugs, and in general should be used as a starting point for creating your own editor (or just as a learning tool). I do not have time to fully document (or partially) the code, so you will have to dig through it to figure it out (sorry).  I wrote this code more than a year ago and just by looking at it I can see numerous places for optimization.

The control itself contains all the visualization/wave file parsing/peak creation routines.  I included a dialog based app to show how you can use it.

Being a black art it is notoriously hard to find out how the sound coding wizards do the things they do, hopefully my little control will help you in some way.

You are free to use the code as you wish, just drop me an email if you use it in something interesting, extended its usefulness, hate me for not documenting it, love me for giving it away, just want to say "hey!".

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

dswigger



United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Questionpeak file algorithm PinmemberHazem21019:24 19 Mar '10  
GeneralEditor control for wma file Pinmemberraj157623:50 31 Jan '10  
Generalset the width static PinmemberAndri Már7:46 30 Oct '09  
QuestionHow to play wave file PinmemberNeeraj Soam1:56 23 Oct '09  
Generali cant see visualize audio file PinmemberNeeraj Soam1:30 22 Oct '09  
GeneralQuestion about resizing control PinmemberPatrick Fox5:44 5 Nov '08  
GeneralRe: Question about resizing control PinmemberPatrick Fox6:06 5 Nov '08  
QuestionC# Examples maybe? PinmemberMember 22864290:53 27 May '08  
AnswerRe: C# Examples maybe? Pinmemberdswigger10:01 9 Jun '08  
Questionwant to use in mono (single channel ) Pinmemberpuneet agrawal19:35 7 May '08  
Generalcant download Pinmembersamwipro6:52 1 May '08  
Generalhelp me plz............ Pinmemberv.j19:42 21 Jan '08  
GeneralMIDI Renderer Pinmembercharliev6:09 4 Feb '07  
Generalit doesn't open any file Pinmembermahila23:34 4 Oct '06  
Generalcompare similar wave graphs Pinmemberkanchanagk20:53 15 Jul '06  
QuestionHow about midi file? Pinmemberwahaha_ts23:49 13 Apr '05  
AnswerRe: How about midi file? Pinmemberdswigger12:29 14 Apr '05  
Generali need help in Advanced Wave File Editor Control Pinmembershortwave4:43 2 Apr '05  
GeneralSir! do i have chance to..... Pinmembermssu19:50 24 Mar '05  
GeneralSir! can you help me! Pinmembermssu18:47 24 Mar '05  
GeneralSir! can you help me! Pinmembermssu16:42 24 Mar '05  
QuestionHow to convert wav files in xls files Pinmemberbsmits13:20 10 Nov '04  
GeneralThanks Pinmemberxavigonzalvo6:17 9 Nov '04  
Questionhow to convert a wave file from 44.1kHz to 8kHz? Pinmemberluoyuanhao20:40 14 Oct '04  
AnswerRe: how to convert a wave file from 44.1kHz to 8kHz? PinmemberFrank Jäkel0:21 21 Nov '04  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 21 Aug 2001
Article Copyright 2001 by dswigger
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid