Ok i finished optimizing the code
, it now only takes 3 pages (and works) and you can play with a maximum of 8 notes (but here just 4…):
MARKOV SEQ
IN 1 = TRIG IN
CV A = NOTES
TR 1 = TRIG OUT
#1
P.N 0
SCRIPT 2
CV 1 N P.HERE
TR.PULSE 1
X P.I
O 0
#2
P.N 1
P.I MUL X 4
L 1 4 : SCRIPT 3
#3
P.N 1
Y O
Z P.HERE
IF GT Y 0 : P.I ADD P.I 1
P.N 0
PROB Z : P.I SUB Y 1
#4
#5
#6
#7
#8
#M
#I
O 0
O.MIN 0
O.MAX 4
#P
4 16 0 0
1 1 1 1
0 0 0 0
63 63 63 63
0 100 0 0
3 20 0 0
7 0 0 0
8 20 0 0
0 100 0 0
0 0 0 0
0 50 0 0
0 0 0 0
0 100 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 100 0 0
0 50 0 0
0 0 0 0
0 60 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
About the tracker, it works like this:
• First bank is the note container, so put whatever you want here (right now you can just input 4 different notes)
• Second bank is the PROB sections for each note. It works by groups of 4 probabilities. From P.I 0 to 3 you can set the PROBs for the first note , from 4 to 7 are the PROBs for the second one etc… It’s like a percentage of chance to take 1 of the 4 possible paths.