Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/matrix.lua
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,12 @@ function ModMatrix:set_depth(param_id, modulation_id, depth)
self.matrix[modulation_id] = nil
end
end
if p.modulation ~= nil then
p.modulation[modulation_id] = nil
end
if p.t ~= params.tTRIGGER then
self:defer_bang(p.id, p.priority)
end
else
if self.matrix[modulation_id] == nil then
self.matrix[modulation_id] = {}
Expand Down
3 changes: 3 additions & 0 deletions lib/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ m.key = function(n,z)
local source = matrix:lookup_source(i)
-- print("setting depth", m.param_id, i, source.id, 0)
matrix:set_depth(m.param_id, i, nil)
if not matrix:used(source.id) then
matrix:set(source.id, 0)
end
m.calculated = false
end
end
Expand Down