Class LXMasterBus

All Implemented Interfaces:
LXLoopTask, LXPath, LXPresetComponent, LXSerializable, LXOscComponent, LXParameterListener

public class LXMasterBus extends LXBus
Represents the master channel. Doesn't do anything special that a normal bus does not.
  • Field Details

  • Constructor Details

    • LXMasterBus

      public LXMasterBus(LX lx)
  • Method Details

    • getOutputBrightness

      public double getOutputBrightness()
      Retrieves the amount of brightness scaling that should be applied to the output. This depends upon the master fader mode, whether its scaling has already been applied or not.
      Returns:
      Brightness scaling to be applied for the output stage
    • getIndex

      public int getIndex()
      Specified by:
      getIndex in class LXBus
    • getPath

      public String getPath()
      Description copied from class: LXComponent
      Accessor for the path of this object. Returns the path this component was registered with. Some subclasses may override this if path structure is dynamic.
      Specified by:
      getPath in interface LXPath
      Overrides:
      getPath in class LXComponent
      Returns:
      path of this component relative to its parent
    • constructClip

      protected LXClip constructClip(int index)
      Specified by:
      constructClip in class LXBus
    • postProcessPreset

      public void postProcessPreset(LX lx, JsonObject obj)
      Description copied from interface: LXPresetComponent
      Presets by default contain the results of a normal save() call, but we may not always want all of the information contained. This method post-processes the JSON object before writing to disk.
      Specified by:
      postProcessPreset in interface LXPresetComponent
      Overrides:
      postProcessPreset in class LXBus