class Strip { [int32]$id # Constructor Strip ([Int]$id) { $this.id = $id } [void] Setter($cmd, $set) { Param_Set -PARAM $cmd -VALUE $set } [Single] Getter($cmd) { return Param_Get -PARAM $cmd } [string] cmd ($arg) { return "Strip[" + $this.id + "].$arg" } hidden $_mono = $($this | Add-Member ScriptProperty 'mono' ` { $this.Getter($this.cmd('Mono')) }` { param ( [Single]$arg ) $this._mono = $this.Setter($this.cmd('Mono'), $arg) } ) hidden $_solo = $($this | Add-Member ScriptProperty 'solo' ` { $this.Getter($this.cmd('Solo')) }` { param ( [Single]$arg ) $this._solo = $this.Setter($this.cmd('Solo'), $arg) } ) hidden $_mute = $($this | Add-Member ScriptProperty 'mute' ` { $this.Getter($this.cmd('Mute')) }` { param ( [Single]$arg ) $this._mute = $this.Setter($this.cmd('Mute'), $arg) } ) hidden $_A1 = $($this | Add-Member ScriptProperty 'A1' ` { $this.Getter($this.cmd('A1')) }` { param ( [Single]$arg ) $this._A1 = $this.Setter($this.cmd('A1'), $arg) } ) hidden $_A2 = $($this | Add-Member ScriptProperty 'A2' ` { $this.Getter($this.cmd('A2')) }` { param ( [Single]$arg ) $this._A2 = $this.Setter($this.cmd('A2'), $arg) } ) hidden $_A3 = $($this | Add-Member ScriptProperty 'A3' ` { $this.Getter($this.cmd('A3')) }` { param ( [Single]$arg ) $this._A3 = $this.Setter($this.cmd('A3'), $arg) } ) hidden $_A4 = $($this | Add-Member ScriptProperty 'A4' ` { $this.Getter($this.cmd('A4')) }` { param ( [Single]$arg ) $this._A4 = $this.Setter($this.cmd('A4'), $arg) } ) hidden $_A5 = $($this | Add-Member ScriptProperty 'A5' ` { $this.Getter($this.cmd('A5')) }` { param ( [Single]$arg ) $this._A5 = $this.Setter($this.cmd('A5'), $arg) } ) hidden $_B1 = $($this | Add-Member ScriptProperty 'B1' ` { $this.Getter($this.cmd('B1')) }` { param ( [Single]$arg ) $this._B1 = $this.Setter($this.cmd('B1'), $arg) } ) hidden $_B2 = $($this | Add-Member ScriptProperty 'B2' ` { $this.Getter($this.cmd('B2')) }` { param ( [Single]$arg ) $this._B2 = $this.Setter($this.cmd('B2'), $arg) } ) hidden $_B3 = $($this | Add-Member ScriptProperty 'B3' ` { $this.Getter($this.cmd('B3')) }` { param ( [Single]$arg ) $this._B3 = $this.Setter($this.cmd('B3'), $arg) } ) hidden $_gain = $($this | Add-Member ScriptProperty '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 { [System.Collections.ArrayList]$strip = @() 0..$($layout.Strip-1) | ForEach-Object { [void]$strip.Add([Strip]::new($_)) } $strip }