Cls: Declare p_&,m&,o&,oo&
Declare a_&,ais_&,h_&,b_&,c_&,cis_&,d_&,dis_&,e_&,f_&,fis_&,g_&,gis_&
Declare a&,ais&,h&,b&,c&,cis&,d&,dis&,e&,f&,fis&,g&,gis&
Declare a1&,ais1&,h1&,b1&,c1&,cis1&,d1&,dis1&,e1&,f1&,fis1&,g1&,gis1&
Declare a2&,ais2&,h2&,b2&,c2&,cis2&,d2&,dis2&,e2&,f2&,fis2&,g2&,gis2&
Declare k0&,k1&,k2&,k3&,k4&,k5&,k6&,k7&,k8&,k9&,k10&,k11&,k12&,k13&,k14&,k15&
m&=20 : p_&=10000/120
a_&=22:ais_&=23:h_&=24:b_&=24:c_&=25:cis_&=26:d_&=27
dis_&=28:e_&=29:f_&=30:fis_&=31:g_&=32:gis_&=33
proc o :parameters o& : oo&=12*o&
a&=a_&+oo&:ais&=ais_&+oo&:h&=h_&+oo&:b&=b_&+oo&
c&=c_&+oo&:cis&=cis_&+oo&:d&=d_&+oo&:dis&=dis_&+oo&
e&=e_&+oo&:f&=f_&+oo&:fis&=fis_&+oo&:g&=g_&+oo&
gis&=gis_&+oo&
a1&=a&+12:ais1&=ais&+12:h1&=h&+12:b1&=b&+12
c1&=c&+12:cis1&=cis&+12:d1&=d&+12:dis1&=dis&+12
e1&=e&+12:f1&=f&+12:fis1&=fis&+12:g1&=g&+12
gis1&=gis&+12
a2&=a1&+12:ais2&=ais1&+12:h2&=h1&+12:b2&=b1&+12
c2&=c1&+12:cis2&=cis1&+12:d2&=d1&+12:dis2&=dis1&+12
e2&=e1&+12:f2&=f1&+12:fis2&=fis1&+12:g2&=g1&+12
gis2&=gis1&+12
endproc
proc play14 :parameters t&,k0&,k1&,k2&,k3&,k4&,k5&,k6&,k7&,k8&,k9&,k10&,k11&,k12&,k13&
Play k0&;k1&;k2&;k3&;k4&;k5&;k6&;k7&;k8&;k9&;k10&;k11&;k12&;k13& , 0,0
waitinput t&
Play -k0&;-k1&;-k2&;-k3&;-k4&;-k5&;-k6&;-k7&;-k8&;-k9&;-k10&;-k11&;-k12&;-k13&, 0,0
endproc
proc play6 :parameters t&,k0&,k1&,k2&,k3&,k4&,k5&
Play k0&;k1&;k2&;k3&;k4&;k5& ,0,0
waitinput t&
Play -k0&;-k1&;-k2&; k3& ; -k4&;-k5&, 0,0
endproc
m&=90 ' setze Instrumentierung
play m&; m&; m&; 0; m&; m&,-1,00
waitinput 200
O(3)
play6 270, e1& ,0,0, 0, 0,0
play6 250, f1& ,0,0, 0, 0,0
play6 400, g1& ,0,0, 0, 0,0
play6 400, e1& ,0,0, 0, 0,0
play6 400, e1& ,0,0, 0, 0,0
play6 420, e1& ,0,0, 0, 0,0
play6 400, d1& ,0,0, 0, 0,0
play6 250, d1& ,d&,0, 0, 0,0
play6 250, e1& ,e&,0, 0, 0,0
play6 400, f1& ,f&,0, 0, 0,0
play6 400, d1& ,d&,0, 0, 0,0
play6 250, a2& ,a1&,0, 0, 0,0
play6 250, a2& ,a1&,0, 0, 0,0
play6 1200, g1& ,g&,0, 0, 0,0
O(2)
play6 250, e1& ,e&,g&, 0, 0,0
play6 250, f1& ,f&,a&, 0, 0,0
play6 400, g1& ,g&,c1&, 0, 0,0
play6 400, e1& ,e&,g&, 0, 0,0
play6 400, e1& ,e&,g&, 0, 0,0
play6 440, e1& ,e&,f&, 0, 0,0
play6 350, d1& ,d&,f&, 0, 0,0
play6 250, d1& ,d&,f&, 0, 0,0
play6 250, e1& ,e&,g&, 0, 0,0
play6 400, f1& ,f&,a&, 0, 0,0
play6 400, b1& ,b&,d&, 0, 0,0
play6 400, b1& ,b&,d&, 0, 0,0
play6 1600, c1& ,c&,e&,88, 0,0
waitinput 1000
'Funktion O(n) berechnet Tasten für 3 Oktaven ab dem n-gestrichenen C
O(0) : play6 200, c&,e&,g&, 88, c1&,e1&
play6 200, c1&,e1&,g1&, 88, c2&,e2&
O(2) : play6 200, c&,e&,g&, 88, c1&,e1&
play6 200, c1&,e1&,g1&, 88, c2&,e2&
waitinput 200
O(1) : play6 300, c&,e&,g&, 88, c1&,e1&
play6 300, c1&,e1&,g1&, 88, c2&,e2&
waitinput 200
O(3) : play6 400, c&,e&,g&, 88, c1&,e1&
play6 500, c1&,e1&,g1&, 88, c2&,e2&
waitinput 600
O(-1) : play6 1500, c&,e&,g&, 00, c1&,c2&
waitinput 5000
End