add some PTT

This commit is contained in:
David Daily 2020-05-26 22:51:21 -05:00
parent 861da37375
commit a6e519f913

13
VB.ahk
View File

@ -99,6 +99,9 @@ midiCCin:
Lvl := fader_to_fader(val)
adjustVolLvl("Bus[2].Gain", Lvl)
Return
Case 2, 4:
adjustToggle("Bus[2].Mute", val)
Return
Case 3:
adjustToggle("Bus[2].Mute", val)
Return
@ -134,6 +137,16 @@ midiCCin:
Lvl := fader_to_fader(val)
adjustVolLvl("Bus[3].Gain", Lvl)
Return
Case 2, 4: ; Priority Speaker in Discord (whatever that does), also PTT
if !(val){
cSendMute := Round(readParam("Bus[3].Mute"))
adjustToggle("Bus[3].Mute", False)
Send, {F23 down}
} else {
Send, {F23 up}
adjustToggle("Bus[3].Mute", cSendMute)
}
Return
Case 3:
adjustToggle("Bus[3].Mute", val)
Return