def inverse_clamp(value, liveband):
  """
      Ensures value is in (-∞, -liveband] ∪ [liveband, ∞)
      liveband must be a positive value
  """
  if value > 0:
    value = max(value, liveband)

  if value < 0:
    value = min(value, -liveband)

  return value