Forums > MaxMSP

Lua script, lerp function

March 24, 2013 | 10:09 am

Hi,

can anyone tell me what i’m doing wrong in the following….

—————————————————————–
require("vec")
this.inlets = 3
this.outlets = 2

local v1 ={1.,0.}
local v2 ={2.,2.}

for i = 0, 100 do
local t = i / 100
local f = vec2.lerp(v1,v2,t) < --error occur on this line , "in main chunk"
outlet(0,f)

end


October 27, 2013 | 5:57 am

Hi, TOUK

I encountered same problem on jit.gl.lua.
Although this message was displayed, patches could perform correctly.

Are there bugs on jit.gl.lua editor?


Viewing 2 posts - 1 through 2 (of 2 total)