voicemeeter-api-powershell/example.ps1

18 lines
406 B
PowerShell
Raw Normal View History

Import-Module .\lib\Voicemeeter.psm1
try {
2022-10-27 21:16:17 +01:00
# Run the factory function for required Voicemeeter type
$vmr = Get-RemoteBanana
2022-10-27 21:16:17 +01:00
# Set strip and bus params
$vmr.strip[0].mono = $true
$vmr.strip[0].mono
$vmr.bus[1].mute = $false
$vmr.bus[1].mute
2022-10-27 21:16:17 +01:00
# Set macrobutton with id 4, mode state to 1
$vmr.button[4].state = $true
$vmr.button[4].state
}
finally { $vmr.Logout() }