def _create_parameter_info(self, parameter, name):
     return ParameterInfo(
         parameter=parameter,
         name=name,
         default_encoder_sensitivity=parameter_mapping_sensitivity(
             parameter,
             self.device().class_name))
예제 #2
0
 def _create_parameter_info(self, parameter, name):
     return ParameterInfo(
         parameter=parameter
         if self._is_parameter_available(parameter) else None,
         name=name,
         default_encoder_sensitivity=self.default_sensitivity(parameter),
         fine_grain_encoder_sensitivity=self.fine_sensitivity(parameter))
def make_automation_parameter(parameter_info):
    wrapped_parameter = None
    if parameter_info and liveobj_valid(parameter_info.parameter):
        parameter = parameter_info.parameter
        if isinstance(parameter, PitchParameter):
            parameter = parameter.integer_value_host
        wrapped_parameter = ParameterInfo(parameter=StepAutomationParameter(parameter=parameter), name=parameter_info.name, default_encoder_sensitivity=parameter_info.default_encoder_sensitivity, fine_grain_encoder_sensitivity=parameter_info.fine_grain_encoder_sensitivity)
    return wrapped_parameter
 def _create_parameter_info(self, parameter, name):
     return ParameterInfo(
         name=name,
         parameter=parameter,
         default_encoder_sensitivity=(
             parameter_mapping_sensitivity(parameter)),
         fine_grain_encoder_sensitivity=(
             fine_grain_parameter_mapping_sensitivity(parameter)))
예제 #5
0
 def _create_parameter_info(self, parameter, name):
     assert name is not None
     return ParameterInfo(
         name=name,
         parameter=parameter,
         default_encoder_sensitivity=parameter_mapping_sensitivity(
             parameter),
         fine_grain_encoder_sensitivity=
         fine_grain_parameter_mapping_sensitivity(parameter))
예제 #6
0
 def _create_parameter_info(self, parameter, name):
     device_class_name = self.device().class_name
     return ParameterInfo(
         parameter=parameter,
         name=name,
         default_encoder_sensitivity=parameter_mapping_sensitivity(
             parameter, device_class_name),
         fine_grain_encoder_sensitivity=
         fine_grain_parameter_mapping_sensitivity(parameter,
                                                  device_class_name))
 def parameters_for_pad(self):
     if not self.has_filled_pad:
         return []
     return [
         ParameterInfo(
             parameter=parameter,
             default_encoder_sensitivity=parameter_mapping_sensitivity(
                 parameter),
             fine_grain_encoder_sensitivity=
             fine_grain_parameter_mapping_sensitivity(parameter))
         for parameter in [self.choke_param, self.transpose_param]
     ]
 def _create_parameter_info(self, parameter, name):
     return ParameterInfo(parameter=parameter,
                          name=name,
                          default_encoder_sensitivity=1.0)