effects properties added stip/bus sections

FX section added to readme.

fix some docstrings.

fix a couple of jumbled dates in changelog
This commit is contained in:
onyx-and-iris 2022-07-16 23:21:55 +01:00
parent f018a498bd
commit dedb93f32c
6 changed files with 50 additions and 23 deletions

View File

@ -11,7 +11,7 @@ Before any major/minor/patch bump all unit tests will be run to verify they pass
- [x] - [x]
## [0.3.0] - 2022-07-15 ## [0.3.0] - 2022-07-16
### Added ### Added
@ -30,7 +30,6 @@ Before any major/minor/patch bump all unit tests will be run to verify they pass
### Fixed ### Fixed
- is_updated in strip/bus levels now returns a bool, is level dirty or not? - is_updated in strip/bus levels now returns a bool, is level dirty or not?
- range expressions in vban.
- for basic kind only, virtual bus now subclasses physical bus, since it is the only version you may - for basic kind only, virtual bus now subclasses physical bus, since it is the only version you may
attach a physical device to a virtual out. attach a physical device to a virtual out.
@ -40,47 +39,42 @@ Before any major/minor/patch bump all unit tests will be run to verify they pass
## [0.2.3] - 2022-07-09 ## [0.2.3] - 2022-07-09
### Added ### Changed
- obs added to examples - only compute strip_comp, bus_comp if ldirty.
- switch from strip to bus in obs example.
### Fixed ### Fixed
- bug in strip fadeto/fadeby - bug in strip fadeto/fadeby
- comp added to util.
- range expressions in vban.
## [0.2.2] - 2022-06-27 ## [0.2.0] - 2022-07-02
### Added ### Added
- obs added to examples
- Readme updated to reflect changes. - Readme updated to reflect changes.
- device, gainlayers, levels, bus mode sections added. - device, gainlayers, levels, bus mode sections added.
- minor version bump (probably should have been major since changes to ldirty effect client code)
### Changed ### Changed
- No longer passing data in ldirty notification. - No longer passing data in ldirty notification.
- rw changed to rew in recorder class to match capi - rw changed to rew in recorder class to match capi
### Fixed ## [0.1.10] - 2022-06-28
- mdirty added to observer updates
## [0.2.1] - 2022-06-18
### Added ### Added
- dsl added to examples
- pre-commit.ps1 added for use with git hook - pre-commit.ps1 added for use with git hook
### Fixed ### Fixed
- mdirty added to observer updates
- Error in cbindings - Error in cbindings
## [0.2.0] - 2022-06-16
### Fixed
- Bug in factory builder
## [0.1.9] - 2022-06-21 ## [0.1.9] - 2022-06-21
### Added ### Added
@ -138,6 +132,10 @@ Before any major/minor/patch bump all unit tests will be run to verify they pass
- bus mode mixin added to bus factory method - bus mode mixin added to bus factory method
- type, version implemented into base class. - type, version implemented into base class.
### Fixed
- Bug in factory builder
## [0.1.5] - 2022-06-14 ## [0.1.5] - 2022-06-14
### Added ### Added

View File

@ -120,6 +120,20 @@ The following properties are available.
- `bass`: float, from -12.0 to 12.0 - `bass`: float, from -12.0 to 12.0
- `mid`: float, from -12.0 to 12.0 - `mid`: float, from -12.0 to 12.0
- `treble`: float, from -12.0 to 12.0 - `treble`: float, from -12.0 to 12.0
- `reverb`: float, from 0.0 to 10.0
- `delay`: float, from 0.0 to 10.0
- `fx1`: float, from 0.0 to 10.0
- `fx2`: float, from 0.0 to 10.0
- `pan_x`: float, from -0.5 to 0.5
- `pan_y`: float, from 0.0 to 1.0
- `color_x`: float, from -0.5 to 0.5
- `color_y`: float, from 0.0 to 1.0
- `fx_x`: float, from -0.5 to 0.5
- `fx_y`: float, from 0.0 to 1.0
- `postreverb`: boolean
- `postdelay`: boolean
- `postfx1`: boolean
- `postfx2`: boolean
example: example:
@ -186,6 +200,11 @@ The following properties are available.
- `label`: string - `label`: string
- `device`: string - `device`: string
- `sr`: int - `sr`: int
- `returnreverb`: float, from 0.0 to 10.0
- `returndelay`: float, from 0.0 to 10.0
- `returnfx1`: float, from 0.0 to 10.0
- `returnfx2`: float, from 0.0 to 10.0
- `monitor`: boolean
example: example:
@ -344,6 +363,7 @@ vm.vban.outstream[3].bit = 24
### Command ### Command
Certain 'special' commands are defined by the API as performing actions rather than setting values. Certain 'special' commands are defined by the API as performing actions rather than setting values.
The following methods are available: The following methods are available:
- `show()` : Bring Voiceemeter GUI to the front - `show()` : Bring Voiceemeter GUI to the front
@ -379,6 +399,15 @@ with voicemeeterlib.api(kind_id) as vm:
print(vm.device.input(i)) print(vm.device.input(i))
``` ```
### FX
The following methods are available:
- `reverb`: boolean
- `reverb_ab`: boolean
- `delay`: boolean
- `delay_ab`: boolean
### Multiple parameters ### Multiple parameters
- `apply` - `apply`

View File

@ -25,7 +25,7 @@ class TestRemoteFactories:
@pytest.mark.skipif( @pytest.mark.skipif(
data.name != "banana", data.name != "banana",
reason="Skip test if kind is not basic", reason="Skip test if kind is not banana",
) )
def test_it_tests_remote_attrs_for_banana(self): def test_it_tests_remote_attrs_for_banana(self):
assert hasattr(tests, "strip") assert hasattr(tests, "strip")
@ -43,7 +43,7 @@ class TestRemoteFactories:
@pytest.mark.skipif( @pytest.mark.skipif(
data.name != "potato", data.name != "potato",
reason="Skip test if kind is not basic", reason="Skip test if kind is not potato",
) )
def test_it_tests_remote_attrs_for_potato(self): def test_it_tests_remote_attrs_for_potato(self):
assert hasattr(tests, "strip") assert hasattr(tests, "strip")

View File

@ -238,7 +238,7 @@ def _make_bus_mode_mixin():
def _make_effects_mixin(): def _make_effects_mixin():
"""creates an fx mixin""" """creates an fx mixin"""
return type( return type(
f"FX", "FX",
(), (),
{ {
**{ **{

View File

@ -4,7 +4,7 @@ from .iremote import IRemote
class FX(IRemote): class FX(IRemote):
@property @property
def identifier(self) -> str: def identifier(self) -> str:
return f"FX" return "FX"
@property @property
def reverb(self) -> bool: def reverb(self) -> bool:

View File

@ -298,7 +298,7 @@ _make_channelout_mixins = {
def _make_effects_mixin(kind): def _make_effects_mixin(kind):
"""creates an effects mixin for a kind""" """creates an effects mixin for a kind"""
XY_cls = type( XY_cls = type(
f"XY", "XY",
(), (),
{ {
param: float_prop(param) param: float_prop(param)
@ -314,7 +314,7 @@ def _make_effects_mixin(kind):
) )
FX_cls = type( FX_cls = type(
f"FX", "FX",
(), (),
{ {
**{ **{