WAV functions

new topic     » topic index » view thread      » older message » newer message

To: Daryl van den Brink

Do you know a good algorithm to combine two or more WAV files?

I've written an amusement for myself. Its a little application that I can 
use to write music with. It works on the principle of creating 'voice' 
tracks and then combining them into the final WAV file. The current 
algorithm I use sort of works, but it has the side-effect of diminishing 
the volume of the sound. Also, when working with lots of tracks, some 
distortions are introduced.

In fact I've tried a few algorithms but none have really worked well. The 
ones that have given me the most promising results have been ...

a) Find the geometric mean of the corresponding sample values.
b) Find the arthimetric mean of the corresponding sample values.
c) Find the geometric mean of the absolute value of the corresponding 
sample values.

But I'm thinking that I really need to use the delta between adjacent 
samples instead. I haven't tried this yet because I really don't know 
enough about the subject.


I'd post the code but its not ready for serious reviewing yet - most is 
very experimental.

-- 

cheers,
Derek Parnell

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu