import math import sys import logging logger = logging.getLogger(__name__) from ableton.v2.control_surface import midi from ableton.v2.control_surface.profile import profile from ableton.v2.control_surface.control_surface import * from ableton.v2.control_surface.input_control_element import InputControlElement, MIDI_CC_TYPE, MIDI_NOTE_TYPE, MIDI_PB_TYPE, MIDI_SYSEX_TYPE from aumhaa.v2.control_surface.elements import MonoButtonElement, MonoBridgeElement from aumhaa.v2.livid.utilities import LividSettings from aumhaa.v2.base.debug import initialize_debug debug = initialize_debug() class LividControlSurface(ControlSurface): _rgb = 0 _color_type = 'OhmRGB' _timer = 0 _touched = 0 flash_status = 1 _connected = False _sysex_id = 0 _model_name = 'Livid Control Surface' _version_check = 'Mod_Disabled'
# by amounra 0216 : http://www.aumhaa.com # written against Live 9.6 release on 021516 from __future__ import absolute_import, print_function import Live from ableton.v2.control_surface.component import Component from ableton.v2.base.slot import listens from aumhaa.v2.base.debug import initialize_debug debug = initialize_debug() class ResetSendsComponent(Component): ' Special Component to reset all track sends to zero for the first four returns ' __module__ = __name__ def __init__(self, script, *a, **k): super(ResetSendsComponent, self).__init__(*a, **k) self._script = script def set_buttons(self, buttons): self._on_button_value.subject = buttons if buttons: for button, _ in buttons.iterbuttons(): button and button.set_light('ResetSendsColor')