From fe1f4ee3243ee6180bc564cb9128022bbc69767c Mon Sep 17 00:00:00 2001 From: William Young Date: Sun, 15 Jun 2025 16:59:17 -0500 Subject: [PATCH] Updated example script to be sure other params work, updated readme and changed channel number from 9 to 8 --- README.md | 17 +++++++++++++++++ examples/eq_edit/__main__.py | 4 ++++ voicemeeterlib/kinds.py | 4 ++-- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0c4f8da..fa01963 100644 --- a/README.md +++ b/README.md @@ -292,6 +292,23 @@ example: vm.bus[3].eq.on = True ``` +##### Bus.EQ.Channel.Cell + +The following properties are available. + +- `on`: boolean +- `type`: int +- `f`: float +- `gain`: float +- `q`: quality + +example: + +```python +vm.bus[3].eq.channel[0].cell[2].on = True +vm.bus[3].eq.channel[0].cell[2].f = 5000 +``` + ##### Bus.Modes The following properties are available. diff --git a/examples/eq_edit/__main__.py b/examples/eq_edit/__main__.py index d85deb9..bedc13b 100644 --- a/examples/eq_edit/__main__.py +++ b/examples/eq_edit/__main__.py @@ -23,14 +23,18 @@ def main(): for i in channels_idx: vm.bus[0].eq.channel[i].cell[0].on = True vm.bus[0].eq.channel[i].cell[0].f = 500 + vm.bus[0].eq.channel[i].cell[0].gain = -10 vm.bus[0].eq.channel[i].cell[0].type = 3 # Should correspond to LPF + vm.bus[0].eq.channel[i].cell[0].q = 10 time.sleep(3) vm.bus[0].eq.on = False for i in channels_idx: vm.bus[0].eq.channel[i].cell[0].on = False vm.bus[0].eq.channel[i].cell[0].f = 50 + vm.bus[0].eq.channel[i].cell[0].gain = 0 vm.bus[0].eq.channel[i].cell[0].type = 0 + vm.bus[0].eq.channel[i].cell[0].q = 3 if __name__ == '__main__': main() \ No newline at end of file diff --git a/voicemeeterlib/kinds.py b/voicemeeterlib/kinds.py index 475c689..ab73065 100644 --- a/voicemeeterlib/kinds.py +++ b/voicemeeterlib/kinds.py @@ -90,7 +90,7 @@ class BananaMap(KindMapClass): asio: tuple = (6, 8) insert: int = 22 composite: int = 8 - channels: int = 9 + channels: int = 8 cells: int = 6 @@ -102,7 +102,7 @@ class PotatoMap(KindMapClass): asio: tuple = (10, 8) insert: int = 34 composite: int = 8 - channels: int = 9 + channels: int = 8 cells: int = 6