BLI program to use one button on the Halo remote to toggle between CD1 to CD6 of a BLC connected BS9000.
-. Beolink converter NL/ML setup as ASlave (BS9000 is sole ML device connected).
-. CD is set to be visible in NL .
Start with, goto “Virtual Resources”:
Define a “Virtual Resource” Integer, named as “Number”. Place this resource in the area/zone of your Halo remote.
Goto “Interfaces”, “B&0 Halo remotes”:
Choose your Halo and program a Halo button as shown below.
Login to view image
Goto “Macros”:
Make an “Event” : Halo_Area/Halo_Zone/Halo remote/Your_Halo/
BUTTON_RELEASED?BUTTON=497f6eca-6276-4993-bfeb-000000810xxx
with the correct button
Copy the lines below in the field “Execute the following lua code”
function(event, engine)
local numbr_query = engine.query("Halo_Area/Halo_Zone/VARIABLE/Number")
local numbr = numbr_query[1].get_number("VALUE")
if numbr==nil then
numbr=0
elseif numbr>5 then
numbr=0
end
if numbr==0 then
cdnumber=1
engine.fire("Halo_Area/Halo_Zone/Number/SET?VALUE="..tostring(cdnumber))
elseif numbr==1 then
cdnumber=2
engine.fire("Halo_Area/Halo_Zone/Number/SET?VALUE="..tostring(cdnumber))
elseif numbr==2 then
cdnumber=3
engine.fire("Halo_Area/Halo_Zone/Number/SET?VALUE="..tostring(cdnumber))
elseif numbr==3 then
cdnumber=4
engine.fire("Halo_Area/Halo_Zone/Number/SET?VALUE="..tostring(cdnumber))
elseif numbr==4 then
cdnumber=5
engine.fire("Halo_Area/Halo_Zone/Number/SET?VALUE="..tostring(cdnumber))
else
cdnumber=6
engine.fire("Halo_Area/Halo_Zone/VARIABLE/Number/SET?VALUE=0")
end
--set text Halo button
engine.fire("Halo_Area/Halo_Zone//Halo remote/your_Beoremote_ Halo_name/SET_TEXT?BUTTON=497f6eca-6276-4993-bfeb-000000810xxx&TEXT=".."cd"..tostring(cdnumber))
--play cd1-6 on all av renderers in this aera / zone /
engine.fire("Halo_Area/Halo_Zone/AV renderer/*/Select source?Connector=&Origin=<BL_NL/ML_converter_IDnumber>&Source Type=CD")
--select cd number
engine.fire("$Area/$Zone/AV renderer/<Name_of_ BL_NL/ML_converter >/Send digit?Digit="..tostring(cdnumber))
--set wheel to number of cd
engine.fire("Halo_area/Halo_zone/Halo remote/your_Beoremote_ Halo_name/SET_WHEEL_VALUE?BUTTON=497f6eca-6276-4993-bfeb-000000810363&VALUE="..tostring(math.floor(cdnumber*100/6)))
end
- Set all Halo_Area in the code to your settings correct.
- Set all Halo_Zone in the code to your settings correct.
- Set your_Beoremote_Halo_name
- Put the correct Halo button ID number in the code to your settings.
- Place the correct BeolinkNL/ML converter IDnumber in the code (= Address on page “Resources” of the Beolink NL/ML converter)
- Put the correct name of the Beolink NL/ML converter in the code (see same page)
added remarks to explain + setting of the button wheel
Pictures of the result on the next post