\-effectname effectname
{\k40}zu{\k20}t{\k42}to {\k32\-paint}e{\k17}ga{\k45}i{\k32}te{\k26}ta {\k24\-cloud}yu{\k55}me
| zu | (blank) |
| t | (blank) |
| to | (blank) |
| e | paint
|
| ga | paint
|
| i | paint
|
| te | paint
|
| ta | paint
|
| yu | cloud
|
| me | cloud
|
template syl: {base effect applied for all syllables}
template syl fx paint: {overlay effect applied only to the 'paint' syllables}
template syl fx cloud: {overlay effect applied only to the 'cloud' syllables}
code syl: fxgroup.blankfx = (syl.inline_fx == "")
template syl fxgroup blankfx: {effect only applied on blank inline-fx syllables}
syl.inline_fx
if syl.inline_fx == "" then
apply_base_effect(subs, meta, line, syl)
elseif syl.inline_fx == "paint" then
apply_paint_effect(subs, meta, line, syl)
elseif syl.inline_fx == "cloud" then
apply_cloud_effect(subs, meta, line, syl)
end
effects = {}
effects[""] = function(subs, meta, line, syl) -- base effect code here end
effects.paint = function(subs, meta, line, syl) -- paint effect code here end
effects.cloud = function(subs, meta, line, syl) -- cloud effect code here end
effects[syl.inline_fx](subs, meta, line, syl)