Commit f8f20233 authored by alireza tbp's avatar alireza tbp

Update audioseqq.js

parent 9ab1a729
......@@ -677,18 +677,34 @@ function code2RoutineEnd(snapshot) {
}
console.log('Running Code2');
console.log('C = ' + c + 'A = ' + a + 'B = ' + b);
c += 1;
if ((c > (list[a][b].length - 1))) {
c = 0;
if ((c < (list[a][b].length - 1))) {
console.log('Playing Sound');
c += 1;
stop(ran);
stopvar = stop(ran);
} else {
console.log('Reached Part 2');
c = 0;
if ((b < 2)) {
console.log('Reached Part 3');
b += 1;
}
if ((b > 2)) {
stop(ran);
stopvar = stop(ran);
} else {
console.log('Reached Part 4');
b = 0;
if ((a < 29)) {
a += 1;
ran = (Math.floor((Math.random() * ((6 - 1) + 1))) + 1);
stop(ran);
a += 1;
ran = (Math.floor((Math.random() * ((6 - 1) + 1))) + 1);
stop(ran);
stopvar = stop(ran);
intervall = list[a][b].length;
repetitionn(intervall);
repetitionvar = repetitionn(intervall);
durationn(intervall);
durationvar = durationn(intervall);
}
}
}
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