Ejemplo n.º 1
0
def make_touch_strip_light_message(states):
    """
    The 31 touch strip LEDs are set with 3 bits per LED. The brightness is
    encoded with 3 bits. The brightness of range 0 ... 127 is the "input brightness",
    comparable to the one set for the white LEDs by control change CC3, for example.
    As will all LEDs, compression, white balance, overall brightness and USB power
    brightness limitation are applied afterwards.
    """
    states = [TOUCHSTRIP_STATE_TO_BRIGHTNESS[state] for state in states]
    return make_message(25, tuple([_make_touch_strip_light(state) for state in chunks(states, 2)]))
Ejemplo n.º 2
0
def make_touch_strip_light_message(states):
    """
    The 31 touch strip LEDs are set with 3 bits per LED. The brightness is
    encoded with 3 bits. The brightness of range 0 ... 127 is the "input brightness",
    comparable to the one set for the white LEDs by control change CC3, for example.
    As will all LEDs, compression, white balance, overall brightness and USB power
    brightness limitation are applied afterwards.
    """
    states = [TOUCHSTRIP_STATE_TO_BRIGHTNESS[state] for state in states]
    return make_message(
        25,
        tuple([_make_touch_strip_light(state) for state in chunks(states, 2)]))
Ejemplo n.º 3
0
 def _send_velocity_curve(self):
     velocities = self._generate_curve()
     velocity_chunks = chunks(velocities, self._chunk_size)
     for index, velocities in enumerate(velocity_chunks):
         self._curve_sysex_element.send_value(index * self._chunk_size,
                                              velocities)
 def _send_velocity_curve(self):
     velocities = self._generate_curve()
     velocity_chunks = chunks(velocities, self._chunk_size)
     for index, velocities in enumerate(velocity_chunks):
         self._curve_sysex_element.send_value(index * self._chunk_size, velocities)
Ejemplo n.º 5
0
def make_touch_strip_light_message(states):
    states = [TOUCHSTRIP_STATE_TO_BRIGHTNESS[state] for state in states]
    return make_message(
        25,
        tuple([_make_touch_strip_light(state) for state in chunks(states, 2)]))