Beispiel #1
0
    def __init__(self, c_instance):
        super(LiveOSC2, self).__init__(c_instance)

        with self.component_guard():
            LO2OSC.set_log(self.log_message)
            LO2OSC.set_message(self.show_message)
            try:
                ip = socket.gethostbyname(socket.gethostname())
            except:
                ip = "127.0.0.1"
            self.osc_handler = LO2OSC(localhost=ip)

            LO2Mixin.set_osc_handler(self.osc_handler)
            LO2Mixin.set_log(self.log_message)

            self._mixer = LO2MixerComponent(1)
            self._session = LO2SessionComponent(1, 1)
            self._session.set_mixer(self._mixer)
            self._transport = LO2TransportComponent()

            self.parse()

            if not self.osc_handler.error():
                self.show_message('Ready on %s' %
                                  (str(self.osc_handler._local_addr)))
                self.osc_handler.send('/live/startup', 1)
Beispiel #2
0
    def __init__(self, c_instance):
        super(LiveOSC2, self).__init__(c_instance)
        
        with self.component_guard():
            LO2OSC.set_log(self.log_message)
            LO2OSC.set_message(self.show_message)
            self.osc_handler = LO2OSC()
            
            LO2Mixin.set_osc_handler(self.osc_handler)
            LO2Mixin.set_log(self.log_message)
            
            self._mixer = LO2MixerComponent(1)
            self._session = LO2SessionComponent(1,1)
            self._session.set_mixer(self._mixer)
            self._transport = LO2TransportComponent()

            self._mixin = LO2Mixin()
            self._c_instance = c_instance
            self._mixin.add_callback('/live/selection', self._live_selection)
            
            self.parse()

            if not self.osc_handler.error():
                self.show_message('Ready')
                self.osc_handler.send('/live/startup', 1)
Beispiel #3
0
    def __init__(self, c_instance):
        super(LiveOSC2, self).__init__(c_instance)

        with self.component_guard():
            LO2OSC.set_log(self.log_message)
            self.osc_handler = LO2OSC()

            LO2Mixin.set_osc_handler(self.osc_handler)
            LO2Mixin.set_log(self.log_message)

            self._mixer = LO2MixerComponent(1)
            self._session = LO2SessionComponent(1, 1)
            self._session.set_mixer(self._mixer)
            self._transport = LO2TransportComponent()

            self.parse()

        self.show_message("LiveOSC2 loaded")
        self.osc_handler.send("/live/startup", 1)
Beispiel #4
0
    def __init__(self, c_instance):
        super(LiveOSC2, self).__init__(c_instance)

        with self.component_guard():
            LO2OSC.set_log(self.log_message)
            self.osc_handler = LO2OSC()

            LO2Mixin.set_osc_handler(self.osc_handler)
            LO2Mixin.set_log(self.log_message)

            self._mixer = LO2MixerComponent(1)
            self._session = LO2SessionComponent(1, 1)
            self._session.set_mixer(self._mixer)
            self._transport = LO2TransportComponent()

            self.parse()

        self.show_message('LiveOSC2 loaded')
        self.osc_handler.send('/live/startup', 1)
Beispiel #5
0
    def initOSC(self):
        LO2OSC.set_log(self.log_message)
        LO2OSC.set_message(self.show_message)
        self.osc_handler = LO2OSC()

        LO2Mixin.set_osc_handler(self.osc_handler)
        LO2Mixin.set_log(self.log_message)

        self._mixer = LO2MixerComponent(1)
        self._session = alzyOSCSessionComponent(4, 5)
        self._session.set_mixer(self._mixer)
        self._session._assigned_width = 4
        self._session._assigned_height = 5
        self._transport = LO2TransportComponent()

        self.parse()

        if not self.osc_handler.error():
            self.show_message('Ready')
            self.osc_handler.send('/live/startup', 1)
 def disconnect(self):
     LO2Mixin.disconnect(self)
     super(LO2ChannelStripComponent, self).disconnect()
 def disconnect(self):
     LO2Mixin.disconnect(self)
     super(LO2ChannelStripComponent, self).disconnect()