1
0

martin - sparky caleidoscope.milk 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. MILKDROP_PRESET_VERSION=201
  2. PSVERSION=3
  3. PSVERSION_WARP=3
  4. PSVERSION_COMP=3
  5. [preset00]
  6. fRating=3.000000
  7. fGammaAdj=1.980001
  8. fDecay=0.500000
  9. fVideoEchoZoom=0.999998
  10. fVideoEchoAlpha=0.500000
  11. nVideoEchoOrientation=3
  12. nWaveMode=4
  13. bAdditiveWaves=1
  14. bWaveDots=0
  15. bWaveThick=1
  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=0.527429
  27. fWaveSmoothing=0.450000
  28. fWaveParam=0.000000
  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.800000
  45. wave_g=0.490000
  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=1.850000
  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=1.000000
  73. b3x=1.000000
  74. b1ed=0.700000
  75. wavecode_0_enabled=0
  76. wavecode_0_samples=282
  77. wavecode_0_sep=20
  78. wavecode_0_bSpectrum=0
  79. wavecode_0_bUseDots=0
  80. wavecode_0_bDrawThick=1
  81. wavecode_0_bAdditive=1
  82. wavecode_0_scaling=3.915805
  83. wavecode_0_smoothing=0.100000
  84. wavecode_0_r=0.200000
  85. wavecode_0_g=0.300000
  86. wavecode_0_b=1.000000
  87. wavecode_0_a=0.600000
  88. wave_0_per_point1=
  89. wave_0_per_point2=x = sample;
  90. wave_0_per_point3=y = value1 * rand(50)/100 * abs(sample-.5)+ .49;
  91. wave_0_per_point4=
  92. wave_0_per_point5=a = q26/4 * (.2 + abs(sample-.5));
  93. wavecode_1_enabled=0
  94. wavecode_1_samples=512
  95. wavecode_1_sep=0
  96. wavecode_1_bSpectrum=0
  97. wavecode_1_bUseDots=1
  98. wavecode_1_bDrawThick=1
  99. wavecode_1_bAdditive=0
  100. wavecode_1_scaling=0.891519
  101. wavecode_1_smoothing=0.820000
  102. wavecode_1_r=1.000000
  103. wavecode_1_g=1.000000
  104. wavecode_1_b=1.000000
  105. wavecode_1_a=0.100000
  106. wave_1_per_point1=xi = rand(100)/100;
  107. wave_1_per_point2=yi = rand(100)/100;
  108. wave_1_per_point3=
  109. wave_1_per_point4=x = xi; y = yi;
  110. wave_1_per_point5=
  111. wave_1_per_point6=a = q21/15;
  112. wavecode_2_enabled=0
  113. wavecode_2_samples=512
  114. wavecode_2_sep=0
  115. wavecode_2_bSpectrum=0
  116. wavecode_2_bUseDots=0
  117. wavecode_2_bDrawThick=1
  118. wavecode_2_bAdditive=0
  119. wavecode_2_scaling=0.891519
  120. wavecode_2_smoothing=0.820000
  121. wavecode_2_r=0.000000
  122. wavecode_2_g=0.200000
  123. wavecode_2_b=0.000000
  124. wavecode_2_a=1.000000
  125. wavecode_3_enabled=0
  126. wavecode_3_samples=512
  127. wavecode_3_sep=0
  128. wavecode_3_bSpectrum=1
  129. wavecode_3_bUseDots=1
  130. wavecode_3_bDrawThick=0
  131. wavecode_3_bAdditive=0
  132. wavecode_3_scaling=1.000000
  133. wavecode_3_smoothing=0.500000
  134. wavecode_3_r=1.000000
  135. wavecode_3_g=1.000000
  136. wavecode_3_b=1.000000
  137. wavecode_3_a=1.000000
  138. shapecode_0_enabled=0
  139. shapecode_0_sides=4
  140. shapecode_0_additive=0
  141. shapecode_0_thickOutline=0
  142. shapecode_0_textured=0
  143. shapecode_0_x=0.500000
  144. shapecode_0_y=0.500000
  145. shapecode_0_rad=0.048958
  146. shapecode_0_ang=0.000000
  147. shapecode_0_tex_ang=1.005310
  148. shapecode_0_tex_zoom=1.531168
  149. shapecode_0_r=0.500000
  150. shapecode_0_g=1.000000
  151. shapecode_0_b=0.900000
  152. shapecode_0_a=1.000000
  153. shapecode_0_r2=0.830000
  154. shapecode_0_g2=0.930000
  155. shapecode_0_b2=0.800000
  156. shapecode_0_a2=1.000000
  157. shapecode_0_border_r=1.000000
  158. shapecode_0_border_g=1.000000
  159. shapecode_0_border_b=0.000000
  160. shapecode_0_border_a=0.000000
  161. shape_0_per_frame1=
  162. shape_0_per_frame2=trel = time/3;
  163. shape_0_per_frame3=
  164. shape_0_per_frame4=x = .5+sin(trel*2);
  165. shape_0_per_frame5=y = .5+cos(trel*1.3);
  166. shape_0_per_frame6=
  167. shape_0_per_frame7=
  168. shape_0_per_frame8=
  169. shape_0_per_frame9=
  170. shape_0_per_frame10=rad = .04;
  171. shape_0_per_frame11=a = .6; a2 = 0;
  172. shapecode_1_enabled=1
  173. shapecode_1_sides=100
  174. shapecode_1_additive=0
  175. shapecode_1_thickOutline=1
  176. shapecode_1_textured=1
  177. shapecode_1_x=0.260000
  178. shapecode_1_y=0.200000
  179. shapecode_1_rad=0.393173
  180. shapecode_1_ang=0.000000
  181. shapecode_1_tex_ang=0.000000
  182. shapecode_1_tex_zoom=0.935500
  183. shapecode_1_r=0.000000
  184. shapecode_1_g=0.550000
  185. shapecode_1_b=0.500000
  186. shapecode_1_a=0.700000
  187. shapecode_1_r2=0.000000
  188. shapecode_1_g2=0.400000
  189. shapecode_1_b2=0.400000
  190. shapecode_1_a2=0.700000
  191. shapecode_1_border_r=0.300000
  192. shapecode_1_border_g=0.700000
  193. shapecode_1_border_b=0.800000
  194. shapecode_1_border_a=0.000000
  195. shape_1_per_frame1=trig = q24;
  196. shape_1_per_frame2=
  197. shape_1_per_frame3=textured = 1;
  198. shape_1_per_frame4=additive = q24;
  199. shape_1_per_frame5=x0 = x0*bnot(trig) + trig*(.2+ rand(100)/200);
  200. shape_1_per_frame6=y0 = y0*bnot(trig) + trig*(.2+ rand(100)/200);
  201. shape_1_per_frame7=
  202. shape_1_per_frame8=
  203. shape_1_per_frame9=x0 = x0 + .1*q1*(3+q22)/fps;
  204. shape_1_per_frame10=y0 = y0 + .1*q2*(3+q22)/fps;
  205. shape_1_per_frame11=
  206. shape_1_per_frame12=x0 = x0 - int(x0);
  207. shape_1_per_frame13=y0 = y0 - int(y0);
  208. shape_1_per_frame14=
  209. shape_1_per_frame15=ang = 4*q1+time;
  210. shape_1_per_frame16=x = x0; y = y0;
  211. shape_1_per_frame17=rad0 = rad0*bnot(trig) + trig*rand(100)/200;
  212. shape_1_per_frame18=rad = rad0;
  213. shape_1_per_frame19=
  214. shape_1_per_frame20=r0 = bnot(trig)*r0 + trig * rand(10)/10;
  215. shape_1_per_frame21=b0 = bnot(trig)*b0 + trig * rand(10)/10;
  216. shape_1_per_frame22=g0 = bnot(trig)*g0 + trig * rand(10)/10;
  217. shape_1_per_frame23=
  218. shape_1_per_frame24=r0 =1; b0 = 1; g0 = 1;
  219. shape_1_per_frame25=r = r0; b = b0; g = g0;
  220. shape_1_per_frame26=r2 = r; b2 = n; g2 = g;
  221. shapecode_2_enabled=0
  222. shapecode_2_sides=4
  223. shapecode_2_additive=1
  224. shapecode_2_thickOutline=0
  225. shapecode_2_textured=0
  226. shapecode_2_x=0.503000
  227. shapecode_2_y=0.500000
  228. shapecode_2_rad=0.038857
  229. shapecode_2_ang=0.000000
  230. shapecode_2_tex_ang=0.000000
  231. shapecode_2_tex_zoom=0.609857
  232. shapecode_2_r=1.000000
  233. shapecode_2_g=0.100000
  234. shapecode_2_b=0.000000
  235. shapecode_2_a=0.900000
  236. shapecode_2_r2=1.000000
  237. shapecode_2_g2=1.000000
  238. shapecode_2_b2=1.000000
  239. shapecode_2_a2=0.000000
  240. shapecode_2_border_r=0.500000
  241. shapecode_2_border_g=0.500000
  242. shapecode_2_border_b=0.500000
  243. shapecode_2_border_a=0.000000
  244. shape_2_per_frame1=x = rand(50)/50;
  245. shape_2_per_frame2=y = .5 - 0*rand(15)/200;
  246. shape_2_per_frame3=
  247. shape_2_per_frame4=r = .4;
  248. shape_2_per_frame5=g = .6;
  249. shape_2_per_frame6=b = 1;
  250. shape_2_per_frame7=r2 = r;
  251. shape_2_per_frame8=g2 = g;
  252. shape_2_per_frame9=b2 = b;
  253. shape_2_per_frame10=
  254. shape_2_per_frame11=a = min(q21/2 ,.9);
  255. shape_2_per_frame12=rad = a * (.1+abs(x-.5))/2 ;
  256. shapecode_3_enabled=0
  257. shapecode_3_sides=4
  258. shapecode_3_additive=0
  259. shapecode_3_thickOutline=1
  260. shapecode_3_textured=1
  261. shapecode_3_x=0.260000
  262. shapecode_3_y=0.760000
  263. shapecode_3_rad=0.394780
  264. shapecode_3_ang=0.000000
  265. shapecode_3_tex_ang=0.000000
  266. shapecode_3_tex_zoom=0.499805
  267. shapecode_3_r=1.000000
  268. shapecode_3_g=1.000000
  269. shapecode_3_b=1.000000
  270. shapecode_3_a=1.000000
  271. shapecode_3_r2=1.000000
  272. shapecode_3_g2=1.000000
  273. shapecode_3_b2=1.000000
  274. shapecode_3_a2=0.800000
  275. shapecode_3_border_r=0.200000
  276. shapecode_3_border_g=0.700000
  277. shapecode_3_border_b=0.500000
  278. shapecode_3_border_a=1.000000
  279. shape_3_per_frame1=tex_zoom = q27/2;
  280. per_frame_1=dec_med = pow (0.7, 30/fps);
  281. per_frame_2=dec_slow = pow (0.99, 30/fps);
  282. per_frame_3=beat = max (max (bass, mid), treb);
  283. per_frame_4=avg = avg*dec_slow + beat*(1-dec_slow);
  284. per_frame_5=is_beat = above(beat, .2+avg+peak) * above (time, t0+.2);
  285. per_frame_6=t0 = is_beat*time + (1-is_beat)*t0;
  286. per_frame_7=peak = is_beat * beat + (1-is_beat)*peak*dec_med;
  287. per_frame_8=index = (index + is_beat) %8;
  288. per_frame_9=index2 = (index2 + is_beat*bnot(index))%2;
  289. per_frame_10=
  290. per_frame_11=q20 = avg;
  291. per_frame_12=q21 = beat;
  292. per_frame_13=q22 = peak;
  293. per_frame_14=q23 = index;
  294. per_frame_15=q24 = is_beat;
  295. per_frame_16=q26 = bass_att + mid_att + treb_att;
  296. per_frame_17=q27 = index +1;
  297. per_frame_18=q28 = index2;
  298. per_frame_19=
  299. per_frame_20=
  300. per_frame_21=k1 = is_
  301. per_frame_22=beat*equal(index%2,0);
  302. per_frame_23=p1 = k1*(p1+1) + (1-k1)*p1;
  303. per_frame_24=p2 = dec_med * p2+ (1-dec_med)*p1;
  304. per_frame_25=rott = p2 * 3.1416/4;
  305. per_frame_26=
  306. per_frame_27=q1 = cos(rott);
  307. per_frame_28=q2 = sin(rott);
  308. per_frame_29=q3 = -q2;
  309. per_frame_30=q4 = q1;
  310. per_frame_31=
  311. per_frame_32=alt = alt * .2 + q26*.8;
  312. per_frame_33=q26 = q26 - alt;
  313. per_frame_34=
  314. per_frame_35=step = step + 100*max(q26-0.01,0) + q24 ;
  315. per_frame_36=q30 = step;
  316. per_frame_37=
  317. per_frame_38=p4 = dec_med*p4 + (1-dec_med)*q27;
  318. per_frame_39=q31 = p4;
  319. per_frame_40=
  320. per_frame_41=trig = q24;
  321. per_frame_42=trel = bnot(trig)*(trel + 1/fps);
  322. per_frame_43=q6 = trel;
  323. per_frame_44=monitor = trel;
  324. per_pixel_1=zoom = 1.1;
  325. warp_1=`sampler sampler_worms;
  326. warp_2=`float3 color, mus;
  327. warp_3=`float dx,dy;
  328. warp_4=`shader_body {
  329. warp_5=`
  330. warp_6=`
  331. warp_7=`float2 uv1 = (uv_orig-.5) * aspect.xy;
  332. warp_8=`float2 uv6 = uv1;
  333. warp_9=`
  334. warp_10=`float z = 6*q2*length(uv1) ;
  335. warp_11=`float2 d = -normalize(1/uv1);
  336. warp_12=`
  337. warp_13=`float2 rs = clamp(tan(q1*z+rand_frame)*d,-8,8);
  338. warp_14=`
  339. warp_15=`if (q28 ==1) {rs *= cos(uv1.yx*3*q27) ;}
  340. warp_16=`
  341. warp_17=`uv += rs/20;
  342. warp_18=`
  343. warp_19=`uv6 = 1.5*float2(rad, length(uv1));
  344. warp_20=`
  345. warp_21=`mus = .01/(length(uv6));
  346. warp_22=`
  347. warp_23=`
  348. warp_24=`float3 crisp= tex2D(sampler_main,uv);
  349. warp_25=`
  350. warp_26=`float3 ret1 = crisp + mus* roam_cos;
  351. warp_27=`ret = q24*(ret1 * .98 - .02) + (1-q24)*GetPixel((uv_orig-.5)+.5);
  352. warp_28=`
  353. warp_29=`
  354. warp_30=`}
  355. comp_1=`sampler sampler_pw_noise_lq;
  356. comp_2=`
  357. comp_3=`float3 neu, ret1;
  358. comp_4=`float2 rs2,rs0,rss,uv1,uv2;
  359. comp_5=`float ang2,c,s;
  360. comp_6=`float2x2 rota = float2x2(.7,.7,-.7,.7);
  361. comp_7=`shader_body
  362. comp_8=`{
  363. comp_9=`uv -= 0.5;
  364. comp_10=`uv *= aspect.xy;
  365. comp_11=`
  366. comp_12=`rs0.x = atan2(uv.y, uv.x)/3.1416*2;
  367. comp_13=`rs0.y = .02/(length (uv));
  368. comp_14=`rss = float2 (rs0.x,rs0.y+time);
  369. comp_15=`rss = mul(rss,float2x2(.7,.7,-.7,.7));
  370. comp_16=`float noise = (tex2D(sampler_pw_noise_lq,rss/32)-.7 >= 0);
  371. comp_17=`rss = abs(frac(rss*8)-.5);
  372. comp_18=`float3 dots = saturate(.04/length(rss)) *noise;
  373. comp_19=`
  374. comp_20=`rss = float2 (rs0.x*2,rs0.y+time/2);
  375. comp_21=`rss = mul(rss,float2x2(.7,.7,-.7,.7));
  376. comp_22=`noise = (tex2D(sampler_pw_noise_lq,rss/32)-.7 >= 0);
  377. comp_23=`rss = abs(frac(rss*8)-.5);
  378. comp_24=`dots += saturate(.04/length(rss)) * noise;
  379. comp_25=`
  380. comp_26=`dots *= saturate(.04/abs(.01/rs0.y-q6))+.0;
  381. comp_27=`dots *= dots*2;
  382. comp_28=`
  383. comp_29=`float3 ret1 = 0;
  384. comp_30=`int anz = 2;
  385. comp_31=`int n = 0;
  386. comp_32=`while (n <= anz) {
  387. comp_33=` ang2 = 6.28*n/anz;
  388. comp_34=` c = cos(ang2);
  389. comp_35=` s = sin(ang2);
  390. comp_36=` uv2.x = uv.x*c - uv.y*s;
  391. comp_37=` uv2.y = uv.x*s + uv.y*c;
  392. comp_38=`
  393. comp_39=` neu = GetPixel(uv2+.5) + GetBlur1(uv2+.5);
  394. comp_40=` ret1 = max(ret1,neu);
  395. comp_41=`n++;
  396. comp_42=`}
  397. comp_43=`
  398. comp_44=`
  399. comp_45=`ret = ret1 + dots*(1+ret1);
  400. comp_46=`}
  401. comp_47=`
  402. comp_48=`