|
1 | | -function [expParameters] = loadAudioFiles(expParameters) |
| 1 | +function [expParameters] = loadAudioFiles(cfg, expParameters) |
2 | 2 |
|
3 | 3 | %% Get parameters |
4 | 4 |
|
|
19 | 19 | soundData.S = soundData.S'; |
20 | 20 |
|
21 | 21 | %motion input |
22 | | -fileName=fullfile('input','Motion',SubjName,['rms_',SubjName,'_U.wav']); |
| 22 | +fileName=fullfile('input','Motion',subjName,['rms_',subjName,'_U.wav']); |
23 | 23 | [soundData.U , freq2] = audioread(fileName); |
24 | 24 | soundData.U = soundData.U'; |
25 | 25 |
|
26 | | -fileName=fullfile('input','Motion',SubjName,['rms_',SubjName,'_D.wav']); |
| 26 | +fileName=fullfile('input','Motion',subjName,['rms_',subjName,'_D.wav']); |
27 | 27 | [soundData.D , freq3] = audioread(fileName); |
28 | 28 | soundData.D = soundData.D'; |
29 | 29 |
|
30 | | -fileName=fullfile('input','Motion',SubjName,['rms_',SubjName,'_R.wav']); |
| 30 | +fileName=fullfile('input','Motion',subjName,['rms_',subjName,'_R.wav']); |
31 | 31 | [soundData.R , freq4] = audioread(fileName); |
32 | 32 | soundData.R = soundData.R'; |
33 | 33 |
|
34 | 34 |
|
35 | | -fileName=fullfile('input','Motion',SubjName,['rms_',SubjName,'_L.wav']); |
| 35 | +fileName=fullfile('input','Motion',subjName,['rms_',subjName,'_L.wav']); |
36 | 36 | [soundData.L , freq5] = audioread(fileName); |
37 | 37 | soundData.L = soundData.L'; |
38 | 38 |
|
|
45 | 45 | soundData.S_T = soundData.S_T'; |
46 | 46 |
|
47 | 47 | %motion Stimuli |
48 | | -fileName=fullfile('input','Motion',SubjName,['rms_',SubjName,'_U_T.wav']); |
| 48 | +fileName=fullfile('input','Motion',subjName,['rms_',subjName,'_U_T.wav']); |
49 | 49 | [soundData.U_T , freq7] = audioread(fileName); |
50 | 50 | soundData.U_T = soundData.U_T'; |
51 | 51 |
|
52 | | -fileName=fullfile('input','Motion',SubjName,['rms_',SubjName,'_D_T.wav']); |
| 52 | +fileName=fullfile('input','Motion',subjName,['rms_',subjName,'_D_T.wav']); |
53 | 53 | [soundData.D_T , freq8] = audioread(fileName); |
54 | 54 | soundData.D_T = soundData.D_T'; |
55 | 55 |
|
56 | | -fileName=fullfile('input','Motion',SubjName,['rms_',SubjName,'_R_T.wav']); |
| 56 | +fileName=fullfile('input','Motion',subjName,['rms_',subjName,'_R_T.wav']); |
57 | 57 | [soundData.R_T , freq9] = audioread(fileName); |
58 | 58 | soundData.R_T = soundData.R_T'; |
59 | 59 |
|
60 | 60 |
|
61 | | -fileName=fullfile('input','Motion',SubjName,['rms_',SubjName,'_L_T.wav']); |
| 61 | +fileName=fullfile('input','Motion',subjName,['rms_',subjName,'_L_T.wav']); |
62 | 62 | [soundData.L_T , freq10] = audioread(fileName); |
63 | 63 | soundData.L_T = soundData.L_T'; |
64 | 64 |
|
|
0 commit comments