Guest User

Untitled

a guest
Dec 17th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.20 KB | None | 0 0
  1. // Background
  2.  
  3. $puts(half_height,$div(%_height%,2))
  4.  
  5.  
  6. $imageabs2(
  7. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  8. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  9. 0,0,
  10. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  11. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  12. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$div($sub(%_width%,$muldiv($sub($get(half_height),8),70,63)),2),8),
  13. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),8,$sub($get(half_height),$muldiv($sub(%_width%,16),63,70))),
  14. .\images\simple_1\case_1.png,)
  15.  
  16. $imageabs2(
  17. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  18. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  19. 0,0,
  20. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  21. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  22. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$div($sub(%_width%,$muldiv($sub($get(half_height),8),70,63)),2),8),
  23. $get(half_height),
  24. .\images\simple_1\case_1.png,rotateflip-6)
  25.  
  26.  
  27. // PerSecond
  28.  
  29. $puts(progress_bar_layer_size,60)
  30.  
  31. $puts(half_height,$div(%_height%,2))
  32.  
  33. // Covers (front, back & artist) path
  34. $puts(albumartpath,
  35. $if(
  36. $fileexists($replace(%foobar_path%\Albumart\Album\$if2(%album%,).jpg,?,)),
  37. $replace(%foobar_path%\Albumart\Album\$if2(%album%,).jpg,?,),
  38. $if(
  39. $fileexists($replace(%path%,%filename_ext%,front*.jpg)),
  40. $replace(%path%,%filename_ext%,front*),
  41. $if(
  42. $fileexists($replace(%path%,%filename_ext%,folder*.jpg)),
  43. $replace(%path%,%filename_ext%,folder*),
  44. $if(
  45. $fileexists($replace(%path%,%filename_ext%,Cover*.jpg)),
  46. $replace(%path%,%filename_ext%,Cover*),
  47. $if(
  48. $fileexists($replace(%path%,%filename_ext%,front*.png)),
  49. $replace(%path%,%filename_ext%,front*),
  50. $if(
  51. $fileexists($replace(%path%,%filename_ext%,folder*.png)),
  52. $replace(%path%,%filename_ext%,folder*),
  53. $if(
  54. $fileexists($replace(%path%,%filename_ext%,Cover*.png)),
  55. $replace(%path%,%filename_ext%,Cover*),
  56. $if(
  57. $fileexists($replace(%path%,%filename_ext%,%album%*.png)),
  58. $replace(%path%,%filename_ext%,%album%*),
  59. $if(
  60. $fileexists($replace(%path%,%filename_ext%,%album%*.jpg)),
  61. $replace(%path%,%filename_ext%,%album%*),
  62. $if(
  63. $fileexists($replace(%path%,%filename_ext%,*front*.jpg)),
  64. $replace(%path%,%filename_ext%,*front*),
  65. $if(
  66. $fileexists($replace(%path%,%filename_ext%,*folder*.jpg)),
  67. $replace(%path%,%filename_ext%,*folder*),
  68. $if(
  69. $fileexists($replace(%path%,%filename_ext%,*Cover*.jpg)),
  70. $replace(%path%,%filename_ext%,*Cover*),
  71. $if(
  72. $fileexists($replace(%path%,%filename_ext%,*front*.png)),
  73. $replace(%path%,%filename_ext%,*front*),
  74. $if(
  75. $fileexists($replace(%path%,%filename_ext%,*folder*.png)),
  76. $replace(%path%,%filename_ext%,*folder*),
  77. $if(
  78. $fileexists($replace(%path%,%filename_ext%,*Cover*.png)),
  79. $replace(%path%,%filename_ext%,*Cover*),
  80. $if(
  81. $fileexists($replace(%path%,%filename_ext%,*%album%*.png)),
  82. $replace(%path%,%filename_ext%,*%album%*),
  83. $if(
  84. $fileexists($replace(%path%,%filename_ext%,*%album%*.jpg)),
  85. $replace(%path%,%filename_ext%,*%album%*),
  86. $if(
  87. $fileexists($replace(%path%,%filename_ext%,*.JPG)),
  88. $replace(%path%,%filename_ext%,*.jpg),
  89. $if(
  90. $fileexists($replace(%path%,%filename_ext%,*.PNG)),
  91. $replace(%path%,%filename_ext%,*.png),
  92. $if(
  93. $fileexists($replace(%path%,%filename_ext%,Booklet\front*.jpg)),
  94. $replace(%path%,%filename_ext%,Booklet\front*),
  95. $if(
  96. $fileexists($replace(%path%,%filename_ext%,Booklet\folder*.jpg)),
  97. $replace(%path%,%filename_ext%,Booklet\folder*),
  98. $if(
  99. $fileexists($replace(%path%,%filename_ext%,Booklet\Cover*.jpg)),
  100. $replace(%path%,%filename_ext%,Booklet\Cover*),
  101. $if(
  102. $fileexists($replace(%path%,%filename_ext%,Booklet\front*.png)),
  103. $replace(%path%,%filename_ext%,Booklet\front*),
  104. $if(
  105. $fileexists($replace(%path%,%filename_ext%,Booklet\folder*.png)),
  106. $replace(%path%,%filename_ext%,Booklet\folder*),
  107. $if(
  108. $fileexists($replace(%path%,%filename_ext%,Booklet\Cover*.png)),
  109. $replace(%path%,%filename_ext%,Booklet\Cover*),
  110. $if(
  111. $fileexists($replace(%path%,%filename_ext%,Booklet\%album%*.png)),
  112. $replace(%path%,%filename_ext%,Booklet\%album%*),
  113. $if(
  114. $fileexists($replace(%path%,%filename_ext%,Booklet\%album%*.jpg)),
  115. $replace(%path%,%filename_ext%,Booklet\%album%*),
  116. $if(
  117. $fileexists($replace(%path%,%filename_ext%,Booklet\*front*.jpg)),
  118. $replace(%path%,%filename_ext%,Booklet\*front*),
  119. $if(
  120. $fileexists($replace(%path%,%filename_ext%,Booklet\*folder*.jpg)),
  121. $replace(%path%,%filename_ext%,Booklet\*folder*),
  122. $if(
  123. $fileexists($replace(%path%,%filename_ext%,Booklet\*Cover*.jpg)),
  124. $replace(%path%,%filename_ext%,Booklet\*Cover*),
  125. $if(
  126. $fileexists($replace(%path%,%filename_ext%,Booklet\*front*.png)),
  127. $replace(%path%,%filename_ext%,Booklet\*front*),
  128. $if(
  129. $fileexists($replace(%path%,%filename_ext%,Booklet\*folder*.png)),
  130. $replace(%path%,%filename_ext%,Booklet\*folder*),
  131. $if(
  132. $fileexists($replace(%path%,%filename_ext%,Booklet\*Cover*.png)),
  133. $replace(%path%,%filename_ext%,Booklet\*Cover*),
  134. $if(
  135. $fileexists($replace(%path%,%filename_ext%,Booklet\*%album%*.png)),
  136. $replace(%path%,%filename_ext%,Booklet\*%album%*),
  137. $if(
  138. $fileexists($replace(%path%,%filename_ext%,Booklet\*%album%*.jpg)),
  139. $replace(%path%,%filename_ext%,Booklet\*%album%*),
  140. $if(
  141. $fileexists($replace(%path%,%filename_ext%,Booklet\*.JPG)),
  142. $replace(%path%,%filename_ext%,Booklet\*.jpg),
  143. $if(
  144. $fileexists($replace(%path%,%filename_ext%,Booklet\*.PNG)),
  145. $replace(%path%,%filename_ext%,Booklet\*.png),
  146. $if(
  147. $fileexists($replace(%path%,%filename_ext%,BK\front*.jpg)),
  148. $replace(%path%,%filename_ext%,BK\front*),
  149. $if(
  150. $fileexists($replace(%path%,%filename_ext%,BK\folder*.jpg)),
  151. $replace(%path%,%filename_ext%,BK\folder*),
  152. $if(
  153. $fileexists($replace(%path%,%filename_ext%,BK\Cover*.jpg)),
  154. $replace(%path%,%filename_ext%,BK\Cover*),
  155. $if(
  156. $fileexists($replace(%path%,%filename_ext%,BK\front*.png)),
  157. $replace(%path%,%filename_ext%,BK\front*),
  158. $if(
  159. $fileexists($replace(%path%,%filename_ext%,BK\folder*.png)),
  160. $replace(%path%,%filename_ext%,BK\folder*),
  161. $if(
  162. $fileexists($replace(%path%,%filename_ext%,BK\Cover*.png)),
  163. $replace(%path%,%filename_ext%,BK\Cover*),
  164. $if(
  165. $fileexists($replace(%path%,%filename_ext%,BK\%album%*.png)),
  166. $replace(%path%,%filename_ext%,BK\%album%*),
  167. $if(
  168. $fileexists($replace(%path%,%filename_ext%,BK\%album%*.jpg)),
  169. $replace(%path%,%filename_ext%,BK\%album%*),
  170. $if(
  171. $fileexists($replace(%path%,%filename_ext%,BK\*front*.jpg)),
  172. $replace(%path%,%filename_ext%,BK\*front*),
  173. $if(
  174. $fileexists($replace(%path%,%filename_ext%,BK\*folder*.jpg)),
  175. $replace(%path%,%filename_ext%,BK\*folder*),
  176. $if(
  177. $fileexists($replace(%path%,%filename_ext%,BK\*Cover*.jpg)),
  178. $replace(%path%,%filename_ext%,BK\*Cover*),
  179. $if(
  180. $fileexists($replace(%path%,%filename_ext%,BK\*front*.png)),
  181. $replace(%path%,%filename_ext%,BK\*front*),
  182. $if(
  183. $fileexists($replace(%path%,%filename_ext%,BK\*folder*.png)),
  184. $replace(%path%,%filename_ext%,BK\*folder*),
  185. $if(
  186. $fileexists($replace(%path%,%filename_ext%,BK\*Cover*.png)),
  187. $replace(%path%,%filename_ext%,BK\*Cover*),
  188. $if(
  189. $fileexists($replace(%path%,%filename_ext%,BK\*%album%*.png)),
  190. $replace(%path%,%filename_ext%,BK\*%album%*),
  191. $if(
  192. $fileexists($replace(%path%,%filename_ext%,BK\*%album%*.jpg)),
  193. $replace(%path%,%filename_ext%,BK\*%album%*),
  194. $if(
  195. $fileexists($replace(%path%,%filename_ext%,BK\*.JPG)),
  196. $replace(%path%,%filename_ext%,BK\*.jpg),
  197. $if(
  198. $fileexists($replace(%path%,%filename_ext%,BK\*.PNG)),
  199. $replace(%path%,%filename_ext%,BK\*.png),
  200. $if(
  201. $fileexists($replace(%path%,%filename_ext%,Scan\front*.jpg)),
  202. $replace(%path%,%filename_ext%,Scan\front*),
  203. $if(
  204. $fileexists($replace(%path%,%filename_ext%,Scan\folder*.jpg)),
  205. $replace(%path%,%filename_ext%,Scan\folder*),
  206. $if(
  207. $fileexists($replace(%path%,%filename_ext%,Scan\Cover*.jpg)),
  208. $replace(%path%,%filename_ext%,Scan\Cover*),
  209. $if(
  210. $fileexists($replace(%path%,%filename_ext%,Scan\front*.png)),
  211. $replace(%path%,%filename_ext%,Scan\front*),
  212. $if(
  213. $fileexists($replace(%path%,%filename_ext%,Scan\folder*.png)),
  214. $replace(%path%,%filename_ext%,Scan\folder*),
  215. $if(
  216. $fileexists($replace(%path%,%filename_ext%,Scan\Cover*.png)),
  217. $replace(%path%,%filename_ext%,Scan\Cover*),
  218. $if(
  219. $fileexists($replace(%path%,%filename_ext%,Scan\%album%*.png)),
  220. $replace(%path%,%filename_ext%,Scan\%album%*),
  221. $if(
  222. $fileexists($replace(%path%,%filename_ext%,Scan\%album%*.jpg)),
  223. $replace(%path%,%filename_ext%,Scan\%album%*),
  224. $if(
  225. $fileexists($replace(%path%,%filename_ext%,Scan\*front*.jpg)),
  226. $replace(%path%,%filename_ext%,Scan\*front*),
  227. $if(
  228. $fileexists($replace(%path%,%filename_ext%,Scan\*folder*.jpg)),
  229. $replace(%path%,%filename_ext%,Scan\*folder*),
  230. $if(
  231. $fileexists($replace(%path%,%filename_ext%,Scan\*Cover*.jpg)),
  232. $replace(%path%,%filename_ext%,Scan\*Cover*),
  233. $if(
  234. $fileexists($replace(%path%,%filename_ext%,Scan\*front*.png)),
  235. $replace(%path%,%filename_ext%,Scan\*front*),
  236. $if(
  237. $fileexists($replace(%path%,%filename_ext%,Scan\*folder*.png)),
  238. $replace(%path%,%filename_ext%,Scan\*folder*),
  239. $if(
  240. $fileexists($replace(%path%,%filename_ext%,Scan\*Cover*.png)),
  241. $replace(%path%,%filename_ext%,Scan\*Cover*),
  242. $if(
  243. $fileexists($replace(%path%,%filename_ext%,Scan\*%album%*.png)),
  244. $replace(%path%,%filename_ext%,Scan\*%album%*),
  245. $if(
  246. $fileexists($replace(%path%,%filename_ext%,Scan\*%album%*.jpg)),
  247. $replace(%path%,%filename_ext%,Scan\*%album%*),
  248. $if(
  249. $fileexists($replace(%path%,%filename_ext%,Scan\*.JPG)),
  250. $replace(%path%,%filename_ext%,Scan\*.jpg),
  251. $if(
  252. $fileexists($replace(%path%,%filename_ext%,Scan\*.PNG)),
  253. $replace(%path%,%filename_ext%,Scan\*.png),
  254. $if(
  255. $fileexists($replace(%path%,%filename_ext%,Scans\front*.jpg)),
  256. $replace(%path%,%filename_ext%,Scans\front*),
  257. $if(
  258. $fileexists($replace(%path%,%filename_ext%,Scans\folder*.jpg)),
  259. $replace(%path%,%filename_ext%,Scans\folder*),
  260. $if(
  261. $fileexists($replace(%path%,%filename_ext%,Scans\Cover*.jpg)),
  262. $replace(%path%,%filename_ext%,Scans\Cover*),
  263. $if(
  264. $fileexists($replace(%path%,%filename_ext%,Scans\front*.png)),
  265. $replace(%path%,%filename_ext%,Scans\front*),
  266. $if(
  267. $fileexists($replace(%path%,%filename_ext%,Scans\folder*.png)),
  268. $replace(%path%,%filename_ext%,Scans\folder*),
  269. $if(
  270. $fileexists($replace(%path%,%filename_ext%,Scans\Cover*.png)),
  271. $replace(%path%,%filename_ext%,Scans\Cover*),
  272. $if(
  273. $fileexists($replace(%path%,%filename_ext%,Scans\%album%*.png)),
  274. $replace(%path%,%filename_ext%,Scans\%album%*),
  275. $if(
  276. $fileexists($replace(%path%,%filename_ext%,Scans\%album%*.jpg)),
  277. $replace(%path%,%filename_ext%,Scans\%album%*),
  278. $if(
  279. $fileexists($replace(%path%,%filename_ext%,Scans\*front*.jpg)),
  280. $replace(%path%,%filename_ext%,Scans\*front*),
  281. $if(
  282. $fileexists($replace(%path%,%filename_ext%,Scans\*folder*.jpg)),
  283. $replace(%path%,%filename_ext%,Scans\*folder*),
  284. $if(
  285. $fileexists($replace(%path%,%filename_ext%,Scans\*Cover*.jpg)),
  286. $replace(%path%,%filename_ext%,Scans\*Cover*),
  287. $if(
  288. $fileexists($replace(%path%,%filename_ext%,Scans\*front*.png)),
  289. $replace(%path%,%filename_ext%,Scans\*front*),
  290. $if(
  291. $fileexists($replace(%path%,%filename_ext%,Scans\*folder*.png)),
  292. $replace(%path%,%filename_ext%,Scans\*folder*),
  293. $if(
  294. $fileexists($replace(%path%,%filename_ext%,Scans\*Cover*.png)),
  295. $replace(%path%,%filename_ext%,Scans\*Cover*),
  296. $if(
  297. $fileexists($replace(%path%,%filename_ext%,Scans\*%album%*.png)),
  298. $replace(%path%,%filename_ext%,Scans\*%album%*),
  299. $if(
  300. $fileexists($replace(%path%,%filename_ext%,Scans\*%album%*.jpg)),
  301. $replace(%path%,%filename_ext%,Scans\*%album%*),
  302. $if(
  303. $fileexists($replace(%path%,%filename_ext%,Scans\*.JPG)),
  304. $replace(%path%,%filename_ext%,Scans\*.jpg),
  305. $if(
  306. $fileexists($replace(%path%,%filename_ext%,Scans\*.PNG)),
  307. $replace(%path%,%filename_ext%,Scans\*.png),
  308. $if(
  309. $fileexists($replace(%path%,%filename_ext%,Images\front*.jpg)),
  310. $replace(%path%,%filename_ext%,Images\front*),
  311. $if(
  312. $fileexists($replace(%path%,%filename_ext%,Images\folder*.jpg)),
  313. $replace(%path%,%filename_ext%,Images\folder*),
  314. $if(
  315. $fileexists($replace(%path%,%filename_ext%,Images\Cover*.jpg)),
  316. $replace(%path%,%filename_ext%,Images\Cover*),
  317. $if(
  318. $fileexists($replace(%path%,%filename_ext%,Images\front*.png)),
  319. $replace(%path%,%filename_ext%,Images\front*),
  320. $if(
  321. $fileexists($replace(%path%,%filename_ext%,Images\folder*.png)),
  322. $replace(%path%,%filename_ext%,Images\folder*),
  323. $if(
  324. $fileexists($replace(%path%,%filename_ext%,Images\Cover*.png)),
  325. $replace(%path%,%filename_ext%,Images\Cover*),
  326. $if(
  327. $fileexists($replace(%path%,%filename_ext%,Images\%album%*.png)),
  328. $replace(%path%,%filename_ext%,Images\%album%*),
  329. $if(
  330. $fileexists($replace(%path%,%filename_ext%,Images\%album%*.jpg)),
  331. $replace(%path%,%filename_ext%,Images\%album%*),
  332. $if(
  333. $fileexists($replace(%path%,%filename_ext%,Images\*front*.jpg)),
  334. $replace(%path%,%filename_ext%,Images\*front*),
  335. $if(
  336. $fileexists($replace(%path%,%filename_ext%,Images\*folder*.jpg)),
  337. $replace(%path%,%filename_ext%,Images\*folder*),
  338. $if(
  339. $fileexists($replace(%path%,%filename_ext%,Images\*Cover*.jpg)),
  340. $replace(%path%,%filename_ext%,Images\*Cover*),
  341. $if(
  342. $fileexists($replace(%path%,%filename_ext%,Images\*front*.png)),
  343. $replace(%path%,%filename_ext%,Images\*front*),
  344. $if(
  345. $fileexists($replace(%path%,%filename_ext%,Images\*folder*.png)),
  346. $replace(%path%,%filename_ext%,Images\*folder*),
  347. $if(
  348. $fileexists($replace(%path%,%filename_ext%,Images\*Cover*.png)),
  349. $replace(%path%,%filename_ext%,Images\*Cover*),
  350. $if(
  351. $fileexists($replace(%path%,%filename_ext%,Images\*%album%*.png)),
  352. $replace(%path%,%filename_ext%,Images\*%album%*),
  353. $if(
  354. $fileexists($replace(%path%,%filename_ext%,Images\*%album%*.jpg)),
  355. $replace(%path%,%filename_ext%,Images\*%album%*),
  356. $if(
  357. $fileexists($replace(%path%,%filename_ext%,Images\*.JPG)),
  358. $replace(%path%,%filename_ext%,Images\*.jpg),
  359. $if(
  360. $fileexists($replace(%path%,%filename_ext%,Images\*.PNG)),
  361. $replace(%path%,%filename_ext%,Images\*.png),
  362. $if(
  363. $fileexists($replace(%path%,%directoryname%'\'%filename_ext%,)\*.JPG),
  364. $replace(%path%,%directoryname%'\'%filename_ext%,)\*.jpg,
  365. $if(
  366. $fileexists($replace(%path%,%directoryname%'\'%filename_ext%,)\*.PNG),
  367. $replace(%path%,%directoryname%'\'%filename_ext%,)\*.png,
  368. $if(
  369. $fileexists($replace(C:\Foobar2000\AlbumArt\Artist\$if2(%artist%,).jpg,?,)),
  370. $replace(C:\Foobar2000\AlbumArt\Artist\$if2(%artist%,).jpg,?,),
  371. )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
  372.  
  373.  
  374. $puts(number_of_images,
  375. $if($fileexists($get(albumartpath)_20.*),20,
  376. $if($fileexists($get(albumartpath)_19.*),19,
  377. $if($fileexists($get(albumartpath)_18.*),18,
  378. $if($fileexists($get(albumartpath)_17.*),17,
  379. $if($fileexists($get(albumartpath)_16.*),16,
  380. $if($fileexists($get(albumartpath)_15.*),15,
  381. $if($fileexists($get(albumartpath)_14.*),14,
  382. $if($fileexists($get(albumartpath)_13.*),13,
  383. $if($fileexists($get(albumartpath)_12.*),12,
  384. $if($fileexists($get(albumartpath)_11.*),11,
  385. $if($fileexists($get(albumartpath)_10.*),10,
  386. $if($fileexists($get(albumartpath)_9.*),9,
  387. $if($fileexists($get(albumartpath)_8.*),8,
  388. $if($fileexists($get(albumartpath)_7.*),7,
  389. $if($fileexists($get(albumartpath)_6.*),6,
  390. $if($fileexists($get(albumartpath)_5.*),5,
  391. $if($fileexists($get(albumartpath)_4.*),4,
  392. $if($fileexists($get(albumartpath)_3.*),3,
  393. $if($fileexists($get(albumartpath)_2.*),2,
  394. $if($fileexists($get(albumartpath).*),1,0
  395. ))))))))))))))))))))
  396. )
  397.  
  398.  
  399. $puts(display_time,$muldiv(%length_seconds%,10,$get(number_of_images)))
  400.  
  401.  
  402. $puts(albumartpath2,
  403. $ifgreater($div($get(display_time),10),%playback_time_seconds%,$get(albumartpath).*,
  404. $ifgreater($muldiv($get(display_time),2,10),%playback_time_seconds%,$get(albumartpath)_2.*,
  405. $ifgreater($muldiv($get(display_time),3,10),%playback_time_seconds%,$get(albumartpath)_3.*,
  406. $ifgreater($muldiv($get(display_time),4,10),%playback_time_seconds%,$get(albumartpath)_4.*,
  407. $ifgreater($muldiv($get(display_time),5,10),%playback_time_seconds%,$get(albumartpath)_5.*,
  408. $ifgreater($muldiv($get(display_time),6,10),%playback_time_seconds%,$get(albumartpath)_6.*,
  409. $ifgreater($muldiv($get(display_time),7,10),%playback_time_seconds%,$get(albumartpath)_7.*,
  410. $ifgreater($muldiv($get(display_time),8,10),%playback_time_seconds%,$get(albumartpath)_8.*,
  411. $ifgreater($muldiv($get(display_time),9,10),%playback_time_seconds%,$get(albumartpath)_9.*,
  412. $ifgreater($muldiv($get(display_time),10,10),%playback_time_seconds%,$get(albumartpath)_10.*,
  413. $ifgreater($muldiv($get(display_time),11,10),%playback_time_seconds%,$get(albumartpath)_11.*,
  414. $ifgreater($muldiv($get(display_time),12,10),%playback_time_seconds%,$get(albumartpath)_12.*,
  415. $ifgreater($muldiv($get(display_time),13,10),%playback_time_seconds%,$get(albumartpath)_13.*,
  416. $ifgreater($muldiv($get(display_time),14,10),%playback_time_seconds%,$get(albumartpath)_14.*,
  417. $ifgreater($muldiv($get(display_time),15,10),%playback_time_seconds%,$get(albumartpath)_15.*,
  418. $ifgreater($muldiv($get(display_time),16,10),%playback_time_seconds%,$get(albumartpath)_16.*,
  419. $ifgreater($muldiv($get(display_time),17,10),%playback_time_seconds%,$get(albumartpath)_17.*,
  420. $ifgreater($muldiv($get(display_time),18,10),%playback_time_seconds%,$get(albumartpath)_18.*,
  421. $ifgreater($muldiv($get(display_time),19,10),%playback_time_seconds%,$get(albumartpath)_19.*,
  422. $get(albumartpath)_20.*
  423. )))))))))))))))))))
  424. )
  425.  
  426.  
  427. $imageabs2(
  428. $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),6,7),
  429. $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),20,21),
  430. 0,0,
  431. $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),6,7),
  432. $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),20,21),
  433. $add($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$div($sub(%_width%,$muldiv($sub($get(half_height),8),70,63)),2),8),$muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),3,28)),
  434. $add($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),8,$sub($get(half_height),$muldiv($sub(%_width%,16),63,70))),$muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),1,36)),
  435. $get(albumartpath2),)
  436.  
  437. $imageabs2(
  438. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  439. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  440. 0,0,
  441. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  442. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  443. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$div($sub(%_width%,$muldiv($sub($get(half_height),8),70,63)),2),8),
  444. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),8,$sub($get(half_height),$muldiv($sub(%_width%,16),63,70))),
  445. .\images\simple_1\overlay_2.png,alpha-50)
  446.  
  447. $imageabs2(
  448. $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),6,7),
  449. $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),20,21),
  450. 0,0,
  451. $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),6,7),
  452. $muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),20,21),
  453. $add($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$div($sub(%_width%,$muldiv($sub($get(half_height),8),70,63)),2),8),$muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),3,28)),
  454. $add($get(half_height),$muldiv($ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),1,42)),
  455. $get(albumartpath2),rotateflip-6)
  456.  
  457. $imageabs2(
  458. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  459. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  460. 0,0,
  461. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  462. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  463. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$div($sub(%_width%,$muldiv($sub($get(half_height),8),70,63)),2),8),
  464. $get(half_height),
  465. .\images\simple_1\overlay_1.png,)
  466.  
  467.  
  468. $puts(title_font,$font(Meiryo,8,bold italic glow-97-140-218 glowalpha-100,255-255-255))
  469. $puts(name_font,$font(Meiryo,10,bold glow-97-140-218 glowalpha-180,255-255-255))
  470.  
  471. $alignabs(0,$get(half_height),%_width%,$sub($get(half_height),$get(progress_bar_layer_size)),center,middle)
  472. $crlf()$get(title_font)- T i t l e -
  473. $crlf()$if(%title%,$ifgreater($calcwidth($get(name_font)%title%),%_width%,$get(name_font)$insert(%title%,$crlf(),$div($len(%title%),2)),$get(name_font)%title%),-)
  474. $crlf()$get(title_font)- A r t i s t -
  475. $crlf()$if(%artist%,$ifgreater($calcwidth($get(name_font)%artist%),%_width%,$get(name_font)$insert(%artist%,$crlf(),$div($len(%artist%),2)),$get(name_font)%artist%),-)
  476. $crlf()$get(title_font)- A l b u m -
  477. $crlf()$if(%album%,$ifgreater($calcwidth($get(name_font)%album%),%_width%,$get(name_font)$insert(%album%,$crlf(),$div($len(%album%),2)),$get(name_font)%album%),-)
  478. $if(%songwriter%,$crlf()$get(title_font)- C o m p o s e r -$crlf()$ifgreater($calcwidth($get(name_font)%songwriter%),%_width%,$get(name_font)$insert(%songwriter%,$crlf(),$div($len(%songwriter%),2)),$get(name_font)%songwriter%),)
  479. //$crlf()$get(title_font)- Play Count -
  480. //$crlf()$if(%play_count%,%play_count%,-)
  481.  
  482.  
  483.  
  484. $if($or(%isplaying%,%ispaused%),$imageabs2($sub(%_width%,16),8,0,0,$sub(%_width%,16),8,8,$add($sub(%_height%,$get(progress_bar_layer_size)),20),.\images\simple_1\bar_back_1.png,nokeepaspect))
  485. $if($or(%isplaying%,%ispaused%),$imageabs2($muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),8,0,0,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),8,8,$add($sub(%_height%,$get(progress_bar_layer_size)),20),.\images\simple_1\bar_1.png,nokeepaspect))
  486.  
  487. $if($or(%isplaying%,%ispaused%),
  488. $ifequal($right(%playback_time_seconds%,1),0,
  489. $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple_1\star_1.png,),
  490. $ifequal($right(%playback_time_seconds%,1),1,
  491. $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple_1\star_2.png,),
  492. $ifequal($right(%playback_time_seconds%,1),2,
  493. $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple_1\star_3.png,),
  494. $ifequal($right(%playback_time_seconds%,1),3,
  495. $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple_1\star_4.png,),
  496. $ifequal($right(%playback_time_seconds%,1),4,
  497. $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple_1\star_5.png,),
  498. $ifequal($right(%playback_time_seconds%,1),5,
  499. $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple_1\star_1.png,),
  500. $ifequal($right(%playback_time_seconds%,1),6,
  501. $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple_1\star_2.png,),
  502. $ifequal($right(%playback_time_seconds%,1),7,
  503. $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple_1\star_3.png,),
  504. $ifequal($right(%playback_time_seconds%,1),8,
  505. $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple_1\star_4.png,),
  506. $ifequal($right(%playback_time_seconds%,1),9,
  507. $imageabs2(20,20,0,0,20,20,$muldiv($sub(%_width%,16),%playback_time_seconds%,%length_seconds%),$sub(%_height%,$get(progress_bar_layer_size)),.\images\simple_1\star_5.png,),
  508. )))))))))))
Advertisement
Add Comment
Please, Sign In to add comment