Mercurial > hg > ape
view aux/autoaligntest.m @ 11:0014c50188da
New and modified auxiliary scripts
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Fri, 19 Jun 2015 19:16:08 +0100 |
parents | 1f7b986dab05 |
children |
line wrap: on
line source
% autoalign test % generate files to test autoalign.m [fragment,fs] = audioread('../../AUDIO/SR1/pro.wav', [10*96000, 20*96000]); % from 0:10 to 0:20 % files with increasing leading zeros - end result should be all same file N = 5; spacing = 45678; % samples for i = 1:N audiowrite(['autoaligntest' num2str(i) '.wav'], ... % file name [zeros(i*spacing, size(fragment, 2)); fragment], ... % audio fs, 'BitsPerSample', 24); % format end