--the below script will make a slider change an Audio Reactive Component's Band Min property
--[Add "theslider" and "theaudioreactive" reference to the Scripting Runtime component]
slider = Space.Host.GetReference("theslider").UISlider
ar = Space.Host.GetReference("theaudioreactive").AudioReactive
OVC = function()
ar.BandMin = (slider.Value * 12.0) -- from 0 to 12
end
slider.OnValueChanged(OVC)
BandMax
int BandMaxgetset
The Band Max property of an Audio Reactive component.
--the below script will make a slider change an Audio Reactive Component's Band Max property
--[Add "theslider" and "theaudioreactive" reference to the Scripting Runtime component]
slider = Space.Host.GetReference("theslider").UISlider
ar = Space.Host.GetReference("theaudioreactive").AudioReactive
OVC = function()
ar.BandMax = (slider.Value * 12.0) -- from 0 to 12
end
slider.OnValueChanged(OVC)
BPMWindow
float BPMWindowgetset
The BPM Window property of an Audio Reactive component.
--the below script will make a slider change an Audio Reactive Component's BPM Window property
--[Add "theslider" and "theaudioreactive" reference to the Scripting Runtime component]
slider = Space.Host.GetReference("theslider").UISlider
ar = Space.Host.GetReference("theaudioreactive").AudioReactive
OVC = function()
ar.BPMWindow = (slider.Value * 50) - 50 -- from -50 to 50
end
slider.OnValueChanged(OVC)
LimitIncrease
float LimitIncreasegetset
The Limit Increase property of an Audio Reactive component.
--the below script will make a slider change an Audio Reactive Component's Limit Increase property.
--[Add "theslider" and "theaudioreactive" reference to the Scripting Runtime component]
slider = Space.Host.GetReference("theslider").UISlider
ar = Space.Host.GetReference("theaudioreactive").AudioReactive
OVC = function()
ar.LimitIncrease= (slider.Value * 50) - 50 -- from -50 to 50
end
slider.OnValueChanged(OVC)
LimitDecrease
float LimitDecreasegetset
The Limit Decrease property of an Audio Reactive component.
--the below script will make a slider change an Audio Reactive Component's Limit Decrease property.
--[Add "theslider" and "theaudioreactive" reference to the Scripting Runtime component]
slider = Space.Host.GetReference("theslider").UISlider
ar = Space.Host.GetReference("theaudioreactive").AudioReactive
OVC = function()
ar.LimitDecrease= (slider.Value * 50) - 50 -- from -50 to 50
end
slider.OnValueChanged(OVC)
MinValue
float MinValuegetset
The Min Value property of an Audio Reactive component.
--the below script will make a slider change an Audio Reactive Component's Min Value property.
--[Add "theslider" and "theaudioreactive" reference to the Scripting Runtime component]
slider = Space.Host.GetReference("theslider").UISlider
ar = Space.Host.GetReference("theaudioreactive").AudioReactive
OVC = function()
ar.MinValue= (slider.Value * 50) - 50 -- from -50 to 50
end
slider.OnValueChanged(OVC)
MaxValue
float MaxValuegetset
The Max Value property of an Audio Reactive component.
--the below script will make a slider change an Audio Reactive Component's Max Value property.
--[Add "theslider" and "theaudioreactive" reference to the Scripting Runtime component]
slider = Space.Host.GetReference("theslider").UISlider
ar = Space.Host.GetReference("theaudioreactive").AudioReactive
OVC = function()
ar.MaxValue= (slider.Value * 50) - 50 -- from -50 to 50
end
slider.OnValueChanged(OVC)
Mode
int Modegetset
The Mode property of an Audio Reactive component. Band is 0, and BMP is 1.
Space.Host.ExecutingObject.AudioReactive.Mode= 1
--clicking this object will toggle between it's two Audio Reactive Modes
thisGameObject = Space.Host.ExecutingObject
component = thisGameObject.AudioReactive
OnClick = function()
if component.Mode == 0 then
component.Mode = 1
else
component.Mode = 0
end
end
thisGameObject.AddClickable()
thisGameObject.Clickable.OnClick(OnClick)