mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-26 00:01:13 -05:00
Updated Variables (markdown)
parent
ed9f8f454c
commit
8bd9b0c1ec
36
Variables.md
36
Variables.md
|
|
@ -144,4 +144,38 @@ You can [import](https://github.com/WarmUpTill/SceneSwitcher/wiki/Exporting-and-
|
|||
|
||||
```
|
||||
AAAVXnic7VhbbyI3FP4rlp/abaAMm220vG2zRIu0aVDIpqqqqDIzhxmLwR7ZHhYa8d97jj03GnVLSx4HgTT+zsXn8tmD/cw3Ijba8snvz1yJDfAJX4BjH4UD9iiMFMscLL/ghSgtClcit0AjI/Ic8gbQ6joTKm017FoW0x3Ed2rhhHENnhpdFs0o0fEap3NSpRjCMzeQSuvANAqZsPel+rl0Tis+caYM2JyieYHiTK60n8WyE1gm0yzHn5utrrVKpJNa2Qe0aDRM7f8Bdhgnx/nqfI9wPydKSvVS9iVgKI2PJgkRVUrt/EwYYBT28MjihgL6lomPeMgPF6FrH2ISNTqLIpcOizfX1o99TwvqbfT+3eGier56d3V4qhxM0V1w8s+2V9H7xnZElnWPPmm3hr3tcAIrEEC0fmoK1YWcTtMc5n+H2xL4eWOd56KwkDS+JT7yBDmJ9cp1KmOMBdlTGkFWtzqRK0mseeZObuAP9GedEVI5r2eBJvAE24qcWt88jIYod/uCHg8UsgwmWzDWlyE6IJyI/d3qV4C1lzXRhiAwqgcZFk6p2A0s2SUbjSbR28koYuPR+JK3SuNvaslUaQO09NrEPRT8B54bKEC066ksyPeduq/goFRX5n+m3Mn4OoN4XbstBHEEVfgQP+z4y4kcIv7XNm6rXQUTBkUPSe2+lvwS9qHfQBjeouMKnilMRCbM4/kSmIUc/LSojG1/DGlyHKly89hJutO46CeiRboB5WbJjk8GEY7L5cIZ3IqqHWvUheSf4BFkP+zmbR3e8Aq7FS7OvC/UWkmVoCEq0EJmTjNCvGqRixiOZRXIvkqX1e5wVa9kSm0LRepuvQ7zrmumi6rgI78ruGy6KwzY0En+HYvYD2zM3rC37Hv2IyOW4dq7Lq3Tm7nRm6JlklRF6WqMf0AXqWKeMxRj3YVJ8DDzyhR1pvOks2HLFwI+GGCVwTCH6Q4Gvu1babSi4j8et/zLYno/v7+7mX2eUjNjULBoukurO9D2on5V0VboYFOgm1YcEdFCHzzh9sSjA21i5zLyVivfoZ6SPSXPouTGE+lVOPlR7HtG9ow8l5H4wn8dPn7SZf/W7gl5NiEz4tHrvLWlKv3Joedkz8nzXtuBSa/CyoU/lPas7Fl5LivD9QayEs/f0Nzo0Bn8iaA6s6M7vupsbcW2Ug93GbASZe4ahhHP1fHR53SL8Mf0dP3qj8N/CKne1083aRbd6SYPYN0JBk+dCxQeDceXwzE//AVvTSre
|
||||
```
|
||||
```
|
||||
|
||||
## Using a MIDI device to control the volume of an OBS source
|
||||
|
||||
As a first step create a new MIDI condition and select the desired device to read the input from.
|
||||
Next up click the "Start listening" button and use the slider, knob, ... to figure out which MIDI messages the Advanced Scene Switcher has to check for.
|
||||
|
||||
<img width="773" height="381" alt="image" src="https://github.com/user-attachments/assets/cdc46a17-cc1b-41c2-9ebf-a752642468d2" />
|
||||
|
||||
Once you have figured out which value is representing the volume range in the incoming MIDI messages click "Stop Listening" and set that field to `Any`.
|
||||
In the example below this is `Value(2)`.
|
||||
|
||||

|
||||
|
||||
Finally uncheck the "Clear message buffer when matching message was found" as we don't want to discard any volume change messages.
|
||||
|
||||
Next up let's add actions to read out the incoming values and use them to change the volume of a source.
|
||||
To read the value we need a `Variable` action.
|
||||
We want assign the `Value(2)` field to the variable of our choice so we configure it like this:
|
||||
|
||||
<img width="758" height="98" alt="image" src="https://github.com/user-attachments/assets/97776027-b00e-4093-953d-769462357112" />
|
||||
|
||||
Finally we need an action of type `Audio` to change the volume of the desired source in OBS.
|
||||
You can click the highlighted button to use the variable you had previously assigned the MIDI value to.
|
||||
|
||||
<img width="779" height="152" alt="image" src="https://github.com/user-attachments/assets/8be8ab13-85c7-4945-a704-731fc05cc0f8" />
|
||||
|
||||
The final macro will look and behave something like this:
|
||||
|
||||

|
||||
|
||||
You can of course add another optional action step of type `Variable`, which scales the incoming MIDI values to a desired range.
|
||||
Here is an example if you would want to scale the `0` to `127` from the above example to `0` to `100`:
|
||||
|
||||
<img width="761" height="100" alt="image" src="https://github.com/user-attachments/assets/dae295b2-2ada-40e6-a805-ab20d138ce0c" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user