How to mix Chirp and Gong signals in matlab
6 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
I'm wondering about how to mix 'chirp.mat' and 'gong.mat' sample audio files that come with matlab.
Thanks in advance :)
0 个评论
回答(1 个)
Jan
2016-2-10
编辑:Jan
2016-2-14
It depends on what "mix" exactly means.
chirpSignal = load('chirp.mat');
gongSignal = load('gong.mat');
% [EDITED]: chirpSignal -> chirpSignal.y
len = min(size(chirpSignal.y, 1), size(gongSignal.y, 1));
Mixed = (chirpSignal.y(1:len, :) + gongSignal.y(1:len, :)) * 0.5;
2 个评论
Jan
2016-2-14
@Chamira Wickramasinghe: Yes, I made a mistake. You can inspect the values obtained by load and try to find a solution by your own. There is no reason to wait, until I fix the problem. See [EDITED]
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!