From 5ceacb44860650a30b3e0085ee4c04a3d77b7268 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Wed, 5 May 2021 19:02:20 +0100 Subject: [PATCH] add strip/bus commands to readme, update examples Added strip/bus command section to readme update changelog Add more params to examples --- CHANGELOG.md | 3 +++ README.md | 13 +++++++++++++ example.ps1 | 24 ++++++++++++------------ examples/setandgetparams.ps1 | 10 ++++++++++ 4 files changed, 38 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e12be84..c37214d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ Before any minor/major patch is released all test units will be run to verify th ## [Unreleased] - [x] Fetch dll path through registry (support for 32 and 64 bit) +- [x] Add strip/bus commands section to README +- [ ] Add label/device name commands to Strips +- [ ] Add vban commands ## [1.4] - 2021-05-03 ### Added diff --git a/README.md b/README.md index b852972..496027b 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,19 @@ try { } finally { $vmr.Logout() } ``` +### Strip|Bus +The following strip/bus commands are available: +- mute +- mono +- solo +- A1-A5 +- B1-B3 +- limit +- gain +- comp +- gate + +A,B commands depend on Voicemeeter type. ### Macrobuttons Three modes defined: state, stateonly and trigger. diff --git a/example.ps1 b/example.ps1 index 3719821..53de869 100644 --- a/example.ps1 +++ b/example.ps1 @@ -4,12 +4,12 @@ try { $vmr = Get-RemoteBanana $hash = @{ - strip_0 = @{mute = $true; mono = $true}; - strip_1 = @{mute = $true; mono = $true}; - strip_2 = @{mute = $true; mono = $true}; - bus_0 = @{mute = $true; mono = $true}; - bus_1 = @{mute = $true; mono = $true}; - bus_2 = @{mute = $true; mono = $true}; + strip_0 = @{mute = $true; mono = $true; A1 = $true; B2 = $true; gain = 2.3}; + strip_1 = @{mute = $true; mono = $true; A1 = $true; B2 = $true; gain = -3.0}; + strip_2 = @{mute = $true; mono = $true; A1 = $true; B2 = $true; gain = 0.3}; + bus_0 = @{mute = $true; mono = $true; solo = $true; gain = -0.3}; + bus_1 = @{mute = $true; mono = $true; solo = $true; gain = -3.3}; + bus_2 = @{mute = $true; mono = $true; solo = $true; gain = 2.3}; mb_0 = @{state = $true}; mb_1 = @{stateonly = $true}; @@ -19,12 +19,12 @@ try { $vmr.Set_Multi($hash) $hash = @{ - strip_0 = @{mute = $false; mono = $false}; - strip_1 = @{mute = $false; mono = $false}; - strip_2 = @{mute = $false; mono = $false}; - bus_0 = @{mute = $false; mono = $false}; - bus_1 = @{mute = $false; mono = $false}; - bus_2 = @{mute = $false; mono = $false}; + strip_0 = @{mute = $false; mono = $false; A1 = $false; B2 = $false; gain = 0}; + strip_1 = @{mute = $false; mono = $false; A1 = $false; B2 = $false; gain = 0}; + strip_2 = @{mute = $false; mono = $false; A1 = $false; B2 = $false; gain = 0}; + bus_0 = @{mute = $false; mono = $false; solo = $false; gain = 0}; + bus_1 = @{mute = $false; mono = $false; solo = $false; gain = 0}; + bus_2 = @{mute = $false; mono = $false; solo = $false; gain = 0}; mb_0 = @{state = $false}; mb_1 = @{stateonly = $false}; diff --git a/examples/setandgetparams.ps1 b/examples/setandgetparams.ps1 index 3209509..8f6a47a 100644 --- a/examples/setandgetparams.ps1 +++ b/examples/setandgetparams.ps1 @@ -17,5 +17,15 @@ try { $vmr.bus[2].mute $vmr.bus[2].mute = $false $vmr.bus[2].mute + + $vmr.strip[0].A1 = $true + $vmr.strip[0].A1 + $vmr.strip[0].B2 = $false + $vmr.strip[0].B2 + + $vmr.bus[2].gain = -0.3 + $vmr.bus[2].gain + $vmr.bus[3].gain = 3.2 + $vmr.bus[3].gain } finally { $vmr.Logout() }