adding echo in matlab

조회 수: 3 (최근 30일)
A A
A A 2013년 12월 18일
댓글: A A 2013년 12월 18일
hi there I would like to add an echo to a downloaded sound track using FIR and IIR filters this is the code I wrote so far
[soundfile,frqs]=wavread('C:\Users\Downloads\Blackberry_Ringtone_35.wav');
K = 200; % filter order
g = -0.1; % decay rate (was changed to different values)
b_K = -g;
a_K = 1;
b = [1 zeros(1,K-1) b_K];
a = [1 zeros(1,K-1) a_K];
y =filter(b,a,soundfile);
wavplay(y,frqs)
however the code is not working since it doesn't add any effect to the sound track

답변 (1개)

Walter Roberson
Walter Roberson 2013년 12월 18일
Remember that sounds information is read in with each channel being a column. Your filter appears to be trying to go across rows.
  댓글 수: 1
A A
A A 2013년 12월 18일
thank you for your fast reply..can you elaborate more...do u mean I should transform the givens into columns??

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile 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!

Translated by