Skip to content

Commit

Permalink
Merge pull request #336 from bbc/feat/set-pfl-from-automation
Browse files Browse the repository at this point in the history
Feat/set pfl from automation
  • Loading branch information
LindvedKrvang authored Sep 24, 2024
2 parents b96bd0f + 7089b95 commit 36c8b73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ To set the state send these OSC commands from you Automation to Sisyfos Port: 52
/ch/1/mix/pgm - integer: { 0, 1 or 2 } - float { fadetime in ms }

#### Set channel to PST:

If showPFL in setting is enabled, this also sets the state of PFL
/ch/1/mix/pst - integer: { 0, 1 or 2 } (the integer defines: 0 - Off, 1 - Pgm On, 2 - Voice Over)

#### Mute channel:
Expand Down
7 changes: 7 additions & 0 deletions server/src/utils/AutomationConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ export class AutomationConnection {
pstOn: false,
})
}
if ( state.settings[0].showPfl) {
store.dispatch({
type: FaderActionTypes.SET_PFL,
faderIndex: ch - 1,
pflOn: message.args[0] > 0,
})
}
mixerGenericConnection.updateNextAux(ch - 1)
})
} else if (check('CHANNEL_MUTE')) {
Expand Down

0 comments on commit 36c8b73

Please sign in to comment.