add gain,comp,limit to strip. Update tests.

Added gain, comp and limit attributes to strip class

Updated pester unit tests to reflect changes.

Update changelog
This commit is contained in:
onyx-and-iris
2021-04-30 18:41:10 +01:00
parent fce4c51c56
commit 2846e46592
6 changed files with 260 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ Function Param_Set_Multi {
Start-Sleep -m 50
while(M_Dirty) { Start-Sleep -m 1 }
[string[]]$params = ($HASH | out-string -stream) -ne '' | select -Skip 2
[string[]]$params = ($HASH | out-string -stream) -ne '' | Select-Object -Skip 2
[String]$cmd = [String]::new(512)
ForEach ($line in $params) {
$line = $($line -replace '\s+', ' ')

View File

@@ -41,7 +41,7 @@ class Bus {
hidden $_gain = $($this | Add-Member ScriptProperty 'gain' `
{
$this.Getter($this.cmd('gain'))
[math]::Round($this.Getter($this.cmd('gain')), 1)
}`
{
param ( [Single]$arg )

View File

@@ -131,13 +131,43 @@ class Strip {
hidden $_gain = $($this | Add-Member ScriptProperty 'gain' `
{
$this.Getter($this.cmd('gain'))
[math]::Round($this.Getter($this.cmd('gain')), 1)
}`
{
param ( [Single]$arg )
$this._gain = $this.Setter($this.cmd('gain'), $arg)
}
)
hidden $_comp = $($this | Add-Member ScriptProperty 'comp' `
{
[math]::Round($this.Getter($this.cmd('comp')), 1)
}`
{
param ( [Single]$arg )
$this._comp = $this.Setter($this.cmd('comp'), $arg)
}
)
hidden $_gate = $($this | Add-Member ScriptProperty 'gate' `
{
[math]::Round($this.Getter($this.cmd('gate')), 1)
}`
{
param ( [Single]$arg )
$this._gate = $this.Setter($this.cmd('gate'), $arg)
}
)
hidden $_limit = $($this | Add-Member ScriptProperty 'limit' `
{
[Int]$this.Getter($this.cmd('limit'))
}`
{
param ( [Single]$arg )
$this._limit = $this.Setter($this.cmd('limit'), $arg)
}
)
}
Function Strips {