My problem is not understanding the language LUA (some things are very complex),but what can or can not do with specific codes of LUA in Renoise.
I understand that to return a specific value static within a “vb:horizontal_aligner” i need the: " text = “bla bla bla” ". Ok, “text” show “bla bla bla” inside horizontal_aligner
When the value is not fixed but varies, I need a function (with specific language LUA for Renoise) that returns (disposed above the content=):
function tracks_index()
print(("track number: %s"):format(renoise.song().selected_track_index))
end
This is my function, which returns the value I need (number of track selected in Pattern Editor or Mixer (of the index)).
I think I should use “notifier =” inside the “vb:textfield”
vb:textfield {
notifier = function() <--- here!
}
In Renoise ViewBuilder.API.lua are:
– Valid in the construction table only: Set up a notifier for text changes.
– See add_notifier/remove_notifier below.
textfield.notifier
-> [function()]
and below:
– Add/remove value change (text change) notifiers.
multiline_textfield:add_notifier(function or {object, function} or {object, function})
multiline_textfield:remove_notifier(function or {object, function} or {object, function})
I’m here now:
vb:multiline_textfield {
--text = "t",
add_notifier = tracks_index(),
notifier = function()tracks_index() end
},
or
vb:multiline_textfield {
--text = "t",
notifier = function()tracks_index() end,
add_notifier = tracks_index()
},
But the value does not appear in box inside the floating window of tool…
Sorry if I’m asking too much things. You have years of experience with LUA. I am a rookie of one month. In specific cases, I need a example that does exactly what I ask for understanding. Then, based on it, I can use it to show other values…