trying to add soundboard stuff

This commit is contained in:
David Daily 2020-06-03 15:19:18 -05:00
parent d1ec2fed49
commit 551afbc885
1 changed files with 9 additions and 1 deletions

10
VB.ahk
View File

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