b@3: % autoalign test b@3: % generate files to test autoalign.m b@3: b@3: [fragment,fs] = audioread('../../AUDIO/SR1/pro.wav', [10*96000, 20*96000]); % from 0:10 to 0:20 b@3: b@3: % files with increasing leading zeros - end result should be all same file b@3: N = 5; b@3: spacing = 45678; % samples b@3: b@3: for i = 1:N b@3: audiowrite(['autoaligntest' num2str(i) '.wav'], ... % file name b@3: [zeros(i*spacing, size(fragment, 2)); fragment], ... % audio b@3: fs, 'BitsPerSample', 24); % format b@3: end