Helper class that relays audio parameter information to an object inside a WebBrowserComponent.
In order to create a relay you need to specify an identifier for the relayed state. This will result in a Javascript object becoming available inside the WebBrowserComponent under the provided identifier.
Pass the relay object to WebBrowserComponent::Options::withOptionsFrom() to associate it with a WebBrowserComponent instance.
You can then use a WebSliderParameterAttachment as you would a SliderAttachment, to attach the relay to a RangedAudioParameter. This will synchronise the state and events of the Javascript object with the audio parameter at all times.
Options to configure WebBrowserComponent.
Definition juce_WebBrowserComponent.h:123
A component that displays an embedded web browser.
Definition juce_WebBrowserComponent.h:85
Helper class that relays audio parameter information to an object inside a WebBrowserComponent.
Definition juce_WebControlRelays.h:74
import * as Juce from "juce-framework-frontend";
const sliderState = Juce.getSliderState("cutoffSlider");
- See also
- WebSliderParameterAttachment