(self, min_temp=0.1, max_temp=2.0, default=1.0)
return min_temp + (val / 127.) * (max_temp - min_temp)
Returns the temperature based on the current control value.

    Linearly interpolates between `min_temp` and `max_temp`.

    Args:
      min_temp: The minimum temperature, which will be returned when value is 0.
      max_temp: The maximum temperature, which will be returned when value is
          127.
      default: The temperature to return if control value is None.

    Returns:
      A float temperature value based on the 8-bit MIDI control value.
Returns the temperature based on the current control value.
Returns the temperature based on the current control value .
def _temperature(self, min_temp=0.1, max_temp=2.0, default=1.0):
    """Returns the temperature based on the current control value.

    Linearly interpolates between `min_temp` and `max_temp`.

    Args:
      min_temp: The minimum temperature, which will be returned when value is 0.
      max_temp: The maximum temperature, which will be returned when value is
          127.
      default: The temperature to return if control value is None.

    Returns:
      A float temperature value based on the 8-bit MIDI control value.
    """
    val = self._midi_hub.control_value(self._temperature_control_number)
    if val is None:
      return default
    return min_temp + (val / 127.) * (max_temp - min_temp)
def _temperature ( self , min_temp = 0.1 , max_temp = 2.0 , default = 1.0 ) : val = self . _midi_hub . control_value ( self . _temperature_control_number ) if val is None : return default return min_temp + ( val / 127. ) * ( max_temp - min_temp )