RAFASU

karaskel

stringmath

_GLua 5.1 manual

karaskel_lua, unicode.luautils.lua_G/p>

tenv

line

retime(mode, startadjust, endadjust)

Auto4-kara-templater-retime-explanation

mode

Possible _mode_s:

  • abs or set
  • preline
  • line
  • start2syl
  • presylpreline
  • syl
  • postsylpresyl
  • syl2endstart2syl.
  • postlinepostsyl

mode:

  • sylpct

Synopsis: relayer(newlayer)

.

template syl: !relayer(syl.i*5+20)!

restyle(newstyle)

.

maxloop

maxloop(newmax)

template syl: !maxloop(syl.width + 2*line.styleref.outline)!{\clip(!line.left+syl.left-line.styleref.outline+j-1!,0,!line.left+syl.left-line.styleref.outline+j!,!meta.res_y!)\an5\move(!line.left+syl.center!,!line.middle!,!line.left+syl.center!,!line.middle+math.random(-20,20)!,$start,$end)\shad0}

template syl: !maxloop(j+1)!

j

loopctl

loopctl(newj, newmaxj)

math.random

name

value

default

condition

template syl: {\frz!remember("entryrotation",math.random(100,200))!\fscx300\fscy300\t(0,300,\frz0\fscx100\fscy100)\pos($x,$y)}
template syl: {\frz-!recall("entryrotation")!\fscx300\fscy300\t(0,300,\frz0\fscx100\fscy100)\pos($x,$y)\fad(300,0)}

""

""

template syl: {\fscx!remember_if("longsyllables", recall("longsyllables", 100)+10, #syl.duration>200)!}

maxloop

template syl loop 5: {\an5\pos($scenter,$smiddle)\1a&HFF&\3a&Hcc&\t($start,$end,\fscx!100+j\*10!\fscy!100+j\*10!\3a&HFF&)}

template syl loop 20: {\move($x,$y,!$x+15\*math.cos(math.pi\*2\*j/maxj)!,!$y+15\*math.sin(math.pi\*2\*j/maxj)!,$start,$end)\t($start,$end,\alpha&HFF&)}

j/maxj

code syl: fxgroup.long = (syl.duration > 200)
template syl noblank: all here:
template syl fxgroup long: is long:
karaoke: {\k10}huh? {\k40}wee~~

fxgroup.long

← การใช้ โค๊ด หลักกับในบรรทัด
วิธีใช้สคริปต์ทุ่นเเรง →