uiLabel name as argument in function call

Hi,

I want to use the name of an uiLabel as argument in a Lua function call with the purpose this function replaces the displayed text in this uiLabel by a tekst generated by this function.

So, I have by instance this code:

panel:getLabel(“patchLabel”):setText(”)

patchNibbles = midi:getData():getRange(8, 24)

— Now I want to call

buildAsciiBytes(value, patchlabelName)

to build labeltext  from value nibbles and set this text in the uiLabel with name ‘patchLabel’.

buildAsciiBytes (patchNibbles, ??? )    –<–how to define this argument?

local blablablab..

if blablabl…

newLabel:createFromTable(t)

end

panel:getLabel(“patchLabel”):setText(newLabel:toString()) — <–This does not work. What is the right construction to set the desired name in the modulator?

end –f

Thanks

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Do NOT follow this link or you will be banned from the site!