Adding a sound wave to a wav file
4 views (last 30 days)
Show older comments
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 ?
0 Comments
Answers (1)
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
0 Comments
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!