Пример #1
0
 def _update_direct_connection(self):
     if self._control_element is None:
         self._control_value.subject = None
     if is_internal_parameter(self.mapped_parameter):
         self._connect_to_internal_parameter()
     else:
         self._connect_to_parameter()
Пример #2
0
 def _update_parameter_values(self):
     super(DeviceParameterComponent, self)._update_parameter_values()
     for parameter, data_source, control, absolute_control in izip_longest(self.parameters, self._physical_display_parameter_value_data_sources, self.controls, self.absolute_controls):
         data_source.set_display_string(self.parameter_to_string(parameter))
         if is_internal_parameter(parameter):
             value_to_send = convert_parameter_value_to_midi_value(parameter)
             control.value = value_to_send
             absolute_control.value = value_to_send