From 84cc4d097da149c64ce54c766ea10a792e166103 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Fri, 18 Mar 2022 07:40:24 +0000 Subject: [PATCH] Update README.md bus modes and gainlayers sections added to readme. --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e4bc649..26b708e 100644 --- a/README.md +++ b/README.md @@ -120,15 +120,26 @@ The following properties are gettable and settable: - `solo`: boolean - `mute`: boolean - `label`: string -- `gainlayer`: float, -60 to 12 - `gain`: float, -60 to 12 - Output mapping (e.g. `A1`, `B3`, etc.): boolean, depends on the Voicemeeter kind + The following properties are settable: - `comp`: float, from 0.0 to 10.0 - `gate`: float, from 0.0 to 10.0 - `limit`: int, from -40 to 12 +#### `gainlayer` +- `gainlayer[j].gain`: float, -60 to 12 + +for example: +```python +# set and get the value of the second input strip, fourth gainlayer +vban.strip[1].gainlayer[3].gain = -6.3 +print(vban.strip[1].gainlayer[3].gain) +``` +Gainlayers defined for Potato version only. + ### `Bus` The following properties are gettable and settable: - `mute`: boolean @@ -138,6 +149,17 @@ The following properties are gettable and settable: - `label`: string - `gain`: float, -60 to 12 +#### `mode` +Bus modes are gettable and settable +- `normal`, `amix`, `bmix`, `repeat`, `composite`, `tvmix`, `upmix21`, +- `upmix41`, `upmix61`, `centeronly`, `lfeonly`, `rearonly` + +for example: +```python +# set leftmost bus mode to tvmix +vban.bus[0].mode.tvmix = True +``` + ### `VbanCmd` (lower level) #### `vban.set_rt(id_, param, val)` Sends a string request RT Packet where the command would take the form: