Skip to content

Commit

Permalink
feat(sisyfos): Allow setting of PST in Timeline objects
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterC89 committed Oct 3, 2024
1 parent 58cfbb2 commit e38ae2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface TimelineContentSisyfos {

export interface SisyfosChannelOptions {
isPgm?: 0 | 1 | 2 // 0=off 1=PGM 2=VO
isPst?: 0 | 1 | 2 // 0=off 1=PGM 2=VO
faderLevel?: number
label?: string
visible?: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ export class SisyfosMessageDevice extends DeviceWithState<SisyfosState, DeviceOp
}
}

// Note: This will override the PST state that's set by the lookahead handling logic above.
if (newChannel.isPst !== undefined) channel.pstOn = newChannel.isPst
if (newChannel.faderLevel !== undefined) channel.faderLevel = newChannel.faderLevel
if (newChannel.label !== undefined && newChannel.label !== '') channel.label = newChannel.label
if (newChannel.visible !== undefined) channel.visible = newChannel.visible
Expand Down

0 comments on commit e38ae2a

Please sign in to comment.