gainlayers

gainlayers are now FloatArrayMember objects - this is a breaking change

prelim pester tests for potato pass
This commit is contained in:
pblivingston
2025-12-08 14:49:15 -05:00
parent a5bade4fbb
commit ac3e36838e
6 changed files with 33 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
class Strip : IRemote {
[System.Collections.ArrayList]$gainlayer
[Object]$levels
Strip ([int]$index, [Object]$remote) : base ($index, $remote) {
@@ -7,9 +8,13 @@ class Strip : IRemote {
AddStringMembers -PARAMS @('label')
AddChannelMembers
AddGainlayerMembers
$this.levels = [StripLevels]::new($index, $remote)
$this.gainlayer = @()
for ($i = 0; $i -lt $remote.kind.gainlayer; $i++) {
$this.gainlayer.Add([FloatArrayMember]::new($i, 'gainlayer', $this))
}
}
[string] identifier () {