Skip to content

Commit

Permalink
Fixing more issues with trig lock refreshing
Browse files Browse the repository at this point in the history
  • Loading branch information
subvertnormality committed Apr 3, 2024
1 parent f73a776 commit b975250
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/pages/channel_edit_page_ui_controller.lua
Original file line number Diff line number Diff line change
Expand Up @@ -426,14 +426,14 @@ function channel_edit_page_ui_controller.handle_trig_lock_param_change_by_direct
if #pressed_keys > 0 and channel.trig_lock_params[dial_index] and channel.trig_lock_params[dial_index].id then
for _, keys in ipairs(pressed_keys) do
local step = fn.calc_grid_count(keys[1], keys[2])
m_params[dial_index]:set_value(
program.get_step_param_trig_lock(channel, step, dial_index) or p_value or channel.trig_lock_banks[dial_index]
)
program.add_step_param_trig_lock(
step,
dial_index,
(program.get_step_param_trig_lock(channel, step, dial_index) or p_value or channel.trig_lock_banks[dial_index]) + direction
)
m_params[dial_index]:set_value(
program.get_step_param_trig_lock(channel, step, dial_index) or p_value or channel.trig_lock_banks[dial_index]
)
end
elseif channel.trig_lock_params[dial_index] and channel.trig_lock_params[dial_index].id then
if p ~= nil and p_value ~= nil then
Expand All @@ -454,9 +454,11 @@ function channel_edit_page_ui_controller.handle_trig_lock_param_change_by_direct
channel.trig_lock_banks[dial_index] = (channel.trig_lock_params[dial_index].cc_min_value or -1)
end
end

channel_edit_page_ui_controller.refresh_trig_lock_value(dial_index)

end

channel_edit_page_ui_controller.refresh_trig_lock_value(dial_index)
end


Expand Down

0 comments on commit b975250

Please sign in to comment.