Commit 5f9c4352 authored by alireza tbp's avatar alireza tbp

Update audioseqq.js

parent 769fc0c3
......@@ -110,13 +110,13 @@ var routineTimer;
function experimentInit() {
// Initialize components for Routine "code1"
code1Clock = new util.Clock();
ran = (Math.floor((Math.random() * ((6 - 1) + 1))) + 1);
total = [[[2, 2, 4, 1, 3, 0.4], [2, 2, 4, 1, 3, 0.4], [2, 2, 4, 3, 1, 0.4]], [[3, 1, 4, 1, 3, 0.4], [3, 1, 4, 1, 3, 0.4], [3, 1, 4, 3, 1, 0.4]], [[3, 1, 4, 2, 2, 0.4], [3, 1, 4, 2, 2, 0.4], [1, 3, 4, 2, 2, 0.4]], [[4, 1, 3, 3, 1, 0.4], [4, 1, 3, 3, 1, 0.4], [4, 3, 1, 3, 1, 0.4]], [[4, 3, 1, 1, 3, 0.4], [4, 3, 1, 1, 3, 0.4], [4, 1, 3, 1, 3, 0.4]], [[4, 3, 1, 2, 2, 0.4], [4, 3, 1, 2, 2, 0.4], [4, 1, 3, 2, 2, 0.4]], [[1, 1, 2, 3, 1, 4, 0.4], [1, 1, 2, 3, 1, 4, 0.4], [1, 1, 2, 1, 3, 4, 0.4]], [[1, 1, 2, 4, 2, 2, 0.4], [1, 1, 2, 4, 2, 2, 0.4], [2, 1, 1, 4, 2, 2, 0.4]], [[2, 1, 1, 1, 3, 4, 0.4], [2, 1, 1, 1, 3, 4, 0.4], [2, 1, 1, 3, 1, 4, 0.4]], [[2, 2, 2, 1, 1, 4, 0.4], [2, 2, 2, 1, 1, 4, 0.4], [2, 2, 1, 1, 2, 4, 0.4]], [[2, 2, 3, 1, 1, 3, 0.4], [2, 2, 3, 1, 1, 3, 0.4], [2, 2, 3, 1, 3, 1, 0.4]], [[3, 1, 1, 3, 2, 2, 0.4], [3, 1, 1, 3, 2, 2, 0.4], [3, 1, 3, 1, 2, 2, 0.4]], [[2, 1, 1, 2, 2, 4, 0.4], [2, 1, 1, 2, 2, 4, 0.4], [1, 1, 2, 2, 2, 4, 0.4]], [[2,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], [1, 1, 1, 1, 4, 1, 3, 0.4]], [[1, 1, 2, 2, 1, 1, 4, 0.4], [1, 1, 2, 2, 1, 1, 4, 0.4], [1, 1, 2, 1, 1, 2, 4, 0.4]], [[1, 1, 2, 3, 1, 1, 3, 0.4], [1, 1, 2, 3, 1, 1, 3, 0.4], [1, 1, 2, 3, 1, 3, 1, 0.4]], [[2, 2, 1, 1, 1, 1, 4, 0.4], [2, 2, 1, 1, 1, 1, 4, 0.4], [2, 1, 1, 2, 1, 1, 4, 0.4]], [[3, 1, 2, 1, 1, 1, 3, 0.4], [3, 1, 2, 1, 1, 1, 3, 0.4], [3, 1, 2, 1, 1, 3, 1, 0.4]], [[3, 1, 2, 2, 1, 1, 2, 0.4], [3, 1, 2, 2, 1, 1, 2, 0.4], [1, 3, 2, 2, 1, 1, 2, 0.4]]];
a = 0;
b = 0;
c = 0;
list = shuffle_list(total);
intervall = list[a][b].length;
ran = (Math.floor((Math.random() * ((1 - 0) + 1))) + 0);
// Initialize components for Routine "Intro"
IntroClock = new util.Clock();
text_2 = new visual.TextStim({
......@@ -692,7 +692,7 @@ function code2RoutineEnd(snapshot) {
b = 0;
if ((a < 29)) {
a += 1;
ran = (Math.floor((Math.random() * ((6 - 1) + 1))) + 1);
ran = (Math.floor((Math.random() * ((1 - 0) + 1))) + 0);
stop(ran);
stopvar = stop(ran);
intervall = list[a][b].length;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment