def _create_parameter_info(self, parameter):

        def is_available(param):
            name = param.name if param != None else ''
            return not self._has_simpler_in_multi_sample_mode() or name not in self.ZOOMABLE_PARAMETERS + ('Zoom',)

        return generate_info(parameter if is_available(parameter) else None, default_sens_factory=self.default_sensitivity, fine_sens_factory=self.fine_sensitivity)
    def _create_parameter_info(self, parameter):
        def is_available(param):
            name = param.name if param != None else ''
            return not self._has_simpler_in_multi_sample_mode(
            ) or name not in self.ZOOMABLE_PARAMETERS + ('Zoom', )

        return generate_info(parameter if is_available(parameter) else None,
                             default_sens_factory=self.default_sensitivity,
                             fine_sens_factory=self.fine_sensitivity)
def parameters_for_pad(pad):
    if not pad or len(pad.chains) == 0:
        return []
    return [generate_info(ChokeParameter(drum_pad=pad))]
def parameters_for_pad(pad):
    if not pad or len(pad.chains) == 0:
        return []
    return [generate_info(ChokeParameter(drum_pad=pad))]