2021-04-30 16:30:12 +01:00
|
|
|
#### Direct download:
|
2021-04-30 18:41:10 +01:00
|
|
|
The only difference when you download from source is how you load scripts.
|
2021-04-30 17:06:27 +01:00
|
|
|
You will need to Import-Module by relative location, for example:
|
2021-04-30 16:30:12 +01:00
|
|
|
|
2021-04-30 17:06:27 +01:00
|
|
|
Instead of `Import-Module Voicemeeter` use `Import-Module .\lib\Voicemeeter.psm1` (from repository root)
|
2021-04-30 16:30:12 +01:00
|
|
|
|
2021-04-30 17:06:27 +01:00
|
|
|
Everything else remains the same
|
2021-04-30 16:30:12 +01:00
|
|
|
|
|
|
|
Simple example if using from source:
|
|
|
|
|
|
|
|
```powershell
|
2021-04-30 17:06:27 +01:00
|
|
|
Import-Module .\lib\Voicemeeter.psm1
|
2021-04-30 16:30:12 +01:00
|
|
|
|
|
|
|
try {
|
|
|
|
# Pass a Voicemeeter type as argument
|
2021-04-30 17:06:27 +01:00
|
|
|
$vmr = Get-RemoteBanana
|
2021-04-30 16:30:12 +01:00
|
|
|
|
|
|
|
# Set strip and bus params
|
|
|
|
$vmr.strip[0].mono = $true
|
|
|
|
$vmr.strip[0].mono '=> $true'
|
|
|
|
$vmr.bus[1].mute = $false
|
|
|
|
$vmr.bus[1].mute '=> $false'
|
|
|
|
|
|
|
|
# Set macrobutton with id 4, mode state to 1
|
|
|
|
$vmr.button[4].state = $true
|
|
|
|
$vmr.button[4].state '=> $true'
|
|
|
|
}
|
|
|
|
finally { $vmr.Logout() }
|
|
|
|
```
|