Compare commits

...

6 Commits

4 changed files with 34 additions and 15 deletions

View File

@ -14,9 +14,9 @@ For an outline of past/future changes refer to: [CHANGELOG](CHANGELOG.md)
## Tested against
- Basic 1.0.8.4
- Banana 2.0.6.4
- Potato 3.0.2.4
- Basic 1.0.8.8
- Banana 2.0.6.8
- Potato 3.0.2.8
## Requirements
@ -155,6 +155,8 @@ vm.strip[5].appgain("Spotify", 0.5)
#### Strip.Comp
The following properties are available.
- `knob`: float, from 0.0 to 10.0
- `gainin`: float, from -24.0 to 24.0
- `ratio`: float, from 1.0 to 8.0
@ -171,10 +173,14 @@ example:
print(vm.strip[4].comp.knob)
```
Strip Comp parameters are defined for PhysicalStrips, potato version only.
Strip Comp parameters are defined for PhysicalStrips.
`knob` defined for all versions, all other parameters potato only.
#### Strip.Gate
The following properties are available.
- `knob`: float, from 0.0 to 10.0
- `threshold`: float, from -60.0 to -10.0
- `damping`: float, from -60.0 to -10.0
@ -189,10 +195,14 @@ example:
vm.strip[2].gate.attack = 300.8
```
Strip Gate parameters are defined for PhysicalStrips, potato version only.
Strip Gate parameters are defined for PhysicalStrips.
`knob` defined for all versions, all other parameters potato only.
#### Strip.Denoiser
The following properties are available.
- `knob`: float, from 0.0 to 10.0
example:
@ -755,12 +765,6 @@ Access to lower level Getters and Setters are provided with these functions:
- `vm.get(param, is_string=False)`: For getting the value of any parameter. Set string to True if getting a property value expected to return a string.
- `vm.set(param, value)`: For setting the value of any parameter.
Access to lower level polling functions are provided with these functions:
- `vm.pdirty()`: Returns True if a parameter has been updated.
- `vm.mdirty()`: Returns True if a macrobutton has been updated.
- `vm.ldirty()`: Returns True if a level has been updated.
example:
```python
@ -769,6 +773,21 @@ vm.set('Strip[4].Label', 'stripname')
vm.set('Strip[0].Gain', -3.6)
```
Access to lower level polling functions are provided with the following property objects:
#### `vm.pdirty`
True iff a parameter has been updated.
#### `vm.mdirty`
True iff a macrobutton has been updated.
#### `vm.ldirty`
True iff a level has been updated.
### Run tests
To run all tests:

View File

@ -16,7 +16,7 @@ def main():
"\n".join(
[
f"{vm.strip[5]}: {vm.strip[5].levels.postmute}",
f"{vm.bus[1]}: {vm.bus[0].levels.all}",
f"{vm.bus[0]}: {vm.bus[0].levels.all}",
]
)
)

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "voicemeeter-api"
version = "2.0.0"
version = "2.0.1"
description = "A Python wrapper for the Voiceemeter API"
authors = ["onyx-and-iris <code@onyxandiris.online>"]
license = "MIT"

View File

@ -27,7 +27,7 @@ class Producer(threading.Thread):
if self._remote.event.ldirty:
self.queue.put("ldirty")
time.sleep(self._remote.ratelimit)
self.logger.debug(f"terminating {self.getName()} thread")
self.logger.debug(f"terminating {self.name} thread")
self.queue.put(None)
@ -61,7 +61,7 @@ class Updater(threading.Thread):
while True:
event = self.queue.get()
if event is None:
self.logger.debug(f"terminating {self.getName()} thread")
self.logger.debug(f"terminating {self.name} thread")
break
if event == "pdirty" and self._remote.pdirty: