From fdb7e39ac18c5160558e9a718f9fda70f07de357 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Thu, 27 Oct 2022 21:15:17 +0100 Subject: [PATCH] remove old example files --- examples/goto_nextbus.ps1 | 42 ------------------------------------ examples/set_multi.ps1 | 36 ------------------------------- examples/setandgetparams.ps1 | 31 -------------------------- examples/special.ps1 | 10 --------- 4 files changed, 119 deletions(-) delete mode 100644 examples/goto_nextbus.ps1 delete mode 100644 examples/set_multi.ps1 delete mode 100644 examples/setandgetparams.ps1 delete mode 100644 examples/special.ps1 diff --git a/examples/goto_nextbus.ps1 b/examples/goto_nextbus.ps1 deleted file mode 100644 index 31ec666..0000000 --- a/examples/goto_nextbus.ps1 +++ /dev/null @@ -1,42 +0,0 @@ -<# - The following script was written with the intention of being used with a .vbs helper script, to create - a hotkey to "Go to Next Bus" in a subset of buses with a visual indicator on your primary display. - - Credits go to @bobsupercow -#> - -# 1) Loop through an array of buses. -# 2) Mute first unmuted bus -# 3) If next bus in array exists, unmute it -# 4) else unmute the first bus specified in array. -# 5) If every bus in array is muted, unmute the first bus specified in array. - -Import-Module Voicemeeter - -try { - # Run the factory function for required Voicemeeter type - $vmr = Get-RemotePotato - - $unmutedIndex = $null - [int32[]]$buses = @(1,2,4,6) - - # 1) - 0..($buses.Length -1) | ForEach-Object { - # 2) - if ( -not $vmr.bus[$buses[$_]].mute ){ - $unmutedIndex = $_ - $vmr.bus[$buses[$unmutedIndex]].mute = $true - - # 3) - if ( $buses[++$unmutedIndex] ){ - $vmr.bus[$buses[$unmutedIndex]].mute = $false - break - } - # 4) - else { $vmr.bus[$buses[0]].mute = $false } - } - } - # 5) - if ( $null -eq $unmutedIndex ) { $vmr.bus[$buses[0]].mute = $false } - -} finally { $vmr.Logout() } diff --git a/examples/set_multi.ps1 b/examples/set_multi.ps1 deleted file mode 100644 index 0628cf0..0000000 --- a/examples/set_multi.ps1 +++ /dev/null @@ -1,36 +0,0 @@ -Import-Module Voicemeeter - -try { - $vmr = Get-RemotePotato - - $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}; - - mb_0 = @{state = $true}; - mb_1 = @{stateonly = $true}; - mb_2 = @{trigger = $true} - } - - $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}; - - mb_0 = @{state = $false}; - mb_1 = @{stateonly = $false}; - mb_2 = @{trigger = $false} - } - - $vmr.Set_Multi($hash) -} -finally { $vmr.Logout() } diff --git a/examples/setandgetparams.ps1 b/examples/setandgetparams.ps1 deleted file mode 100644 index 8f6a47a..0000000 --- a/examples/setandgetparams.ps1 +++ /dev/null @@ -1,31 +0,0 @@ -Import-Module Voicemeeter - -try { - $vmr = Get-RemoteBanana - - $vmr.button[0].state = $true - $vmr.button[0].state - $vmr.button[0].state = $false - $vmr.button[0].state - - $vmr.strip[0].mono = $true - $vmr.strip[0].mono - $vmr.strip[0].mono = $false - $vmr.strip[0].mono - - $vmr.bus[2].mute = $true - $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() } diff --git a/examples/special.ps1 b/examples/special.ps1 deleted file mode 100644 index 3a49708..0000000 --- a/examples/special.ps1 +++ /dev/null @@ -1,10 +0,0 @@ -Import-Module Voicemeeter - -try { - $vmr = Get-RemoteBanana - - $vmr.command.show - $vmr.command.restart - $vmr.command.showvbanchat -} -finally { $vmr.Logout() }