trying to add soundboard stuff

This commit is contained in:
David Daily 2020-06-03 15:19:18 -05:00
parent d1ec2fed49
commit 551afbc885

10
VB.ahk
View File

@ -204,6 +204,9 @@ midiCCin:
Case 3: Case 3:
adjustToggle("Bus[1].Mute", val) adjustToggle("Bus[1].Mute", val)
Return Return
Case 4: ; Mute mic input
adjustToggle("Strip[1].Mute", val)
Return
Default: Default:
Return Return
} }
@ -248,6 +251,10 @@ midiCCin:
Case 3: ; Media Play/Pause Case 3: ; Media Play/Pause
Send, {Media_Play_Pause} Send, {Media_Play_Pause}
Return Return
Case 4: ; Set button / death sound
Random, temp, 1, 4
adjustString("Recorder.Load", "D:\Combine\metropolice\die" . temp . ".wav")
Return
Case 7: ; Rewind Case 7: ; Rewind
if (val) if (val)
{ {
@ -394,7 +401,8 @@ adjustToggle(func, togg) {
} }
adjustString(func, str) { adjustString(func, str) {
DllCall(VMR_FUNCTIONS["SetParameterFloat"], "AStr", func, "Float", str, "Str") MsgBox % str
DllCall(VMR_FUNCTIONS["SetParameterFloat"], "AStr", func, "AStr", str, "Str")
} }