コード例 #1
0
ファイル: MonoClient.py プロジェクト: splenda/monomodular
 def __init__(self, script, number):
     NotifyingControlElement.__init__(self)
     self._host = script
     self._is_monolink = False
     self._active_host = []
     self._number = number
     self._channel = 0
     self._connected = False
     self._enabled = True
     self.device = None
     self._device_parent = None
     self._swing = 0
     self._mute = 0
     self._autoselect_enabled = 0
     self._offset = [0, 0]
     self._color_maps = []
     self._report_offset = False
     self._local_ring_control = 1
     self._raw = False
     self._controls = [{}, {}]
     self._create_grid()
     self._create_keys()
     self._create_wheels()
     self._absolute_mode = 1
     #self._device_component = MonoDeviceComponent(self, self._host, self._host)
     self._banner_state = 0
コード例 #2
0
	def __init__(self, script, number):
		NotifyingControlElement.__init__(self)
		self._host = script
		self._active_host = []
		self._number  = number
		self._channel = 0
		self._connected = False
		self._enabled = True
		self.device = None
		self._device_parent = None
		self._swing = 0
		self._autoselect_enabled = 0
		self._offset = [0, 0]
		self._color_maps = []
		self._report_offset = False
		self._local_ring_control = 1
		self._raw = False
		self._controls = [{},{}]
		self._create_grid()
		self._create_keys()
		self._create_wheels()
		self._mod_dial = None
		self._mod_vol = 127
		self._mod_color = 0
		self._absolute_mode = 1
		self._monomodular = 0
		self._device_component = MonoDeviceComponent(self, script._host, script)
コード例 #3
0
	def __init__(self, host, clients):
		NotifyingControlElement.__init__(self)
		self._host = host
		self._devices = []
		self.client_0 = clients[0]
		self.client_1 = clients[1]
		self.client_2 = clients[2]
		self.client_3 = clients[3]
		self._client = clients
コード例 #4
0
 def __init__(self, host, clients):
     NotifyingControlElement.__init__(self)
     self._host = host
     self._devices = []
     self.client_0 = clients[0]
     self.client_1 = clients[1]
     self.client_2 = clients[2]
     self.client_3 = clients[3]
     self._client = clients
コード例 #5
0
	def __init__(self, host, clients):
		#ButtonMatrixElement.__init__(self)
		NotifyingControlElement.__init__(self)
		self._host = host
		self.client_0 = clients[0]
		self.client_1 = clients[1]
		self.client_2 = clients[2]
		self.client_3 = clients[3]
		self._client = clients
		self._last_ping = 0
		self._sandbox = []
		self._edit = False
コード例 #6
0
 def __init__(self, host, clients):
     NotifyingControlElement.__init__(self)
     self._host = host
     self._devices = []
     self.client_0 = clients[0]
     self.client_1 = clients[1]
     self.client_2 = clients[2]
     self.client_3 = clients[3]
     self.client_4 = clients[4]
     self.client_5 = clients[5]
     self.client_6 = clients[6]
     self.client_7 = clients[7]
     self.client_8 = clients[8]
     self.client_9 = clients[9]
     self.client_10 = clients[10]
     self.client_11 = clients[11]
     self.client_12 = clients[12]
     self.client_13 = clients[13]
     self.client_14 = clients[14]
     self.client_15 = clients[15]
     self._client = clients
コード例 #7
0
 def __init__(self, host, clients):
     NotifyingControlElement.__init__(self)
     self._host = host
     self._devices = []
     self.client_0 = clients[0]
     self.client_1 = clients[1]
     self.client_2 = clients[2]
     self.client_3 = clients[3]
     self.client_4 = clients[4]
     self.client_5 = clients[5]
     self.client_6 = clients[6]
     self.client_7 = clients[7]
     self.client_8 = clients[8]
     self.client_9 = clients[9]
     self.client_10 = clients[10]
     self.client_11 = clients[11]
     self.client_12 = clients[12]
     self.client_13 = clients[13]
     self.client_14 = clients[14]
     self.client_15 = clients[15]
     self._client = clients
コード例 #8
0
ファイル: MonoLinkClient.py プロジェクト: splenda/monomodular
	def __init__(self, script, number):
		#ButtonMatrixElement.__init__(self)
		NotifyingControlElement.__init__(self)
		self._host = script
		
		#monolink specific 
		self._prefix = '/MonoLink'
		self.basicAPI = False
		self.conf = None
		self._inPrt = int(PRESETS[0][2][0])
		self._outPrt = int(PRESETS[0][2][1])
		self._inst = 0
		
		try:	
			self.conf = Zeroconf(self)
		except:
			self._host.log_message('Could not create Bonjour Registerer...something must be blocking this port or address') 
		
		self._is_monolink = True
		self._format = 0
		self.oscServer = None
		self._setup_oscServer()
		
				
		self._active_host = []
		self._number  = number
		self._channel = 0
		self._connected = False
		self._enabled = True
		self.device = None
		self._device_parent = None
		self._swing = 0
		self._autoselect_enabled = 0
		self._offset = [0, 0]
		self._color_maps = []
		self._report_offset = False
		self._create_grid()
		self._create_keys()
		self._create_wheels()
コード例 #9
0
	def __init__(self, script, number):
		#ButtonMatrixElement.__init__(self)
		NotifyingControlElement.__init__(self)
		self._host = script
		self._active_host = []
		self._number  = number
		self._channel = 0
		self._connected = False
		self._enabled = True
		self.device = None
		self._device_parent = None
		self._swing = 0
		self._autoselect_enabled = 0
		self._offset = [0, 0]
		self._color_maps = []
		self._report_offset = False
		self._local_ring_control = 1
		self._create_grid()
		self._create_keys()
		self._create_wheels()
		self._mod_dial = None
		self._mod_vol = 0
		self._mod_color = 0
コード例 #10
0
 def __init__(self, script):
     NotifyingControlElement.__init__(self)
     self._script = script
     self._dials = []
     self._dial_coordinates = {}
     self._max_row_width = 0
コード例 #11
0
	def __init__(self, script):
		NotifyingControlElement.__init__(self)
		self._script = script
		self._dials = []
		self._dial_coordinates = {}
		self._max_row_width = 0