Skip to content

Commit

Permalink
hotfix: lfo :add (#1593)
Browse files Browse the repository at this point in the history
* hotfix: lfo `:add`

gah! the `:add` method wasn't properly invoking the `.new` function

* Update lfo.lua
  • Loading branch information
dndrks authored Aug 4, 2022
1 parent 484d6a1 commit 6444a40
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lua/lib/lfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
-- added by @dndrks + @sixolet

local lattice = require 'lattice'
local hook = require 'core/hook'

local LFO = {}
LFO.__index = LFO
Expand Down Expand Up @@ -58,7 +57,7 @@ function LFO.new(shape, min, max, depth, mode, period, action)
wrap = false,
formatter = nil
}
i.action = action == nil and (function(scaled, raw) end) or fn
i.action = action == nil and (function(scaled, raw) end) or action
return i
end

Expand All @@ -79,7 +78,7 @@ function LFO:add(args)
local mode = args.mode == nil and 'clocked' or args.mode
local period = args.period == nil and 4 or args.period
local action = args.action == nil and (function(scaled, raw) end) or args.action
self.new(shape, min, max, depth, mode, period, action)
return self.new(shape, min, max, depth, mode, period, action)
end

-- PARAMETERS UI /
Expand Down

0 comments on commit 6444a40

Please sign in to comment.