-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbatch_vocoder.m
More file actions
71 lines (50 loc) · 1.67 KB
/
batch_vocoder.m
File metadata and controls
71 lines (50 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
clc
clear all
close all
% load all packages
addpath(genpath('additional-packages'));
addpath(genpath('stimuli'));
addpath(genpath('results'));
resultsDir = strcat(pwd,'\results\statistical_analysis\');
if ~exist(resultsDir, 'dir')
mkdir(resultsDir);
end
% create directory path for new result
saveDir = strcat(pwd,'\results\room_statistical_analysis\');
if ~exist(saveDir , 'dir')
mkdir(saveDir);
end
resultsFilenames = dir(resultsDir);
resultsFilenames = resultsFilenames(3:end);
numSentences = 5;
resultsFilenames = resultsFilenames(1:9*numSentences);
degree = ["0", "30", "45", "60", "90", "min30", "min45", "min60", "min90"];
fine_statistic = cell(1, length(degree)); % the structure is degree - sentence - room - channel - subband
env_statistic = cell(1, length(degree));
for d = 1:length(degree)
FINE = cell(1, numSentences);
%FINE_LP = cell(1, numSentences);
ENV = cell(1, numSentences);
%ENV_LP = cell(1, numSentences);
idx = 1;
for i = d:9:length(resultsFilenames) % indicator for sentences
load(resultsFilenames(i).name)
disp(strcat("Processing ", resultsFilenames(i).name));
fine = cell(1, 5);
%fine_lp = cell(1, 5);
env = cell(1, 5);
%env_lp = cell(1, 5);
for j = 1:5 % indicator for numbers of room
end
FINE{idx} = fine;
%FINE_LP{idx} = fine_lp;
ENV{idx} = env;
%ENV_LP{idx} = env_lp;
idx = idx + 1;
end
fine_statistic{d} = FINE;
%fine_lp_statistic{d} = FINE_LP;
env_statistic{d} = ENV;
%env_lp_statistic{d} = ENV_LP;
disp(strcat("Completing processing data for sound comes from ", degree(d)));
end