martin - fruit machine.milk 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. MILKDROP_PRESET_VERSION=201
  2. PSVERSION=2
  3. PSVERSION_WARP=2
  4. PSVERSION_COMP=2
  5. [preset00]
  6. fRating=4.000000
  7. fGammaAdj=1.980001
  8. fDecay=0.500000
  9. fVideoEchoZoom=0.999998
  10. fVideoEchoAlpha=0.500000
  11. nVideoEchoOrientation=3
  12. nWaveMode=5
  13. bAdditiveWaves=0
  14. bWaveDots=1
  15. bWaveThick=0
  16. bModWaveAlphaByVolume=1
  17. bMaximizeWaveColor=0
  18. bTexWrap=1
  19. bDarkenCenter=0
  20. bRedBlueStereo=0
  21. bBrighten=0
  22. bDarken=1
  23. bSolarize=0
  24. bInvert=0
  25. fWaveAlpha=0.001000
  26. fWaveScale=1.169162
  27. fWaveSmoothing=0.000000
  28. fWaveParam=0.080000
  29. fModWaveAlphaStart=0.000000
  30. fModWaveAlphaEnd=1.320000
  31. fWarpAnimSpeed=1.459500
  32. fWarpScale=2.006700
  33. fZoomExponent=1.000000
  34. fShader=0.000000
  35. zoom=0.999900
  36. rot=0.000000
  37. cx=0.500000
  38. cy=0.500000
  39. dx=0.000000
  40. dy=0.000000
  41. warp=0.010000
  42. sx=0.999900
  43. sy=1.000000
  44. wave_r=0.000000
  45. wave_g=0.990000
  46. wave_b=1.000000
  47. wave_x=0.500000
  48. wave_y=0.500000
  49. ob_size=0.015000
  50. ob_r=0.000000
  51. ob_g=0.000000
  52. ob_b=1.000000
  53. ob_a=0.000000
  54. ib_size=0.260000
  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.000000
  64. mv_r=0.499900
  65. mv_g=0.499900
  66. mv_b=0.499900
  67. mv_a=0.000000
  68. b1n=0.000000
  69. b2n=0.000000
  70. b3n=0.000000
  71. b1x=1.000000
  72. b2x=0.300000
  73. b3x=1.000000
  74. b1ed=0.000000
  75. wavecode_0_enabled=0
  76. wavecode_0_samples=512
  77. wavecode_0_sep=120
  78. wavecode_0_bSpectrum=0
  79. wavecode_0_bUseDots=1
  80. wavecode_0_bDrawThick=0
  81. wavecode_0_bAdditive=1
  82. wavecode_0_scaling=0.891519
  83. wavecode_0_smoothing=0.820000
  84. wavecode_0_r=1.000000
  85. wavecode_0_g=1.000000
  86. wavecode_0_b=1.000000
  87. wavecode_0_a=0.600000
  88. wave_0_per_frame1=t2 = t2 + bass_att;
  89. wave_0_per_point1=k1 = (sample*100)%8;
  90. wave_0_per_point2=k2 = bnot (k1);
  91. wave_0_per_point3=xi = value1*k2 + xi*(1-k2);
  92. wave_0_per_point4=yi = value2*(1-k2) + yi*k2;
  93. wave_0_per_point5=
  94. wave_0_per_point6=dx = dx*.99 + xi;
  95. wave_0_per_point7=dy = dy*.99 + yi;
  96. wave_0_per_point8=
  97. wave_0_per_point9=x = .5 + xi/2;
  98. wave_0_per_point10=y = .5 + yi/2;
  99. wave_0_per_point11=
  100. wave_0_per_point12=a = q22/8;
  101. wave_0_per_point13=a = min(a,.4);
  102. wavecode_1_enabled=0
  103. wavecode_1_samples=512
  104. wavecode_1_sep=0
  105. wavecode_1_bSpectrum=0
  106. wavecode_1_bUseDots=0
  107. wavecode_1_bDrawThick=1
  108. wavecode_1_bAdditive=0
  109. wavecode_1_scaling=0.891519
  110. wavecode_1_smoothing=0.820000
  111. wavecode_1_r=1.000000
  112. wavecode_1_g=1.000000
  113. wavecode_1_b=1.000000
  114. wavecode_1_a=0.020000
  115. wave_1_per_frame1=tm = time*.1;
  116. wave_1_per_frame2=t1 = t1*sin(tm*t4) + (1-t1)*sin(tm*t7);
  117. wave_1_per_frame3=t2 = t2*sin(tm*t5) + (1-t2)*sin(tm*t8);
  118. wave_1_per_frame4=t3 = t3*sin(tm*t6) + (1-t3)*sin(tm*1);
  119. wave_1_per_frame5=
  120. wave_1_per_frame6=tic = min(time - tin,1);
  121. wave_1_per_frame7=tin = time;
  122. wave_1_per_frame8=
  123. wave_1_per_frame9=tva = (tic*q1*.5);
  124. wave_1_per_frame10=tvb = (tic*q2*.5);
  125. wave_1_per_frame11=tvc = (tic*q3*.5);
  126. wave_1_per_frame12=
  127. wave_1_per_frame13=q1 = tva;
  128. wave_1_per_frame14=q2 = tvb;
  129. wave_1_per_frame15=q3 = tvc;
  130. wave_1_per_frame16=
  131. wave_1_per_frame17=sz = .5;
  132. wave_1_per_frame18=len = q4;
  133. wave_1_per_frame19=t4 = len;
  134. wavecode_2_enabled=0
  135. wavecode_2_samples=512
  136. wavecode_2_sep=0
  137. wavecode_2_bSpectrum=0
  138. wavecode_2_bUseDots=0
  139. wavecode_2_bDrawThick=1
  140. wavecode_2_bAdditive=0
  141. wavecode_2_scaling=0.891519
  142. wavecode_2_smoothing=0.820000
  143. wavecode_2_r=0.000000
  144. wavecode_2_g=0.200000
  145. wavecode_2_b=0.000000
  146. wavecode_2_a=1.000000
  147. wave_2_per_frame1=tm = time*.1;
  148. wave_2_per_frame2=t1 = t1*sin(tm*t4) + (1-t1)*sin(tm*t7);
  149. wave_2_per_frame3=t2 = t2*sin(tm*t5) + (1-t2)*sin(tm*t8);
  150. wave_2_per_frame4=t3 = t3*sin(tm*t6) + (1-t3)*sin(tm*1);
  151. wave_2_per_frame5=
  152. wave_2_per_frame6=tic = min(time - tin,1);
  153. wave_2_per_frame7=tin = time;
  154. wave_2_per_frame8=
  155. wave_2_per_frame9=tva = (tic*q1*.5);
  156. wave_2_per_frame10=tvb = (tic*q2*.5);
  157. wave_2_per_frame11=tvc = (tic*q3*.5);
  158. wave_2_per_frame12=
  159. wave_2_per_frame13=q1 = tva;
  160. wave_2_per_frame14=q2 = tvb;
  161. wave_2_per_frame15=q3 = tvc;
  162. wave_2_per_frame16=
  163. wave_2_per_frame17=sz = .5;
  164. wave_2_per_frame18=len = 1;
  165. wave_2_per_frame19=t4 = len;
  166. wavecode_3_enabled=0
  167. wavecode_3_samples=512
  168. wavecode_3_sep=0
  169. wavecode_3_bSpectrum=1
  170. wavecode_3_bUseDots=1
  171. wavecode_3_bDrawThick=0
  172. wavecode_3_bAdditive=0
  173. wavecode_3_scaling=1.000000
  174. wavecode_3_smoothing=0.500000
  175. wavecode_3_r=1.000000
  176. wavecode_3_g=1.000000
  177. wavecode_3_b=1.000000
  178. wavecode_3_a=1.000000
  179. shapecode_0_enabled=1
  180. shapecode_0_sides=53
  181. shapecode_0_additive=0
  182. shapecode_0_thickOutline=0
  183. shapecode_0_textured=0
  184. shapecode_0_x=0.500000
  185. shapecode_0_y=0.500000
  186. shapecode_0_rad=0.054080
  187. shapecode_0_ang=0.000000
  188. shapecode_0_tex_ang=1.005310
  189. shapecode_0_tex_zoom=1.531168
  190. shapecode_0_r=0.200000
  191. shapecode_0_g=0.700000
  192. shapecode_0_b=0.000000
  193. shapecode_0_a=1.000000
  194. shapecode_0_r2=0.000000
  195. shapecode_0_g2=0.000000
  196. shapecode_0_b2=0.000000
  197. shapecode_0_a2=1.000000
  198. shapecode_0_border_r=1.000000
  199. shapecode_0_border_g=1.000000
  200. shapecode_0_border_b=0.000000
  201. shapecode_0_border_a=0.000000
  202. shape_0_per_frame1=
  203. shape_0_per_frame2=x = .5;
  204. shape_0_per_frame3=y = .5;
  205. shape_0_per_frame4=a = q24;
  206. shape_0_per_frame5=a2 = 0;
  207. shape_0_per_frame6=//a = 1;
  208. shape_0_per_frame7=a = 0;
  209. shape_0_per_frame8=rad0 = bnot(q24) * rad0 + rand(10)/50*q24;
  210. shape_0_per_frame9=rad = rad0;
  211. shape_0_per_frame10=b = 0; r = rand(10)/10; g = 1;
  212. shape_0_per_frame11=a2 = q24;
  213. shapecode_1_enabled=1
  214. shapecode_1_sides=44
  215. shapecode_1_additive=0
  216. shapecode_1_thickOutline=0
  217. shapecode_1_textured=1
  218. shapecode_1_x=0.700000
  219. shapecode_1_y=0.500000
  220. shapecode_1_rad=0.217300
  221. shapecode_1_ang=0.000000
  222. shapecode_1_tex_ang=0.000000
  223. shapecode_1_tex_zoom=3.277448
  224. shapecode_1_r=1.000000
  225. shapecode_1_g=1.000000
  226. shapecode_1_b=0.500000
  227. shapecode_1_a=1.000000
  228. shapecode_1_r2=1.000000
  229. shapecode_1_g2=1.000000
  230. shapecode_1_b2=1.000000
  231. shapecode_1_a2=1.000000
  232. shapecode_1_border_r=0.500000
  233. shapecode_1_border_g=0.500000
  234. shapecode_1_border_b=0.000000
  235. shapecode_1_border_a=0.100000
  236. shape_1_per_frame1=textured = 1;
  237. shape_1_per_frame2=rot0 = rot0 + 1/fps * q1;
  238. shape_1_per_frame3=
  239. shape_1_per_frame4=
  240. shape_1_per_frame5=posx = (1-q24)*posx + q24*(.3+rand(100)/200);
  241. shape_1_per_frame6=posy = (1-q24)*posy + q24*(.3+rand(100)/200);;
  242. shape_1_per_frame7=
  243. shape_1_per_frame8=rad0 = (1-q24)*rad0 + q24*(.05+rand(100)/300);
  244. shape_1_per_frame9=rad = rad0;
  245. shape_1_per_frame10=
  246. shape_1_per_frame11=
  247. shape_1_per_frame12=x = posx;
  248. shape_1_per_frame13=y = posy;
  249. shape_1_per_frame14=ang = rot0;
  250. shapecode_2_enabled=1
  251. shapecode_2_sides=63
  252. shapecode_2_additive=0
  253. shapecode_2_thickOutline=0
  254. shapecode_2_textured=0
  255. shapecode_2_x=0.503000
  256. shapecode_2_y=0.500000
  257. shapecode_2_rad=0.038857
  258. shapecode_2_ang=0.000000
  259. shapecode_2_tex_ang=0.000000
  260. shapecode_2_tex_zoom=2.223300
  261. shapecode_2_r=1.000000
  262. shapecode_2_g=0.100000
  263. shapecode_2_b=0.000000
  264. shapecode_2_a=1.000000
  265. shapecode_2_r2=1.000000
  266. shapecode_2_g2=1.000000
  267. shapecode_2_b2=1.000000
  268. shapecode_2_a2=0.700000
  269. shapecode_2_border_r=1.000000
  270. shapecode_2_border_g=1.000000
  271. shapecode_2_border_b=1.000000
  272. shapecode_2_border_a=0.000000
  273. shape_2_per_frame1=textured = 1;
  274. shape_2_per_frame2=rot0 = rot0 + .1/fps * q2;
  275. shape_2_per_frame3=
  276. shape_2_per_frame4=
  277. shape_2_per_frame5=posx = (1-q24)*posx + q24*(.3+rand(100)/200);
  278. shape_2_per_frame6=posy = (1-q24)*posy + q24*(.3+rand(100)/200);;
  279. shape_2_per_frame7=
  280. shape_2_per_frame8=rad0 = (1-q24)*rad0 + q24*(.05+rand(100)/400);
  281. shape_2_per_frame9=rad = rad0;
  282. shape_2_per_frame10=
  283. shape_2_per_frame11=
  284. shape_2_per_frame12=x = posx+q26;
  285. shape_2_per_frame13=y = posy;
  286. shape_2_per_frame14=ang = rot0;
  287. shapecode_3_enabled=0
  288. shapecode_3_sides=63
  289. shapecode_3_additive=0
  290. shapecode_3_thickOutline=0
  291. shapecode_3_textured=1
  292. shapecode_3_x=0.500000
  293. shapecode_3_y=1.000000
  294. shapecode_3_rad=0.548217
  295. shapecode_3_ang=0.000000
  296. shapecode_3_tex_ang=0.000000
  297. shapecode_3_tex_zoom=0.499805
  298. shapecode_3_r=1.000000
  299. shapecode_3_g=1.000000
  300. shapecode_3_b=1.000000
  301. shapecode_3_a=1.000000
  302. shapecode_3_r2=1.000000
  303. shapecode_3_g2=1.000000
  304. shapecode_3_b2=1.000000
  305. shapecode_3_a2=0.000000
  306. shapecode_3_border_r=0.500000
  307. shapecode_3_border_g=0.500000
  308. shapecode_3_border_b=0.500000
  309. shapecode_3_border_a=0.000000
  310. per_frame_1=dec_med = pow (0.7, 30/fps);
  311. per_frame_2=dec_slow = pow (0.99, 30/fps);
  312. per_frame_3=beat = max (max (bass, mid), treb);
  313. per_frame_4=
  314. per_frame_5=beat = bass+mid+treb;
  315. per_frame_6=beat = beat*beat;
  316. per_frame_7=
  317. per_frame_8=avg = avg*dec_slow + beat*(1-dec_slow);
  318. per_frame_9=is_beat = above(beat, .2*avg+peak) * above (time, t0+.2);
  319. per_frame_10=t0 = is_beat*time + (1-is_beat)*t0;
  320. per_frame_11=peak = is_beat * beat + (1-is_beat)*peak*dec_med;
  321. per_frame_12=index = (index + is_beat) %8;
  322. per_frame_13=index2 = (index2 + is_beat*bnot(index))%2;
  323. per_frame_14=
  324. per_frame_15=q20 = avg;
  325. per_frame_16=q21 = beat;
  326. per_frame_17=q22 = peak;
  327. per_frame_18=q23 = index;
  328. per_frame_19=q24 = is_beat;
  329. per_frame_20=q26 = bass_att + mid_att + treb_att + 3;
  330. per_frame_21=q27 = index + 1;
  331. per_frame_22=q28 = index2;
  332. per_frame_23=q29 = index2;
  333. per_frame_24=monitor = q29;
  334. per_frame_25=k1 = is_
  335. per_frame_26=beat*equal(index%2,0);
  336. per_frame_27=p1 = k1*(p1+1) + (1-k1)*p1;
  337. per_frame_28=p2 = dec_med * p2+ (1-dec_med)*p1;
  338. per_frame_29=rott = p2 * 3.1416/4;
  339. per_frame_30=
  340. per_frame_31=q1 = cos(rott);
  341. per_frame_32=q2 = sin(rott);
  342. per_frame_33=q3 = -q2;
  343. per_frame_34=q4 = q1;
  344. per_frame_35=
  345. per_frame_36=
  346. per_frame_37=q5 = cos(time/17);
  347. per_frame_38=q6 = sin(time/17);
  348. per_frame_39=q7 = -q2;
  349. per_frame_40=q8 = q1;
  350. per_frame_41=
  351. per_frame_42=
  352. per_frame_43=ds = ds*dec_med + q24*(1-dec_med);
  353. per_frame_44=q25 = q24;
  354. per_frame_45=//q25 = above(ds,.5);
  355. per_frame_46=
  356. per_frame_47=q10 = q22+3;
  357. per_frame_48=
  358. per_frame_49=t_rel = time*8;
  359. per_frame_50=//q25 = below((t_rel)-int(t_rel),.2);
  360. per_frame_51=
  361. per_frame_52=
  362. per_frame_53=p3 = p3*dec_med + (1-dec_med) * (100*index + .0*q26);
  363. per_frame_54=q30 = p3 ;
  364. per_frame_55=
  365. per_frame_56=p4 = dec_med*p4 + (1-dec_med)*q27;
  366. per_frame_57=q31 = p4;
  367. per_frame_58=
  368. per_frame_59=
  369. per_frame_60=zoom = 1.1 + q1*.2;
  370. per_frame_61=warp =0;
  371. per_frame_62=ob_size = .01;
  372. per_frame_63=ob_r = .9;
  373. per_frame_64=ob_g = 1;
  374. per_frame_65=ob_b = 0;
  375. per_frame_66=ob_a = .2*sin(time/7);
  376. warp_1=`sampler sampler_worms;
  377. warp_2=`float3 color, mus;
  378. warp_3=`float dx,dy;
  379. warp_4=`shader_body {
  380. warp_5=`
  381. warp_6=`
  382. warp_7=`float2 uv1 = (uv-.5) * aspect.xy;
  383. warp_8=`
  384. warp_9=`float2 uv6 = uv1;
  385. warp_10=`float z = 1*length(uv1)+rand_frame*13;
  386. warp_11=`float2 d = normalize(uv1);
  387. warp_12=`float2 rs = clamp(tan(z)/d,-2,2);
  388. warp_13=`
  389. warp_14=`uv += rs/16;
  390. warp_15=`
  391. warp_16=`uv6 = (uv1)*(1 + 0*q27);
  392. warp_17=`//uv = mul(uv,float2x2(_qb));
  393. warp_18=`
  394. warp_19=`
  395. warp_20=`uv6 = uv.yx;
  396. warp_21=`mus = q1*cos(uv6.y*44)-(cos(uv6.x*82));
  397. warp_22=`float mod = q28*lum(mus) + 1-q28*lum(mus);
  398. warp_23=`//mus = lerp(mus.gbr,mus*float3 (.9,.9,1),mod);
  399. warp_24=`
  400. warp_25=`float3 blur = GetBlur2(frac(uv));
  401. warp_26=`
  402. warp_27=`float3 crisp= tex2D(sampler_main,uv);
  403. warp_28=`
  404. warp_29=`float3 ret1 = crisp + .1*mus *(1+tex2D (sampler_noise_lq,uv/16+time/100));
  405. warp_30=`ret1 = ret1 * .98 - .025;
  406. warp_31=`q25 = q24*1;
  407. warp_32=`ret = q25 * ret1 + (1-q25)*GetPixel(uv_orig);
  408. warp_33=`}
  409. comp_1=`float z;
  410. comp_2=`float3 ret1, neu, mus;
  411. comp_3=`float2 rs,rs2,uv1,uv2, uv3,uv4,uv6,dz,dz1;
  412. comp_4=`shader_body
  413. comp_5=`{
  414. comp_6=`float2 uv2;
  415. comp_7=`//uv = (uv-0.5) * aspect.xy + .5;
  416. comp_8=`dz = 0;
  417. comp_9=`
  418. comp_10=`float2 hor = float2(texsize.z,0);
  419. comp_11=`float2 ver = float2(0,texsize.w);
  420. comp_12=`
  421. comp_13=`float dist = 1;
  422. comp_14=`float inten = 1;
  423. comp_15=`ret1 = 0;
  424. comp_16=`float anz = 1;
  425. comp_17=`float n = 0;
  426. comp_18=`uv4 = (uv);
  427. comp_19=` dz.x = lum(GetPixel(uv4+hor)- GetPixel (uv4-hor));
  428. comp_20=` dz.y = lum(GetPixel(uv4+ver)- GetPixel (uv4-ver));
  429. comp_21=`
  430. comp_22=`
  431. comp_23=`mus = .5*GetPixel(uv4-0*dz)-0*dz.x;
  432. comp_24=`
  433. comp_25=`uv2 = uv-.5;
  434. comp_26=`while (n <= anz) {
  435. comp_27=` dist = 1-frac(1.0/anz*n-.1); //evtl sqrt !;
  436. comp_28=`
  437. comp_29=` inten = sqrt(dist)*(1-dist*dist)*4;
  438. comp_30=`
  439. comp_31=` uv3 = q27*2*uv2*dist + float2 (time/8,0);
  440. comp_32=` uv3 = frac(uv3);
  441. comp_33=` uv3 *= aspect.yx;
  442. comp_34=` uv3 = .1 * cos(22*uv3) + 18 *dz ;
  443. comp_35=` neu = saturate(.02/length(uv3));
  444. comp_36=` neu = dist*neu + (1-dist)*lum(neu)* .5*(1+roam_cos);
  445. comp_37=` ret1 = max(ret1,neu*inten);
  446. comp_38=`n++;
  447. comp_39=`}
  448. comp_40=`
  449. comp_41=`ret = ret1 + saturate(8*mus*(.2+ret1)) ;
  450. comp_42=`}