PSdH:HHM ꣸C̭6VIAZ LuaPB2CC,AZLU--[[ Pitch Bend to CC converter AZ 2016 ]]-- local CCn = { Label = "CC#", Type = "Int", Value = 1 } GUI = { CCn } -- local floor = math.floor function OnInput(pqIn, pqOut) for i,e in ipairs(pqIn) do if e.Type == Wheel then local ne = MfxEvent.new(Control) ne.Time = e.Time ne.Chan = e.Chan ne.Num = CCn.Value ne.Val = floor((e.WVal + 8192) / 128) pqOut.add(ne) else pqOut.add(e) end end end OnEvents = function ( From, To, pqIn, pqOut) OnInput(pqIn, pqOut) end