eq x.1.2.0

changes staged
- bus channel trim
- bus channel delay
- cell gain range
This commit is contained in:
pblivingston 2025-12-10 07:33:11 -05:00
parent f5bdeb6d57
commit c446ad8c93
3 changed files with 36 additions and 13 deletions

View File

@ -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:

View File

@ -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++) {

View File

@ -465,6 +465,18 @@ 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 }
) { ) {
Context "Channel[$bus_ch]" {
It "Should set Bus[$index].EQ.Channel[$bus_ch].Trim" {
$eq.channel[$bus_ch].trim = $slide
$eq.channel[$bus_ch].trim | Should -Be $slide
}
It "Should set Bus[$index].EQ.Channel[$bus_ch].Delay" {
$eq.channel[$bus_ch].delay = $msHz
$eq.channel[$bus_ch].delay | Should -Be $msHz
}
Context "Cell[$cells]" {
It "Should set Bus[$index].EQ.Channel[$bus_ch].Cell[$cells].F" { 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 = $msHz
$eq.channel[$bus_ch].cell[$cells].f | Should -Be $msHz $eq.channel[$bus_ch].cell[$cells].f | Should -Be $msHz
@ -481,6 +493,8 @@ Describe -Tag 'higher', -TestName 'All Higher Tests' {
} }
} }
} }
}
}
Context 'Option' { Context 'Option' {
It "Should set and get Option.delay[$phys_out]" { It "Should set and get Option.delay[$phys_out]" {