diff --git a/config_files/binds/x_touch_mini_binds.yaml b/config_files/binds/x_touch_mini_binds.yaml new file mode 100644 index 0000000..ec85eb0 --- /dev/null +++ b/config_files/binds/x_touch_mini_binds.yaml @@ -0,0 +1,29 @@ +name: Data annotation binds +app_name: napari +controller_name: X-TOUCH MINI +description: Sample data annotation binds for X-TOUCH MINI +button_binds: +- button_id: 8 + action_id: napari:layer:erase_mode +- button_id: 9 + action_id: napari:layer:paint_mode +- button_id: 10 + action_id: napari:layer:fill_mode +- button_id: 11 + action_id: napari:layer:pan_zoom_mode +knob_binds: +- knob_id: 1 + action_id_increase: napari:viewer:increase_dimensions_right + action_id_decrease: napari:viewer:increase_dimensions_left +- knob_id: 2 + action_id_increase: napari:layer:increase_brush_size + action_id_decrease: napari:layer:decrease_brush_size +- knob_id: 3 + action_id_increase: napari:viewer:zoom_in + action_id_decrease: napari:viewer:zoom_out +- knob_id: 4 + action_id_increase: napari:layer:increase_opacity + action_id_decrease: napari:layer:decrease_opacity +- knob_id: 5 + action_id_increase: napari:layer:increase_gamma + action_id_decrease: napari:layer:decrease_gamma diff --git a/config_files/binds/x_touch_mini_test.yaml b/config_files/binds/x_touch_mini_test.yaml deleted file mode 100644 index 8badd7b..0000000 --- a/config_files/binds/x_touch_mini_test.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: XTM_binds -app_name: napari -controller_name: X_TOUCH_MINI -description: xtouchmini_test -button_binds: -- button_id: 8 - action_id: napari:window:view:toggle_viewer_axes -- button_id: 9 - action_id: napari:layer:toggle_visibility -knob_binds: -- knob_id: 1 - action_id_increase: napari:layer:toggle_visibility - action_id_decrease: napari:layer:toggle_visibility -- knob_id: 2 - action_id_increase: napari:layer:duplicate - action_id_decrease: napari:layer:duplicate diff --git a/config_files/controllers/x_touch_mini.yaml b/config_files/controllers/x_touch_mini.yaml new file mode 100644 index 0000000..dd62149 --- /dev/null +++ b/config_files/controllers/x_touch_mini.yaml @@ -0,0 +1,140 @@ +name: X-TOUCH MINI +button_value_off: 0 +button_value_on: 127 +knob_value_min: 0 +knob_value_max: 127 +default_channel: 11 +buttons: +- id: 0 + name: Knob Button 1A +- id: 1 + name: Knob Button 2A +- id: 2 + name: Knob Button 3A +- id: 3 + name: Knob Button 4A +- id: 4 + name: Knob Button 5A +- id: 5 + name: Knob Button 6A +- id: 6 + name: Knob Button 7A +- id: 7 + name: Knob Button 8A +- id: 8 + name: Button 1A +- id: 9 + name: Button 2A +- id: 10 + name: Button 3A +- id: 11 + name: Button 4A +- id: 12 + name: Button 5A +- id: 13 + name: Button 6A +- id: 14 + name: Button 7A +- id: 15 + name: Button 8A +- id: 16 + name: Button 9A +- id: 17 + name: Button 10A +- id: 18 + name: Button 11A +- id: 19 + name: Button 12A +- id: 20 + name: Button 13A +- id: 21 + name: Button 14A +- id: 22 + name: Button 15A +- id: 23 + name: Button 16A +- id: 24 + name: KnobButton 1B +- id: 25 + name: KnobButton 2B +- id: 26 + name: KnobButton 3B +- id: 27 + name: KnobButton 4B +- id: 28 + name: KnobButton 5B +- id: 29 + name: KnobButton 6B +- id: 30 + name: KnobButton 7B +- id: 31 + name: KnobButton 8B +- id: 32 + name: Button 1B +- id: 33 + name: Button 2B +- id: 34 + name: Button 3B +- id: 35 + name: Button 4B +- id: 36 + name: Button 5B +- id: 37 + name: Button 6B +- id: 38 + name: Button 7B +- id: 39 + name: Button 8B +- id: 40 + name: Button 9B +- id: 41 + name: Button 10B +- id: 42 + name: Button 11B +- id: 43 + name: Button 12B +- id: 44 + name: Button 13B +- id: 45 + name: Button 14B +- id: 46 + name: Button 15B +- id: 47 + name: Button 16B +knobs: +- id: 1 + name: Knob 1A +- id: 2 + name: Knob 2A +- id: 3 + name: Knob 3A +- id: 4 + name: Knob 4A +- id: 5 + name: Knob 5A +- id: 6 + name: Knob 6A +- id: 7 + name: Knob 7A +- id: 8 + name: Knob 8A +- id: 9 + name: Slider A +- id: 10 + name: Slider B +- id: 11 + name: Knob 1B +- id: 12 + name: Knob 2B +- id: 13 + name: Knob 3B +- id: 14 + name: Knob 4B +- id: 15 + name: Knob 5B +- id: 16 + name: Knob 6B +- id: 17 + name: Knob 7B +- id: 18 + name: Knob 8B diff --git a/config_files/controllers/x_touch_mini_example.yaml b/config_files/controllers/x_touch_mini_example.yaml deleted file mode 100644 index 445164a..0000000 --- a/config_files/controllers/x_touch_mini_example.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: X_TOUCH_MINI -button_value_off: 0 -button_value_on: 127 -knob_value_min: 0 -knob_value_max: 127 -default_channel: 11 -buttons: -- id: 8 - name: Button1A -- id: 9 - name: Button2A -- id: 10 - name: Button3A -- id: 11 - name: Button4A -- id: 12 - name: Button5A -- id: 13 - name: Button6A -- id: 14 - name: Button7A -- id: 15 - name: Button8A -knobs: -- id: 1 - name: Knob1A -- id: 2 - name: Knob2A -- id: 3 - name: Knob3A -- id: 4 - name: Knob4A -- id: 5 - name: Knob5A -- id: 6 - name: Knob6A -- id: 7 - name: Knob7A -- id: 8 - name: Knob8A diff --git a/midi_app_controller/state/_tests/test_state_manager.py b/midi_app_controller/state/_tests/test_state_manager.py index 8e6507a..efc7b80 100644 --- a/midi_app_controller/state/_tests/test_state_manager.py +++ b/midi_app_controller/state/_tests/test_state_manager.py @@ -139,7 +139,7 @@ def test_get_available_binds_when_no_controller(mock_midi_in_out, state_manager) def test_get_available_binds(mock_midi_in_out, state_manager): - state_manager.select_controller(SelectedItem("X_TOUCH_MINI", None)) + state_manager.select_controller(SelectedItem("X-TOUCH MINI", None)) binds = state_manager.get_available_binds() assert len(binds) > 0