@@ -54,6 +54,8 @@ export enum CommonActions {
54
54
// Delay
55
55
SetDelay = 'set-delay' ,
56
56
SetDelayAmount = 'set-delay-amount' ,
57
+ // EQ
58
+ SetEqOn = 'set-eq-on' ,
57
59
58
60
//////////// SEND
59
61
SetSendMute = 'set-send-mute' ,
@@ -631,6 +633,27 @@ export function createCommonActions(self: InstanceBaseExt<WingConfig>): Companio
631
633
}
632
634
} ,
633
635
} ,
636
+ [ CommonActions . SetEqOn ] : {
637
+ name : 'Set EQ On' ,
638
+ description : 'Enable, disable or toggle the on-state of an EQ on a channel, bus, aux, matrix or main.' ,
639
+ options : [ GetDropdown ( 'Selection' , 'sel' , allChannels ) , GetOnOffToggleDropdown ( 'enable' , 'Enable' ) ] ,
640
+ callback : async ( event ) => {
641
+ const sel = event . options . sel as string
642
+ const cmd = ActionUtil . getEqEnableCommand ( sel , getNodeNumber ( event , 'sel' ) )
643
+ const val = ActionUtil . getNumber ( event , 'enable' )
644
+ const currentVal = StateUtil . getBooleanFromState ( cmd , state )
645
+ if ( val < 2 ) {
646
+ send ( cmd , val )
647
+ } else {
648
+ send ( cmd , Number ( ! currentVal ) )
649
+ }
650
+ } ,
651
+ subscribe : ( event ) => {
652
+ const sel = event . options . sel as string
653
+ const cmd = ActionUtil . getSoloCommand ( sel , getNodeNumber ( event , 'sel' ) )
654
+ ensureLoaded ( cmd )
655
+ } ,
656
+ } ,
634
657
635
658
////////////////////////////////////////////////////////////////
636
659
// Send Fader
0 commit comments