def create_control_surface(self, c_instance):
     self.capture_sent_midi(c_instance)
     c_instance.set_session_highlight = count_calls()
     surface = self.control_surface_class(c_instance=c_instance)
     surface.refresh_state = count_calls()
     surface.on_identified(IDENTITY_RESPONSE)
     advance_tasks_by_time(surface, 1)
     return surface
Ejemplo n.º 2
0
class MockControlSurface(object):
    instance_identifier = const(0)
    request_rebuild_midi_map = count_calls()
    show_message = nop
    send_midi = nop

    def __init__(self, *a, **k):
        super(MockControlSurface, self).__init__(*a, **k)
        self._song = Live.Song.Song(num_tracks=4, num_returns=2)

    def song(self):
        return self._song