################################################################################
### description:
### normal karaoke
from tcaxPy import *
def tcaxPy_Init():
global _FD # frame duration, in millisecond
global _Blur
_FD = 1000 / GetVal(val_FXFPS)
_Blur = GetVal(val_Blur)
def tcaxPy_Fin():
pass
def tcaxPy_Main(_i, _j, _n, _start, _end, _elapk, _k, _x, _y, _a, _txt):
ASS_BUF = [] # used for saving ASS FX lines
TCAS_BUF = [] # used for saving TCAS FX raw data
ts = _start + _elapk # start time, in semi-second
te = _start + _elapk + _k # end time, in semi-second
EFT = pos(_x, _y) + K(_k) # ASS events
if _Blur > 0:
EFT += blur(_Blur)
ass_main(ASS_BUF, SubL(ts, te, 10), EFT, _txt) # store the effect