用户工具

站点工具


information:tutorial:job_plugin_lua

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

information:tutorial:job_plugin_lua [2012/01/16 18:20]
solpie 创建
information:tutorial:job_plugin_lua [2012/01/17 00:44] (当前版本)
mi
行 1: 行 1:
-V3尾音PIT LUA脚本 源代码+<WRAP  round info 50%>\\  
 +**作者: solpie** 
 +</WRAP>
  
 +====== Vocaloid3尾音PIT LUA脚本 源代码  ======
 +**(下载后在V3 job plugin管理器中添加即可)**
  
-<code - myfile.foo> 
  
- +<code lua weiyin.lua> 
-function manifest()\\  +function manifest() 
-myManifest = {\\  +    myManifest = { 
-name          = "Weiyin",\\  +        name          = "Weiyin", 
-comment       = "Weiyin PIT",\\  +        comment       = "Weiyin PIT", 
-author        = "SolPie",\\  +        author        = "SolPie", 
-pluginID      = "{D82068B8-9A30-4912-B619-284B50B42D60}",\\  +        pluginID      = "{D82068B8-9A30-4912-B619-284B50B42D60}", 
-pluginVersion = "1.0.0.1",\\  +        pluginVersion = "1.0.0.1", 
-apiVersion    = "3.0.0.1"\\  +        apiVersion    = "3.0.0.1" 
-}\\  +    
-\\  +     
-return myManifest\\ +    return myManifest
 end end
  
  
-\\  +-- 
---\\  +-- VOCALOID3 Job 插件的main入口 
--- VOCALOID3 Job 插件的main入口\\  +-- 
---\\  +function main(processParam, envParam) 
-function main(processParam, envParam)\\  + -- 実行時に渡された処理条件パラメータを取得します. 
--- 実行時に渡された処理条件パラメータを取得します.\\  + local beginPosTick = processParam.beginPosTick -- 选区开始时间的(开始的TICK)。 
-local beginPosTick = processParam.beginPosTick -- 选区开始时间的(开始的TICK)。\\  + local endPosTick   = processParam.endPosTick -- 选区结束时间的(结束Tick). 
-local endPosTick   = processParam.endPosTick -- 选区结束时间的(结束Tick).\\  + local songPosTick  = processParam.songPosTick -- 当前歌曲的位置时。
-local songPosTick  = processParam.songPosTick -- 当前歌曲的位置时。+
  
 + -- 実行時に渡された実行環境パラメータを取得します.
 + local scriptDir  = envParam.scriptDir -- 目录路径,Lua脚本的位置(在末尾分隔符“\”内)。
 + local scriptName = envParam.scriptName -- Lua脚本文件名。
 + local tempDir    = envParam.tempDir -- 临时目录路径的Lua插件是可用的(在末尾分隔符“\”内)。
  
--- 実行時に渡された実行環境パラメータを取得します.\\  +    --xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx下面是重点xxxxxxxxxxxxxxxxxxxxx 
-local scriptDir  = envParam.scriptDir -- 目录路径,Lua脚本的位置(在末尾分隔符“%%\%%”内)。\\  +    local control = {} 
-local scriptName = envParam.scriptName -- Lua脚本文件名。\\  +    local controlList = {} 
-local tempDir    = envParam.tempDir  -- 临时目录路径的Lua插件是可用的(在末尾分隔符“%%\%%”内)。 +    local len=32 --尾音长度 
- + local num = 0 --值 
- + local step = 8191/(len/2)--步进值 
---xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx下面是重点xxxxxxxxxxxxxxxxxxxxx\\  + VSUpdateControlAt("PBS", endPosTick-len , 6)--设置PBS参数 
-local control = {}\\  + VSUpdateControlAt("PBS", endPosTick , 2) 
-local controlList = {}\\  + for posTick=endPosTick-len,endPosTick-len/2 do 
-local len=32 --尾音长度\\  + VSUpdateControlAt("PIT", posTick , num)  
-local num = 0 --值\\  + num = num + step 
-local step = 8191/(len/2)--步进值\\  + end 
-VSUpdateControlAt("PBS", endPosTick-len , 6)--设置PBS参数\\  +  VSUpdateControlAt("PIT", endPosTick , 0)  
-VSUpdateControlAt("PBS", endPosTick , 2)\\  +   
-for posTick=endPosTick-len,endPosTick-len/2 do\\  +end
-VSUpdateControlAt("PIT", posTick , num) \\  +
-num = num + step\\  +
-end\\  +
-VSUpdateControlAt("PIT", endPosTick , 0) \\  +
-\\  +
-end\\  +
-</code>\\+
  
 +</code>
information/tutorial/job_plugin_lua.1326709206.txt.gz · 最后更改: 2012/01/16 18:20 由 solpie