Class MixerSurface

java.lang.Object
heronarts.lx.midi.surface.MixerSurface
All Implemented Interfaces:
LXParameterListener

public class MixerSurface extends Object implements LXParameterListener
Utility class to access a fixed number of mixer channels, potentially also with clip/pattern grid control.
  • Field Details

    • bankWidth

      public final int bankWidth
      How many mixer channels this surface can control at once
    • channelNumber

      public final DiscreteParameter channelNumber
    • gridClipOffset

      public final DiscreteParameter gridClipOffset
    • gridPatternOffset

      public final DiscreteParameter gridPatternOffset
  • Constructor Details

  • Method Details

    • onParameterChanged

      public void onParameterChanged(LXParameter p)
      Description copied from interface: LXParameterListener
      Invoked when the value of a parameter is changed.
      Specified by:
      onParameterChanged in interface LXParameterListener
      Parameters:
      p - The parameter that has changed its value
    • setGridMode

      public MixerSurface setGridMode(LXClipEngine.GridMode gridMode)
    • hasGrid

      public boolean hasGrid()
    • getGridMode

      public LXClipEngine.GridMode getGridMode()
    • getChannelIndex

      public int getChannelIndex()
    • incrementGridOffset

      public void incrementGridOffset()
    • decrementGridOffset

      public void decrementGridOffset()
    • getGridOffset

      public int getGridOffset()
    • getGridClipOffset

      public int getGridClipOffset()
    • getGridPatternOffset

      public int getGridPatternOffset()
    • getBankWidth

      public int getBankWidth()
    • getBankHeight

      public int getBankHeight()
    • incrementChannel

      public void incrementChannel()
    • decrementChannel

      public void decrementChannel()
    • incrementBank

      public void incrementBank()
    • decrementBank

      public void decrementBank()
    • getChannel

      public LXAbstractChannel getChannel(int index)
      Retrieve channel for a given surface index, relative to current index.
    • contains

      public boolean contains(LXAbstractChannel channel)
    • getIndex

      public int getIndex(LXAbstractChannel channel)
      Retrieve the index of a channel relative to surface. If channel is not assigned to a surface position, -1 will be returned.
      Parameters:
      channel - The channel to find
      Returns:
      Relative index of channel on surface, or -1 if not found
    • register

      public void register()
    • unregister

      public void unregister()
    • dispose

      public void dispose()