From 42ed3d443a04f6d32f3d4b7ee788348adab04d71 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Mon, 27 Jun 2022 15:23:16 +0100 Subject: [PATCH] move config section in readme --- README.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 402bb64..f022692 100644 --- a/README.md +++ b/README.md @@ -260,6 +260,23 @@ try { finally { $vmr.Logout() } ``` +### Config Files + +`$vmr.Set_Profile()` + +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. + ### Remote class Access to lower level Getters and Setters are provided with these functions: @@ -282,23 +299,6 @@ $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: