From 6c169bca062c0b2b9cd62925c5566ebc409a4d15 Mon Sep 17 00:00:00 2001 From: Andrew Hillel Date: Tue, 24 Oct 2023 17:36:04 +0100 Subject: [PATCH] Fixing #29 --- lib/step_handler.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/step_handler.lua b/lib/step_handler.lua index 836794a..dd783a6 100644 --- a/lib/step_handler.lua +++ b/lib/step_handler.lua @@ -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