How can I play sound 1 after each other.

5 views (last 30 days)
yujia
yujia on 29 Oct 2014
Commented: Image Analyst on 29 Oct 2014
I have a source sound and some other sounds with noises.How can I play the source sound and noised sound 1 by 1? it just like sound(m,fs) sound(Mhat1,fs) sound(Mhat2,fs) sound(Mhat3,fs) 4 sounds

Answers (1)

Chad Greene
Chad Greene on 29 Oct 2014
Have you tried this?
mCombined = [m;Mhat1;Mhat2;Mhat3];
sound(mCombined,fs)
  1 Comment
Image Analyst
Image Analyst on 29 Oct 2014
Stitching the waveforms together will work as long as fs is the same for all the waveforms. It will sound weird if they're different - some parts will be faster or slower than other parts.

Sign in to comment.

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!