How to delay *.wav in matlab

Status
Not open for further replies.

karper1986

Member level 2
Joined
Mar 13, 2009
Messages
49
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Visit site
Activity points
1,715
Hi friends,

How can i delay some *.wav in matlab (for example on 20 ms or so). please help.

Best regards,
Karper.
 

Suppose the no of values in ur wav file after taking it into malab (using wavread) is 5000( call that variable A), initialize another variable with around 7500 with all zeros(call it B). Copy the first 5000 values of A into B starting from 2501 to 7500. Now you have to add A and B, but size of A is lesser than B so pad 2500 zeros towards the end of A to make it 7500. Now add A + .5*B. The multiplication with .5 will reduce the amplitude giving an echo like effect. You have to experiment with adding the number of zeros to get a good output.

Cheers.
 

    karper1986

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…