mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-12-25 14:07:46 +00:00
eq x.1.2.0
changes staged - bus channel trim - bus channel delay - cell gain range
This commit is contained in:
parent
f5bdeb6d57
commit
c446ad8c93
11
README.md
11
README.md
@ -404,14 +404,21 @@ $vmr.strip[0].eq.on = $true
|
|||||||
$vmr.bus[0].eq.ab = $false
|
$vmr.bus[0].eq.ab = $false
|
||||||
```
|
```
|
||||||
|
|
||||||
##### channel.cell
|
##### channel
|
||||||
|
|
||||||
|
The following bus.eq.channel.cell properties are available:
|
||||||
|
|
||||||
|
- trim: float, from -24.00 to 24.00
|
||||||
|
- delay: float, from 0.00 to 500.00
|
||||||
|
|
||||||
|
###### cell
|
||||||
|
|
||||||
The following eq.channel.cell properties are available:
|
The following eq.channel.cell properties are available:
|
||||||
|
|
||||||
- on: bool
|
- on: bool
|
||||||
- type: int, from 0 to 6
|
- type: int, from 0 to 6
|
||||||
- f: float, from 20.00 to 20000.00
|
- f: float, from 20.00 to 20000.00
|
||||||
- gain: float, from -12.00 to 12.00
|
- gain: float, from -36.00 to 18.00
|
||||||
- q: float, from 0.30 to 100.00
|
- q: float, from 0.30 to 100.00
|
||||||
|
|
||||||
for example:
|
for example:
|
||||||
|
|||||||
@ -69,6 +69,8 @@ class EqChannel : IRemote {
|
|||||||
EqChannel ([int]$index, [Object]$remote, [string]$eqId) : base ($index, $remote) {
|
EqChannel ([int]$index, [Object]$remote, [string]$eqId) : base ($index, $remote) {
|
||||||
$this.eqId = $eqId
|
$this.eqId = $eqId
|
||||||
|
|
||||||
|
AddFloatMembers -PARAMS @('trim', 'delay')
|
||||||
|
|
||||||
$this.cell = @()
|
$this.cell = @()
|
||||||
$cellCount = $this.remote.kind.cells
|
$cellCount = $this.remote.kind.cells
|
||||||
for ($c = 0; $c -lt $cellCount; $c++) {
|
for ($c = 0; $c -lt $cellCount; $c++) {
|
||||||
|
|||||||
@ -465,19 +465,33 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
|
|||||||
Context 'EQ' -Skip:$ifBasic -ForEach @(
|
Context 'EQ' -Skip:$ifBasic -ForEach @(
|
||||||
@{ Eq = $vmr.bus[$index].eq }
|
@{ Eq = $vmr.bus[$index].eq }
|
||||||
) {
|
) {
|
||||||
It "Should set Bus[$index].EQ.Channel[$bus_ch].Cell[$cells].F" {
|
Context "Channel[$bus_ch]" {
|
||||||
$eq.channel[$bus_ch].cell[$cells].f = $msHz
|
It "Should set Bus[$index].EQ.Channel[$bus_ch].Trim" {
|
||||||
$eq.channel[$bus_ch].cell[$cells].f | Should -Be $msHz
|
$eq.channel[$bus_ch].trim = $slide
|
||||||
}
|
$eq.channel[$bus_ch].trim | Should -Be $slide
|
||||||
|
}
|
||||||
|
|
||||||
It "Should set Bus[$index].EQ.Channel[$bus_ch].Cell[$cells].Gain" {
|
It "Should set Bus[$index].EQ.Channel[$bus_ch].Delay" {
|
||||||
$eq.channel[$bus_ch].cell[$cells].gain = $slide
|
$eq.channel[$bus_ch].delay = $msHz
|
||||||
$eq.channel[$bus_ch].cell[$cells].gain | Should -Be $slide
|
$eq.channel[$bus_ch].delay | Should -Be $msHz
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Context "Cell[$cells]" {
|
||||||
|
It "Should set Bus[$index].EQ.Channel[$bus_ch].Cell[$cells].F" {
|
||||||
|
$eq.channel[$bus_ch].cell[$cells].f = $msHz
|
||||||
|
$eq.channel[$bus_ch].cell[$cells].f | Should -Be $msHz
|
||||||
|
}
|
||||||
|
|
||||||
It "Should set Bus[$index].EQ.Channel[$bus_ch].Cell[$cells].Q" {
|
It "Should set Bus[$index].EQ.Channel[$bus_ch].Cell[$cells].Gain" {
|
||||||
$eq.channel[$bus_ch].cell[$cells].q = $knob
|
$eq.channel[$bus_ch].cell[$cells].gain = $slide
|
||||||
$eq.channel[$bus_ch].cell[$cells].q | Should -Be $knob
|
$eq.channel[$bus_ch].cell[$cells].gain | Should -Be $slide
|
||||||
|
}
|
||||||
|
|
||||||
|
It "Should set Bus[$index].EQ.Channel[$bus_ch].Cell[$cells].Q" {
|
||||||
|
$eq.channel[$bus_ch].cell[$cells].q = $knob
|
||||||
|
$eq.channel[$bus_ch].cell[$cells].q | Should -Be $knob
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user