ORB - Kalidescope.milk 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. [preset00]
  2. fRating=3.000
  3. fGammaAdj=2.000
  4. fDecay=0.950
  5. fVideoEchoZoom=1.000
  6. fVideoEchoAlpha=0.500
  7. nVideoEchoOrientation=3
  8. nWaveMode=0
  9. bAdditiveWaves=0
  10. bWaveDots=0
  11. bWaveThick=0
  12. bModWaveAlphaByVolume=0
  13. bMaximizeWaveColor=1
  14. bTexWrap=1
  15. bDarkenCenter=0
  16. bRedBlueStereo=0
  17. bBrighten=0
  18. bDarken=0
  19. bSolarize=0
  20. bInvert=0
  21. fWaveAlpha=0.001
  22. fWaveScale=1.000
  23. fWaveSmoothing=0.750
  24. fWaveParam=0.000
  25. fModWaveAlphaStart=0.750
  26. fModWaveAlphaEnd=0.950
  27. fWarpAnimSpeed=1.000
  28. fWarpScale=1.000
  29. fZoomExponent=1.00000
  30. fShader=0.000
  31. zoom=0.96000
  32. rot=0.00000
  33. cx=0.500
  34. cy=0.500
  35. dx=0.00000
  36. dy=0.00000
  37. warp=0.00052
  38. sx=1.00000
  39. sy=1.00000
  40. wave_r=0.000
  41. wave_g=0.000
  42. wave_b=0.000
  43. wave_x=0.500
  44. wave_y=0.500
  45. ob_size=0.010
  46. ob_r=1.000
  47. ob_g=1.000
  48. ob_b=1.000
  49. ob_a=0.000
  50. ib_size=0.010
  51. ib_r=0.250
  52. ib_g=0.250
  53. ib_b=0.250
  54. ib_a=0.000
  55. nMotionVectorsX=64.000
  56. nMotionVectorsY=4.800
  57. mv_dx=0.000
  58. mv_dy=0.000
  59. mv_l=0.900
  60. mv_r=1.000
  61. mv_g=1.000
  62. mv_b=1.000
  63. mv_a=0.000
  64. b1n=0.000
  65. b2n=0.000
  66. b3n=0.000
  67. b1x=1.000
  68. b2x=1.000
  69. b3x=1.000
  70. b1ed=0.250
  71. wavecode_0_enabled=1
  72. wavecode_0_samples=512
  73. wavecode_0_sep=0
  74. wavecode_0_bSpectrum=0
  75. wavecode_0_bUseDots=0
  76. wavecode_0_bDrawThick=0
  77. wavecode_0_bAdditive=0
  78. wavecode_0_scaling=1.00000
  79. wavecode_0_smoothing=0.50000
  80. wavecode_0_r=1.000
  81. wavecode_0_g=1.000
  82. wavecode_0_b=1.000
  83. wavecode_0_a=0.500
  84. wave_0_per_point1=//init
  85. wave_0_per_point2=zs = if(below(zs,1),9,zs);
  86. wave_0_per_point3=
  87. wave_0_per_point4=zs = if(above(zs, 1300),1, zs);
  88. wave_0_per_point5=
  89. wave_0_per_point6=speed = bass*0.002;
  90. wave_0_per_point7=
  91. wave_0_per_point8=xcoef = equal(q4,0)*2 + equal(q4,1)*2.1 + equal(q4,2)*2.2 + equal(q4,3)*2.3 + equal(q4,4)*2.4 + equal(q4,5)*2.5;
  92. wave_0_per_point9=
  93. wave_0_per_point10=//sum
  94. wave_0_per_point11=zs = zs + tan(q1*0.015)*speed;
  95. wave_0_per_point12=
  96. wave_0_per_point13=
  97. wave_0_per_point14=count = count + 0.0001;
  98. wave_0_per_point15=count = if(above(count,6.24),0,count);
  99. wave_0_per_point16=
  100. wave_0_per_point17=//project
  101. wave_0_per_point18=x = 0.1*cos(q1*zs*2 + 0.1);
  102. wave_0_per_point19=y = 0.1*sin(q1*zs*1 + 0.1);
  103. wave_0_per_point20=
  104. wave_0_per_point21=//rotate
  105. wave_0_per_point22=x = x*cos(q1*3)*0.8 - y*sin(q1*3)*0.8;
  106. wave_0_per_point23=y = x*sin(q1*3) + y*cos(q1*3);
  107. wave_0_per_point24=
  108. wave_0_per_point25=//move
  109. wave_0_per_point26=x = x + q6 + 0.5;
  110. wave_0_per_point27=y = y - q7 + 0.5;
  111. wave_0_per_point28=
  112. wave_0_per_point29=r = 0.5 + 0.5*sin(q1*1.2 + x + x);
  113. wave_0_per_point30=g = 0.5 + 0.5*sin(q1*1.5 + x + y);
  114. wave_0_per_point31=b = 0.5 + 0.5*sin(q1*1.36 + y + y);
  115. wavecode_1_enabled=1
  116. wavecode_1_samples=512
  117. wavecode_1_sep=0
  118. wavecode_1_bSpectrum=0
  119. wavecode_1_bUseDots=0
  120. wavecode_1_bDrawThick=0
  121. wavecode_1_bAdditive=0
  122. wavecode_1_scaling=1.00000
  123. wavecode_1_smoothing=0.50000
  124. wavecode_1_r=1.000
  125. wavecode_1_g=1.000
  126. wavecode_1_b=1.000
  127. wavecode_1_a=0.500
  128. wave_1_per_point1=//init
  129. wave_1_per_point2=zs = if(below(zs,1),9,zs);
  130. wave_1_per_point3=
  131. wave_1_per_point4=zs = if(above(zs, 1300),1, zs);
  132. wave_1_per_point5=
  133. wave_1_per_point6=speed = bass*0.002;
  134. wave_1_per_point7=
  135. wave_1_per_point8=xcoef = equal(q4,0)*2 + equal(q4,1)*2.1 + equal(q4,2)*2.2 + equal(q4,3)*2.3 + equal(q4,4)*2.4 + equal(q4,5)*2.5;
  136. wave_1_per_point9=
  137. wave_1_per_point10=//sum
  138. wave_1_per_point11=zs = zs + tan(q1*0.015)*speed;
  139. wave_1_per_point12=
  140. wave_1_per_point13=
  141. wave_1_per_point14=count = count + 0.0001;
  142. wave_1_per_point15=count = if(above(count,6.24),0,count);
  143. wave_1_per_point16=
  144. wave_1_per_point17=//project
  145. wave_1_per_point18=x = 0.1*cos(q1*zs*2 + 0.1);
  146. wave_1_per_point19=y = 0.1*sin(q1*zs*1 + 0.1);
  147. wave_1_per_point20=
  148. wave_1_per_point21=//rotate
  149. wave_1_per_point22=x = x*cos(-q1*3)*0.8 - y*sin(-q1*3)*0.8;
  150. wave_1_per_point23=y = x*sin(-q1*3) + y*cos(-q1*3);
  151. wave_1_per_point24=
  152. wave_1_per_point25=//move
  153. wave_1_per_point26=x = x + q6 + 0.5;
  154. wave_1_per_point27=y = y + q7 + 0.5;
  155. wave_1_per_point28=
  156. wave_1_per_point29=r = 0.5 + 0.5*sin(q1*1.2 + x + x);
  157. wave_1_per_point30=g = 0.5 + 0.5*sin(q1*1.5 + x + y);
  158. wave_1_per_point31=b = 0.5 + 0.5*sin(q1*1.36 + y + y);
  159. wavecode_2_enabled=0
  160. wavecode_2_samples=512
  161. wavecode_2_sep=0
  162. wavecode_2_bSpectrum=0
  163. wavecode_2_bUseDots=0
  164. wavecode_2_bDrawThick=0
  165. wavecode_2_bAdditive=0
  166. wavecode_2_scaling=1.00000
  167. wavecode_2_smoothing=0.50000
  168. wavecode_2_r=1.000
  169. wavecode_2_g=1.000
  170. wavecode_2_b=1.000
  171. wavecode_2_a=1.000
  172. wavecode_3_enabled=0
  173. wavecode_3_samples=512
  174. wavecode_3_sep=0
  175. wavecode_3_bSpectrum=0
  176. wavecode_3_bUseDots=0
  177. wavecode_3_bDrawThick=1
  178. wavecode_3_bAdditive=0
  179. wavecode_3_scaling=1.00000
  180. wavecode_3_smoothing=0.50000
  181. wavecode_3_r=1.000
  182. wavecode_3_g=1.000
  183. wavecode_3_b=1.000
  184. wavecode_3_a=1.000
  185. shapecode_0_enabled=1
  186. shapecode_0_sides=4
  187. shapecode_0_additive=0
  188. shapecode_0_thickOutline=0
  189. shapecode_0_textured=1
  190. shapecode_0_num_inst=1
  191. shapecode_0_x=0.250
  192. shapecode_0_y=0.250
  193. shapecode_0_rad=0.74180
  194. shapecode_0_ang=0.00000
  195. shapecode_0_tex_ang=0.00000
  196. shapecode_0_tex_zoom=0.22746
  197. shapecode_0_r=1.000
  198. shapecode_0_g=1.000
  199. shapecode_0_b=1.000
  200. shapecode_0_a=1.000
  201. shapecode_0_r2=1.000
  202. shapecode_0_g2=1.000
  203. shapecode_0_b2=1.000
  204. shapecode_0_a2=0.000
  205. shapecode_0_border_r=0.000
  206. shapecode_0_border_g=0.000
  207. shapecode_0_border_b=1.000
  208. shapecode_0_border_a=0.000
  209. shape_0_init1=tex_saw = 0.4;
  210. shape_0_per_frame1=ang = q1*0.2;
  211. shape_0_per_frame2=//x = 0.5 + 0.2*sin(q2);
  212. shape_0_per_frame3=//y = 0.5 + (0.3*sin(q2));
  213. shape_0_per_frame4=
  214. shape_0_per_frame5=tex_capture = above(q3,2);
  215. shape_0_per_frame6=tex_zoom = q8;
  216. shapecode_1_enabled=1
  217. shapecode_1_sides=4
  218. shapecode_1_additive=0
  219. shapecode_1_thickOutline=0
  220. shapecode_1_textured=1
  221. shapecode_1_num_inst=1
  222. shapecode_1_x=0.500
  223. shapecode_1_y=0.500
  224. shapecode_1_rad=0.74180
  225. shapecode_1_ang=0.00000
  226. shapecode_1_tex_ang=0.00000
  227. shapecode_1_tex_zoom=0.22746
  228. shapecode_1_r=1.000
  229. shapecode_1_g=1.000
  230. shapecode_1_b=1.000
  231. shapecode_1_a=1.000
  232. shapecode_1_r2=1.000
  233. shapecode_1_g2=1.000
  234. shapecode_1_b2=1.000
  235. shapecode_1_a2=0.000
  236. shapecode_1_border_r=0.000
  237. shapecode_1_border_g=0.000
  238. shapecode_1_border_b=1.000
  239. shapecode_1_border_a=0.000
  240. shape_1_init1=tex_saw = 0.4;
  241. shape_1_per_frame1=ang = q1*0.2;
  242. shape_1_per_frame2=//x = 0.5 + 0.2*sin(q2);
  243. shape_1_per_frame3=//y = 0.5 + (0.3*sin(q2));
  244. shape_1_per_frame4=
  245. shape_1_per_frame5=tex_capture = above(q3,2);
  246. shape_1_per_frame6=tex_zoom = q8;
  247. shapecode_2_enabled=0
  248. shapecode_2_sides=4
  249. shapecode_2_additive=0
  250. shapecode_2_thickOutline=0
  251. shapecode_2_textured=0
  252. shapecode_2_num_inst=1
  253. shapecode_2_x=0.500
  254. shapecode_2_y=0.500
  255. shapecode_2_rad=0.10000
  256. shapecode_2_ang=0.00000
  257. shapecode_2_tex_ang=0.00000
  258. shapecode_2_tex_zoom=1.00000
  259. shapecode_2_r=1.000
  260. shapecode_2_g=0.000
  261. shapecode_2_b=0.000
  262. shapecode_2_a=1.000
  263. shapecode_2_r2=0.000
  264. shapecode_2_g2=1.000
  265. shapecode_2_b2=0.000
  266. shapecode_2_a2=0.000
  267. shapecode_2_border_r=1.000
  268. shapecode_2_border_g=1.000
  269. shapecode_2_border_b=1.000
  270. shapecode_2_border_a=0.100
  271. shapecode_3_enabled=0
  272. shapecode_3_sides=4
  273. shapecode_3_additive=0
  274. shapecode_3_thickOutline=0
  275. shapecode_3_textured=0
  276. shapecode_3_num_inst=1
  277. shapecode_3_x=0.500
  278. shapecode_3_y=0.500
  279. shapecode_3_rad=0.10000
  280. shapecode_3_ang=0.00000
  281. shapecode_3_tex_ang=0.00000
  282. shapecode_3_tex_zoom=1.00000
  283. shapecode_3_r=1.000
  284. shapecode_3_g=0.000
  285. shapecode_3_b=0.000
  286. shapecode_3_a=1.000
  287. shapecode_3_r2=0.000
  288. shapecode_3_g2=1.000
  289. shapecode_3_b2=0.000
  290. shapecode_3_a2=0.000
  291. shapecode_3_border_r=1.000
  292. shapecode_3_border_g=1.000
  293. shapecode_3_border_b=1.000
  294. shapecode_3_border_a=0.100
  295. per_frame_1=basstime = basstime + bass*0.03;
  296. per_frame_2=basstime2 = basstime + bass*0.03;
  297. per_frame_3=q1 = basstime2;
  298. per_frame_4=
  299. per_frame_5=//start in most active range
  300. per_frame_6=basstime = if(below(basstime,450),450,basstime);
  301. per_frame_7=basstime = if(above(basstime,495),450,basstime);
  302. per_frame_8=
  303. per_frame_9=basstime = basstime + bass_att*0.03;
  304. per_frame_10=vol = pow(bass+mid+treb,2);
  305. per_frame_11=basssum = vol;
  306. per_frame_12=
  307. per_frame_13=stickybit = time%2;
  308. per_frame_14=
  309. per_frame_15=//avg vol
  310. per_frame_16=//buffer 1
  311. per_frame_17=volAvg = volAvg + vol*equal(stickybit,1);
  312. per_frame_18=//number of samples 1 or framerate
  313. per_frame_19=sample1 = sample1 + equal(stickybit,1);
  314. per_frame_20=//buffer 2
  315. per_frame_21=volAvg2 = volAvg2 + vol*equal(stickybit,0);
  316. per_frame_22=//number of samples 2
  317. per_frame_23=sample2 = sample2 + equal(stickybit,0);
  318. per_frame_24=
  319. per_frame_25=//transision
  320. per_frame_26=edge = bnot(equal(bit2,stickybit));
  321. per_frame_27=
  322. per_frame_28=volAvg = volAvg - volAvg*edge*stickybit;
  323. per_frame_29=volAvg2 = volAvg2 - volAvg2*edge*equal(stickybit,0);
  324. per_frame_30=
  325. per_frame_31=sample1 = sample1 - sample1*edge*stickybit;
  326. per_frame_32=sample2 = sample2 - sample2*edge*equal(stickybit,0);
  327. per_frame_33=
  328. per_frame_34=//test vol against avg buffer lvl
  329. per_frame_35=diff = if(equal(stickybit,1), (basssum/(volAvg2/sample2)) , 0);
  330. per_frame_36=diff = if(equal(stickybit,0), (basssum/(volAvg/sample1)), diff);
  331. per_frame_37=
  332. per_frame_38=q3 = diff;
  333. per_frame_39=
  334. per_frame_40=bit2 = time%2;
  335. per_frame_41=
  336. per_frame_42=state = if(above(state,5),0,state);
  337. per_frame_43=state = state + above(diff,3);
  338. per_frame_44=q4 = state;
  339. per_frame_45=
  340. per_frame_46=difftime = difftime + diff*0.03;
  341. per_frame_47=q2 = difftime;
  342. per_frame_48=
  343. per_frame_49=//fix a strange error
  344. per_frame_50=difftime = if(above(difftime,2000),0, difftime);
  345. per_frame_51=
  346. per_frame_52=//another state machine for shape tracking
  347. per_frame_53=state = state + equal(diff,3);
  348. per_frame_54=state = if(above(state,5), 0, state);
  349. per_frame_55=
  350. per_frame_56=xs = 0;
  351. per_frame_57=ys = 0;
  352. per_frame_58=
  353. per_frame_59=//state 0 elipse
  354. per_frame_60=xs = xs + (equal(0,state))*atan(bass_time*4)*0.1;
  355. per_frame_61=ys = ys + (equal(0,state))*cos(bass_time*4)*0.1;
  356. per_frame_62=
  357. per_frame_63=//state 1 diag
  358. per_frame_64=xs = xs + (equal(1,state))*cos(bass_time*4)*0.1;
  359. per_frame_65=ys = ys + (equal(1,state))*cos(bass_time*4)*0.1;
  360. per_frame_66=
  361. per_frame_67=//state 2 -circle
  362. per_frame_68=xs = xs + (equal(2,state))*cos(bass_time*4)*0.1;
  363. per_frame_69=ys = ys + (equal(2,state))*sin(bass_time*4)*0.1;
  364. per_frame_70=
  365. per_frame_71=//state 3 parametric arc
  366. per_frame_72=xs = xs + (equal(3,state))*cos(bass_time*5)*0.1;
  367. per_frame_73=ys = ys + (equal(3,state))*cos(bass_time*9)*0.1;
  368. per_frame_74=
  369. per_frame_75=//state 4 arc
  370. per_frame_76=xs = xs + (equal(4,state))*atan(bass_time*6)*0.1;
  371. per_frame_77=ys = ys + (equal(4,state))*cos(bass_time*2)*0.1;
  372. per_frame_78=
  373. per_frame_79=//state 5 infinity
  374. per_frame_80=xs = xs + (equal(5,state))*cos(bass_time*2)*0.1;
  375. per_frame_81=ys = ys + (equal(5,state))*sin(bass_time*1)*0.1;
  376. per_frame_82=
  377. per_frame_83=//count
  378. per_frame_84=xpass = xs + xpass;
  379. per_frame_85=ypass = ys + ypass;
  380. per_frame_86=
  381. per_frame_87=//project and publish
  382. per_frame_88=q6 = 0.3*sin(xpass*0.5);
  383. per_frame_89=q7 = 0.3*sin(ypass*0.5);
  384. per_frame_90=
  385. per_frame_91=
  386. per_frame_92=//toggle zoom in and out
  387. per_frame_93=zoom_in = zoom_in + above(diff,4);
  388. per_frame_94=zoom_in = if(above(zoom_in,2),0,zoom_in);
  389. per_frame_95=q5 = zoom_in;
  390. per_frame_96=
  391. per_frame_97=
  392. per_frame_98=tex_saw = tex_saw - 0.002*diff;
  393. per_frame_99=tex_saw = if(below(tex_saw,0.1),1,tex_saw);
  394. per_frame_100=q8 = tex_saw;
  395. per_frame_101=monitor = tex_saw;
  396. per_pixel_1=zoom = 1 - equal(q5,0)*0.1*q3 + equal(q5,1)*0.1*q3;
  397. per_pixel_2=
  398. per_pixel_3=saw_r = saw_r + 0.0001*bass;
  399. per_pixel_4=saw_r = if(above(saw_r,1),0,saw_r);
  400. per_pixel_5=
  401. per_pixel_6=saw_g = saw_g + 0.00012*bass;
  402. per_pixel_7=saw_g = if(above(saw_g,1),0,saw_g);
  403. per_pixel_8=
  404. per_pixel_9=saw_b = saw_b + 0.00011*bass;
  405. per_pixel_10=saw_b = if(above(saw_b,1),0,saw_b);
  406. per_pixel_11=
  407. per_pixel_12=
  408. per_pixel_13=decay_r = 5 - x*y*saw_r;
  409. per_pixel_14=decay_g = 5 - y*x*saw_g;
  410. per_pixel_15=decay_b = 5 - x*y*saw_b;
  411. per_pixel_16=
  412. per_pixel_17=rot = 4.19;
  413. per_pixel_18=zoom = 1;