2*(3*MQ + S(A,B)) + 2*(MM + S(A,B)) + 4*(3*B + S(A,A,B,B)) + 2*(B + S(A,B)) + PSPSPSSS
where:
MQ = maqsum (4 beats)
MM = masmudi (4 beats)
B = bamb (2 beats)
P = one beat pattern, consisting of D.TT