mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2024-11-22 19:10:47 +00:00
only add fx properties to phys strips
patch bump
This commit is contained in:
parent
caf05aa789
commit
a73ebf364b
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "voicemeeter-api"
|
name = "voicemeeter-api"
|
||||||
version = "0.9.1"
|
version = "0.9.2"
|
||||||
description = "A Python wrapper for the Voiceemeter API"
|
description = "A Python wrapper for the Voiceemeter API"
|
||||||
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
@ -377,20 +377,15 @@ def _make_effects_mixin(kind, is_phys):
|
|||||||
{**pan},
|
{**pan},
|
||||||
)
|
)
|
||||||
|
|
||||||
XY_cls = _make_xy_cls()
|
def _make_fx_cls():
|
||||||
|
if is_phys:
|
||||||
FX_cls = type(
|
return type(
|
||||||
"FX",
|
"FX",
|
||||||
(),
|
(),
|
||||||
{
|
{
|
||||||
**{
|
**{
|
||||||
param: float_prop(param)
|
param: float_prop(param)
|
||||||
for param in [
|
for param in ["reverb", "delay", "fx1", "fx2"]
|
||||||
"reverb",
|
|
||||||
"delay",
|
|
||||||
"fx1",
|
|
||||||
"fx2",
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
**{
|
**{
|
||||||
f"post{param}": bool_prop(f"post{param}")
|
f"post{param}": bool_prop(f"post{param}")
|
||||||
@ -398,10 +393,15 @@ def _make_effects_mixin(kind, is_phys):
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
return type("FX", (), {})
|
||||||
|
|
||||||
if kind.name == "potato":
|
if kind.name == "basic":
|
||||||
return type(f"Effects{kind}", (XY_cls, FX_cls), {})
|
steps = (_make_xy_cls,)
|
||||||
return type(f"Effects{kind}", (XY_cls,), {})
|
elif kind.name == "banana":
|
||||||
|
steps = (_make_xy_cls,)
|
||||||
|
elif kind.name == "potato":
|
||||||
|
steps = (_make_xy_cls, _make_fx_cls)
|
||||||
|
return type(f"Effects{kind}", tuple(step() for step in steps), {})
|
||||||
|
|
||||||
|
|
||||||
def _make_effects_mixins(is_phys):
|
def _make_effects_mixins(is_phys):
|
||||||
|
Loading…
Reference in New Issue
Block a user