changing audio frequency to a constant
조회 수: 2 (최근 30일)
이전 댓글 표시
lets say i have an audio that has so many different frequencies, can i modify its frequency to constant and run it at 2000 hz for example?
댓글 수: 2
채택된 답변
Chunru
2022년 8월 19일
load handel.mat
[p, q] = rat(2000/Fs)
y2000 = resample(y, p, q);
whos
댓글 수: 2
Chunru
2022년 8월 19일
load handel.mat % load a sample data with Fs
[p, q] = rat(2000/Fs) % find a rational fraction of desired Fs and orighinal Fs
% p, q are integers so that resample can be efficiently implemented
y2000 = resample(y, p, q); % resample the data so that FsNew = p/q*Fs
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!