File tree Expand file tree Collapse file tree 2 files changed +5
-18
lines changed Expand file tree Collapse file tree 2 files changed +5
-18
lines changed Original file line number Diff line number Diff line change 8383 thisEvent.trial_type = cfg.design.blockNames{iBlock };
8484 thisEvent.direction = cfg .design .directions(iBlock , iEvent );
8585 thisEvent.fixationTarget = cfg .design .fixationTargets(iBlock , iEvent );
86-
87- % % % WIP % % %
88-
89- % thisEvent.soundTarget = cfg.design.soundTargets(iBlock, iEvent);
90-
91- % % % WIP % % %
86+ thisEvent.soundTarget = cfg .design .soundTargets(iBlock , iEvent );
9287
9388 % we wait for a trigger every 2 events
9489 if cfg .pacedByTriggers .do && mod(iEvent , 2 ) == 1
Original file line number Diff line number Diff line change 2020 direction = thisEvent .direction(1 );
2121 isFixationTarget = thisEvent .fixationTarget(1 );
2222 targetDuration = cfg .target .duration ;
23+ isSoundTarget = thisEvent .soundTarget(1 );
2324
24- % % % WIP % % %
25-
26- % isSoundTarget = thisEvent.soundTarget(1);
27-
28- % % % WIP % % %
2925
3026 soundData = cfg .soundData ;
3127
3834 fieldName = ' RLR' ;
3935 end
4036
41- % % % WIP % % %
42-
43- % if isSoundTarget == 1
44- % fieldName = [fieldName '_T'];
45- % end
46-
47- % % % WIP % % %
37+ if isSoundTarget == 1
38+ fieldName = [fieldName ' _T' ];
39+ end
4840
4941 sound = soundData.(fieldName );
5042
You can’t perform that action at this time.
0 commit comments