[Script Info] ; Script generated by Aegisub 3.0.4 ; http://www.aegisub.org/ Title: Default Aegisub file ScriptType: v4.00+ WrapStyle: 0 ScaledBorderAndShadow: yes Collisions: Normal PlayResX: 1280 PlayResY: 720 Scroll Position: 0 Active Line: 5 Video Zoom Percent: 1 Last Style Storage: Default YCbCr Matrix: None [V4+ Styles] Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding Style: Default,Riesling,55,&H00FFFFFF,&H00C500FF,&H00D8B8E7,&H00F0B5FF,-1,0,0,0,100,100,0,0,1,2,0,5,10,8,155,1 Style: Chorus,Moonstar,65,&H00FFFFFF,&H00C500FF,&H00FFA8F0,&H00F5DEFB,0,0,0,0,100,100,0,0,1,2,0,8,10,8,255,1 [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,,Note: để file effect và file heart.png chung 1 folder Dialogue: 0,0:00:00.00,0:00:00.00,Default,Get Scr Resolution,0,0,0,code once,xres, yres = _G.aegisub.video_size() if xres == nil then x_rat = 1 y_rat = 1 else x_rat = xres/1024 y_rat = x_rat end if (xres and xres ~= meta.res_x) or (yres and yres ~= meta.res_y) then _G.aegisub.debug.out(2, "Warning: script resolution %dx%d does not match with loaded video resolution %dx%d resample script resolution", meta.res_x, meta.res_y, xres, yres) end Comment: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,code line all,ci = { 0,0,0 }; cn = _G.unicode.len(orgline.text_stripped:gsub(" ","")) Comment: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,code syl all,function char_counter(ref) ci[ref] = ci[ref] + 1; return "" end Dialogue: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,code once,math.randomseed(8317) Comment: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,code once,temp = {} ; shape = {"m 18 39 b 23 28 35 24 35 16 b 36 8 23 0 18 11 b 14 0 0 8 1 16 b 1 24 13 28 18 39","m 17 6 b 22 17 34 21 34 29 b 35 37 22 45 17 34 b 14 45 0 37 1 29 b 1 21 13 17 17 6 "} Comment: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,code syl all,function char_counter(ref) ci[ref] = ci[ref] + 1; return "" end Comment: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,code line all,ci = { 0 }; cn = _G.unicode.len(orgline.text_stripped:gsub(" ","")) Comment: 0,0:00:00.00,0:00:00.00,Default,blur,0,0,0,template noblank notext loop 7,!retime("syl",(j-1)*40,(j-1)*100+1000)!{\fad(0,100)\1vc(!line.styleref.color2!,!line.styleref.color2!,&HFFFFFF&,&HFFFFFF&)\bord0\blur7\fscx!size/2!\fscy!size/2!\an5\move($center,!$middle!,!$center-math.random(-65,65)!,!$middle-math.random(-65,65)!)\!AutoTags(300,'frz-2','frz2')!\p1}!shape[1]! Comment: 0,0:00:00.00,0:00:00.00,Default,shape,0,0,0,template noblank notext loop 7,!retime("syl",(j-1)*40,(j-1)*100+1000)!{\fad(0,100)\3vc(!line.styleref.color4!,!line.styleref.color4!,&HFFFFFF&,&HFFFFFF&)\org($lleft,!$middle+360!)\frx3\t(0,!line.duration/2!,\frx0)\t(!line.duration/2!,!line.duration!,\frx3)\bord0.5\blur4\fscx!size/5!\fscy!size/5!\t(!line.duration-500!,!line.duration!,\fscx!size/2!\fscy!size/2!)\an5\move($center,!$middle!,!$center-j*math.random(10,10)!,!$middle-math.random(-65,65)!)\!AutoTags(300,'frz-2','frz2')!\p1}!shape[1]! Comment: 0,0:00:10.36,0:00:13.86,Default,,0,0,0,template noblank char,!char_counter(1)!!retime("syl2end",-$dur,-$lright+(ci[1]-1)*20)!{\org($center,!$middle+50!)\1vc(!line.styleref.color4!,!line.styleref.color4!,&HFFFFFF&,&HFFFFFF&)\an5\pos($center,$middle)\t(0,!$dur/2!,\blur3\3c&HFFFFFF&\c&HFFFFFF&\fscx150\fscy150)\t(!$dur/2!,$dur,\blur0\3c!line.styleref.color3!\1vc(!line.styleref.color4!,!line.styleref.color4!,&HFFFFFF&,&HFFFFFF&)\fscx100\fscy100)\t(!line.duration-600!,!line.duration-400!,\frz3)\t(!line.duration-400!,!line.duration-200!,\frz-3)\t(!line.duration-200!,!line.duration!,\frz0)\t(!line.duration-400!,!line.duration!,\1vc(&HFFFFFF&,&HFFFFFF&,&HF9D0FF&,&HF9D0FF&))}{\!AutoTags(500,'fr-6','fr6')!} Comment: 1,0:00:00.00,0:00:00.00,Default,lead-in,0,0,0,template char,!char_counter(1)!!retime("start2syl",-$lright+(ci[1]-1)*20,0)!{\1a&H60&\bord0\c&HFFFFFF&\fry!math.random(-360,360)!\t(0,!lead!,\fry0)\c&HFFFFFF&\blur0\t(!lead!,!lead+200!,\bord!line.styleref.outline!\alpha0\1vc(&HFFFFFF&,&HFFFFFF&,!line.styleref.color4!,!line.styleref.color4!))\fad(200,0)\an5\moves4(!$center+225!,!$middle+75*((-1)^ci[1])!,!$center-225!,!$middle+75*((-1)^ci[1])!,!$center+125!,!$middle-75*((-1)^ci[1])!,!$center!,!$middle!,0,!lead!)} Comment: 0,0:00:10.36,0:00:13.86,Chorus,,0,0,0,template noblank char,!char_counter(1)!!retime("syl2end",-$dur,-$lright+(ci[1]-1)*20)!{\1img(heart.png,$width,0)\org($center,!$middle+50!)\an5\pos($center,$middle)\3c&HFFFFFF&\t(0,!$dur/2!,\fscx150\fscy150)\t(!$dur/2!,!$dur!,\blur4\fscx100\fscy100)\t(!line.duration-600!,!line.duration-400!,\frz3)\t(!line.duration-400!,!line.duration-200!,\frz-3)\t(!line.duration-200!,!line.duration!,\frz0)}{\!AutoTags(500,'fr-6','fr6')!} Comment: 1,0:00:00.00,0:00:00.00,Chorus,lead-in,0,0,0,template char,!char_counter(1)!!retime("start2syl",-$lright+(ci[1]-1)*20,0)!{\c&HFFFFFF&\3c&HFFFFFF&\fry!math.random(-360,360)!\t(0,!lead!,\fry0)\blur3\t(0,!lead!,\bord!line.styleref.outline!\1vc(&HFFFFFF&,&HFFFFFF&,!line.styleref.color4!,!line.styleref.color4!)\alpha0\3c!line.styleref.color3!)\fad(200,0)\an5\moves4(!$center+225!,!$middle+75*((-1)^ci[1])!,!$center-225!,!$middle+75*((-1)^ci[1])!,!$center+125!,!$middle-75*((-1)^ci[1])!,!$center!,!$middle!,0,!lead!)} Comment: 0,0:00:00.00,0:00:00.00,Default,Butterfly wing shape,0,0,0,code once,wing = "m 158 19 l 170 10 b 176 15 182 20 186 28 b 337 46 401 198 310 263 b 378 199 274 83 164 40 m 24 10 l 39 -1 b 48 4 56 11 60 19 b 241 40 338 154 305 257 b 300 274 293 278 295 289 b 289 281 298 270 298 255 b 293 205 266 129 173 113 b 72 98 47 188 136 229 b 110 225 81 221 53 217 b 29 213 14 188 11 172 b 8 146 9 83 28 36 b 33 26 33 19 24 10 m 240 160 b 271 199 288 244 289 288 l 274 296 b 254 278 233 266 209 252 b 224 258 235 263 249 270 b 230 234 199 204 165 172 b 204 202 235 233 268 267 b 276 233 262 199 240 160 m 373 212 b 385 242 352 229 333 268 b 329 279 323 301 308 312 b 319 287 317 278 299 287 b 298 278 307 268 321 263 b 324 252 350 252 365 227 b 367 222 368 217 373 212 m 297 322 b 282 322 270 330 260 336 b 261 317 295 287 308 287 b 314 287 307 304 297 322 m 285 296 b 266 311 254 327 257 342 b 269 334 279 328 290 327 b 252 353 273 366 241 388 b 240 353 232 321 285 296 m 263 303 b 247 317 235 330 226 346 b 224 352 190 363 172 366 b 186 360 200 356 205 348 b 202 334 213 322 233 321 b 243 315 252 309 263 303 m 256 302 b 249 307 238 311 226 315 b 199 315 174 311 151 301 b 170 304 184 306 202 303 b 177 287 150 281 120 278 b 150 279 179 282 211 291 b 219 294 220 307 232 307 b 240 307 245 304 256 302 m 228 318 b 204 322 200 336 199 346 b 160 327 129 322 81 322 b 115 318 153 319 193 330 b 202 326 209 321 228 318 m 212 318 b 203 321 194 322 192 327 b 148 303 98 301 51 303 b 91 297 139 297 192 317 b 197 318 201 319 212 318 m 163 357 b 155 367 161 372 181 367 b 176 387 169 397 134 397 b 153 395 155 390 151 381 b 137 381 134 378 127 372 l 110 378 b 106 386 108 391 131 397 b 110 400 100 397 91 386 b 47 403 24 429 28 469 b 8 437 29 406 81 373 b 84 351 58 342 18 363 b 33 352 46 343 56 333 b 60 315 36 313 19 313 b 39 309 66 309 76 327 b 96 326 122 334 127 352 b 132 366 158 353 163 357 m 59 343 b 91 342 105 351 110 368 b 119 368 129 366 122 356 b 108 337 79 333 59 343 m 45 356 b 38 361 33 366 29 372 b 26 378 10 380 2 372 b -6 367 1 360 16 366 b 22 368 31 357 45 356 m 19 459 b 21 467 26 474 33 477 b 39 482 37 494 24 494 b 14 490 12 484 19 480 b 24 475 17 472 19 459 m 17 313 b 51 294 72 255 148 263 b 183 267 222 273 266 293 b 207 244 122 227 53 221 b 16 239 20 264 24 286 b 28 296 26 304 17 313 " Comment: 0,0:00:00.00,0:00:00.00,Default,,0,0,0,code syl all,fxgroup.firstsyl = syl.i == 1 ; fxgroup.endsyl = syl.i == syl.n Comment: 0,0:00:00.00,0:00:00.00,Default,Butterfly wing shape,0,0,0,code syl,size = "100" ; lead = "500" Comment: 0,0:00:00.00,0:00:00.00,Default,AutoTags,0,0,0,code syl, function AutoTags(Intervalo,Dato1,Dato2) local RESULTADO="" local SUERTE = 0 local CONTADOR = 0 local ARREGLO = 0 local count = math.ceil(line.duration/Intervalo) ARREGLO = {Dato1,Dato2} for i = 1, count do CONTADOR = i if Dato1 and Dato2 then if CONTADOR%2 ==0 then SUERTE = ARREGLO[1] else SUERTE = ARREGLO[2] end end RESULTADO = RESULTADO .."\\t(" ..(i-1)*Intervalo.. "," ..i*Intervalo.. ",\\" ..SUERTE..")".."" end return RESULTADO end Comment: 0,0:00:00.00,0:00:00.00,Default,shape,0,0,0,template noblank notext fxgroup firstsyl loop 12,!retime("syl",-lead+(lead/maxj)*(j-1),-$dur)!{\1img(heart.png,$width,0)\bord0.5\blur4\fad(100,0)\fscx!size/j!\fscy!size/j!\t(,\frx3)\org($lleft,!$middle+360!)\an5\move(!$lleft-70!,!$middle-5!,!$lleft!,!$middle-5!)}{\!AutoTags(300,'frz-1','frz1')!\p1}!shape[1]! Comment: 0,0:00:00.00,0:00:00.00,Default,shape,0,0,0,template noblank notext loop 12,!retime("syl",(j-1)*40,(j-1)*40)!{\1img(heart.png,$width,0)\org($lleft,!$middle+360!)\frx3\t(0,!$dur/2!,\frx0)\t(!$dur/2!,$dur,\frx3)\bord0.5\blur4\fscx!size/j!\fscy!size/j!\an5\move($left,!$middle-5!,!$right+5!,!$middle-5!)\!AutoTags(300,'frz-2','frz2')!\p1}!shape[1]! Comment: 0,0:00:00.00,0:00:00.00,Chorus,shape,0,0,0,template noblank notext fxgroup firstsyl loop 12,!retime("syl",-lead+(lead/maxj)*(j-1),-$dur)!{\1img(heart.png,$width,0)\bord0.5\blur4\fad(100,0)\fscx!size/j!\fscy!size/j!\t(,\frx3)\org($lleft,!$middle+360!)\an5\move(!$lleft-70!,!$middle-5!,!$lleft!,!$middle-5!)}{\!AutoTags(300,'frz-1','frz1')!\p1}!shape[1]! Comment: 0,0:00:00.00,0:00:00.00,Chorus,shape,0,0,0,template noblank notext loop 12,!retime("syl",(j-1)*40,(j-1)*40)!{\1img(heart.png,$width,0)\org($lleft,!$middle+360!)\frx3\t(0,!$dur/2!,\frx0)\t(!$dur/2!,$dur,\frx3)\bord0.5\blur4\fscx!size/j!\fscy!size/j!\an5\move($left,!$middle-5!,!$right+5!,!$middle-5!)\!AutoTags(300,'frz-2','frz2')!\p1}!shape[1]! Comment: 0,0:00:00.00,0:00:00.00,Chorus,shape,0,0,0,template noblank notext fxgroup firstsyl loop 12,!retime("syl",-lead+(lead/maxj)*(j-1),-$dur)!{\1img(heart.png,$width,0)\bord0.5\blur4\fad(100,0)\fscx!size/j!\fscy!size/j!\t(,\frx3)\org($lleft,!$middle+360!)\an5\move(!$lleft-70!,!$middle+$height-5!,!$lleft!,!$middle+$height-5!)}{\!AutoTags(300,'frz-1','frz1')!\p1}!shape[2]! Comment: 0,0:00:00.00,0:00:00.00,Chorus,shape,0,0,0,template noblank notext loop 12,!retime("syl",(j-1)*40,(j-1)*40)!{\1img(heart.png,$width,0)\org($lleft,!$middle+360!)\frx3\t(0,!$dur/2!,\frx0)\t(!$dur/2!,$dur,\frx3)\bord0.5\blur4\fscx!size/j!\fscy!size/j!\an5\move($left,!$middle+$height-5!,!$right+5!,!$middle+$height-5!)\!AutoTags(300,'frz-2','frz2')!\p1}!shape[2]! Comment: 0,0:00:00.00,0:00:00.00,Chorus,shape,0,0,0,template noblank notext loop 7,!retime("syl",(j-1)*(syl.duration/maxj),(j-1)*(syl.duration/maxj)+1000)!{\fad(0,100)\1vc(!line.styleref.color2!,!line.styleref.color2!,&HFFFFFF&,&HFFFFFF&)\1a&H60&\bord0\blur3\fscx!size/2!\fscy!size/2!\move(!$left+(($right-$left)/maxj)*(j-1)!,$top,!$center-math.random(-75,75)!,!$bottom+10!)\!AutoTags(300,'frz-2','frz2')!\p1}!shape[1]! Comment: 0,0:00:00.00,0:00:00.00,Chorus,shape,0,0,0,template noblank notext loop 7,!retime("syl",(j-1)*(syl.duration/maxj),(j-1)*(syl.duration/maxj)+1000)!{\fad(0,100)\1vc(!line.styleref.color2!,!line.styleref.color2!,&HFFFFFF&,&HFFFFFF&)\1a&H60&\bord0\blur3\fscx!size/2!\fscy!size/2!\move(!$left+(($right-$left)/maxj)*(j-1)!,$bottom,!$center-math.random(-75,75)!,!$top-10!)\!AutoTags(300,'frz-2','frz2')!\p1}!shape[1]! Comment: 0,0:00:14.40,0:00:16.84,Default,,0,0,0,karaoke,{\k0}{\k10}Let {\k21}me {\k66}explain {\k15}the {\k34}vision {\k18}in {\k17}my {\k59}brain Comment: 0,0:00:58.78,0:01:04.36,Chorus,,0,0,0,karaoke,{\k0}{\k67}Call {\k38}you {\k27}my {\k43}own {\k27}and {\k42}can {\k35}I {\k67}call {\k36}you {\k33}my {\k65}lo{\k73}ver? Comment: 0,0:01:04.36,0:01:09.24,Chorus,,0,0,0,karaoke,{\k66}Call{\k38} you {\k31}my {\k39}one {\k36}and {\k34}on{\k35}ly {\k205}girl? Dialogue: 0,0:00:16.84,0:00:18.84,Default,,0,0,0,,