xair-api 2.4.2__tar.gz → 2.4.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xair-api
3
- Version: 2.4.2
3
+ Version: 2.4.3
4
4
  Summary: Remote control Behringer X-Air | Midas MR mixers through OSC
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xair-api"
3
- version = "2.4.2"
3
+ version = "2.4.3"
4
4
  description = "Remote control Behringer X-Air | Midas MR mixers through OSC"
5
5
  authors = [{ name = "Onyx and Iris", email = "code@onyxandiris.online" }]
6
6
  license = { text = "MIT" }
@@ -118,12 +118,12 @@ class Gate:
118
118
 
119
119
  @property
120
120
  def mode(self) -> str:
121
- opts = ('gate', 'exp2', 'exp3', 'exp4', 'duck')
121
+ opts = ('exp2', 'exp3', 'exp4', 'gate', 'duck')
122
122
  return opts[self.getter('mode')[0]]
123
123
 
124
124
  @mode.setter
125
125
  def mode(self, val: str):
126
- opts = ('gate', 'exp2', 'exp3', 'exp4', 'duck')
126
+ opts = ('exp2', 'exp3', 'exp4', 'gate', 'duck')
127
127
  if val not in opts:
128
128
  self.logger.warning(f'mode got {val}, expected one of {opts}')
129
129
  self.setter('mode', opts.index(val))
@@ -525,8 +525,7 @@ class EQ:
525
525
 
526
526
  @property
527
527
  def quality(self) -> float:
528
- raw_value = self.getter('q')[0]
529
- retval = util.log_get(0.3, 10, 1.0 - raw_value)
528
+ retval = util.log_get(0.3, 10, 1.0 - self.getter('q')[0])
530
529
  return round(retval, 1)
531
530
 
532
531
  @quality.setter
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes