MATLAB Answers

Adding a sound wave to a wav file

3 views (last 30 days)
Gofran Abdulmonim
Gofran Abdulmonim on 6 May 2021
Answered: Mathieu NOE on 7 May 2021
I have created a wav file using a formula that produces sound, now i want to add another sound wave to the same first created file , how can that be done ?

Answers (1)

Mathieu NOE
Mathieu NOE on 7 May 2021
hello
if the two have same sampling frequency, you can add them together like z = wav1 + wav2;
but make sure that the output signal does not exceed the -1 / + 1 range , or apply a correction factor

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!