#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

# How to Control Volume,Harshness,Speed in wav files

Member Posts: 3
1.>I am combining(cancatenating) wave files.it's ok!
but wave files are of diffrent volumes(some are high volume and some are low volume).After combining, how to normalise the volume?(Volume level should be one for all)

2.>wave files are of diffrent speeds(some files are playing faster
and some are slow).How to normalise speed after combining?
What part of Information in wave file specifies play speed?

3.>What's the diff. between Pitch and Volume

4.>Some of my waves are not good.In the middle little harsh
sound is coming.Is any algorithm for this.

pls help me ASAP!

Sivaji Reddy

• Member Posts: 2,914
Hi,

This is a reply both to this message and in response to the same question you dropped in my mailbox. While I don't mind being messaged to take a look at a post, please give the URL to the post in the future. Thanks! :-)

: 1.>I am combining(cancatenating) wave files.it's ok!
: but wave files are of diffrent volumes(some are high volume and some
: are low volume).After combining, how to normalise the volume?(Volume
: level should be one for all)
:
I'd imagine you'd want to do the normalisation before concatenating. Otherwise, you just normalize the one wave file. I *think* the basic algorithm is look for the loudest sound (e.g. largest peak) and see how far it is from the maximum value. Then normalize by calculating a volume constant that makes that peak x% of the maximum volume (e.g. you could normalize to 100% to scale that peak to the maximum volume). You then multiply every sample by that volume constant to normalize. If you do this before concatenating for each wave file, they'll all have a common maximum volume.

: 2.>wave files are of diffrent speeds(some files are playing faster
: and some are slow).How to normalise speed after combining?
: What part of Information in wave file specifies play speed?
:
Sampling rate, and it's available in the wave file header. This specifies how many samples there are per second. Therefore, you need to decide on a target sampling rate for your output and then convert any sounds that have different sampling rates to that sampling rate.

: 3.>What's the diff. between Pitch and Volume
:
Volume is to do with how loud the sound is (e.g. amplitude, e.g. the value of the individual samples). Pitch is the frequency of the sound, e.g. is it a high note for a low note. Doing manipultations related to pitch can get nasty.

: 4.>Some of my waves are not good.In the middle little harsh
: sound is coming.Is any algorithm for this.
:
There will be equalizer algorithms so you can take the mid-range down, but I'm not familiar with them just yet.

Hope this helps,

Jonathan

###
for(74,117,115,116){\$::a.=chr};((\$_.='qwertyui')&&
(tr/yuiqwert/her anot/))for(\$::b);for(\$::c){\$_.=\$^X;
/(p.{2}l)/;\$_=\$1}\$::b=~/(..)\$/;print("\$::a\$::b \$::c hack\$1.");