Skip to content

Commit

Permalink
Fixing #29
Browse files Browse the repository at this point in the history
  • Loading branch information
subvertnormality committed Oct 24, 2023
1 parent 17f1608 commit 6c169bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/step_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,15 @@ function step_handler.process_stock_params(c, step, type)
for i = 1, 10 do
if channel.trig_lock_params[i] and channel.trig_lock_params[i].id == type then
local step_trig_lock = program.get_step_param_trig_lock(channel, step, i)
if step_trig_lock == channel.trig_lock_params[i].off_value then
return nil
end
if step_trig_lock then
return step_trig_lock
else
if channel.trig_lock_banks[i] == channel.trig_lock_params[i].off_value then
return nil
end
return channel.trig_lock_banks[i]
end
end
Expand Down

0 comments on commit 6c169bc

Please sign in to comment.