1
0

ORB - Fireworks Sparkle.milk 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. MILKDROP_PRESET_VERSION=201
  2. PSVERSION=3
  3. PSVERSION_WARP=3
  4. PSVERSION_COMP=3
  5. [preset00]
  6. fRating=3.000000
  7. fGammaAdj=2.000000
  8. fDecay=0.900000
  9. fVideoEchoZoom=1.006596
  10. fVideoEchoAlpha=0.500000
  11. nVideoEchoOrientation=1
  12. nWaveMode=1
  13. bAdditiveWaves=0
  14. bWaveDots=0
  15. bWaveThick=0
  16. bModWaveAlphaByVolume=0
  17. bMaximizeWaveColor=1
  18. bTexWrap=0
  19. bDarkenCenter=0
  20. bRedBlueStereo=0
  21. bBrighten=1
  22. bDarken=0
  23. bSolarize=0
  24. bInvert=0
  25. fWaveAlpha=0.001000
  26. fWaveScale=1.000000
  27. fWaveSmoothing=0.750000
  28. fWaveParam=0.000000
  29. fModWaveAlphaStart=0.750000
  30. fModWaveAlphaEnd=0.950000
  31. fWarpAnimSpeed=1.000000
  32. fWarpScale=1.000000
  33. fZoomExponent=1.000000
  34. fShader=0.000000
  35. zoom=0.960000
  36. rot=0.000000
  37. cx=0.500000
  38. cy=0.500000
  39. dx=0.000000
  40. dy=0.000000
  41. warp=0.000521
  42. sx=1.000000
  43. sy=1.000000
  44. wave_r=0.000000
  45. wave_g=0.000000
  46. wave_b=0.000000
  47. wave_x=0.500000
  48. wave_y=0.500000
  49. ob_size=0.010000
  50. ob_r=1.000000
  51. ob_g=1.000000
  52. ob_b=1.000000
  53. ob_a=0.000000
  54. ib_size=0.010000
  55. ib_r=0.250000
  56. ib_g=0.250000
  57. ib_b=0.250000
  58. ib_a=0.000000
  59. nMotionVectorsX=64.000000
  60. nMotionVectorsY=48.000000
  61. mv_dx=0.000000
  62. mv_dy=0.000000
  63. mv_l=0.900000
  64. mv_r=1.000000
  65. mv_g=1.000000
  66. mv_b=1.000000
  67. mv_a=0.000000
  68. b1n=0.000000
  69. b2n=0.000000
  70. b3n=0.000000
  71. b1x=1.000000
  72. b2x=1.000000
  73. b3x=1.000000
  74. b1ed=0.250000
  75. wavecode_0_enabled=1
  76. wavecode_0_samples=512
  77. wavecode_0_sep=0
  78. wavecode_0_bSpectrum=1
  79. wavecode_0_bUseDots=1
  80. wavecode_0_bDrawThick=0
  81. wavecode_0_bAdditive=1
  82. wavecode_0_scaling=1.000000
  83. wavecode_0_smoothing=0.500000
  84. wavecode_0_r=1.000000
  85. wavecode_0_g=1.000000
  86. wavecode_0_b=1.000000
  87. wavecode_0_a=1.000000
  88. wave_0_per_point1=//apply zoom burst on beat
  89. wave_0_per_point2=flag = above(q3,2);
  90. wave_0_per_point3=//state zero is ready state
  91. wave_0_per_point4=state = state + flag*equal(state,0);
  92. wave_0_per_point5=
  93. wave_0_per_point6=//upwards flight
  94. wave_0_per_point7=yval = if(equal(state,0),0, yval);
  95. wave_0_per_point8=yval = yval + 0.00004*equal(state,1);
  96. wave_0_per_point9=ymax = if(equal(state,0),rand(100)*0.004,ymax);
  97. wave_0_per_point10=
  98. wave_0_per_point11=//hit apogee
  99. wave_0_per_point12=state = if(above(yval,0.5+ymax),2,state);
  100. wave_0_per_point13=
  101. wave_0_per_point14=//reset variable
  102. wave_0_per_point15=yval = if(equal(state,0),0, yval);
  103. wave_0_per_point16=burst = if(equal(state,0),0.001,burst);
  104. wave_0_per_point17=alphax = if(equal(state,0),1,alphax);
  105. wave_0_per_point18=xdriftinc = if(equal(state,0),0,xdriftinc);
  106. wave_0_per_point19=
  107. wave_0_per_point20=burstspeed = if(equal(state,0),rand(10),burstspeed);
  108. wave_0_per_point21=xdrift = if(equal(state,0),rand(20),xdrift);
  109. wave_0_per_point22=//to get the numbers small enough have to use constants
  110. wave_0_per_point23=xdriftinc = xdriftinc
  111. wave_0_per_point24=+ equal(xdrift,0)*equal(state,1)*0.00002
  112. wave_0_per_point25=+ equal(xdrift,1)*equal(state,1)*0.000018
  113. wave_0_per_point26=+ equal(xdrift,2)*equal(state,1)*0.000016
  114. wave_0_per_point27=+ equal(xdrift,3)*equal(state,1)*0.000014
  115. wave_0_per_point28=+ equal(xdrift,4)*equal(state,1)*0.000012
  116. wave_0_per_point29=+ equal(xdrift,5)*equal(state,1)*0.00001
  117. wave_0_per_point30=+ equal(xdrift,6)*equal(state,1)*0.000008
  118. wave_0_per_point31=+ equal(xdrift,7)*equal(state,1)*0.000006
  119. wave_0_per_point32=+ equal(xdrift,8)*equal(state,1)*0.000004
  120. wave_0_per_point33=+ equal(xdrift,9)*equal(state,1)*0.000002
  121. wave_0_per_point34=+ equal(xdrift,11)*equal(state,1)*-0.000002
  122. wave_0_per_point35=+ equal(xdrift,12)*equal(state,1)*-0.000004
  123. wave_0_per_point36=+ equal(xdrift,13)*equal(state,1)*-0.000006
  124. wave_0_per_point37=+ equal(xdrift,14)*equal(state,1)*-0.000008
  125. wave_0_per_point38=+ equal(xdrift,15)*equal(state,1)*-0.00001
  126. wave_0_per_point39=+ equal(xdrift,16)*equal(state,1)*-0.000012
  127. wave_0_per_point40=+ equal(xdrift,17)*equal(state,1)*-0.000014
  128. wave_0_per_point41=+ equal(xdrift,18)*equal(state,1)*-0.000016
  129. wave_0_per_point42=+ equal(xdrift,19)*equal(state,1)*-0.000018;
  130. wave_0_per_point43=
  131. wave_0_per_point44=burst = burst
  132. wave_0_per_point45=+ equal(burstspeed,0)*equal(state,2)*0.000024
  133. wave_0_per_point46=+ equal(burstspeed,1)*equal(state,2)*0.000022
  134. wave_0_per_point47=+ equal(burstspeed,2)*equal(state,2)*0.00002
  135. wave_0_per_point48=+ equal(burstspeed,3)*equal(state,2)*0.000018
  136. wave_0_per_point49=+ equal(burstspeed,4)*equal(state,2)*0.000016
  137. wave_0_per_point50=+ equal(burstspeed,5)*equal(state,2)*0.000014
  138. wave_0_per_point51=+ equal(burstspeed,6)*equal(state,2)*0.000012
  139. wave_0_per_point52=+ equal(burstspeed,7)*equal(state,2)*0.00001
  140. wave_0_per_point53=+ equal(burstspeed,8)*equal(state,2)*0.000008
  141. wave_0_per_point54=+ equal(burstspeed,9)*equal(state,2)*0.000008;
  142. wave_0_per_point55=
  143. wave_0_per_point56=alphax = alphax - 0.00004*equal(state,2);
  144. wave_0_per_point57=state = if(below(alphax,0),0,state);
  145. wave_0_per_point58=
  146. wave_0_per_point59=
  147. wave_0_per_point60=s = sample*3.14*100;
  148. wave_0_per_point61=ss = sample*6.28*1000;
  149. wave_0_per_point62=
  150. wave_0_per_point63=//draw torus
  151. wave_0_per_point64=xs = (burst*0.1 + burst*cos(s))*cos(ss);
  152. wave_0_per_point65=ys = (burst*0.1 + burst*cos(s))*sin(ss);
  153. wave_0_per_point66=zs = burst*sin(s);
  154. wave_0_per_point67=
  155. wave_0_per_point68=
  156. wave_0_per_point69=//rotate x axis
  157. wave_0_per_point70=angle = sin(q1*0.025)*6.28;
  158. wave_0_per_point71=yx = ys*cos(angle) - zs*sin(angle);
  159. wave_0_per_point72=zx = ys*sin(angle) + zs*cos(angle);
  160. wave_0_per_point73=xx = xs;
  161. wave_0_per_point74=
  162. wave_0_per_point75=//rotate y axis
  163. wave_0_per_point76=angle2 = sin(q1*0.03)*6.28;
  164. wave_0_per_point77=xd = xx*cos(angle2) - zx*sin(angle2);
  165. wave_0_per_point78=zd = xx*sin(angle2) + zx*cos(angle2);
  166. wave_0_per_point79=yd = yx;
  167. wave_0_per_point80=
  168. wave_0_per_point81=//rotaye z axis
  169. wave_0_per_point82=angle3 = sin(q1*0.022)*6.28;
  170. wave_0_per_point83=xn = xd*cos(angle3) - yd*sin(angle3);
  171. wave_0_per_point84=yn = xd*sin(angle3) + yd*cos(angle3);
  172. wave_0_per_point85=
  173. wave_0_per_point86=zd = zd + 2;
  174. wave_0_per_point87=
  175. wave_0_per_point88=x = xn*zd*0.3 + 0.5;
  176. wave_0_per_point89=y = yn*zd*0.3*1.2;
  177. wave_0_per_point90=
  178. wave_0_per_point91=
  179. wave_0_per_point92=x = x + xdriftinc;
  180. wave_0_per_point93=y = y + sin(yval*1.5) - 0.18;
  181. wave_0_per_point94=
  182. wave_0_per_point95=
  183. wave_0_per_point96=r = 0.5 + 0.5*sin(q1*1.2 + x + x);
  184. wave_0_per_point97=g = 0.5 + 0.5*sin(q1*1.5 + x + y);
  185. wave_0_per_point98=b = 0.5 + 0.5*sin(q1*1.36 + y + y);
  186. wavecode_1_enabled=1
  187. wavecode_1_samples=512
  188. wavecode_1_sep=0
  189. wavecode_1_bSpectrum=1
  190. wavecode_1_bUseDots=1
  191. wavecode_1_bDrawThick=0
  192. wavecode_1_bAdditive=1
  193. wavecode_1_scaling=1.000000
  194. wavecode_1_smoothing=0.500000
  195. wavecode_1_r=1.000000
  196. wavecode_1_g=1.000000
  197. wavecode_1_b=1.000000
  198. wavecode_1_a=1.000000
  199. wave_1_per_point1=//apply zoom burst on beat
  200. wave_1_per_point2=flag = above(q3,2);
  201. wave_1_per_point3=//state zero is ready state
  202. wave_1_per_point4=state = state + flag*equal(state,0);
  203. wave_1_per_point5=
  204. wave_1_per_point6=//upwards flight
  205. wave_1_per_point7=yval = if(equal(state,0),0, yval);
  206. wave_1_per_point8=yval = yval + 0.00004*equal(state,1);
  207. wave_1_per_point9=ymax = if(equal(state,0),rand(100)*0.004,ymax);
  208. wave_1_per_point10=
  209. wave_1_per_point11=//hit apogee
  210. wave_1_per_point12=state = if(above(yval,0.5+ymax),2,state);
  211. wave_1_per_point13=
  212. wave_1_per_point14=//reset variable
  213. wave_1_per_point15=yval = if(equal(state,0),0, yval);
  214. wave_1_per_point16=burst = if(equal(state,0),0.001,burst);
  215. wave_1_per_point17=alphax = if(equal(state,0),1,alphax);
  216. wave_1_per_point18=xdriftinc = if(equal(state,0),0,xdriftinc);
  217. wave_1_per_point19=
  218. wave_1_per_point20=burstspeed = if(equal(state,0),rand(10),burstspeed);
  219. wave_1_per_point21=xdrift = if(equal(state,0),rand(20),xdrift);
  220. wave_1_per_point22=//to get the numbers small enough have to use constants
  221. wave_1_per_point23=xdriftinc = xdriftinc
  222. wave_1_per_point24=+ equal(xdrift,0)*equal(state,1)*0.00002
  223. wave_1_per_point25=+ equal(xdrift,1)*equal(state,1)*0.000018
  224. wave_1_per_point26=+ equal(xdrift,2)*equal(state,1)*0.000016
  225. wave_1_per_point27=+ equal(xdrift,3)*equal(state,1)*0.000014
  226. wave_1_per_point28=+ equal(xdrift,4)*equal(state,1)*0.000012
  227. wave_1_per_point29=+ equal(xdrift,5)*equal(state,1)*0.00001
  228. wave_1_per_point30=+ equal(xdrift,6)*equal(state,1)*0.000008
  229. wave_1_per_point31=+ equal(xdrift,7)*equal(state,1)*0.000006
  230. wave_1_per_point32=+ equal(xdrift,8)*equal(state,1)*0.000004
  231. wave_1_per_point33=+ equal(xdrift,9)*equal(state,1)*0.000002
  232. wave_1_per_point34=+ equal(xdrift,11)*equal(state,1)*-0.000002
  233. wave_1_per_point35=+ equal(xdrift,12)*equal(state,1)*-0.000004
  234. wave_1_per_point36=+ equal(xdrift,13)*equal(state,1)*-0.000006
  235. wave_1_per_point37=+ equal(xdrift,14)*equal(state,1)*-0.000008
  236. wave_1_per_point38=+ equal(xdrift,15)*equal(state,1)*-0.00001
  237. wave_1_per_point39=+ equal(xdrift,16)*equal(state,1)*-0.000012
  238. wave_1_per_point40=+ equal(xdrift,17)*equal(state,1)*-0.000014
  239. wave_1_per_point41=+ equal(xdrift,18)*equal(state,1)*-0.000016
  240. wave_1_per_point42=+ equal(xdrift,19)*equal(state,1)*-0.000018;
  241. wave_1_per_point43=
  242. wave_1_per_point44=burst = burst
  243. wave_1_per_point45=+ equal(burstspeed,0)*equal(state,2)*0.000024
  244. wave_1_per_point46=+ equal(burstspeed,1)*equal(state,2)*0.000022
  245. wave_1_per_point47=+ equal(burstspeed,2)*equal(state,2)*0.00002
  246. wave_1_per_point48=+ equal(burstspeed,3)*equal(state,2)*0.000018
  247. wave_1_per_point49=+ equal(burstspeed,4)*equal(state,2)*0.000016
  248. wave_1_per_point50=+ equal(burstspeed,5)*equal(state,2)*0.000014
  249. wave_1_per_point51=+ equal(burstspeed,6)*equal(state,2)*0.000012
  250. wave_1_per_point52=+ equal(burstspeed,7)*equal(state,2)*0.00001
  251. wave_1_per_point53=+ equal(burstspeed,8)*equal(state,2)*0.000008
  252. wave_1_per_point54=+ equal(burstspeed,9)*equal(state,2)*0.000008;
  253. wave_1_per_point55=
  254. wave_1_per_point56=alphax = alphax - 0.00004*equal(state,2);
  255. wave_1_per_point57=state = if(below(alphax,0),0,state);
  256. wave_1_per_point58=
  257. wave_1_per_point59=
  258. wave_1_per_point60=s = sample*3.14*100;
  259. wave_1_per_point61=ss = sample*6.28*1000;
  260. wave_1_per_point62=
  261. wave_1_per_point63=//draw torus
  262. wave_1_per_point64=xs = (burst + 0.0001*cos(s))*cos(ss);
  263. wave_1_per_point65=ys = (burst + 0.0001*cos(s))*sin(ss);
  264. wave_1_per_point66=zs = 0.1*burst*sin(s);
  265. wave_1_per_point67=
  266. wave_1_per_point68=
  267. wave_1_per_point69=//rotate x axis
  268. wave_1_per_point70=angle = sin(-q1*0.035)*6.28;
  269. wave_1_per_point71=yx = ys*cos(angle) - zs*sin(angle);
  270. wave_1_per_point72=zx = ys*sin(angle) + zs*cos(angle);
  271. wave_1_per_point73=xx = xs;
  272. wave_1_per_point74=
  273. wave_1_per_point75=//rotate y axis
  274. wave_1_per_point76=angle2 = sin(q1*0.03)*6.28;
  275. wave_1_per_point77=xd = xx*cos(angle2) - zx*sin(angle2);
  276. wave_1_per_point78=zd = xx*sin(angle2) + zx*cos(angle2);
  277. wave_1_per_point79=yd = yx;
  278. wave_1_per_point80=
  279. wave_1_per_point81=//rotaye z axis
  280. wave_1_per_point82=angle3 = sin(-q1*0.032)*6.28;
  281. wave_1_per_point83=xn = xd*cos(angle3) - yd*sin(angle3);
  282. wave_1_per_point84=yn = xd*sin(angle3) + yd*cos(angle3);
  283. wave_1_per_point85=
  284. wave_1_per_point86=zd = zd + 2;
  285. wave_1_per_point87=
  286. wave_1_per_point88=x = xn*zd*0.3 + 0.5;
  287. wave_1_per_point89=y = yn*zd*0.3*1.2;
  288. wave_1_per_point90=
  289. wave_1_per_point91=
  290. wave_1_per_point92=x = x + xdriftinc;
  291. wave_1_per_point93=y = y + sin(yval*1.5) - 0.18;
  292. wave_1_per_point94=
  293. wave_1_per_point95=
  294. wave_1_per_point96=r = 0.5 + 0.5*sin(q1*1.7 + x + x);
  295. wave_1_per_point97=g = 0.5 + 0.5*sin(q1*1.5 + x + y);
  296. wave_1_per_point98=b = 0.5 + 0.5*sin(q1*1.16 + y + y);
  297. wavecode_2_enabled=1
  298. wavecode_2_samples=512
  299. wavecode_2_sep=0
  300. wavecode_2_bSpectrum=1
  301. wavecode_2_bUseDots=1
  302. wavecode_2_bDrawThick=0
  303. wavecode_2_bAdditive=1
  304. wavecode_2_scaling=1.000000
  305. wavecode_2_smoothing=0.500000
  306. wavecode_2_r=1.000000
  307. wavecode_2_g=1.000000
  308. wavecode_2_b=1.000000
  309. wavecode_2_a=1.000000
  310. wave_2_per_point1=//apply zoom burst on beat
  311. wave_2_per_point2=flag = above(q3,2);
  312. wave_2_per_point3=//state zero is ready state
  313. wave_2_per_point4=state = state + flag*equal(state,0);
  314. wave_2_per_point5=
  315. wave_2_per_point6=//upwards flight
  316. wave_2_per_point7=yval = if(equal(state,0),0, yval);
  317. wave_2_per_point8=yval = yval + 0.00004*equal(state,1);
  318. wave_2_per_point9=ymax = if(equal(state,0),rand(100)*0.004,ymax);
  319. wave_2_per_point10=
  320. wave_2_per_point11=//hit apogee
  321. wave_2_per_point12=state = if(above(yval,0.5+ymax),2,state);
  322. wave_2_per_point13=
  323. wave_2_per_point14=//reset variable
  324. wave_2_per_point15=yval = if(equal(state,0),0, yval);
  325. wave_2_per_point16=burst = if(equal(state,0),0.001,burst);
  326. wave_2_per_point17=alphax = if(equal(state,0),1,alphax);
  327. wave_2_per_point18=xdriftinc = if(equal(state,0),0,xdriftinc);
  328. wave_2_per_point19=
  329. wave_2_per_point20=burstspeed = if(equal(state,0),rand(10),burstspeed);
  330. wave_2_per_point21=xdrift = if(equal(state,0),rand(20),xdrift);
  331. wave_2_per_point22=//to get the numbers small enough have to use constants
  332. wave_2_per_point23=xdriftinc = xdriftinc
  333. wave_2_per_point24=+ equal(xdrift,0)*equal(state,1)*0.00002
  334. wave_2_per_point25=+ equal(xdrift,1)*equal(state,1)*0.000018
  335. wave_2_per_point26=+ equal(xdrift,2)*equal(state,1)*0.000016
  336. wave_2_per_point27=+ equal(xdrift,3)*equal(state,1)*0.000014
  337. wave_2_per_point28=+ equal(xdrift,4)*equal(state,1)*0.000012
  338. wave_2_per_point29=+ equal(xdrift,5)*equal(state,1)*0.00001
  339. wave_2_per_point30=+ equal(xdrift,6)*equal(state,1)*0.000008
  340. wave_2_per_point31=+ equal(xdrift,7)*equal(state,1)*0.000006
  341. wave_2_per_point32=+ equal(xdrift,8)*equal(state,1)*0.000004
  342. wave_2_per_point33=+ equal(xdrift,9)*equal(state,1)*0.000002
  343. wave_2_per_point34=+ equal(xdrift,11)*equal(state,1)*-0.000002
  344. wave_2_per_point35=+ equal(xdrift,12)*equal(state,1)*-0.000004
  345. wave_2_per_point36=+ equal(xdrift,13)*equal(state,1)*-0.000006
  346. wave_2_per_point37=+ equal(xdrift,14)*equal(state,1)*-0.000008
  347. wave_2_per_point38=+ equal(xdrift,15)*equal(state,1)*-0.00001
  348. wave_2_per_point39=+ equal(xdrift,16)*equal(state,1)*-0.000012
  349. wave_2_per_point40=+ equal(xdrift,17)*equal(state,1)*-0.000014
  350. wave_2_per_point41=+ equal(xdrift,18)*equal(state,1)*-0.000016
  351. wave_2_per_point42=+ equal(xdrift,19)*equal(state,1)*-0.000018;
  352. wave_2_per_point43=
  353. wave_2_per_point44=burst = burst
  354. wave_2_per_point45=+ equal(burstspeed,0)*equal(state,2)*0.000024
  355. wave_2_per_point46=+ equal(burstspeed,1)*equal(state,2)*0.000022
  356. wave_2_per_point47=+ equal(burstspeed,2)*equal(state,2)*0.00002
  357. wave_2_per_point48=+ equal(burstspeed,3)*equal(state,2)*0.000018
  358. wave_2_per_point49=+ equal(burstspeed,4)*equal(state,2)*0.000016
  359. wave_2_per_point50=+ equal(burstspeed,5)*equal(state,2)*0.000014
  360. wave_2_per_point51=+ equal(burstspeed,6)*equal(state,2)*0.000012
  361. wave_2_per_point52=+ equal(burstspeed,7)*equal(state,2)*0.00001
  362. wave_2_per_point53=+ equal(burstspeed,8)*equal(state,2)*0.000008
  363. wave_2_per_point54=+ equal(burstspeed,9)*equal(state,2)*0.000008;
  364. wave_2_per_point55=
  365. wave_2_per_point56=alphax = alphax - 0.00004*equal(state,2);
  366. wave_2_per_point57=state = if(below(alphax,0),0,state);
  367. wave_2_per_point58=
  368. wave_2_per_point59=
  369. wave_2_per_point60=s = sample*3.14*100;
  370. wave_2_per_point61=ss = sample*6.28*1000;
  371. wave_2_per_point62=
  372. wave_2_per_point63=//draw torus
  373. wave_2_per_point64=xs = (burst*0.8 + 0.4*burst*cos(s))*cos(ss);
  374. wave_2_per_point65=ys = (burst*0.8 + 0.4*burst*cos(s))*sin(ss);
  375. wave_2_per_point66=zs = 0.4*burst*sin(s);
  376. wave_2_per_point67=
  377. wave_2_per_point68=
  378. wave_2_per_point69=//rotate x axis
  379. wave_2_per_point70=angle = sin(-q1*0.015)*6.28;
  380. wave_2_per_point71=yx = ys*cos(angle) - zs*sin(angle);
  381. wave_2_per_point72=zx = ys*sin(angle) + zs*cos(angle);
  382. wave_2_per_point73=xx = xs;
  383. wave_2_per_point74=
  384. wave_2_per_point75=//rotate y axis
  385. wave_2_per_point76=angle2 = sin(q1*0.01579)*6.28;
  386. wave_2_per_point77=xd = xx*cos(angle2) - zx*sin(angle2);
  387. wave_2_per_point78=zd = xx*sin(angle2) + zx*cos(angle2);
  388. wave_2_per_point79=yd = yx;
  389. wave_2_per_point80=
  390. wave_2_per_point81=//rotaye z axis
  391. wave_2_per_point82=angle3 = sin(q1*0.022)*6.28;
  392. wave_2_per_point83=xn = xd*cos(angle3) - yd*sin(angle3);
  393. wave_2_per_point84=yn = xd*sin(angle3) + yd*cos(angle3);
  394. wave_2_per_point85=
  395. wave_2_per_point86=zd = zd + 2;
  396. wave_2_per_point87=
  397. wave_2_per_point88=x = xn*zd*0.3 + 0.5;
  398. wave_2_per_point89=y = yn*zd*0.3*1.2;
  399. wave_2_per_point90=
  400. wave_2_per_point91=
  401. wave_2_per_point92=x = x + xdriftinc;
  402. wave_2_per_point93=y = y + sin(yval*1.5) - 0.18;
  403. wave_2_per_point94=
  404. wave_2_per_point95=
  405. wave_2_per_point96=r = 0.5 + 0.5*sin(q1*1.27 + x + x);
  406. wave_2_per_point97=g = 0.5 + 0.5*sin(q1*1.5 + x + y);
  407. wave_2_per_point98=b = 0.5 + 0.5*sin(q1*1.346 + y + y);
  408. wavecode_3_enabled=1
  409. wavecode_3_samples=512
  410. wavecode_3_sep=0
  411. wavecode_3_bSpectrum=1
  412. wavecode_3_bUseDots=1
  413. wavecode_3_bDrawThick=0
  414. wavecode_3_bAdditive=1
  415. wavecode_3_scaling=1.000000
  416. wavecode_3_smoothing=0.500000
  417. wavecode_3_r=1.000000
  418. wavecode_3_g=1.000000
  419. wavecode_3_b=1.000000
  420. wavecode_3_a=1.000000
  421. wave_3_per_point1=//apply zoom burst on beat
  422. wave_3_per_point2=flag = above(q3,2);
  423. wave_3_per_point3=//state zero is ready state
  424. wave_3_per_point4=state = state + flag*equal(state,0);
  425. wave_3_per_point5=
  426. wave_3_per_point6=//upwards flight
  427. wave_3_per_point7=yval = if(equal(state,0),0, yval);
  428. wave_3_per_point8=yval = yval + 0.00004*equal(state,1);
  429. wave_3_per_point9=ymax = if(equal(state,0),rand(100)*0.004,ymax);
  430. wave_3_per_point10=
  431. wave_3_per_point11=//hit apogee
  432. wave_3_per_point12=state = if(above(yval,0.5+ymax),2,state);
  433. wave_3_per_point13=
  434. wave_3_per_point14=//reset variable
  435. wave_3_per_point15=yval = if(equal(state,0),0, yval);
  436. wave_3_per_point16=burst = if(equal(state,0),0.001,burst);
  437. wave_3_per_point17=alphax = if(equal(state,0),1,alphax);
  438. wave_3_per_point18=xdriftinc = if(equal(state,0),0,xdriftinc);
  439. wave_3_per_point19=
  440. wave_3_per_point20=burstspeed = if(equal(state,0),rand(10),burstspeed);
  441. wave_3_per_point21=xdrift = if(equal(state,0),rand(20),xdrift);
  442. wave_3_per_point22=//to get the numbers small enough have to use constants
  443. wave_3_per_point23=xdriftinc = xdriftinc
  444. wave_3_per_point24=+ equal(xdrift,0)*equal(state,1)*0.00002
  445. wave_3_per_point25=+ equal(xdrift,1)*equal(state,1)*0.000018
  446. wave_3_per_point26=+ equal(xdrift,2)*equal(state,1)*0.000016
  447. wave_3_per_point27=+ equal(xdrift,3)*equal(state,1)*0.000014
  448. wave_3_per_point28=+ equal(xdrift,4)*equal(state,1)*0.000012
  449. wave_3_per_point29=+ equal(xdrift,5)*equal(state,1)*0.00001
  450. wave_3_per_point30=+ equal(xdrift,6)*equal(state,1)*0.000008
  451. wave_3_per_point31=+ equal(xdrift,7)*equal(state,1)*0.000006
  452. wave_3_per_point32=+ equal(xdrift,8)*equal(state,1)*0.000004
  453. wave_3_per_point33=+ equal(xdrift,9)*equal(state,1)*0.000002
  454. wave_3_per_point34=+ equal(xdrift,11)*equal(state,1)*-0.000002
  455. wave_3_per_point35=+ equal(xdrift,12)*equal(state,1)*-0.000004
  456. wave_3_per_point36=+ equal(xdrift,13)*equal(state,1)*-0.000006
  457. wave_3_per_point37=+ equal(xdrift,14)*equal(state,1)*-0.000008
  458. wave_3_per_point38=+ equal(xdrift,15)*equal(state,1)*-0.00001
  459. wave_3_per_point39=+ equal(xdrift,16)*equal(state,1)*-0.000012
  460. wave_3_per_point40=+ equal(xdrift,17)*equal(state,1)*-0.000014
  461. wave_3_per_point41=+ equal(xdrift,18)*equal(state,1)*-0.000016
  462. wave_3_per_point42=+ equal(xdrift,19)*equal(state,1)*-0.000018;
  463. wave_3_per_point43=
  464. wave_3_per_point44=burst = burst
  465. wave_3_per_point45=+ equal(burstspeed,0)*equal(state,2)*0.000024
  466. wave_3_per_point46=+ equal(burstspeed,1)*equal(state,2)*0.000022
  467. wave_3_per_point47=+ equal(burstspeed,2)*equal(state,2)*0.00002
  468. wave_3_per_point48=+ equal(burstspeed,3)*equal(state,2)*0.000018
  469. wave_3_per_point49=+ equal(burstspeed,4)*equal(state,2)*0.000016
  470. wave_3_per_point50=+ equal(burstspeed,5)*equal(state,2)*0.000014
  471. wave_3_per_point51=+ equal(burstspeed,6)*equal(state,2)*0.000012
  472. wave_3_per_point52=+ equal(burstspeed,7)*equal(state,2)*0.00001
  473. wave_3_per_point53=+ equal(burstspeed,8)*equal(state,2)*0.000008
  474. wave_3_per_point54=+ equal(burstspeed,9)*equal(state,2)*0.000008;
  475. wave_3_per_point55=
  476. wave_3_per_point56=alphax = alphax - 0.00004*equal(state,2);
  477. wave_3_per_point57=state = if(below(alphax,0),0,state);
  478. wave_3_per_point58=
  479. wave_3_per_point59=
  480. wave_3_per_point60=s = sample*3.14*100;
  481. wave_3_per_point61=ss = sample*6.28*1000;
  482. wave_3_per_point62=
  483. wave_3_per_point63=//draw torus
  484. wave_3_per_point64=xs = (burst + 0.0001*cos(s))*cos(ss);
  485. wave_3_per_point65=ys = (burst + 0.0001*cos(s))*sin(ss);
  486. wave_3_per_point66=zs = 0.1*burst*sin(s);
  487. wave_3_per_point67=
  488. wave_3_per_point68=
  489. wave_3_per_point69=//rotate x axis
  490. wave_3_per_point70=angle = sin(-q1*0.035)*6.28;
  491. wave_3_per_point71=yx = ys*cos(angle) - zs*sin(angle);
  492. wave_3_per_point72=zx = ys*sin(angle) + zs*cos(angle);
  493. wave_3_per_point73=xx = xs;
  494. wave_3_per_point74=
  495. wave_3_per_point75=//rotate y axis
  496. wave_3_per_point76=angle2 = sin(-q1*0.03)*6.28;
  497. wave_3_per_point77=xd = xx*cos(angle2) - zx*sin(angle2);
  498. wave_3_per_point78=zd = xx*sin(angle2) + zx*cos(angle2);
  499. wave_3_per_point79=yd = yx;
  500. wave_3_per_point80=
  501. wave_3_per_point81=//rotaye z axis
  502. wave_3_per_point82=angle3 = sin(-q1*0.022)*6.28;
  503. wave_3_per_point83=xn = xd*cos(angle3) - yd*sin(angle3);
  504. wave_3_per_point84=yn = xd*sin(angle3) + yd*cos(angle3);
  505. wave_3_per_point85=
  506. wave_3_per_point86=zd = zd + 2;
  507. wave_3_per_point87=
  508. wave_3_per_point88=x = xn*zd*0.3 + 0.5;
  509. wave_3_per_point89=y = yn*zd*0.3*1.2;
  510. wave_3_per_point90=
  511. wave_3_per_point91=
  512. wave_3_per_point92=x = x + xdriftinc;
  513. wave_3_per_point93=y = y + sin(yval*1.5) - 0.18;
  514. wave_3_per_point94=
  515. wave_3_per_point95=
  516. wave_3_per_point96=r = 0.5 + 0.5*sin(q1*1.3 + x + x);
  517. wave_3_per_point97=g = 0.5 + 0.5*sin(q1*1.1 + x + y);
  518. wave_3_per_point98=b = 0.5 + 0.5*sin(q1*1.66 + y + y);
  519. shapecode_0_enabled=0
  520. shapecode_0_sides=4
  521. shapecode_0_additive=0
  522. shapecode_0_thickOutline=0
  523. shapecode_0_textured=1
  524. shapecode_0_x=0.500000
  525. shapecode_0_y=0.500000
  526. shapecode_0_rad=2.667177
  527. shapecode_0_ang=0.000000
  528. shapecode_0_tex_ang=0.000000
  529. shapecode_0_tex_zoom=0.451117
  530. shapecode_0_r=1.000000
  531. shapecode_0_g=1.000000
  532. shapecode_0_b=0.000000
  533. shapecode_0_a=0.200000
  534. shapecode_0_r2=0.000000
  535. shapecode_0_g2=0.000000
  536. shapecode_0_b2=0.000000
  537. shapecode_0_a2=0.200000
  538. shapecode_0_border_r=1.000000
  539. shapecode_0_border_g=1.000000
  540. shapecode_0_border_b=1.000000
  541. shapecode_0_border_a=0.100000
  542. shapecode_1_enabled=1
  543. shapecode_1_sides=100
  544. shapecode_1_additive=0
  545. shapecode_1_thickOutline=0
  546. shapecode_1_textured=1
  547. shapecode_1_x=0.500000
  548. shapecode_1_y=0.500000
  549. shapecode_1_rad=2.380961
  550. shapecode_1_ang=0.000000
  551. shapecode_1_tex_ang=0.000000
  552. shapecode_1_tex_zoom=0.424973
  553. shapecode_1_r=0.000000
  554. shapecode_1_g=0.000000
  555. shapecode_1_b=1.000000
  556. shapecode_1_a=0.600000
  557. shapecode_1_r2=0.000000
  558. shapecode_1_g2=0.000000
  559. shapecode_1_b2=0.000000
  560. shapecode_1_a2=0.600000
  561. shapecode_1_border_r=1.000000
  562. shapecode_1_border_g=1.000000
  563. shapecode_1_border_b=1.000000
  564. shapecode_1_border_a=1.000000
  565. shape_1_per_frame1=r = 0.1 + 0.5*sin(q1);
  566. shape_1_per_frame2=g = 0.1 + 0.5*sin(q1*0.9878);
  567. shape_1_per_frame3=b = 0.1 + 0.5*sin(q1*0.897);
  568. shapecode_2_enabled=0
  569. shapecode_2_sides=4
  570. shapecode_2_additive=0
  571. shapecode_2_thickOutline=0
  572. shapecode_2_textured=0
  573. shapecode_2_x=0.500000
  574. shapecode_2_y=0.500000
  575. shapecode_2_rad=0.100000
  576. shapecode_2_ang=0.000000
  577. shapecode_2_tex_ang=0.000000
  578. shapecode_2_tex_zoom=1.000000
  579. shapecode_2_r=1.000000
  580. shapecode_2_g=0.000000
  581. shapecode_2_b=0.000000
  582. shapecode_2_a=1.000000
  583. shapecode_2_r2=0.000000
  584. shapecode_2_g2=1.000000
  585. shapecode_2_b2=0.000000
  586. shapecode_2_a2=0.000000
  587. shapecode_2_border_r=1.000000
  588. shapecode_2_border_g=1.000000
  589. shapecode_2_border_b=1.000000
  590. shapecode_2_border_a=0.100000
  591. shapecode_3_enabled=0
  592. shapecode_3_sides=4
  593. shapecode_3_additive=0
  594. shapecode_3_thickOutline=0
  595. shapecode_3_textured=0
  596. shapecode_3_x=0.500000
  597. shapecode_3_y=0.500000
  598. shapecode_3_rad=0.100000
  599. shapecode_3_ang=0.000000
  600. shapecode_3_tex_ang=0.000000
  601. shapecode_3_tex_zoom=1.000000
  602. shapecode_3_r=1.000000
  603. shapecode_3_g=0.000000
  604. shapecode_3_b=0.000000
  605. shapecode_3_a=1.000000
  606. shapecode_3_r2=0.000000
  607. shapecode_3_g2=1.000000
  608. shapecode_3_b2=0.000000
  609. shapecode_3_a2=0.000000
  610. shapecode_3_border_r=1.000000
  611. shapecode_3_border_g=1.000000
  612. shapecode_3_border_b=1.000000
  613. shapecode_3_border_a=0.100000
  614. per_frame_init_1=state = 0;
  615. per_frame_1=basstime = basstime + bass*0.06;
  616. per_frame_2=q1 = basstime;
  617. per_frame_3=
  618. per_frame_4=basstime = if(below(basstime,1000),1000,basstime);
  619. per_frame_5=
  620. per_frame_6=vol = pow(bass+mid+treb,2);
  621. per_frame_7=basssum = vol;
  622. per_frame_8=
  623. per_frame_9=stickybit = time%2;
  624. per_frame_10=
  625. per_frame_11=//avg vol
  626. per_frame_12=//buffer 1
  627. per_frame_13=volAvg = volAvg + vol*equal(stickybit,1);
  628. per_frame_14=//number of samples 1 or framerate
  629. per_frame_15=sample1 = sample1 + equal(stickybit,1);
  630. per_frame_16=//buffer 2
  631. per_frame_17=volAvg2 = volAvg2 + vol*equal(stickybit,0);
  632. per_frame_18=//number of samples 2
  633. per_frame_19=sample2 = sample2 + equal(stickybit,0);
  634. per_frame_20=
  635. per_frame_21=//transision
  636. per_frame_22=edge = bnot(equal(bit2,stickybit));
  637. per_frame_23=
  638. per_frame_24=volAvg = volAvg - volAvg*edge*stickybit;
  639. per_frame_25=volAvg2 = volAvg2 - volAvg2*edge*equal(stickybit,0);
  640. per_frame_26=
  641. per_frame_27=sample1 = sample1 - sample1*edge*stickybit;
  642. per_frame_28=sample2 = sample2 - sample2*edge*equal(stickybit,0);
  643. per_frame_29=
  644. per_frame_30=//test vol against avg buffer lvl
  645. per_frame_31=diff = if(equal(stickybit,1), (basssum/(volAvg2/sample2)) , 0);
  646. per_frame_32=diff = if(equal(stickybit,0), (basssum/(volAvg/sample1)), diff);
  647. per_frame_33=
  648. per_frame_34=q3 = diff;
  649. per_frame_35=
  650. per_frame_36=bit2 = time%2;
  651. per_frame_37=
  652. per_frame_38=difftime = difftime + diff*0.03;
  653. per_frame_39=q2 = difftime;
  654. per_frame_40=
  655. per_frame_41=//fix a strange error
  656. per_frame_42=difftime = if(above(difftime,2000),0, difftime);
  657. per_frame_43=
  658. per_pixel_1=zoom = 1;
  659. warp_1=`shader_body
  660. warp_2=`{
  661. warp_3=`
  662. warp_4=` float3 txr = float3(uv,q1*0.1);
  663. warp_5=` float2 uv2 = uv;
  664. warp_6=` uv2 = uv + texsize.zx*(q3,q3);
  665. warp_7=` float3 color = tex2D(sampler_noise_lq, uv2) - 0.5;
  666. warp_8=` color += tex2D(sampler_noise_mq, uv2) - 0.5;
  667. warp_9=` color += tex2D(sampler_noise_hq, uv2) - 0.5;
  668. warp_10=` uv += color*0.01;
  669. warp_11=` //uv.y += abs(color*0.01) + bass_att*0.01;
  670. warp_12=`
  671. warp_13=` float2x2 rot = { cos(q9), sin(q9),
  672. warp_14=` -sin(q9), cos(q9) };
  673. warp_15=`
  674. warp_16=`
  675. warp_17=` ret = tex2D( sampler_main, mul(((uv-0.5)*(0.97 + rad*0.02)),rot) + 0.5
  676. warp_18=` + GetBlur1((uv - 0.5)*0.9 + 0.5)*(uv.y*0.1) - 0.01).xyz;
  677. warp_19=` ret = ret-0.001;// - 0.08; //or try: ret -= 0.004;
  678. warp_20=`}
  679. comp_1=`
  680. comp_2=`shader_body
  681. comp_3=`{
  682. comp_4=` float2 uv_echo = (uv - 0.5)*0.993*float2(-1,1) + 0.5;
  683. comp_5=` ret = lerp( tex2D(sampler_main, uv).xyz,
  684. comp_6=` tex2D(sampler_main, uv_echo).xyz,
  685. comp_7=` 0.50
  686. comp_8=` ); //video echo
  687. comp_9=` ret *= 2.00; //gamma
  688. comp_10=` ret = ret*(1 - ret)*10; //brighten
  689. comp_11=`}