|
12 | 12 | end |
13 | 13 |
|
14 | 14 | %% Load the sounds |
15 | | - |
| 15 | + |
16 | 16 | % static Stimuli |
17 | 17 | fileName = fullfile('input', 'Static', 'Static.wav'); |
18 | 18 | [soundData.S, freq1] = audioread(fileName); |
19 | 19 | soundData.S = soundData.S'; |
20 | 20 |
|
21 | 21 | % motion input |
22 | | - fileName = fullfile('input', 'Motion', subjName, ['rms_', subjName, '_U.wav']); |
23 | | - [soundData.U, freq2] = audioread(fileName); |
24 | | - soundData.U = soundData.U'; |
25 | | - |
26 | | - fileName = fullfile('input', 'Motion', subjName, ['rms_', subjName, '_D.wav']); |
27 | | - [soundData.D, freq3] = audioread(fileName); |
28 | | - soundData.D = soundData.D'; |
29 | | - |
30 | | - fileName = fullfile('input', 'Motion', subjName, ['rms_', subjName, '_R.wav']); |
31 | | - [soundData.R, freq4] = audioread(fileName); |
32 | | - soundData.R = soundData.R'; |
| 22 | + fileName = fullfile('input', 'Motion', subjName, [ subjName, '_LRL_rms.wav']); |
| 23 | + [soundData.LRL, freq2] = audioread(fileName); |
| 24 | + soundData.LRL = soundData.LRL'; |
33 | 25 |
|
34 | | - fileName = fullfile('input', 'Motion', subjName, ['rms_', subjName, '_L.wav']); |
35 | | - [soundData.L, freq5] = audioread(fileName); |
36 | | - soundData.L = soundData.L'; |
| 26 | + fileName = fullfile('input', 'Motion', subjName, [ subjName, '_RLR_rms.wav']); |
| 27 | + [soundData.RLR, freq3] = audioread(fileName); |
| 28 | + soundData.RLR = soundData.RLR'; |
37 | 29 |
|
38 | 30 | %% Targets |
39 | 31 |
|
40 | 32 | % static Stimuli |
41 | 33 | fileName = fullfile('input', 'Static', 'Static_T.wav'); |
42 | | - [soundData.S_T, freq6] = audioread(fileName); |
| 34 | + [soundData.S_T, freq4] = audioread(fileName); |
43 | 35 | soundData.S_T = soundData.S_T'; |
44 | 36 |
|
45 | 37 | % motion Stimuli |
46 | | - fileName = fullfile('input', 'Motion', subjName, ['rms_', subjName, '_U_T.wav']); |
47 | | - [soundData.U_T, freq7] = audioread(fileName); |
48 | | - soundData.U_T = soundData.U_T'; |
49 | | - |
50 | | - fileName = fullfile('input', 'Motion', subjName, ['rms_', subjName, '_D_T.wav']); |
51 | | - [soundData.D_T, freq8] = audioread(fileName); |
52 | | - soundData.D_T = soundData.D_T'; |
53 | | - |
54 | | - fileName = fullfile('input', 'Motion', subjName, ['rms_', subjName, '_R_T.wav']); |
55 | | - [soundData.R_T, freq9] = audioread(fileName); |
56 | | - soundData.R_T = soundData.R_T'; |
| 38 | + fileName = fullfile('input', 'Motion', subjName, [ subjName, '_LRL_T_rms.wav']); |
| 39 | + [soundData.LRL_T, freq5] = audioread(fileName); |
| 40 | + soundData.LRL_T = soundData.LRL_T'; |
57 | 41 |
|
58 | | - fileName = fullfile('input', 'Motion', subjName, ['rms_', subjName, '_L_T.wav']); |
59 | | - [soundData.L_T, freq10] = audioread(fileName); |
60 | | - soundData.L_T = soundData.L_T'; |
| 42 | + fileName = fullfile('input', 'Motion', subjName, [ subjName, '_RLR_T_rms.wav']); |
| 43 | + [soundData.RLR_T, freq6] = audioread(fileName); |
| 44 | + soundData.RLR_T = soundData.RLR_T'; |
61 | 45 |
|
62 | | - if length(unique([freq1 freq2 freq3 freq4 freq5 freq6 freq7 freq8 freq9 freq10])) > 1 |
63 | | - error ('Sounds dont have the same frequency'); |
| 46 | + if length(unique([ freq1 freq2 freq3 freq4 freq5 freq6 ])) > 1 |
| 47 | + error ('Sounds do not have the same frequency'); |
64 | 48 | else |
65 | | - freq = unique([freq1 freq2 freq3 freq4 freq5 freq6 freq7 freq8 freq9 freq10]); |
| 49 | + freq = unique([ freq1 freq2 freq3 freq4 freq5 freq6 ]); |
66 | 50 | end |
67 | 51 |
|
68 | 52 | cfg.soundData = soundData; |
|
0 commit comments