Home AMX User Forum AMXForums Archive Threads AMX Website/Forums

Master control for Microphone in biamp

safeermsafeerm Junior MemberPosts: 4
Please help me on the query below

I have 12 Mics inside the hall connected to biamp audio flex
Each mic has vol up, vol down, mute/unmute control & level indicator
working fine

I add one master botton to mute/unmute all the mic's & it is working

Question below:

If i press the master button mute/unmute - I want to send feedback on all the 12 mic's mute/unmute button as well as on the level indicator, how can i do this. please help me.

Below are the codes i made for the mic control for your reference


Code below for Individual Mic Control

(************************ Judg 1 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,13] // J1 Volume UP
{
PUSH:
{
IF(nJDMic1_Mute)
{
OFF[nJDMic1_Mute]
TO[dvTP,13]
OFF[dvTP,21]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge12_MIC,' 1 0',10"
}
ELSE
{
snJDMic1_Vol = MIN_VALUE(snMaxVolMic,snJDMic1_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge12_MIC,' 1 ',ITOA(snJDMic1_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snJDMic1_Vol = MIN_VALUE(snMaxVolMic,snJDMic1_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge12_MIC,' 1 ',ITOA(snJDMic1_Vol),10"
}
}

BUTTON_EVENT[dvTP,14] // J1 Volume DOWN
{
PUSH:
{
IF(nJDMic1_Mute)
{
OFF[nJDMic1_Mute]
TO[dvTP,14]
OFF[dvTP,21]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge12_MIC,' 1 0',10"
}
ELSE
{
snJDMic1_Vol = MAX_VALUE(snMinVolMic,snJDMic1_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge12_MIC,' 1 ',ITOA(snJDMic1_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snJDMic1_Vol = MAX_VALUE(snMinVolMic,snJDMic1_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge12_MIC,' 1 ',ITOA(snJDMic1_Vol),10"
}
}

BUTTON_EVENT[dvTP,21] // J1 Volume Mute
{
PUSH:
{
nJDMic1_Mute = !nJDMic1_Mute
[dvTP,21] = ![dvTP,21]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge12_MIC,' 1 ',ITOA(nJDMic1_Mute),10"
}
}

(************************ Judge 2 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,15] // J2 Volume UP
{
PUSH:
{
IF(nJDMic2_Mute)
{
OFF[nJDMic2_Mute]
TO[dvTP,15]
OFF[dvTP,22]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge12_MIC,' 2 0',10"
}
ELSE
{
snJDMic2_Vol = MIN_VALUE(snMaxVolMic,snJDMic2_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge12_MIC,' 2 ',ITOA(snJDMic2_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snJDMic2_Vol = MIN_VALUE(snMaxVolMic,snJDMic2_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge12_MIC,' 2 ',ITOA(snJDMic2_Vol),10"
}
}

BUTTON_EVENT[dvTP,16] // J2 Volume DOWN
{
PUSH:
{
IF(nJDMic2_Mute)
{
OFF[nJDMic2_Mute]
TO[dvTP,16]
OFF[dvTP,22]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge12_MIC,' 2 0',10"
}
ELSE
{
snJDMic2_Vol = MAX_VALUE(snMinVolMic,snJDMic2_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge12_MIC,' 2 ',ITOA(snJDMic2_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snJDMic2_Vol = MAX_VALUE(snMinVolMic,snJDMic2_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge12_MIC,' 2 ',ITOA(snJDMic2_Vol),10"
}
}

BUTTON_EVENT[dvTP,22] // J2 Volume Mute
{
PUSH:
{
nJDMic2_Mute = !nJDMic2_Mute
[dvTP,22] = ![dvTP,22]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge12_MIC,' 2 ',ITOA(nJDMic2_Mute),10"
}
}

(************************ Judge 3 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,17] // J3 Volume UP
{
PUSH:
{
IF(nJDMic3_Mute)
{
OFF[nJDMic3_Mute]
TO[dvTP,17]
OFF[dvTP,23]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge34_MIC,' 1 0',10"
}
ELSE
{
snJDMic3_Vol = MIN_VALUE(snMaxVolMic,snJDMic3_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge34_MIC,' 1 ',ITOA(snJDMic3_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snJDMic3_Vol = MIN_VALUE(snMaxVolMic,snJDMic3_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge34_MIC,' 1 ',ITOA(snJDMic3_Vol),10"
}
}

BUTTON_EVENT[dvTP,18] // J3 Volume DOWN
{
PUSH:
{
IF(nJDMic3_Mute)
{
OFF[nJDMic3_Mute]
TO[dvTP,18]
OFF[dvTP,23]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge34_MIC,' 1 0',10"
}
ELSE
{
snJDMic3_Vol = MAX_VALUE(snMinVolMic,snJDMic3_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge34_MIC,' 1 ',ITOA(snJDMic3_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snJDMic3_Vol = MAX_VALUE(snMinVolMic,snJDMic3_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge34_MIC,' 1 ',ITOA(snJDMic3_Vol),10"
}
}

BUTTON_EVENT[dvTP,23] // J3 Volume Mute
{
PUSH:
{
nJDMic3_Mute = !nJDMic3_Mute
[dvTP,23] = ![dvTP,23]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge34_MIC,' 1 ',ITOA(nJDMic3_Mute),10"
}
}

(************************ Judge 4 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,19] // J4 Volume UP
{
PUSH:
{
IF(nJDMic4_Mute)
{
OFF[nJDMic4_Mute]
TO[dvTP,19]
OFF[dvTP,24]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge34_MIC,' 2 0',10"
}
ELSE
{
snJDMic4_Vol = MIN_VALUE(snMaxVolMic,snJDMic4_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge34_MIC,' 2 ',ITOA(snJDMic4_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snJDMic4_Vol = MIN_VALUE(snMaxVolMic,snJDMic4_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge34_MIC,' 2 ',ITOA(snJDMic4_Vol),10"
}
}

BUTTON_EVENT[dvTP,20] // J4 Volume DOWN
{
PUSH:
{
IF(nJDMic4_Mute)
{
OFF[nJDMic4_Mute]
TO[dvTP,20]
OFF[dvTP,24]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge34_MIC,' 2 0',10"
}
ELSE
{
snJDMic4_Vol = MAX_VALUE(snMinVolMic,snJDMic4_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge34_MIC,' 2 ',ITOA(snJDMic4_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snJDMic4_Vol = MAX_VALUE(snMinVolMic,snJDMic4_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cJudge34_MIC,' 2 ',ITOA(snJDMic4_Vol),10"
}
}

BUTTON_EVENT[dvTP,24] // J4 Volume Mute
{
PUSH:
{
nJDMic4_Mute = !nJDMic4_Mute
[dvTP,24] = ![dvTP,24]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge34_MIC,' 2 ',ITOA(nJDMic4_Mute),10"
}
}

(************************ Public Prosecutor 1 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,76] // PP1 Volume UP
{
PUSH:
{
IF(nPPMic1_Mute)
{
OFF[nPPMic1_Mute]
TO[dvTP,76]
OFF[dvTP,79]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPP12_MIC,' 1 0',10"
}
ELSE
{
snPPMic1_Vol = MIN_VALUE(snMaxVolMic,snPPMic1_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPP12_MIC,' 1 ',ITOA(snPPMic1_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snPPMic1_Vol = MIN_VALUE(snMaxVolMic,snPPMic1_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPP12_MIC,' 1 ',ITOA(snPPMic1_Vol),10"
}
}

BUTTON_EVENT[dvTP,78] // PP1 Volume DOWN
{
PUSH:
{
IF(nPPMic1_Mute)
{
OFF[nPPMic1_Mute]
TO[dvTP,78]
OFF[dvTP,79]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPP12_MIC,' 1 0',10"
}
ELSE
{
snPPMic1_Vol = MAX_VALUE(snMinVolMic,snPPMic1_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPP12_MIC,' 1 ',ITOA(snPPMic1_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snPPMic1_Vol = MAX_VALUE(snMinVolMic,snPPMic1_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPP12_MIC,' 1 ',ITOA(snPPMic1_Vol),10"
}
}

BUTTON_EVENT[dvTP,79] // PP1 Volume Mute
{
PUSH:
{
nPPMic1_Mute = !nPPMic1_Mute
[dvTP,79] = ![dvTP,79]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPP12_MIC,' 1 ',ITOA(nPPMic1_Mute),10"
}
}

(************************ Public Prosecutor 2 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,80] // PP2 Volume UP
{
PUSH:
{
IF(nPPMic2_Mute)
{
OFF[nPPMic2_Mute]
TO[dvTP,80]
OFF[dvTP,84]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPP12_MIC,' 2 0',10"
}
ELSE
{
snPPMic2_Vol = MIN_VALUE(snMaxVolMic,snPPMic2_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPP12_MIC,' 2 ',ITOA(snPPMic2_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snPPMic2_Vol = MIN_VALUE(snMaxVolMic,snPPMic2_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPP12_MIC,' 2 ',ITOA(snPPMic2_Vol),10"
}
}

BUTTON_EVENT[dvTP,81] // PP2 Volume DOWN
{
PUSH:
{
IF(nPPMic2_Mute)
{
OFF[nPPMic2_Mute]
TO[dvTP,81]
OFF[dvTP,84]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPP12_MIC,' 2 0',10"
}
ELSE
{
snPPMic2_Vol = MAX_VALUE(snMinVolMic,snPPMic2_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPP12_MIC,' 2 ',ITOA(snPPMic2_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snPPMic2_Vol = MAX_VALUE(snMinVolMic,snPPMic2_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPP12_MIC,' 2 ',ITOA(snPPMic2_Vol),10"
}
}

BUTTON_EVENT[dvTP,84] // PP2 Volume Mute
{
PUSH:
{
nPPMic2_Mute = !nPPMic2_Mute
[dvTP,84] = ![dvTP,84]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPP12_MIC,' 2 ',ITOA(nPPMic2_Mute),10"
}
}

(************************ Defendent 1 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,60] // DF1 Volume UP
{
PUSH:
{
IF(nDFMic1_Mute)
{
OFF[nDFMic1_Mute]
TO[dvTP,60]
OFF[dvTP,64]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cDF12_MIC,' 1 0',10"
}
ELSE
{
snDFMic1_Vol = MIN_VALUE(snMaxVolMic,snDFMic1_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cDF12_MIC,' 1 ',ITOA(snDFMic1_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snDFMic1_Vol = MIN_VALUE(snMaxVolMic,snDFMic1_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cDF12_MIC,' 1 ',ITOA(snDFMic1_Vol),10"
}
}

BUTTON_EVENT[dvTP,61] // DF1 Volume DOWN
{
PUSH:
{
IF(nDFMic1_Mute)
{
OFF[nDFMic1_Mute]
TO[dvTP,61]
OFF[dvTP,64]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cDF12_MIC,' 1 0',10"
}
ELSE
{
snDFMic1_Vol = MAX_VALUE(snMinVolMic,snDFMic1_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cDF12_MIC,' 1 ',ITOA(snDFMic1_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snDFMic1_Vol = MAX_VALUE(snMinVolMic,snDFMic1_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cDF12_MIC,' 1 ',ITOA(snDFMic1_Vol),10"
}
}

BUTTON_EVENT[dvTP,64] // DF1 Volume Mute
{
PUSH:
{
nDFMic1_Mute = !nDFMic1_Mute
[dvTP,64] = ![dvTP,64]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cDF12_MIC,' 1 ',ITOA(nDFMic1_Mute),10"
}
}

(************************ Defendent 2 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,62] // DF2 Volume UP
{
PUSH:
{
IF(nDFMic2_Mute)
{
OFF[nDFMic2_Mute]
TO[dvTP,62]
OFF[dvTP,65]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cDF12_MIC,' 2 0',10"
}
ELSE
{
snDFMic2_Vol = MIN_VALUE(snMaxVolMic,snDFMic2_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cDF12_MIC,' 2 ',ITOA(snDFMic2_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snDFMic2_Vol = MIN_VALUE(snMaxVolMic,snDFMic2_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cDF12_MIC,' 2 ',ITOA(snDFMic2_Vol),10"
}
}

BUTTON_EVENT[dvTP,63] // DF2 Volume DOWN
{
PUSH:
{
IF(nDFMic2_Mute)
{
OFF[nDFMic2_Mute]
TO[dvTP,63]
OFF[dvTP,65]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cDF12_MIC,' 2 0',10"
}
ELSE
{
snDFMic2_Vol = MAX_VALUE(snMinVolMic,snDFMic2_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cDF12_MIC,' 2 ',ITOA(snDFMic2_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snDFMic2_Vol = MAX_VALUE(snMinVolMic,snDFMic2_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cDF12_MIC,' 2 ',ITOA(snDFMic2_Vol),10"
}
}

BUTTON_EVENT[dvTP,65] // DF2 Volume Mute
{
PUSH:
{
nDFMic2_Mute = !nDFMic2_Mute
[dvTP,65] = ![dvTP,65]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cDF12_MIC,' 2 ',ITOA(nDFMic2_Mute),10"
}
}

(************************ Multipurpose 1 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,25] // MP1 Volume UP
{
PUSH:
{
IF(nMPMic1_Mute)
{
OFF[nMPMic1_Mute]
TO[dvTP,25]
OFF[dvTP,29]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cMP12_MIC,' 1 0',10"
}
ELSE
{
snMPMic1_Vol = MIN_VALUE(snMaxVolMic,snMPMic1_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cMP12_MIC,' 1 ',ITOA(snMPMic1_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snMPMic1_Vol = MIN_VALUE(snMaxVolMic,snMPMic1_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cMP12_MIC,' 1 ',ITOA(snMPMic1_Vol),10"
}
}

BUTTON_EVENT[dvTP,26] // MP1 Volume DOWN
{
PUSH:
{
IF(nMPMic1_Mute)
{
OFF[nMPMic1_Mute]
TO[dvTP,26]
OFF[dvTP,29]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cMP12_MIC,' 1 0',10"
}
ELSE
{
snMPMic1_Vol = MAX_VALUE(snMinVolMic,snMPMic1_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cMP12_MIC,' 1 ',ITOA(snMPMic1_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snMPMic1_Vol = MAX_VALUE(snMinVolMic,snMPMic1_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cMP12_MIC,' 1 ',ITOA(snMPMic1_Vol),10"
}
}

BUTTON_EVENT[dvTP,29] // MP1 Volume Mute
{
PUSH:
{
nMPMic1_Mute = !nMPMic1_Mute
[dvTP,29] = ![dvTP,29]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cMP12_MIC,' 1 ',ITOA(nMPMic1_Mute),10"
}
}

(************************ Multipurpose 2 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,27] // MP2 Volume UP
{
PUSH:
{
IF(nMPMic2_Mute)
{
OFF[nMPMic2_Mute]
TO[dvTP,27]
OFF[dvTP,30]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cMP12_MIC,' 2 0',10"
}
ELSE
{
snMPMic2_Vol = MIN_VALUE(snMaxVolMic,snMPMic2_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cDF12_MIC,' 2 ',ITOA(snMPMic2_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snMPMic2_Vol = MIN_VALUE(snMaxVolMic,snMPMic2_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cDF12_MIC,' 2 ',ITOA(snMPMic2_Vol),10"
}
}

BUTTON_EVENT[dvTP,28] // MP2 Volume DOWN
{
PUSH:
{
IF(nMPMic2_Mute)
{
OFF[nMPMic2_Mute]
TO[dvTP,28]
OFF[dvTP,30]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cMP12_MIC,' 2 0',10"
}
ELSE
{
snMPMic2_Vol = MAX_VALUE(snMinVolMic,snMPMic2_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cMP12_MIC,' 2 ',ITOA(snMPMic2_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snMPMic2_Vol = MAX_VALUE(snMinVolMic,snMPMic2_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cMP12_MIC,' 2 ',ITOA(snMPMic2_Vol),10"
}
}

BUTTON_EVENT[dvTP,30] // MP2 Volume Mute
{
PUSH:
{
nMPMic2_Mute = !nMPMic2_Mute
[dvTP,30] = ![dvTP,30]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cMP12_MIC,' 2 ',ITOA(nMPMic2_Mute),10"
}
}

(************************ Plaintiff 1 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,69] // PT1 Volume UP
{
PUSH:
{
IF(nPTMic1_Mute)
{
OFF[nPTMic1_Mute]
TO[dvTP,69]
OFF[dvTP,82]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPT12_MIC,' 1 0',10"
}
ELSE
{
snPTMic1_Vol = MIN_VALUE(snMaxVolMic,snPTMic1_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPT12_MIC,' 1 ',ITOA(snPTMic1_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snPTMic1_Vol = MIN_VALUE(snMaxVolMic,snPTMic1_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPT12_MIC,' 1 ',ITOA(snPTMic1_Vol),10"
}
}

BUTTON_EVENT[dvTP,70] // PT1 Volume DOWN
{
PUSH:
{
IF(nPTMic1_Mute)
{
OFF[nPTMic1_Mute]
TO[dvTP,70]
OFF[dvTP,82]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPT12_MIC,' 1 0',10"
}
ELSE
{
snPTMic1_Vol = MAX_VALUE(snMinVolMic,snPTMic1_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPT12_MIC,' 1 ',ITOA(snPTMic1_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snPTMic1_Vol = MAX_VALUE(snMinVolMic,snPTMic1_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPT12_MIC,' 1 ',ITOA(snPTMic1_Vol),10"
}
}

BUTTON_EVENT[dvTP,82] // PT1 Volume Mute
{
PUSH:
{
nPTMic1_Mute = !nPTMic1_Mute
[dvTP,82] = ![dvTP,82]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPT12_MIC,' 1 ',ITOA(nPTMic1_Mute),10"
}
}

(************************ Plaintiff 2 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,71] // PT2 Volume UP
{
PUSH:
{
IF(nPTMic2_Mute)
{
OFF[nPTMic2_Mute]
TO[dvTP,71]
OFF[dvTP,83]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPT12_MIC,' 2 0',10"
}
ELSE
{
snPTMic2_Vol = MIN_VALUE(snMaxVolMic,snPTMic2_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPT12_MIC,' 2 ',ITOA(snPTMic2_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snPTMic2_Vol = MIN_VALUE(snMaxVolMic,snPTMic2_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPT12_MIC,' 2 ',ITOA(snPTMic2_Vol),10"
}
}

BUTTON_EVENT[dvTP,77] // PT2 Volume DOWN
{
PUSH:
{
IF(nPTMic2_Mute)
{
OFF[nPTMic2_Mute]
TO[dvTP,77]
OFF[dvTP,83]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPT12_MIC,' 2 0',10"
}
ELSE
{
snPTMic2_Vol = MAX_VALUE(snMinVolMic,snPTMic2_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPT12_MIC,' 2 ',ITOA(snPTMic2_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snPTMic2_Vol = MAX_VALUE(snMinVolMic,snPTMic2_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cPT12_MIC,' 2 ',ITOA(snPTMic2_Vol),10"
}
}

BUTTON_EVENT[dvTP,83] // PT2 Volume Mute
{
PUSH:
{
nPTMic2_Mute = !nPTMic2_Mute
[dvTP,83] = ![dvTP,83]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPT12_MIC,' 2 ',ITOA(nPTMic2_Mute),10"
}
}

(************************ Translator 1 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,89] // Trans1 Volume UP
{
PUSH:
{
IF(nTRNSMic1_Mute)
{
OFF[nTRNSMic1_Mute]
TO[dvTP,89]
OFF[dvTP,95]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cTRANS12_MIC,' 1 0',10"
}
ELSE
{
snTRNSMic1_Vol = MIN_VALUE(snMaxVolMic,snTRNSMic1_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cTRANS12_MIC,' 1 ',ITOA(snTRNSMic1_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snTRNSMic1_Vol = MIN_VALUE(snMaxVolMic,snTRNSMic1_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cTRANS12_MIC,' 1 ',ITOA(snTRNSMic1_Vol),10"
}
}

BUTTON_EVENT[dvTP,90] // Trans Mic1 Volume DOWN
{
PUSH:
{
IF(nTRNSMic1_Mute)
{
OFF[nTRNSMic1_Mute]
TO[dvTP,90]
OFF[dvTP,95]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cTRANS12_MIC,' 1 0',10"
}
ELSE
{
snTRNSMic1_Vol = MAX_VALUE(snMinVolMic,snTRNSMic1_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cTRANS12_MIC,' 1 ',ITOA(snTRNSMic1_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snTRNSMic1_Vol = MAX_VALUE(snMinVolMic,snTRNSMic1_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cTRANS12_MIC,' 1 ',ITOA(snTRNSMic1_Vol),10"
}
}

BUTTON_EVENT[dvTP,95] // Trans Mic 1 Volume Mute
{
PUSH:
{
nTRNSMic1_Mute = !nTRNSMic1_Mute
[dvTP,95] = ![dvTP,95]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cTRANS12_MIC,' 1 ',ITOA(nTRNSMic1_Mute),10"
}
}

(************************ Translator 2 MIC VOLUME CONTROL****************)

BUTTON_EVENT[dvTP,96] // TRANS Mic2 Volume UP
{
PUSH:
{
IF(nTRNSMic2_Mute)
{
OFF[nTRNSMic2_Mute]
TO[dvTP,96]
OFF[dvTP,98]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cTRANS12_MIC,' 2 0',10"
}
ELSE
{
snTRNSMic2_Vol = MIN_VALUE(snMaxVolMic,snTRNSMic2_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cTRANS12_MIC,' 2 ',ITOA(snTRNSMic2_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snTRNSMic2_Vol = MIN_VALUE(snMaxVolMic,snTRNSMic2_Vol+cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cTRANS12_MIC,' 2 ',ITOA(snTRNSMic2_Vol),10"
}
}

BUTTON_EVENT[dvTP,97] // TRANS MIC2 Volume DOWN
{
PUSH:
{
IF(nTRNSMic2_Mute)
{
OFF[nTRNSMic2_Mute]
TO[dvTP,97]
OFF[dvTP,98]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cTRANS12_MIC,' 2 0',10"
}
ELSE
{
snTRNSMic2_Vol = MAX_VALUE(snMinVolMic,snTRNSMic2_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cTRANS12_MIC,' 2 ',ITOA(snTRNSMic2_Vol),10"
}
}
HOLD[3,REPEAT]:
{
snTRNSMic2_Vol = MAX_VALUE(snMinVolMic,snTRNSMic2_Vol-cBiampIncrement)
SEND_STRING dvBiamp1,"'SET 2 FDRLVL ',cTRANS12_MIC,' 2 ',ITOA(snTRNSMic2_Vol),10"
}
}

BUTTON_EVENT[dvTP,98] // PT2 Volume Mute
{
PUSH:
{
nTRNSMic2_Mute = !nTRNSMic2_Mute
[dvTP,98] = ![dvTP,98]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cTRANS12_MIC,' 2 ',ITOA(nTRNSMic2_Mute),10"
}
}

Code below for Master control:

BUTTON_EVENT[dvTP,99] // Select All Mic
{
PUSH:
{
nMICMUTEALL = !nMICMUTEALL
[dvTP,99] = ![dvTP,99]
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge12_MIC,' 1 ',ITOA(nMICMUTEALL),10"
WAIT 2
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge12_MIC,' 2 ',ITOA(nMICMUTEALL),10"
WAIT 4
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge34_MIC,' 1 ',ITOA(nMICMUTEALL),10"
WAIT 6
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cJudge34_MIC,' 2 ',ITOA(nMICMUTEALL),10"
WAIT 8
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPP12_MIC,' 1 ',ITOA(nMICMUTEALL),10"
WAIT 10
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPP12_MIC,' 2 ',ITOA(nMICMUTEALL),10"
WAIT 12
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cDF12_MIC,' 1 ',ITOA(nMICMUTEALL),10"
WAIT 14
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cDF12_MIC,' 2 ',ITOA(nMICMUTEALL),10"
WAIT 16
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cMP12_MIC,' 1 ',ITOA(nMICMUTEALL),10"
WAIT 18
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cMP12_MIC,' 2 ',ITOA(nMICMUTEALL),10"
WAIT 20
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPT12_MIC,' 1 ',ITOA(nMICMUTEALL),10"
WAIT 22
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cPT12_MIC,' 2 ',ITOA(nMICMUTEALL),10"
WAIT 24
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cTRANS12_MIC,' 1 ',ITOA(nMICMUTEALL),10"
WAIT 26
SEND_STRING dvBiamp1,"'SET 2 FDRMUTE ',cTRANS12_MIC,' 2 ',ITOA(nMICMUTEALL),10"
}
}


Code below for level control

(******************* Judge Mic 1 Volume Level ************************)
IF(nJDMic1_Mute) // IF Judge Mic 1 Muted?
{
SEND_LEVEL dvTP,5,0
}
ELSE
{
SEND_LEVEL dvTP,5,nConvertLevel(snJDMic1_Vol,snMinVolMic,snMaxVolMic)
}
(******************* Judge Mic 2 Volume Level ************************)
IF(nJDMic2_Mute) // IF Judge Mic 2 Muted?
{
SEND_LEVEL dvTP,4,0
}
ELSE
{
SEND_LEVEL dvTP,4,nConvertLevel(snJDMic2_Vol,snMinVolMic,snMaxVolMic)
}

(******************* Judge Mic 3 Volume Level ************************)
IF(nJDMic3_Mute) // IF Judge Mic 3 Muted?
{
SEND_LEVEL dvTP,3,0
}
ELSE
{
SEND_LEVEL dvTP,3,nConvertLevel(snJDMic3_Vol,snMinVolMic,snMaxVolMic)
}
(******************* Judge Mic 4 Volume Level ************************)
IF(nJDMic4_Mute) // IF Judge Mic 4 Muted?
{
SEND_LEVEL dvTP,2,0
}
ELSE
{
SEND_LEVEL dvTP,2,nConvertLevel(snJDMic4_Vol,snMinVolMic,snMaxVolMic)
}

(******************* Defendent Mic 1 Volume Level ************************)
IF(nDFMic1_Mute) // IF Defendent Mic 1 Muted?
{
SEND_LEVEL dvTP,13,0
}
ELSE
{
SEND_LEVEL dvTP,13,nConvertLevel(snDFMic1_Vol,snMinVolMic,snMaxVolMic)
}
(******************* Defendent Mic 2 Volume Level ************************)
IF(nDFMic2_Mute) // IF Judge Mic 2 Muted?
{
SEND_LEVEL dvTP,14,0
}
ELSE
{
SEND_LEVEL dvTP,14,nConvertLevel(snDFMic2_Vol,snMinVolMic,snMaxVolMic)
}

(******************* Public Prosecutor Mic 1 Volume Level ************************)
IF(nPPMic1_Mute) // IF Judge Mic 1 Muted?
{
SEND_LEVEL dvTP,9,0
}
ELSE
{
SEND_LEVEL dvTP,9,nConvertLevel(snPPMic1_Vol,snMinVolMic,snMaxVolMic)
}
(******************* Public Prosecutor Mic 2 Volume Level ************************)
IF(nPPMic2_Mute) // IF Judge Mic 2 Muted?
{
SEND_LEVEL dvTP,10,0
}
ELSE
{
SEND_LEVEL dvTP,10,nConvertLevel(snPPMic2_Vol,snMinVolMic,snMaxVolMic)
}

(******************* Multipurpose Mic 1 Volume Level ************************)
IF(nMPMic1_Mute) // IF Judge Mic 1 Muted?
{
SEND_LEVEL dvTP,15,0
}
ELSE
{
SEND_LEVEL dvTP,15,nConvertLevel(snMPMic1_Vol,snMinVolMic,snMaxVolMic)
}
(******************* Multipurpose Mic 2 Volume Level ************************)
IF(nMPMic2_Mute) // IF Judge Mic 2 Muted?
{
SEND_LEVEL dvTP,16,0
}
ELSE
{
SEND_LEVEL dvTP,16,nConvertLevel(snMPMic2_Vol,snMinVolMic,snMaxVolMic)
}

(******************* Plaintiff Mic 1 Volume Level ************************)
IF(nPTMic1_Mute) // IF Judge Mic 1 Muted?
{
SEND_LEVEL dvTP,17,0
}
ELSE
{
SEND_LEVEL dvTP,17,nConvertLevel(snPTMic1_Vol,snMinVolMic,snMaxVolMic)
}
(******************* Plaintiff Mic 2 Volume Level ************************)
IF(nPTMic2_Mute) // IF Judge Mic 2 Muted?
{
SEND_LEVEL dvTP,18,0
}
ELSE
{
SEND_LEVEL dvTP,18,nConvertLevel(snPTMic2_Vol,snMinVolMic,snMaxVolMic)
}

(******************* Translator Mic 1 Volume Level ************************)
IF(nTRNSMic1_Mute) // IF Judge Mic 1 Muted?
{
SEND_LEVEL dvTP,6,0
}
ELSE
{
SEND_LEVEL dvTP,6,nConvertLevel(snTRNSMic1_Vol,snMinVolMic,snMaxVolMic)
}
(******************* Translator Mic 2 Volume Level ************************)
IF(nTRNSMic2_Mute) // IF Judge Mic 2 Muted?
{
SEND_LEVEL dvTP,7,0
}
ELSE
{
SEND_LEVEL dvTP,7,nConvertLevel(snTRNSMic2_Vol,snMinVolMic,snMaxVolMic)
}
Sign In or Register to comment.