Mixing 2 or more wav files

Posted on 2004-10-27
Last Modified: 2008-03-10

I'm trying to mix together 2 or more 8bit wave files to give me an output of 1 file with both sounds in that out file.  I've come across some information but don't quite understand it.. here is the link...  The information here is what I need.  Can some of you experts make sense of this? Thank You!
Question by:windows_programing
    LVL 9

    Accepted Solution

    >> silence is the value 128, and actual amplitude values can go up (129-255) or down (127-0)
    he is not talking about amplitude. he is talking about displacement. so your amplitude is now 7-bit instead of 8-bit. you can apply the same formula (Z = A + B - A·B/256) but with slight modification.
    you have |Z-128| = |A-128| + |B-128| - |A-128|·|B-128|/128
    and sign(Z-128) = (A+B)/2 >= 128 ? + : -

    Author Comment

    Thanks  jhshukla,  

    One last thing what is . (Dot)  I'm not too good at math :)
    LVL 9

    Expert Comment

    Dot = multiplication

    Author Comment

    Thanks !!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
    Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
    The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
    The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

    875 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now