Guest User

Untitled

a guest
Dec 17th, 2015
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.66 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%,*),
  89. $if(
  90. $fileexists($replace(%path%,%filename_ext%,Booklet\front*.jpg)),
  91. $replace(%path%,%filename_ext%,Booklet\front*),
  92. $if(
  93. $fileexists($replace(%path%,%filename_ext%,Booklet\folder*.jpg)),
  94. $replace(%path%,%filename_ext%,Booklet\folder*),
  95. $if(
  96. $fileexists($replace(%path%,%filename_ext%,Booklet\Cover*.jpg)),
  97. $replace(%path%,%filename_ext%,Booklet\Cover*),
  98. $if(
  99. $fileexists($replace(%path%,%filename_ext%,Booklet\front*.png)),
  100. $replace(%path%,%filename_ext%,Booklet\front*),
  101. $if(
  102. $fileexists($replace(%path%,%filename_ext%,Booklet\folder*.png)),
  103. $replace(%path%,%filename_ext%,Booklet\folder*),
  104. $if(
  105. $fileexists($replace(%path%,%filename_ext%,Booklet\Cover*.png)),
  106. $replace(%path%,%filename_ext%,Booklet\Cover*),
  107. $if(
  108. $fileexists($replace(%path%,%filename_ext%,Booklet\%album%*.png)),
  109. $replace(%path%,%filename_ext%,Booklet\%album%*),
  110. $if(
  111. $fileexists($replace(%path%,%filename_ext%,Booklet\%album%*.jpg)),
  112. $replace(%path%,%filename_ext%,Booklet\%album%*),
  113. $if(
  114. $fileexists($replace(%path%,%filename_ext%,Booklet\*front*.jpg)),
  115. $replace(%path%,%filename_ext%,Booklet\*front*),
  116. $if(
  117. $fileexists($replace(%path%,%filename_ext%,Booklet\*folder*.jpg)),
  118. $replace(%path%,%filename_ext%,Booklet\*folder*),
  119. $if(
  120. $fileexists($replace(%path%,%filename_ext%,Booklet\*Cover*.jpg)),
  121. $replace(%path%,%filename_ext%,Booklet\*Cover*),
  122. $if(
  123. $fileexists($replace(%path%,%filename_ext%,Booklet\*front*.png)),
  124. $replace(%path%,%filename_ext%,Booklet\*front*),
  125. $if(
  126. $fileexists($replace(%path%,%filename_ext%,Booklet\*folder*.png)),
  127. $replace(%path%,%filename_ext%,Booklet\*folder*),
  128. $if(
  129. $fileexists($replace(%path%,%filename_ext%,Booklet\*Cover*.png)),
  130. $replace(%path%,%filename_ext%,Booklet\*Cover*),
  131. $if(
  132. $fileexists($replace(%path%,%filename_ext%,Booklet\*%album%*.png)),
  133. $replace(%path%,%filename_ext%,Booklet\*%album%*),
  134. $if(
  135. $fileexists($replace(%path%,%filename_ext%,Booklet\*%album%*.jpg)),
  136. $replace(%path%,%filename_ext%,Booklet\*%album%*),
  137. $if(
  138. $fileexists($replace(%path%,%filename_ext%,BK\front*.jpg)),
  139. $replace(%path%,%filename_ext%,BK\front*),
  140. $if(
  141. $fileexists($replace(%path%,%filename_ext%,BK\folder*.jpg)),
  142. $replace(%path%,%filename_ext%,BK\folder*),
  143. $if(
  144. $fileexists($replace(%path%,%filename_ext%,BK\Cover*.jpg)),
  145. $replace(%path%,%filename_ext%,BK\Cover*),
  146. $if(
  147. $fileexists($replace(%path%,%filename_ext%,BK\front*.png)),
  148. $replace(%path%,%filename_ext%,BK\front*),
  149. $if(
  150. $fileexists($replace(%path%,%filename_ext%,BK\folder*.png)),
  151. $replace(%path%,%filename_ext%,BK\folder*),
  152. $if(
  153. $fileexists($replace(%path%,%filename_ext%,BK\Cover*.png)),
  154. $replace(%path%,%filename_ext%,BK\Cover*),
  155. $if(
  156. $fileexists($replace(%path%,%filename_ext%,BK\%album%*.png)),
  157. $replace(%path%,%filename_ext%,BK\%album%*),
  158. $if(
  159. $fileexists($replace(%path%,%filename_ext%,BK\%album%*.jpg)),
  160. $replace(%path%,%filename_ext%,BK\%album%*),
  161. $if(
  162. $fileexists($replace(%path%,%filename_ext%,BK\*front*.jpg)),
  163. $replace(%path%,%filename_ext%,BK\*front*),
  164. $if(
  165. $fileexists($replace(%path%,%filename_ext%,BK\*folder*.jpg)),
  166. $replace(%path%,%filename_ext%,BK\*folder*),
  167. $if(
  168. $fileexists($replace(%path%,%filename_ext%,BK\*Cover*.jpg)),
  169. $replace(%path%,%filename_ext%,BK\*Cover*),
  170. $if(
  171. $fileexists($replace(%path%,%filename_ext%,BK\*front*.png)),
  172. $replace(%path%,%filename_ext%,BK\*front*),
  173. $if(
  174. $fileexists($replace(%path%,%filename_ext%,BK\*folder*.png)),
  175. $replace(%path%,%filename_ext%,BK\*folder*),
  176. $if(
  177. $fileexists($replace(%path%,%filename_ext%,BK\*Cover*.png)),
  178. $replace(%path%,%filename_ext%,BK\*Cover*),
  179. $if(
  180. $fileexists($replace(%path%,%filename_ext%,BK\*%album%*.png)),
  181. $replace(%path%,%filename_ext%,BK\*%album%*),
  182. $if(
  183. $fileexists($replace(%path%,%filename_ext%,BK\*%album%*.jpg)),
  184. $replace(%path%,%filename_ext%,BK\*%album%*),
  185. $if(
  186. $fileexists($replace(%path%,%filename_ext%,Scan\front*.jpg)),
  187. $replace(%path%,%filename_ext%,Scan\front*),
  188. $if(
  189. $fileexists($replace(%path%,%filename_ext%,Scan\folder*.jpg)),
  190. $replace(%path%,%filename_ext%,Scan\folder*),
  191. $if(
  192. $fileexists($replace(%path%,%filename_ext%,Scan\Cover*.jpg)),
  193. $replace(%path%,%filename_ext%,Scan\Cover*),
  194. $if(
  195. $fileexists($replace(%path%,%filename_ext%,Scan\front*.png)),
  196. $replace(%path%,%filename_ext%,Scan\front*),
  197. $if(
  198. $fileexists($replace(%path%,%filename_ext%,Scan\folder*.png)),
  199. $replace(%path%,%filename_ext%,Scan\folder*),
  200. $if(
  201. $fileexists($replace(%path%,%filename_ext%,Scan\Cover*.png)),
  202. $replace(%path%,%filename_ext%,Scan\Cover*),
  203. $if(
  204. $fileexists($replace(%path%,%filename_ext%,Scan\%album%*.png)),
  205. $replace(%path%,%filename_ext%,Scan\%album%*),
  206. $if(
  207. $fileexists($replace(%path%,%filename_ext%,Scan\%album%*.jpg)),
  208. $replace(%path%,%filename_ext%,Scan\%album%*),
  209. $if(
  210. $fileexists($replace(%path%,%filename_ext%,Scan\*front*.jpg)),
  211. $replace(%path%,%filename_ext%,Scan\*front*),
  212. $if(
  213. $fileexists($replace(%path%,%filename_ext%,Scan\*folder*.jpg)),
  214. $replace(%path%,%filename_ext%,Scan\*folder*),
  215. $if(
  216. $fileexists($replace(%path%,%filename_ext%,Scan\*Cover*.jpg)),
  217. $replace(%path%,%filename_ext%,Scan\*Cover*),
  218. $if(
  219. $fileexists($replace(%path%,%filename_ext%,Scan\*front*.png)),
  220. $replace(%path%,%filename_ext%,Scan\*front*),
  221. $if(
  222. $fileexists($replace(%path%,%filename_ext%,Scan\*folder*.png)),
  223. $replace(%path%,%filename_ext%,Scan\*folder*),
  224. $if(
  225. $fileexists($replace(%path%,%filename_ext%,Scan\*Cover*.png)),
  226. $replace(%path%,%filename_ext%,Scan\*Cover*),
  227. $if(
  228. $fileexists($replace(%path%,%filename_ext%,Scan\*%album%*.png)),
  229. $replace(%path%,%filename_ext%,Scan\*%album%*),
  230. $if(
  231. $fileexists($replace(%path%,%filename_ext%,Scan\*%album%*.jpg)),
  232. $replace(%path%,%filename_ext%,Scan\*%album%*),
  233. $if(
  234. $fileexists($replace(%path%,%filename_ext%,Scans\front*.jpg)),
  235. $replace(%path%,%filename_ext%,Scans\front*),
  236. $if(
  237. $fileexists($replace(%path%,%filename_ext%,Scans\folder*.jpg)),
  238. $replace(%path%,%filename_ext%,Scans\folder*),
  239. $if(
  240. $fileexists($replace(%path%,%filename_ext%,Scans\Cover*.jpg)),
  241. $replace(%path%,%filename_ext%,Scans\Cover*),
  242. $if(
  243. $fileexists($replace(%path%,%filename_ext%,Scans\front*.png)),
  244. $replace(%path%,%filename_ext%,Scans\front*),
  245. $if(
  246. $fileexists($replace(%path%,%filename_ext%,Scans\folder*.png)),
  247. $replace(%path%,%filename_ext%,Scans\folder*),
  248. $if(
  249. $fileexists($replace(%path%,%filename_ext%,Scans\Cover*.png)),
  250. $replace(%path%,%filename_ext%,Scans\Cover*),
  251. $if(
  252. $fileexists($replace(%path%,%filename_ext%,Scans\%album%*.png)),
  253. $replace(%path%,%filename_ext%,Scans\%album%*),
  254. $if(
  255. $fileexists($replace(%path%,%filename_ext%,Scans\%album%*.jpg)),
  256. $replace(%path%,%filename_ext%,Scans\%album%*),
  257. $if(
  258. $fileexists($replace(%path%,%filename_ext%,Scans\*front*.jpg)),
  259. $replace(%path%,%filename_ext%,Scans\*front*),
  260. $if(
  261. $fileexists($replace(%path%,%filename_ext%,Scans\*folder*.jpg)),
  262. $replace(%path%,%filename_ext%,Scans\*folder*),
  263. $if(
  264. $fileexists($replace(%path%,%filename_ext%,Scans\*Cover*.jpg)),
  265. $replace(%path%,%filename_ext%,Scans\*Cover*),
  266. $if(
  267. $fileexists($replace(%path%,%filename_ext%,Scans\*front*.png)),
  268. $replace(%path%,%filename_ext%,Scans\*front*),
  269. $if(
  270. $fileexists($replace(%path%,%filename_ext%,Scans\*folder*.png)),
  271. $replace(%path%,%filename_ext%,Scans\*folder*),
  272. $if(
  273. $fileexists($replace(%path%,%filename_ext%,Scans\*Cover*.png)),
  274. $replace(%path%,%filename_ext%,Scans\*Cover*),
  275. $if(
  276. $fileexists($replace(%path%,%filename_ext%,Scans\*%album%*.png)),
  277. $replace(%path%,%filename_ext%,Scans\*%album%*),
  278. $if(
  279. $fileexists($replace(%path%,%filename_ext%,Scans\*%album%*.jpg)),
  280. $replace(%path%,%filename_ext%,Scans\*%album%*),
  281. $if(
  282. $fileexists($replace(%path%,%filename_ext%,Images\front*.jpg)),
  283. $replace(%path%,%filename_ext%,Images\front*),
  284. $if(
  285. $fileexists($replace(%path%,%filename_ext%,Images\folder*.jpg)),
  286. $replace(%path%,%filename_ext%,Images\folder*),
  287. $if(
  288. $fileexists($replace(%path%,%filename_ext%,Images\Cover*.jpg)),
  289. $replace(%path%,%filename_ext%,Images\Cover*),
  290. $if(
  291. $fileexists($replace(%path%,%filename_ext%,Images\front*.png)),
  292. $replace(%path%,%filename_ext%,Images\front*),
  293. $if(
  294. $fileexists($replace(%path%,%filename_ext%,Images\folder*.png)),
  295. $replace(%path%,%filename_ext%,Images\folder*),
  296. $if(
  297. $fileexists($replace(%path%,%filename_ext%,Images\Cover*.png)),
  298. $replace(%path%,%filename_ext%,Images\Cover*),
  299. $if(
  300. $fileexists($replace(%path%,%filename_ext%,Images\%album%*.png)),
  301. $replace(%path%,%filename_ext%,Images\%album%*),
  302. $if(
  303. $fileexists($replace(%path%,%filename_ext%,Images\%album%*.jpg)),
  304. $replace(%path%,%filename_ext%,Images\%album%*),
  305. $if(
  306. $fileexists($replace(%path%,%filename_ext%,Images\*front*.jpg)),
  307. $replace(%path%,%filename_ext%,Images\*front*),
  308. $if(
  309. $fileexists($replace(%path%,%filename_ext%,Images\*folder*.jpg)),
  310. $replace(%path%,%filename_ext%,Images\*folder*),
  311. $if(
  312. $fileexists($replace(%path%,%filename_ext%,Images\*Cover*.jpg)),
  313. $replace(%path%,%filename_ext%,Images\*Cover*),
  314. $if(
  315. $fileexists($replace(%path%,%filename_ext%,Images\*front*.png)),
  316. $replace(%path%,%filename_ext%,Images\*front*),
  317. $if(
  318. $fileexists($replace(%path%,%filename_ext%,Images\*folder*.png)),
  319. $replace(%path%,%filename_ext%,Images\*folder*),
  320. $if(
  321. $fileexists($replace(%path%,%filename_ext%,Images\*Cover*.png)),
  322. $replace(%path%,%filename_ext%,Images\*Cover*),
  323. $if(
  324. $fileexists($replace(%path%,%filename_ext%,Images\*%album%*.png)),
  325. $replace(%path%,%filename_ext%,Images\*%album%*),
  326. $if(
  327. $fileexists($replace(%path%,%filename_ext%,Images\*%album%*.jpg)),
  328. $replace(%path%,%filename_ext%,Images\*%album%*),
  329. $if(
  330. $fileexists($replace(C:\Foobar2000\AlbumArt\Artist\$if2(%artist%,).jpg,?,)),
  331. $replace(C:\Foobar2000\AlbumArt\Artist\$if2(%artist%,).jpg,?,),
  332. ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
  333.  
  334.  
  335. $puts(number_of_images,
  336. $if($fileexists($get(albumartpath)-20.*),20,
  337. $if($fileexists($get(albumartpath)-19.*),19,
  338. $if($fileexists($get(albumartpath)-18.*),18,
  339. $if($fileexists($get(albumartpath)-17.*),17,
  340. $if($fileexists($get(albumartpath)-16.*),16,
  341. $if($fileexists($get(albumartpath)-15.*),15,
  342. $if($fileexists($get(albumartpath)-14.*),14,
  343. $if($fileexists($get(albumartpath)-13.*),13,
  344. $if($fileexists($get(albumartpath)-12.*),12,
  345. $if($fileexists($get(albumartpath)-11.*),11,
  346. $if($fileexists($get(albumartpath)-10.*),10,
  347. $if($fileexists($get(albumartpath)-9.*),9,
  348. $if($fileexists($get(albumartpath)-8.*),8,
  349. $if($fileexists($get(albumartpath)-7.*),7,
  350. $if($fileexists($get(albumartpath)-6.*),6,
  351. $if($fileexists($get(albumartpath)-5.*),5,
  352. $if($fileexists($get(albumartpath)-4.*),4,
  353. $if($fileexists($get(albumartpath)-3.*),3,
  354. $if($fileexists($get(albumartpath)-2.*),2,
  355. $if($fileexists($get(albumartpath).*),1,0
  356. ))))))))))))))))))))
  357. )
  358.  
  359.  
  360. $puts(display_time,$muldiv(%length_seconds%,10,$get(number_of_images)))
  361.  
  362.  
  363. $puts(albumartpath2,
  364. $ifgreater($div($get(display_time),10),%playback_time_seconds%,$get(albumartpath).*,
  365. $ifgreater($muldiv($get(display_time),2,10),%playback_time_seconds%,$get(albumartpath)-2.*,
  366. $ifgreater($muldiv($get(display_time),3,10),%playback_time_seconds%,$get(albumartpath)-3.*,
  367. $ifgreater($muldiv($get(display_time),4,10),%playback_time_seconds%,$get(albumartpath)-4.*,
  368. $ifgreater($muldiv($get(display_time),5,10),%playback_time_seconds%,$get(albumartpath)-5.*,
  369. $ifgreater($muldiv($get(display_time),6,10),%playback_time_seconds%,$get(albumartpath)-6.*,
  370. $ifgreater($muldiv($get(display_time),7,10),%playback_time_seconds%,$get(albumartpath)-7.*,
  371. $ifgreater($muldiv($get(display_time),8,10),%playback_time_seconds%,$get(albumartpath)-8.*,
  372. $ifgreater($muldiv($get(display_time),9,10),%playback_time_seconds%,$get(albumartpath)-9.*,
  373. $ifgreater($muldiv($get(display_time),10,10),%playback_time_seconds%,$get(albumartpath)-10.*,
  374. $ifgreater($muldiv($get(display_time),11,10),%playback_time_seconds%,$get(albumartpath)-11.*,
  375. $ifgreater($muldiv($get(display_time),12,10),%playback_time_seconds%,$get(albumartpath)-12.*,
  376. $ifgreater($muldiv($get(display_time),13,10),%playback_time_seconds%,$get(albumartpath)-13.*,
  377. $ifgreater($muldiv($get(display_time),14,10),%playback_time_seconds%,$get(albumartpath)-14.*,
  378. $ifgreater($muldiv($get(display_time),15,10),%playback_time_seconds%,$get(albumartpath)-15.*,
  379. $ifgreater($muldiv($get(display_time),16,10),%playback_time_seconds%,$get(albumartpath)-16.*,
  380. $ifgreater($muldiv($get(display_time),17,10),%playback_time_seconds%,$get(albumartpath)-17.*,
  381. $ifgreater($muldiv($get(display_time),18,10),%playback_time_seconds%,$get(albumartpath)-18.*,
  382. $ifgreater($muldiv($get(display_time),19,10),%playback_time_seconds%,$get(albumartpath)-19.*,
  383. $get(albumartpath)-20.*
  384. )))))))))))))))))))
  385. )
  386.  
  387.  
  388. $imageabs2(
  389. $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),
  390. $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),
  391. 0,0,
  392. $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),
  393. $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),
  394. $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)),
  395. $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)),
  396. $get(albumartpath2),)
  397.  
  398. $imageabs2(
  399. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  400. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  401. 0,0,
  402. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  403. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  404. $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),
  405. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),8,$sub($get(half_height),$muldiv($sub(%_width%,16),63,70))),
  406. .\images\simple-1\overlay-2.png,alpha-50)
  407.  
  408. $imageabs2(
  409. $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),
  410. $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),
  411. 0,0,
  412. $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),
  413. $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),
  414. $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)),
  415. $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)),
  416. $get(albumartpath2),rotateflip-6)
  417.  
  418. $imageabs2(
  419. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  420. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  421. 0,0,
  422. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$muldiv($sub($get(half_height),8),70,63),$sub(%_width%,16)),
  423. $ifgreater($sub(%_width%,16),$sub($muldiv($get(half_height),70,63),8),$sub($get(half_height),8),$muldiv($sub(%_width%,16),63,70)),
  424. $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),
  425. $get(half_height),
  426. .\images\simple-1\overlay-1.png,)
  427.  
  428.  
  429. $puts(title_font,$font(Meiryo,8,bold italic glow-97-140-218 glowalpha-100,255-255-255))
  430. $puts(name_font,$font(Meiryo,10,bold glow-97-140-218 glowalpha-180,255-255-255))
  431.  
  432. $alignabs(0,$get(half_height),%_width%,$sub($get(half_height),$get(progress_bar_layer_size)),center,middle)
  433. $crlf()$get(title_font)- T i t l e -
  434. $crlf()$if(%title%,$ifgreater($calcwidth($get(name_font)%title%),%_width%,$get(name_font)$insert(%title%,$crlf(),$div($len(%title%),2)),$get(name_font)%title%),-)
  435. $crlf()$get(title_font)- A r t i s t -
  436. $crlf()$if(%artist%,$ifgreater($calcwidth($get(name_font)%artist%),%_width%,$get(name_font)$insert(%artist%,$crlf(),$div($len(%artist%),2)),$get(name_font)%artist%),-)
  437. $crlf()$get(title_font)- A l b u m -
  438. $crlf()$if(%album%,$ifgreater($calcwidth($get(name_font)%album%),%_width%,$get(name_font)$insert(%album%,$crlf(),$div($len(%album%),2)),$get(name_font)%album%),-)
  439. //$crlf()$get(title_font)- C o m p o s e r -
  440. //$crlf()$if(%songwriter%,$ifgreater($calcwidth($get(name_font)%songwriter%),%_width%,$get(name_font)$insert(%songwriter%,$crlf(),$div($len(%songwriter%),2)),$get(name_font)%songwriter%),-)
  441.  
  442.  
  443. $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))
  444. $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))
  445.  
  446. $if($or(%isplaying%,%ispaused%),
  447. $ifequal($right(%playback_time_seconds%,1),0,
  448. $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,),
  449. $ifequal($right(%playback_time_seconds%,1),1,
  450. $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,),
  451. $ifequal($right(%playback_time_seconds%,1),2,
  452. $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,),
  453. $ifequal($right(%playback_time_seconds%,1),3,
  454. $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,),
  455. $ifequal($right(%playback_time_seconds%,1),4,
  456. $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,),
  457. $ifequal($right(%playback_time_seconds%,1),5,
  458. $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,),
  459. $ifequal($right(%playback_time_seconds%,1),6,
  460. $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,),
  461. $ifequal($right(%playback_time_seconds%,1),7,
  462. $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,),
  463. $ifequal($right(%playback_time_seconds%,1),8,
  464. $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,),
  465. $ifequal($right(%playback_time_seconds%,1),9,
  466. $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,),
  467. )))))))))))
Advertisement
Add Comment
Please, Sign In to add comment