From deb04df5512f07b94268d6b06b5e4f1353ee8598 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Fri, 30 Apr 2021 17:05:31 +0100 Subject: [PATCH] Create example.ps1 Added example from repo root --- example.ps1 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 example.ps1 diff --git a/example.ps1 b/example.ps1 new file mode 100644 index 0000000..48e8bbf --- /dev/null +++ b/example.ps1 @@ -0,0 +1,28 @@ +Import-Module .\lib\Voicemeeter.psm1 + +try { + $vmr = Get-RemoteBanana + + $hash = @{ + "Strip[0].Mute" = $true + "Strip[1].Mute" = $true + "Strip[2].Mute" = $false + "Strip[0].Mono" = $true + "Strip[1].Mono" = $false + "Strip[2].Mono" = $true + } + + $vmr.Set_Multi($hash) + + $hash = @{ + "Strip[0].Mute" = $false + "Strip[1].Mute" = $false + "Strip[2].Mute" = $false + "Strip[0].Mono" = $true + "Strip[1].Mono" = $true + "Strip[2].Mono" = $false + } + + $vmr.Set_Multi($hash) +} +finally { $vmr.Logout() } \ No newline at end of file