-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
FEIS-dataset
committed
Aug 15, 2019
0 parents
commit 037b959
Showing
892 changed files
with
5,307 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
|
||
function initialize(box) | ||
|
||
dofile(box:get_config("${Path_Data}") .. "/plugins/stimulation/lua-stimulator-stim-codes.lua") | ||
|
||
-- each stimulation sent that gets rendered by Display Cue Image box | ||
-- should probably have a little period of time before the next one or the box wont be happy | ||
|
||
baseline_duration = 5 | ||
cue_duration = 5 | ||
prepare_articulators_duration = 1 | ||
thinking_duration = 5 | ||
speaking_duration = 5 | ||
rest_duration = 5 | ||
post_trial_duration = 1 | ||
|
||
sequence = { | ||
OVTK_StimulationId_Number_04, | ||
OVTK_StimulationId_Label_0D, | ||
OVTK_StimulationId_Label_0E, | ||
OVTK_StimulationId_Label_11, | ||
OVTK_StimulationId_Label_18, | ||
OVTK_StimulationId_Label_1F, | ||
OVTK_StimulationId_Label_15, | ||
OVTK_StimulationId_Label_0F, | ||
OVTK_StimulationId_Label_0A, | ||
OVTK_StimulationId_Label_05, | ||
OVTK_StimulationId_Label_0C, | ||
OVTK_StimulationId_Number_03, | ||
OVTK_StimulationId_Label_19, | ||
OVTK_StimulationId_Label_1D, | ||
OVTK_StimulationId_Label_13, | ||
OVTK_StimulationId_Label_12, | ||
OVTK_StimulationId_Label_1D, | ||
OVTK_StimulationId_Label_05, | ||
OVTK_StimulationId_Label_1F, | ||
OVTK_StimulationId_Label_19, | ||
OVTK_StimulationId_Label_0C, | ||
OVTK_StimulationId_Label_0E, | ||
OVTK_StimulationId_Label_13, | ||
OVTK_StimulationId_Label_0A, | ||
OVTK_StimulationId_Label_11, | ||
OVTK_StimulationId_Label_18, | ||
OVTK_StimulationId_Label_15, | ||
OVTK_StimulationId_Number_04, | ||
OVTK_StimulationId_Label_12, | ||
OVTK_StimulationId_Label_0F, | ||
OVTK_StimulationId_Number_03, | ||
OVTK_StimulationId_Label_0D, | ||
OVTK_StimulationId_Number_03, | ||
OVTK_StimulationId_Label_15, | ||
OVTK_StimulationId_Label_13, | ||
OVTK_StimulationId_Label_0C, | ||
OVTK_StimulationId_Label_05, | ||
OVTK_StimulationId_Label_0E, | ||
OVTK_StimulationId_Number_04, | ||
OVTK_StimulationId_Label_0F, | ||
OVTK_StimulationId_Label_0A, | ||
OVTK_StimulationId_Label_11, | ||
OVTK_StimulationId_Label_1D, | ||
OVTK_StimulationId_Label_19, | ||
OVTK_StimulationId_Label_12, | ||
OVTK_StimulationId_Label_18, | ||
OVTK_StimulationId_Label_1F, | ||
OVTK_StimulationId_Label_0D, | ||
OVTK_StimulationId_Number_03, | ||
OVTK_StimulationId_Label_1F, | ||
OVTK_StimulationId_Label_05, | ||
OVTK_StimulationId_Label_0F, | ||
OVTK_StimulationId_Label_11, | ||
OVTK_StimulationId_Label_13, | ||
OVTK_StimulationId_Label_0E, | ||
OVTK_StimulationId_Label_1D, | ||
OVTK_StimulationId_Label_0C, | ||
OVTK_StimulationId_Number_04, | ||
OVTK_StimulationId_Label_18, | ||
OVTK_StimulationId_Label_12, | ||
OVTK_StimulationId_Label_0D, | ||
OVTK_StimulationId_Label_0A, | ||
OVTK_StimulationId_Label_19, | ||
OVTK_StimulationId_Label_15, | ||
OVTK_StimulationId_Label_0A, | ||
OVTK_StimulationId_Label_13, | ||
OVTK_StimulationId_Label_12, | ||
OVTK_StimulationId_Label_1F, | ||
OVTK_StimulationId_Label_1D, | ||
OVTK_StimulationId_Label_18, | ||
OVTK_StimulationId_Label_0D, | ||
OVTK_StimulationId_Number_04, | ||
OVTK_StimulationId_Label_0E, | ||
OVTK_StimulationId_Label_15, | ||
OVTK_StimulationId_Number_03, | ||
OVTK_StimulationId_Label_0C, | ||
OVTK_StimulationId_Label_19, | ||
OVTK_StimulationId_Label_05, | ||
OVTK_StimulationId_Label_11, | ||
OVTK_StimulationId_Label_0F, | ||
OVTK_StimulationId_Label_1D, | ||
OVTK_StimulationId_Label_0C, | ||
OVTK_StimulationId_Number_04, | ||
OVTK_StimulationId_Label_11, | ||
OVTK_StimulationId_Label_19, | ||
OVTK_StimulationId_Label_0E, | ||
OVTK_StimulationId_Label_18, | ||
OVTK_StimulationId_Label_15, | ||
OVTK_StimulationId_Label_0D, | ||
OVTK_StimulationId_Label_13, | ||
OVTK_StimulationId_Label_1F, | ||
OVTK_StimulationId_Label_12, | ||
OVTK_StimulationId_Label_0A, | ||
OVTK_StimulationId_Label_0F, | ||
OVTK_StimulationId_Number_03, | ||
OVTK_StimulationId_Label_05, | ||
} | ||
|
||
end | ||
|
||
function process(box) | ||
|
||
local t = 0 | ||
|
||
-- Delays before the trial sequence starts | ||
|
||
box:send_stimulation(1, OVTK_StimulationId_BaselineStart, t, 0) | ||
t = t + baseline_duration | ||
|
||
-- creates each trial | ||
for i = 1, #sequence do | ||
|
||
box:send_stimulation(1, OVTK_GDF_Start_Of_Trial, t, 0) | ||
|
||
--phoneme | ||
box:send_stimulation(1, OVTK_StimulationId_Label_00, t, 0) | ||
box:send_stimulation(1, sequence[i], t, 0) | ||
t = t + cue_duration | ||
|
||
--prepare_articulators | ||
box:send_stimulation(1, OVTK_GDF_Tongue_Movement, t, 0) | ||
t = t + prepare_articulators_duration | ||
|
||
--thinking | ||
box:send_stimulation(1, OVTK_GDF_Feedback_Continuous, t, 0) | ||
t = t + thinking_duration | ||
|
||
--speaking | ||
box:send_stimulation(1, OVTK_GDF_Tongue, t, 0) | ||
t = t + speaking_duration | ||
|
||
--rest | ||
box:send_stimulation(1, OVTK_StimulationId_RestStart, t, 0) | ||
t = t + rest_duration | ||
|
||
-- end of thinking epoch and trial | ||
box:send_stimulation(1, OVTK_StimulationId_VisualStimulationStop, t, 0) | ||
box:send_stimulation(1, OVTK_StimulationId_RestStop, t, 0) | ||
t = t + post_trial_duration | ||
box:send_stimulation(1, OVTK_GDF_End_Of_Trial, t, 0) | ||
end | ||
|
||
-- send end for completeness | ||
box:send_stimulation(1, OVTK_GDF_End_Of_Session, t, 0) | ||
t = t + 5 | ||
|
||
-- used to cause the acquisition scenario to stop and denote final end of file | ||
box:send_stimulation(1, OVTK_StimulationId_ExperimentStop, t, 0) | ||
|
||
end |
Oops, something went wrong.