(self)
return self._sequence_generators[val % len(self._sequence_generators)]
Returns the SequenceGenerator selected by the current control value.
Returns the SequenceGenerator selected by the current control value.
Returns the SequenceGenerator selected by the current control value .
def _sequence_generator(self):
    """Returns the SequenceGenerator selected by the current control value."""
    if len(self._sequence_generators) == 1:
      return self._sequence_generators[0]
    val = self._midi_hub.control_value(self._generator_select_control_number)
    val = 0 if val is None else val
    return self._sequence_generators[val % len(self._sequence_generators)]
def _sequence_generator ( self ) : if len ( self . _sequence_generators ) == 1 : return self . _sequence_generators [ 0 ] val = self . _midi_hub . control_value ( self . _generator_select_control_number ) val = 0 if val is None else val return self . _sequence_generators [ val % len ( self . _sequence_generators ) ]