mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-25 07:19:39 -05:00
Updated Variables (markdown)
parent
8bd9b0c1ec
commit
e4b8eda7cd
12
Variables.md
12
Variables.md
|
|
@ -148,8 +148,8 @@ AAAVXnic7VhbbyI3FP4rlp/abaAMm220vG2zRIu0aVDIpqqqqDIzhxmLwR7ZHhYa8d97jj03GnVLSx4H
|
|||
|
||||
## 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.
|
||||
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" />
|
||||
|
||||
|
|
@ -158,15 +158,15 @@ 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.
|
||||
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.
|
||||
Now 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.
|
||||
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" />
|
||||
|
|
@ -175,7 +175,7 @@ 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.
|
||||
You can, if necessary, 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