Panel Properties - Some available, some not? - SOLVED #567
-
This one has gone me perplexed, if I add some simple script to a button like below: local myChannel = tostring(panel:getProperty("panelMidiOutputChannelDevice")) I get values returned for the Output Channel, the Version Major and the Global Delay but all the MIDI Thru Properties just return nil I'd like to be able to read and change certain MIDI Thru settings without overly confusing someone with the Main MIDI Settings Menu which imho is confusing. But it looks like some Panel Properties are available and others are not? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hi Spiffo, Try this: local myChannel = L(panel:getPropertyString("panelMidiOutputChannelDevice")) console("MIDI Ch is "..myChannel) local version = L(panel:getPropertyString("panelVersionMajor")) console("Version Major is "..version) local delay = L(panel:getPropertyString("panelMidiGlobalDelay")) console("Global Delay is "..delay) local thruH2H = L(panel:getPropertyString("panelMidiThruH2H")) console("H2H is "..thruH2H) local thruH2D = L(panel:getPropertyString("panelMidiThruH2D")) console("H2D is "..thruH2D) local thruD2H = L(panel:getPropertyString("panelMidiThruD2H")) console("D2H is "..thruD2H) local thruC2D = L(panel:getPropertyString("panelMidiThruC2D")) console("C2D is "..thruC2D) local thruD2D = L(panel:getPropertyString("panelMidiThruD2D")) console("D2D is "..thruD2D) |
Beta Was this translation helpful? Give feedback.
@dnaldoog I saw that already. it's a class for LUAbind it refers to wrapForLua (L)
ctrlr/Source/Lua/JuceClasses/LCore.cpp
Line 10 in 8aa00d8
From the luaBind doc https://luabind.sourceforge.net/docs.html:
Everything that gets registered in lua is registered in a namespace (lua tables) or in the global scope (called module). All registrations must be surrounded by its scope. To define a module, the luabind::module class is used. It is used like this: