Skip to content

Commit 91e6ec7

Browse files
committed
MIDI knobs also select current scene for editing
1 parent c65befb commit 91e6ec7

4 files changed

Lines changed: 15 additions & 10 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tether-artnet-controller"
3-
version = "0.8.3"
3+
version = "0.8.4"
44
edition = "2021"
55
repository = "https://github.com/RandomStudio/tether-artnet-controller"
66
homepage = "https://github.com/RandomStudio/tether-artnet-controller"

example.project.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242
]
4343
},
4444
"pan": {
45-
"ControlValue": 50
45+
"ControlValue": 37669
4646
},
4747
"tilt": {
48-
"ControlValue": 30
48+
"ControlValue": 29
4949
},
5050
"zoom": {
51-
"ControlValue": 65
51+
"ControlValue": 65535
5252
}
5353
},
5454
"Hero Right": {
@@ -64,13 +64,13 @@
6464
]
6565
},
6666
"pan": {
67-
"ControlValue": 155
67+
"ControlValue": 4128
6868
},
6969
"tilt": {
7070
"ControlValue": 80
7171
},
7272
"zoom": {
73-
"ControlValue": 123
73+
"ControlValue": 122
7474
}
7575
},
7676
"Hex Left": {
@@ -86,13 +86,13 @@
8686
]
8787
},
8888
"Pan": {
89-
"ControlValue": 0
89+
"ControlValue": 17544
9090
},
9191
"Tilt": {
9292
"ControlValue": 0
9393
},
9494
"Zoom": {
95-
"ControlValue": 0
95+
"ControlValue": 22189
9696
}
9797
},
9898
"Hex Right": {
@@ -108,7 +108,7 @@
108108
]
109109
},
110110
"Pan": {
111-
"ControlValue": 0
111+
"ControlValue": 25801
112112
},
113113
"Tilt": {
114114
"ControlValue": 0

src/model.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,11 @@ impl Model {
336336
}
337337
}
338338
}
339+
self.project.scenes.iter_mut().for_each(|scene| {
340+
if scene.last_active {
341+
scene.is_editing = true;
342+
}
343+
});
339344
}
340345
}
341346
}

0 commit comments

Comments
 (0)