Mercurial > hg > ape
comparison aux/autoalign.m @ 8:2afd6ff39f08
prepare2listen fixes
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Fri, 28 Nov 2014 00:52:12 +0000 |
parents | ed0a8621b96a |
children | 866c5da4d357 |
comparison
equal
deleted
inserted
replaced
7:d113f0626fe3 | 8:2afd6ff39f08 |
---|---|
23 % first file: | 23 % first file: |
24 masterAudioChannels = audioread([foldername '/' list(1).name]); % read file | 24 masterAudioChannels = audioread([foldername '/' list(1).name]); % read file |
25 masterAudio = sum(masterAudioChannels, 2); % sum to mono | 25 masterAudio = sum(masterAudioChannels, 2); % sum to mono |
26 | 26 |
27 % for each other file: | 27 % for each other file: |
28 for i = 1:length(list) | 28 for i = 2:length(list) |
29 slaveAudioChannels = audioread([foldername '/' list(i).name]); % read file | 29 slaveAudioChannels = audioread([foldername '/' list(i).name]); % read file |
30 slaveAudio = sum(slaveAudioChannels, 2); % sum to mono | 30 slaveAudio = sum(slaveAudioChannels, 2); % sum to mono |
31 | 31 |
32 % check sampling rate is the same (or: express in terms of seconds) | 32 % check sampling rate is the same (or: express in terms of seconds) |
33 % ... | 33 % ... |