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,31 +377,31 @@ def _make_effects_mixin(kind, is_phys):
|
|||||||
{**pan},
|
{**pan},
|
||||||
)
|
)
|
||||||
|
|
||||||
XY_cls = _make_xy_cls()
|
def _make_fx_cls():
|
||||||
|
if is_phys:
|
||||||
|
return type(
|
||||||
|
"FX",
|
||||||
|
(),
|
||||||
|
{
|
||||||
|
**{
|
||||||
|
param: float_prop(param)
|
||||||
|
for param in ["reverb", "delay", "fx1", "fx2"]
|
||||||
|
},
|
||||||
|
**{
|
||||||
|
f"post{param}": bool_prop(f"post{param}")
|
||||||
|
for param in ["reverb", "delay", "fx1", "fx2"]
|
||||||
|
},
|
||||||
|
},
|
||||||
|
)
|
||||||
|
return type("FX", (), {})
|
||||||
|
|
||||||
FX_cls = type(
|
if kind.name == "basic":
|
||||||
"FX",
|
steps = (_make_xy_cls,)
|
||||||
(),
|
elif kind.name == "banana":
|
||||||
{
|
steps = (_make_xy_cls,)
|
||||||
**{
|
elif kind.name == "potato":
|
||||||
param: float_prop(param)
|
steps = (_make_xy_cls, _make_fx_cls)
|
||||||
for param in [
|
return type(f"Effects{kind}", tuple(step() for step in steps), {})
|
||||||
"reverb",
|
|
||||||
"delay",
|
|
||||||
"fx1",
|
|
||||||
"fx2",
|
|
||||||
]
|
|
||||||
},
|
|
||||||
**{
|
|
||||||
f"post{param}": bool_prop(f"post{param}")
|
|
||||||
for param in ["reverb", "delay", "fx1", "fx2"]
|
|
||||||
},
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
if kind.name == "potato":
|
|
||||||
return type(f"Effects{kind}", (XY_cls, FX_cls), {})
|
|
||||||
return type(f"Effects{kind}", (XY_cls,), {})
|
|
||||||
|
|
||||||
|
|
||||||
def _make_effects_mixins(is_phys):
|
def _make_effects_mixins(is_phys):
|
||||||
|
Loading…
Reference in New Issue
Block a user