Write .wav file , from buffer ?
2 次查看(过去 30 天)
显示 更早的评论
How to convert back after using buffer function on a signal, e.g i have code
f=wavread('example.wav',native);
leftchanel=f(1:size(f),1);
rightchanel=f(1:size(f),2);
segment=buffer(leftchanel,512);
how do i convert back "segment" into "leftchanel" ? then what to do to combine the "leftchanel" and "rightchanel" back and rewrite it back to .wav file again? because :
wavwrite(y,filename);
only above write to wav code i can find, there is no chanel parameter in it? am i supposed to combine "rightchanel" and "leftchanel" into "f" first?
0 个评论
采纳的回答
Walter Roberson
2013-3-15
newleftchannel = segment(:);
newrightchannel = .... ?? %a column vector
wavwrite( [newleftchannel, newrightchannel], filename );
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio Processing Algorithm Design 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!