add load profiles, examples, update readme

add Get_Profiles and Set_Profile functions.

Now possible to load many parameters from a psd1 config file.

example config added

add Config Files section to readme
This commit is contained in:
onyx-and-iris
2022-01-24 20:01:12 +00:00
parent ff1839313f
commit 5b3a4e2b4f
5 changed files with 99 additions and 6 deletions

View File

@@ -190,6 +190,20 @@ $vmr.Setter('Strip[4].Label', 'stripname')
$vmr.Setter('Strip[0].Gain', -3.6)
```
### Config Files
`$vmr.Set_Profile('config')`
You may load config files in psd1 format. An example profile has been included with the package. Remember to save current settings before loading a profile. To test simply rename _profiles directory to profiles. It will be loaded into memory but not set. To set one you may do:
```powershell
Import-Module Voicemeeter
try {
$vmr = Get-RemoteBanana
$vmr.Set_Profile("config")
}
finally { $vmr.Logout() }
```
will load a config file at profiles/banana/config.psd1 for Voicemeeter Banana.
### Run tests
Run tests using .\runall.ps1 which accepts two parameters:
- tag Run tests of this type