Skip to content

Commit

Permalink
Merge pull request #30 from subvertnormality/0.3.2
Browse files Browse the repository at this point in the history
Fixing #29
  • Loading branch information
subvertnormality authored Oct 24, 2023
2 parents 8728fe2 + 6c169bc commit 742802b
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 742802b

Please sign in to comment.