def output_set?(state, output_channel)
      raise RangeError if output_channel >= NUM_OUTPUTS

      state & (1 << output_channel + NUM_INPUTS) != 0
    end
def output_set?(state, output_channel)
      raise RangeError if output_channel >= NUM_OUTPUTS

      state & (1 << output_channel + NUM_INPUTS) != 0
    end
@raise [RangeError] if the given channel index exceeds the number of
   available output channels.

 @param  state [Integer] the current state.
 @param  output_channel [Integer] the output channel number.
 @return [true, false] the state of the specified output.