How to mix Chirp and Gong signals in matlab
8 ビュー (過去 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!