how to mix two audio signals?

S
Stalin Samuel · Dec 16, 2022 · 2.1K views
Question
i have two audio signals y1 ,y2 .Now i wants y3 as mixture of y1 and y2
Expert Answer
Profile picture of John Michell
John Michell PhD Expert
Answered Aug 24, 2026

Simple mixing is just adding. 

 

y3 = y1 + y2;

If you want to control the level of each within the mix, then you need to adjust them as follows:

y3 = (y1*y1_level) + (y2*y2_level);

where yx_level is based on the decibel conversion:

yx_level = 10^(level/20);

So to make signal 2 half the amplitude of signal 1, you'd use -6 dB as follows:

y3 = (y1*(10^(0/20)) + (y2*(10^(-6/20));

All of this assumes that the two signals are the same dimensions and have the same starting level.

 

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!