Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top