def _create_device(self): self._banking_info = BankingInfo(BANK_DEFINITIONS) self._device = DeviceComponent( device_decorator_factory=DeviceDecoratorFactory(), device_bank_registry=self._device_bank_registry, banking_info=self._banking_info, name=u'Device') self._device_parameters = DeviceParameterComponent( parameter_provider=self._device, name=u'Device_Parameters')
def _setup_device(self): self._device = MorphDeviceComponent( device_decorator_factory=DeviceDecoratorFactory(), banking_info=BankingInfo(self.bank_definitions), device_provider=self._device_provider, device_bank_registry=DeviceBankRegistry()) self._device_parameters = DeviceParameterComponent(self._device) self._device_parameters.layer = Layer( priority=2, parameter_controls=self._dial_matrix) self._device.set_enabled(False) self._device_parameters.set_enabled(False) self._device2 = MorphDeviceComponent( device_decorator_factory=DeviceDecoratorFactory(), banking_info=BankingInfo(self.bank_definitions), device_provider=self._device_provider, device_bank_registry=DeviceBankRegistry()) self._device_parameters2 = DeviceParameterComponent(self._device2) self._device_parameters2.layer = Layer( priority=2, parameter_controls=self._thunder_slider_matrix) self._device2.set_enabled(False) self._device_parameters2.set_enabled(False)
def _create_device(self): self._device = DeviceComponent( is_enabled=False, device_decorator_factory=DeviceDecoratorFactory(), device_bank_registry=self._device_bank_registry, banking_info=BankingInfo(DEFAULT_BANK_DEFINITIONS), toggle_lock=self.toggle_lock, name=b'Device', layer=Layer(prev_bank_button=b'prev_bank_button', next_bank_button=b'next_bank_button', bank_name_display=b'device_bank_name_display', device_lock_button=b'device_lock_button')) self._device_parameters = DeviceParameterComponent( is_enabled=False, parameter_provider=self._device, name=b'Device_Parameters', layer=Layer( parameter_controls=b'physical_device_controls', absolute_parameter_controls=b'tui_device_controls', parameter_enable_controls=b'device_parameter_enable_controls', display_style_controls=b'oled_display_style_controls_bank_2', touch_controls=b'physical_device_control_touch_elements', parameter_name_or_value_displays= b'device_parameter_name_or_value_displays', parameter_name_displays=b'tui_device_parameter_name_displays', parameter_value_displays=b'tui_device_parameter_value_displays', device_enable_button=b'device_enable_button')) self._device_navigation = ScrollingDeviceNavigationComponent( is_enabled=False, name=b'Device_Navigation', device_component=self._device, layer=Layer(prev_device_button=b'prev_device_button', next_device_button=b'next_device_button', num_devices_control=b'num_devices_control', device_index_control=b'device_index_control', device_name_display=b'device_name_display'))