Compare commits
No commits in common. "89be8ada50dfff296d0f27a6413c29d4f362a4eb" and "b439f3c76e073148b864119c82510efc256ffb97" have entirely different histories.
89be8ada50
...
b439f3c76e
132
VB.ahk
132
VB.ahk
@ -253,6 +253,79 @@ dial_to_pan(val)
|
|||||||
; == HOTKEYS ==
|
; == HOTKEYS ==
|
||||||
; =============
|
; =============
|
||||||
|
|
||||||
|
/*
|
||||||
|
Volume_Up::
|
||||||
|
If GetKeyState("ScrollLock", "T") ; Control music volume if scroll lock is on
|
||||||
|
{
|
||||||
|
cLvl := readParam("Strip[2]" . ".Gain")
|
||||||
|
if (cLvl != "")
|
||||||
|
{
|
||||||
|
cLvl += 1
|
||||||
|
adjustVolLvl("Strip[2]" . ".Gain", cLvl)
|
||||||
|
}
|
||||||
|
Return
|
||||||
|
}
|
||||||
|
|
||||||
|
b0M := Round(readParam("Bus[0]" . ".Mute"))
|
||||||
|
b1M := Round(readParam("Bus[1]" . ".Mute"))
|
||||||
|
|
||||||
|
if !(b0M)
|
||||||
|
{
|
||||||
|
cLvl := readParam("Bus[0]" . ".Gain")
|
||||||
|
if (cLvl != "")
|
||||||
|
{
|
||||||
|
cLvl += 1
|
||||||
|
adjustVolLvl("Bus[0]" . ".Gain", cLvl)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if !(b1M)
|
||||||
|
{
|
||||||
|
cLvl := readParam("Bus[1]" . ".Gain")
|
||||||
|
if (cLvl != "")
|
||||||
|
{
|
||||||
|
cLvl += 1
|
||||||
|
adjustVolLvl("Bus[1]" . ".Gain", cLvl)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
|
||||||
|
Volume_Down::
|
||||||
|
If GetKeyState("ScrollLock", "T") ; Control music volume if scroll lock is on
|
||||||
|
{
|
||||||
|
cLvl := readParam("Strip[2]" . ".Gain")
|
||||||
|
if (cLvl != "")
|
||||||
|
{
|
||||||
|
cLvl -= 1
|
||||||
|
adjustVolLvl("Strip[2]" . ".Gain", cLvl)
|
||||||
|
}
|
||||||
|
Return
|
||||||
|
}
|
||||||
|
|
||||||
|
b0M := Round(readParam("Bus[0]" . ".Mute"))
|
||||||
|
b1M := Round(readParam("Bus[1]" . ".Mute"))
|
||||||
|
|
||||||
|
if !(b0M)
|
||||||
|
{
|
||||||
|
cLvl := readParam("Bus[0]" . ".Gain")
|
||||||
|
if (cLvl != "")
|
||||||
|
{
|
||||||
|
cLvl -= 1
|
||||||
|
adjustVolLvl("Bus[0]" . ".Gain", cLvl)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if !(b1M)
|
||||||
|
{
|
||||||
|
cLvl := readParam("Bus[1]" . ".Gain")
|
||||||
|
if (cLvl != "")
|
||||||
|
{
|
||||||
|
cLvl -= 1
|
||||||
|
adjustVolLvl("Bus[1]" . ".Gain", cLvl)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
*/
|
||||||
Volume_Mute::
|
Volume_Mute::
|
||||||
b0M := Round(readParam("Bus[0]" . ".Mute")) ; Speakers
|
b0M := Round(readParam("Bus[0]" . ".Mute")) ; Speakers
|
||||||
b1M := Round(readParam("Bus[1]" . ".Mute")) ; Headphones
|
b1M := Round(readParam("Bus[1]" . ".Mute")) ; Headphones
|
||||||
@ -282,6 +355,64 @@ Volume_Mute::
|
|||||||
}
|
}
|
||||||
Return
|
Return
|
||||||
|
|
||||||
|
/*
|
||||||
|
!m:: ; Mute: No audio out
|
||||||
|
Send {F23}
|
||||||
|
b3M := Round(readParam("Bus[3]" . ".Mute")) ; Comms IN
|
||||||
|
s4M := Round(readParam("Strip[4]" . ".Mute")) ; Comms OUT
|
||||||
|
|
||||||
|
If (s4M)
|
||||||
|
{
|
||||||
|
adjustToggle("Bus[3]" . ".Mute", "1") ; Comms IN
|
||||||
|
adjustToggle("Strip[4]" . ".Mute", "1") ; Comms OUT
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
If !(b3M)
|
||||||
|
{
|
||||||
|
adjustToggle("Bus[3]" . ".Mute", "0")
|
||||||
|
} else {
|
||||||
|
adjustToggle("Bus[3]" . ".Mute", "1")
|
||||||
|
}
|
||||||
|
Return
|
||||||
|
|
||||||
|
!n:: ; Deafen: No audio in or out
|
||||||
|
Send {F24}
|
||||||
|
s4M := Round(readParam("Strip[4]" . ".Mute")) ; Comms OUT
|
||||||
|
|
||||||
|
If (s4M)
|
||||||
|
{
|
||||||
|
adjustToggle("Bus[3]" . ".Mute", "1") ; Comms IN
|
||||||
|
adjustToggle("Strip[4]" . ".Mute", "1") ; Comms OUT
|
||||||
|
} else {
|
||||||
|
adjustToggle("Bus[3]" . ".Mute", "0") ; Comms IN
|
||||||
|
Sleep, 650 ; Delay so that the "deafened" sound from discord can play
|
||||||
|
adjustToggle("Strip[4]" . ".Mute", "0") ; Comms OUT
|
||||||
|
}
|
||||||
|
Return
|
||||||
|
|
||||||
|
!j:: ; Mute toggle for meetings on work laptop
|
||||||
|
Send {F24}
|
||||||
|
cM := Round(readParam("Bus[2]" . ".Mute"))
|
||||||
|
|
||||||
|
if (cM)
|
||||||
|
{
|
||||||
|
adjustToggle("Bus[2]" . ".Mute", "1") ; Work Laptop
|
||||||
|
adjustToggle("Bus[3]" . ".Mute", "0") ; Comms IN
|
||||||
|
adjustToggle("Strip[3]" . ".Mute", "0") ; Desktop
|
||||||
|
Sleep, 650 ; Delay so that the "deafened" sound from discord can play
|
||||||
|
adjustToggle("Strip[4]" . ".Mute", "0") ; Comms OUT
|
||||||
|
}
|
||||||
|
if !(cM)
|
||||||
|
{
|
||||||
|
adjustToggle("Bus[2]" . ".Mute", "0") ; Work Laptop
|
||||||
|
adjustToggle("Bus[3]" . ".Mute", "1") ; Comms IN
|
||||||
|
adjustToggle("Strip[4]" . ".Mute", "1") ; Comms OUT
|
||||||
|
adjustToggle("Strip[3]" . ".Mute", "1") ; Desktop
|
||||||
|
}
|
||||||
|
Return
|
||||||
|
*/
|
||||||
|
|
||||||
; == Functions ==
|
; == Functions ==
|
||||||
; ===============
|
; ===============
|
||||||
readParam(loc){
|
readParam(loc){
|
||||||
@ -341,4 +472,3 @@ die(die_string:="UNSPECIFIED FATAL ERROR.", exit_status:=254) {
|
|||||||
MsgBox 16, FATAL ERROR, %die_string%
|
MsgBox 16, FATAL ERROR, %die_string%
|
||||||
ExitApp exit_status
|
ExitApp exit_status
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user