fadto() fadeby() methods added to strip/bus classes

appgain(), appmute() methods added to virtualstrip class
This commit is contained in:
onyx-and-iris
2022-10-06 20:28:26 +01:00
parent 550df917fb
commit 4ee37f54c5
3 changed files with 57 additions and 1 deletions

View File

@@ -124,7 +124,24 @@ example:
```python
vban.strip[3].gain = 3.7
print(strip[0].label)
print(vban.strip[0].label)
```
The following methods are available.
- `appgain(name, value)`: string, float, from 0.0 to 1.0
Set the gain in db by value for the app matching name.
- `appmute(name, value)`: string, bool
Set mute state as value for the app matching name.
example:
```python
vban.strip[5].appmute("Spotify", True)
vban.strip[5].appgain("Spotify", 0.5)
```
##### Gainlayers
@@ -213,6 +230,22 @@ print(vban.bus[0].levels.all)
`levels.all` will return -200.0 if no audio detected.
### Strip | Bus
The following methods are available.
- `fadeto(amount, time)`: float, int
- `fadeby(amount, time)`: float, int
Modify gain to or by the selected amount in db over a time interval in ms.
example:
```python
vban.strip[0].fadeto(-10.3, 1000)
vban.bus[3].fadeby(-5.6, 500)
```
### Command
Certain 'special' commands are defined by the API as performing actions rather than setting values. The following methods are available: