pushbase.touch_strip_element¶
Module constants¶
MAX_PITCHBEND = 16384.0DEFAULT_BEHAVIOURMODWHEEL_BEHAVIOUR
Classes¶
class TouchStripModes(object)¶
Bases: object
Attributes¶
CUSTOM_PITCHBENDCUSTOM_VOLUMECUSTOM_PANCUSTOM_DISCRETECUSTOM_FREEPITCHBENDVOLUMEPANDISCRETEMODWHEELCOUNT
class TouchStripStates(object)¶
Bases: object
Attributes¶
STATE_OFFSTATE_HALFSTATE_FULL
class TouchStripBehaviour(object)¶
Bases: object
Attributes¶
mode
handle_touch(self, value)¶
handle_value(self, value, notify)¶
class SimpleBehaviour(TouchStripBehaviour)¶
Bases: TouchStripBehaviour
__init__(self, mode, *a, **k)¶
mode(self)¶
handle_value(self, value, notify)¶
handle_touch(self, value)¶
class TouchStripHandle(NamedTuple)¶
Bases: NamedTuple
Attributes¶
range = (0, 2048)position = 0
class SelectingBehaviour(TouchStripBehaviour)¶
Bases: TouchStripBehaviour
Attributes¶
handlemode_offset = 0_grabbed = False
handle_value(self, value, notify)¶
handle_touch(self, value)¶
class DraggingBehaviour(SelectingBehaviour)¶
Bases: SelectingBehaviour
handle_value(self, value, notify)¶
class TouchStripElement(InputControlElement)¶
Bases: InputControlElement
Attributes¶
state_count = 24modebehaviour
__init__(self, touch_button, mode_element, light_element, *a, **k)¶
touch_button(self)¶
_get_mode(self)¶
set_mode(self, mode)¶
_set_behaviour(self, behaviour)¶
_get_behaviour(self)¶
message_map_mode(self)¶
is_pressed(self)¶
reset(self)¶
clear_send_cache(self)¶
notify_value(self, value)¶
turn_on_index(self, index, on_state, off_state)¶
turn_off(self, off_state)¶
send_state(self, state)¶
class ProxiedInterface(InputControlElement.ProxiedInterface)¶
Bases: InputControlElement.ProxiedInterface
Attributes¶
set_modeturn_offturn_on_indexsend_stateis_pressedbehaviourstate_count = 24