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

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