mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-29 17:40:47 +00:00
remove old example files
This commit is contained in:
parent
e10eddf780
commit
fdb7e39ac1
@ -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() }
|
@ -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() }
|
@ -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() }
|
@ -1,10 +0,0 @@
|
||||
Import-Module Voicemeeter
|
||||
|
||||
try {
|
||||
$vmr = Get-RemoteBanana
|
||||
|
||||
$vmr.command.show
|
||||
$vmr.command.restart
|
||||
$vmr.command.showvbanchat
|
||||
}
|
||||
finally { $vmr.Logout() }
|
Loading…
Reference in New Issue
Block a user