mirror of
https://github.com/onyx-and-iris/xair-api-python.git
synced 2026-02-20 03:59:15 +00:00
Compare commits
No commits in common. "dev" and "v2.4.2" have entirely different histories.
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "xair-api"
|
name = "xair-api"
|
||||||
version = "2.4.3"
|
version = "2.4.2"
|
||||||
description = "Remote control Behringer X-Air | Midas MR mixers through OSC"
|
description = "Remote control Behringer X-Air | Midas MR mixers through OSC"
|
||||||
authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }]
|
authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }]
|
||||||
license = { text = "MIT" }
|
license = { text = "MIT" }
|
||||||
|
|||||||
@ -118,12 +118,12 @@ class Gate:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def mode(self) -> str:
|
def mode(self) -> str:
|
||||||
opts = ('exp2', 'exp3', 'exp4', 'gate', 'duck')
|
opts = ('gate', 'exp2', 'exp3', 'exp4', 'duck')
|
||||||
return opts[self.getter('mode')[0]]
|
return opts[self.getter('mode')[0]]
|
||||||
|
|
||||||
@mode.setter
|
@mode.setter
|
||||||
def mode(self, val: str):
|
def mode(self, val: str):
|
||||||
opts = ('exp2', 'exp3', 'exp4', 'gate', 'duck')
|
opts = ('gate', 'exp2', 'exp3', 'exp4', 'duck')
|
||||||
if val not in opts:
|
if val not in opts:
|
||||||
self.logger.warning(f'mode got {val}, expected one of {opts}')
|
self.logger.warning(f'mode got {val}, expected one of {opts}')
|
||||||
self.setter('mode', opts.index(val))
|
self.setter('mode', opts.index(val))
|
||||||
@ -525,7 +525,8 @@ class EQ:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def quality(self) -> float:
|
def quality(self) -> float:
|
||||||
retval = util.log_get(0.3, 10, 1.0 - self.getter('q')[0])
|
raw_value = self.getter('q')[0]
|
||||||
|
retval = util.log_get(0.3, 10, 1.0 - raw_value)
|
||||||
return round(retval, 1)
|
return round(retval, 1)
|
||||||
|
|
||||||
@quality.setter
|
@quality.setter
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user