Fade and App methods added to readme.

This commit is contained in:
onyx-and-iris 2022-09-17 03:47:54 +01:00
parent 8a03904ab8
commit e16a51c0da

View File

@ -193,6 +193,8 @@ The following methods are available
- `SetAudibility(val float64)` from 0.0 to 10.0 - `SetAudibility(val float64)` from 0.0 to 10.0
- `GetA1() bool - GetA5() bool` - `GetA1() bool - GetA5() bool`
- `SetA1(val bool) - SetA5(val bool)` - `SetA1(val bool) - SetA5(val bool)`
- `AppGain(name string, gain float64)`
- `AppMute(name string, val bool)`
example: example:
@ -200,6 +202,9 @@ example:
vm.Strip[3].SetGain(3.7) vm.Strip[3].SetGain(3.7)
fmt.Println(vm.Strip[0].GetLabel()) fmt.Println(vm.Strip[0].GetLabel())
vm.Strip[4].SetA1(true) vm.Strip[4].SetA1(true)
vm.Strip[5].AppGain("Spotify", 0.5)
vm.Strip[5].AppMute("Spotify", true)
``` ```
##### Gainlayers ##### Gainlayers
@ -306,6 +311,22 @@ example:
fmt.Println(vm.Bus[1].Levels().All()) fmt.Println(vm.Bus[1].Levels().All())
``` ```
### Strip | Bus
The following methods are available.
- `FadeTo(target float64, time_ int)`: float, int
- `FadeBy(change float64, time_ int)`: float, int
Modify gain to or by the selected amount in db over a time interval in ms.
example:
```go
vm.Strip[3].FadeBy(-8.3, 500)
vm.Bus[3].FadeTo(-12.8, 500)
```
### Button ### Button
The following methods are available The following methods are available