-
Notifications
You must be signed in to change notification settings - Fork 3
/
refreshRandom.ino
45 lines (39 loc) · 910 Bytes
/
refreshRandom.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
void refreshRandom() {
Decay = 6;
// bools.allowTranspose = true; //debug
a = random(1, 20);
b = random(1, 20);
c = random(5, 31);
mood = random(5);
portBlength = random(50, 300);
root = random(0, 12);
modTempo = random(4,12)<<1; // what does this do ?
//baseTempo = 4;
//baseTempo = random(3,5);
portBselector = random(0, 4);
scaleSelect = random(0, 3);
modulationSteps = random(0, 6);
modulationinterval = random(-7, 7)*bools.allowTranspose;
bools.swing = random(2); // 50/50 chance
bools.Arp = !(random(3)); //1 in 3 chance
bools.BASSOCT = random(2);
if (!bools.ownBeat) {
gener8BDbeat();
gener8SDbeat();
gener8hats();
}
generateOctaves();
/*
byte magic = random(0, 3);
switch (magic) {
case 0:
barLength =initBarLength >> random(4);
break;
case 1:
barLength = random(4, initBarLength+1);
break;
default:
barLength = initBarLength;
}
*/
}