필터 지우기
필터 지우기

Matlab incorrectly reading in number of samples?

조회 수: 3 (최근 30일)
Dan Shipway
Dan Shipway 2023년 3월 26일
댓글: Stephen23 2023년 3월 27일
I have a program that processes a large number of audio files, all exactly 48k sample rate and 48k total samples. All files get read in with no problem apart from one. I have checked that it is exactly 48k samples in both REAPER and ProTools and they both show that. However, in MATLAB it gets read in at a different value and causes the code not to work.
Is there any way too solve this as I cannot think of a reason why that one specific file which is identical to all the others is not being read in at the correct total sample value.
  댓글 수: 4
Walter Roberson
Walter Roberson 2023년 3월 26일
audioreader() gives 48000 x 2 for both files for me. Which function are you using to do the reading or querying?
Stephen23
Stephen23 2023년 3월 27일
unzip('Files for analysis.zip')
X = audioread('Files for analysis/6000 P3.wav')
X = 48000×2
-0.0673 -0.0673 -0.0696 -0.0696 -0.0850 -0.0850 0.0234 0.0234 0.1031 0.1031 0.0975 0.0975 0.0979 0.0979 -0.0255 -0.0255 -0.0673 -0.0673 -0.0704 -0.0704
Y = audioread('Files for analysis/6000 P4.wav')
Y = 48000×2
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by