Skip to content

Display value in lcd #526

Answered by damiensellier
jojogib asked this question in Q&A
Jan 9, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You have to create several uiLabel for that and on mod value change you apply the following method:

--
-- Called when a modulator value changes
-- @mod   http://ctrlr.org/api/class_ctrlr_modulator.html
-- @value    new numeric value of the modulator
--
myMethod = function(--[[ CtrlrModulator --]] mod, --[[ number --]] value, --[[ number --]] source)

local ModValue = mod:getModulatorValue() -- to get the current value of your modulator
panel:getLabel("uiLabel"):setText(tostring(ModValue)) -- where uiLabel is the name of your target label

end

You can display any data or modulator value to any label with this. Hope it helps!

Damien

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jojogib
Comment options

Answer selected by jojogib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants