Skip to content

pushbase.touch_strip_element

Module constants

  • MAX_PITCHBEND = 16384.0
  • DEFAULT_BEHAVIOUR
  • MODWHEEL_BEHAVIOUR

Classes

class TouchStripModes(object)

Bases: object

Attributes

  • CUSTOM_PITCHBEND
  • CUSTOM_VOLUME
  • CUSTOM_PAN
  • CUSTOM_DISCRETE
  • CUSTOM_FREE
  • PITCHBEND
  • VOLUME
  • PAN
  • DISCRETE
  • MODWHEEL
  • COUNT

class TouchStripStates(object)

Bases: object

Attributes

  • STATE_OFF
  • STATE_HALF
  • STATE_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

  • handle
  • mode
  • _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 = 24
  • mode
  • behaviour

__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_mode
  • turn_off
  • turn_on_index
  • send_state
  • is_pressed
  • behaviour
  • state_count = 24