VE Lua Documentation

Press F to search!

newFreqDetector

Definition


-- @/lua/common/filters.lua:91

function newFreqDetector()
  local data = {
    peak = 0, bottom = 0, prevPeak = 0, prevBottom = 0,
    peakDt = 0, bottomDt = 0, prevPeakDt = 0, prevBottomDt = 0,
    peakL = 0, bottomL = 0, period = 0, ampl = 0, state = 0, bias = 0
  }
  return setmetatable(data, freqDetector)
end

Callers