Skip to content

Commit 9a6bc5d

Browse files
committed
add code in the experiment to present shorter sound task
1 parent 8ce04f9 commit 9a6bc5d

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

audioLocTranslational.m

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,7 @@
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

subfun/doAuditoryMotion.m

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@
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

@@ -38,13 +34,9 @@
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

0 commit comments

Comments
 (0)