Sound & Music

Moderators: Sephiroth
Number of threads: 611
Number of posts: 1220

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to Control Volume,Harshness,Speed in wav files Posted by sivaji on 19 Mar 2004 at 1:29 AM
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!

Thanks In Advance,

Sivaji Reddy
Report
Re: How to Control Volume,Harshness,Speed in wav files Posted by Jonathan on 19 Mar 2004 at 2:34 PM
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.");




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.