Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.05 KB | None | 0 0
  1. var songtitle = "You Gon' Learn";
  2. var artist = "Eminem, Royce Da 5'9\", White Gold";
  3.  
  4. var songDuration = 235;
  5.  
  6. var animations = [
  7. {
  8. "index": "wavesurfer_culmcbbdp28",
  9. "type": "lyric",
  10. "start": 1,
  11. "end": 14.43,
  12. "text": "Pray you see tomorrow little boy, you gon' learn\nAll them pretty (...) leave yo' ass in the urn\nYou ain't sold your last rock, you just better earn\nBut I pray you see tomorrow little boy, you gon' learn"
  13. },
  14. {
  15. "index": "wavesurfer_id2n5qdib3g",
  16. "type": "lyric",
  17. "start": 14.5,
  18. "end": 28.23,
  19. "text": "Pray you see tomorrow little boy, you gon' learn\nAll them pretty (...) leave yo' ass in the urn\nYou ain't sold your last rock, you just better earn\nBut I pray you see tomorrow little boy, you gon' learn"
  20. },
  21. {
  22. "index": "wavesurfer_dfcaqfjdgt8",
  23. "type": "lyric",
  24. "start": 28.83,
  25. "end": 35.07,
  26. "text": "I'm a product of properly hoppin' \nup out of that poverty\nProfitin' all for coppin' and swappin' \nthat property out for a possible monopoly"
  27. },
  28. {
  29. "index": "wavesurfer_fcvfi1q6mk",
  30. "type": "lyric",
  31. "start": 35.3,
  32. "end": 44.23,
  33. "text": "Try not to adopt my father's old philosophies\nSame time I'm prayin' to God that everything \nworks out at his colonoscopy\nI'm walkin' across a suicidal tightrope intentionally"
  34. },
  35. {
  36. "index": "wavesurfer_klbcuqr14po",
  37. "type": "lyric",
  38. "start": 44.33,
  39. "end": 51.13,
  40. "text": "While the demons comin' out of me\nWifey's on the side of me talkin' sense into me\nWithout she, \nI feel incomplete mentally, she's been sent to me"
  41. },
  42. {
  43. "index": "wavesurfer_cok9as41j",
  44. "type": "lyric",
  45. "start": 51.2,
  46. "end": 61.8,
  47. "text": "Right there since '9-6, worse nightmare to side chicks, \nsome things are just meant to be\nThis it for me, give my daughters a kiss for me\nY'all call this fame, I call this shit alcoholistic infamy"
  48. },
  49. {
  50. "index": "wavesurfer_fcflis62om8",
  51. "type": "lyric",
  52. "start": 61.86,
  53. "end": 68.4,
  54. "text": "Targettin' my kids and babies through \npopulation and gun control\nShit make me wanna make a hunnid more\nMake a bigot racist uncomfortable"
  55. },
  56. {
  57. "index": "wavesurfer_082mcfj595o",
  58. "type": "lyric",
  59. "start": 68.5,
  60. "end": 73.53,
  61. "text": "If y'all against talk and reparation then I'm not \nagainst the thought of separation\nWhile the politicians that are white and privileged "
  62. },
  63. {
  64. "index": "wavesurfer_kj9tjesjmjo",
  65. "type": "lyric",
  66. "start": 73.6,
  67. "end": 82.13,
  68. "text": "ask how is this different from segregation, \nthat's funny bro\nThe segregation is bein' told where I'm gonna go\nSeparation is bein' woke and goin' wherever I wanna go"
  69. },
  70. {
  71. "index": "wavesurfer_p7hdhnj8d0o",
  72. "type": "lyric",
  73. "start": 82.96,
  74. "end": 96.66,
  75. "text": "Pray you see tomorrow little boy, you gon' learn\nAll them pretty (...) leave yo' ass in the urn\nYou ain't sold your last rock, you just better earn\nBut I pray you see tomorrow little boy, you gon' learn"
  76. },
  77. {
  78. "index": "wavesurfer_qjv32ssu1lo",
  79. "type": "lyric",
  80. "start": 96.73,
  81. "end": 109.76,
  82. "text": "Pray you see tomorrow little boy, you gon' learn\nAll them pretty (...) leave yo' ass in the urn\nYou ain't sold your last rock, you just better earn\nBut I pray you see tomorrow little boy, you gon' learn"
  83. },
  84. {
  85. "index": "wavesurfer_0ichccobs9",
  86. "type": "lyric",
  87. "start": 109.83,
  88. "end": 116.63,
  89. "text": "Never sold dope, from the gold rope\nWanted one though, they were so dope (Yeah)\nWas a have-not (Yeah) 'cause my pockets (Uh)\nDidn't have knots, I was so broke"
  90. },
  91. {
  92. "index": "wavesurfer_gh20da26ieo",
  93. "type": "lyric",
  94. "start": 116.73,
  95. "end": 123.6,
  96. "text": "On my last rock, for my slingshot\nBetter haul ass, don't be no slow poke (Nope)\nThrough the tall grass, run your ass off (Yeah)\nOh no, got your pants caught on the fence post"
  97. },
  98. {
  99. "index": "wavesurfer_c58trgop38g",
  100. "type": "lyric",
  101. "start": 123.7,
  102. "end": 127.63,
  103. "text": "Getting chased, by them Jackboys, \nthink it's 'bout to fuzz\nLike a lint roller they wait 'til it's late, \nthey will tiptoe"
  104. },
  105. {
  106. "index": "wavesurfer_j3q2huu308",
  107. "type": "lyric",
  108. "start": 127.7,
  109. "end": 133.5,
  110. "text": "Through your living room window\nTake your Nintendo and then skate\nMaking you feel like you got bent over and (...)\nLittle boy, you're never gonna get no rope chain"
  111. },
  112. {
  113. "index": "wavesurfer_3q777jinug",
  114. "type": "lyric",
  115. "start": 133.6,
  116. "end": 136.96,
  117. "text": "Get your shit stole, and your lip swole, \nI became bitter\nAs I got a little bit older, my hate"
  118. },
  119. {
  120. "index": "wavesurfer_r9dmte22tlg",
  121. "type": "lyric",
  122. "start": 137.16,
  123. "end": 141.6,
  124. "text": "Was making me get cold, \nand began to get a chipped shoulder\nStarted to spit vulgar, \nmy ZIP code had been skid row"
  125. },
  126. {
  127. "index": "wavesurfer_kt1l9hpcav8",
  128. "type": "lyric",
  129. "start": 141.66,
  130. "end": 148.46,
  131. "text": "But I ate every single beat that I spit over, \nthe shithole I escaped\nThen I began to explode, detonate, \nnow the Eastside went schizo"
  132. },
  133. {
  134. "index": "wavesurfer_kq04bdpggb8",
  135. "type": "lyric",
  136. "start": 148.53,
  137. "end": 154.16,
  138. "text": "Thought my name was B-side \n'cause they flipped over my tape\nAnd I won't hesitate\nTo get 'em all bent so outta shape"
  139. },
  140. {
  141. "index": "wavesurfer_o1jlr0q8j1o",
  142. "type": "lyric",
  143. "start": 154.5,
  144. "end": 160.33,
  145. "text": "Oh shit, bro, hold up, wait\nI just tripped over my cape (Superman)\nAnd I'm not gonna let up, \ntreat the paper like I'm chopping a letter"
  146. },
  147. {
  148. "index": "wavesurfer_a3fl0r3guoo",
  149. "type": "lyric",
  150. "start": 160.4,
  151. "end": 165.83,
  152. "text": "Dre'll tell you how I shred\nSo when you refer to the guy next to the doc, \nyou meant shredder\nNow the cops wanna set up roadblocks on my head, I"
  153. },
  154. {
  155. "index": "wavesurfer_60sf2g81d7",
  156. "type": "lyric",
  157. "start": 165.89,
  158. "end": 173.19,
  159. "text": "Got several bounties from feds in every county\nI'm with a gal at a Checkers wiling\nBumping \"(...) Da Police\" while I fed her Rally's\nThis shit is like Romper Room"
  160. },
  161. {
  162. "index": "wavesurfer_emch8ant1bo",
  163. "type": "lyric",
  164. "start": 173.26,
  165. "end": 179.79,
  166. "text": "Why do I feel responsible for these kids?\nAll of whom I'm a father to\nI'm a God to you, y'all better worship the water I walk on\nOr y'all gonna meet your Waterloo"
  167. },
  168. {
  169. "index": "wavesurfer_qgvnq8ptek",
  170. "type": "lyric",
  171. "start": 179.86,
  172. "end": 184.76,
  173. "text": "I get to flippin' the mic' as a murder weapon\nI'm poppin' an extra clip, then cock and shoot, \nthen I'm popping\nDo not let me catch you slippin'"
  174. },
  175. {
  176. "index": "wavesurfer_g28t4gjfqt8",
  177. "type": "lyric",
  178. "start": 184.83,
  179. "end": 190.83,
  180. "text": "I will pop up and I'll take a spot from you\nI'll get to doing what a leaky faucet do\nBut I ain't talkin' drip when I say that I'll \nget the drop on you"
  181. },
  182. {
  183. "index": "wavesurfer_l5iunusmrn8",
  184. "type": "lyric",
  185. "start": 191.06,
  186. "end": 197.86,
  187. "text": "Singin' (...) all of you in Autotune\nI am too volatile and too grizzly to bear\nYeah, shit is gettin' \nto where I can barely even sit in a chair"
  188. },
  189. {
  190. "index": "wavesurfer_mh0ouerb8ig",
  191. "type": "lyric",
  192. "start": 197.93,
  193. "end": 206.29,
  194. "text": "I bust my ass for this shit and I swear\nIt ain't even worth dissing someone so offbeat\nThat they can't even figure out where their words\nShould hit the kick and the snare"
  195. },
  196. {
  197. "index": "wavesurfer_encohkfrol8",
  198. "type": "lyric",
  199. "start": 206.39,
  200. "end": 220.09,
  201. "text": "Pray you see tomorrow little boy, you gon' learn\nAll them pretty (...) leave yo' ass in the urn\nYou ain't sold your last rock, you just better earn\nBut I pray you see tomorrow little boy, you gon' learn"
  202. },
  203. {
  204. "index": "wavesurfer_qmutga2bfog",
  205. "type": "lyric",
  206. "start": 220.16,
  207. "end": 233.96,
  208. "text": "Pray you see tomorrow little boy, you gon' learn\nAll them pretty (...) leave yo' ass in the urn\nYou ain't sold your last rock, you just better earn\nBut I pray you see tomorrow little boy, you gon' learn"
  209. }
  210. ];
  211.  
  212.  
  213. function getMarker(time){
  214. var i=0;
  215. var minDiff=1000;
  216. var marker;
  217. for(i in animations){
  218. var start = Math.abs(time-animations[i].start);
  219. var end = Math.abs(time-animations[i].end);
  220. var m = start > end ? end : start;
  221. if(m<minDiff){
  222. minDiff=m;
  223. marker = animations[i];
  224. }
  225. }
  226. return marker;
  227. }
  228.  
  229.  
  230. function getAnimationMarker(animationList, time){
  231. var i=0;
  232. var minDiff=1000;
  233. var marker;
  234. for(i in animationList){
  235. var start = Math.abs(time-animationList[i].start);
  236. var end = Math.abs(time-animationList[i].end);
  237. var m = start > end ? end : start;
  238. if(m<minDiff){
  239. minDiff=m;
  240. marker = animationList[i];
  241. }
  242. }
  243. return marker;
  244. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement