Click here to Skip to main content
11,437,713 members (49,195 online)
Click here to Skip to main content

MMWaveEditX - Advanced Wave File Editor Control

, 20 Aug 2001
Rate this:
Please Sign up or sign in to vote.
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

Share

About the Author

dswigger

United States United States
No Biography provided

Comments and Discussions

 
QuestionDownload Error Pin
evan36915-Jul-14 19:28
memberevan36915-Jul-14 19:28 
Questionpeak file algorithm Pin
Hazem210119-Mar-10 10:24
memberHazem210119-Mar-10 10:24 
GeneralEditor control for wma file Pin
raj15761-Feb-10 0:50
memberraj15761-Feb-10 0:50 
Generalset the width static Pin
Andri Már30-Oct-09 8:46
memberAndri Már30-Oct-09 8:46 
QuestionHow to play wave file Pin
Neeraj Soam23-Oct-09 2:56
memberNeeraj Soam23-Oct-09 2:56 
Generali cant see visualize audio file Pin
Neeraj Soam22-Oct-09 2:30
memberNeeraj Soam22-Oct-09 2:30 
GeneralQuestion about resizing control Pin
Patrick Fox5-Nov-08 6:44
memberPatrick Fox5-Nov-08 6:44 
GeneralRe: Question about resizing control Pin
Patrick Fox5-Nov-08 7:06
memberPatrick Fox5-Nov-08 7:06 
QuestionC# Examples maybe? Pin
Member 228642927-May-08 1:53
memberMember 228642927-May-08 1:53 
AnswerRe: C# Examples maybe? Pin
dswigger9-Jun-08 11:01
memberdswigger9-Jun-08 11:01 
Questionwant to use in mono (single channel ) Pin
puneet agrawal7-May-08 20:35
memberpuneet agrawal7-May-08 20:35 
Generalcant download Pin
samwipro1-May-08 7:52
membersamwipro1-May-08 7:52 
Generalhelp me plz............ Pin
v.j21-Jan-08 20:42
memberv.j21-Jan-08 20:42 
GeneralMIDI Renderer Pin
charliev4-Feb-07 7:09
membercharliev4-Feb-07 7:09 
Generalit doesn't open any file Pin
mahila5-Oct-06 0:34
membermahila5-Oct-06 0:34 
Generalcompare similar wave graphs Pin
kanchanagk15-Jul-06 21:53
memberkanchanagk15-Jul-06 21:53 
QuestionHow about midi file? Pin
wahaha_ts14-Apr-05 0:49
memberwahaha_ts14-Apr-05 0:49 
AnswerRe: How about midi file? Pin
dswigger14-Apr-05 13:29
memberdswigger14-Apr-05 13:29 
Generali need help in Advanced Wave File Editor Control Pin
shortwave2-Apr-05 5:43
membershortwave2-Apr-05 5:43 
GeneralSir! do i have chance to..... Pin
mssu24-Mar-05 20:50
membermssu24-Mar-05 20:50 
GeneralSir! can you help me! Pin
mssu24-Mar-05 19:47
membermssu24-Mar-05 19:47 
GeneralSir! can you help me! Pin
mssu24-Mar-05 17:42
membermssu24-Mar-05 17:42 
QuestionHow to convert wav files in xls files Pin
bsmits10-Nov-04 14:20
memberbsmits10-Nov-04 14:20 
GeneralThanks Pin
xavigonzalvo9-Nov-04 7:17
memberxavigonzalvo9-Nov-04 7:17 
Questionhow to convert a wave file from 44.1kHz to 8kHz? Pin
luoyuanhao14-Oct-04 21:40
memberluoyuanhao14-Oct-04 21:40 

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.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150506.1 | Last Updated 21 Aug 2001
Article Copyright 2001 by dswigger
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid