mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-18 05:10:48 +00:00
cbfd7a30f7
Now using a nested hash for mult_set added macrobutton commands to multi_set updated example changelog and readme to reflect changes minor version bumped
37 lines
999 B
PowerShell
37 lines
999 B
PowerShell
Import-Module .\lib\Voicemeeter.psm1
|
|
|
|
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};
|
|
|
|
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() }
|