Write .wav file , from buffer ?
조회 수: 1 (최근 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에서 Data Import and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!