{table}
',base64=function(s){return window.btoa(unescape(encodeURIComponent(s)))},format=function(s,c){return s.replace(/{(\w+)}/g,function(m,p){return c[p]})};return function(table,name,filename){if(!table.nodeType)table=document.getElementById(table);var ctx={worksheet:name||"Worksheet",table:table.innerHTML};document.getElementById("dlink").href=uri+base64(format(template,ctx));document.getElementById("dlink").download=filename;document.getElementById("dlink").click()}}();function getReportEqType(type){var typeStringChinese=["参量均衡","低调","高调","1阶全通","2阶全通"];var typeStringEnglish=["PEQ","Lo_Shelf","Hi_Shelf","APF 1st","APF 2nd"];if(isChinese){return typeStringChinese[type]}else{return typeStringEnglish[type]}}function getReportLink(type){var typeString=["CHA","CHB","CHC","CHD","CH1","CH2","CH3","CH4","CH5","CH6","CH7","CH8"];return typeString[type]}function getXoverType(type){var typeStringChinese=["宁克","贝赛尔","巴特沃斯"];var typeStringEnglish=["Link_Ril","Bessel","ButterW"];if(isChinese){return typeStringChinese[type]}else{return typeStringEnglish[type]}}function getXoverSlope(oct,octL,mode){var typeString;var index;if(mode===0){typeString=["12dB/oct","24dB/oct","36dB/oct","48dB/oct"];index=octL}else{typeString=["12dB/oct","18dB/oct","24dB/oct","30dB/oct","36dB/oct","42dB/oct","48dB/oct"];index=oct}return typeString[index]}function initReportDisplay(){var i,index;var eleArray=[];var polar_positive;var polar_negative;var source_open;var source_close;var lockText;if(isChinese){polar_positive="正相";polar_negative="反相";lockText=CHINESE_LOCK_TEXT;source_open="打开";source_close="关闭"}else{polar_positive="+";polar_negative="-";lockText=ENGLISH_LOCK_TEXT;source_open="On";source_close="Off"}var iLock=currentLockData.nIn_LockData;var oLock=currentLockData.nOut_LockData;setElementLanguageValue("report_print","打印","Print");setElementLanguageValue("report_close","关闭","Close");setLabelElementLanguageValue("report_excel","导出Excel","Export Excel");var firstColumnText;if(isChinese){firstColumnText=FIRST_COLUMN_CHINESE}else{firstColumnText=FIRST_COLUMN_ENGLISH}for(i=0;i4){index=curButtonNo-5;DrawOutLine(index)}else{index=curButtonNo-1;DrawInLine(index)}}function drawLinkLine(no){var index;if(no>4){index=no-5;DrawOutLineF(index)}else{index=no-1;DrawInLineF(index)}}function DrawDefaultLine(){var i;for(i=0;i<4;i++){if(m_nCurIn_EQLine[i]){m_nInMapEQ[i].Conver_In_EQPoint();DrawInLineF(i)}}for(i=0;i<8;i++){if(m_nCurOut_EQLine[i]){m_nOutMapEQ[i].Conver_Out_PHLPoint();DrawOutLineF(i)}}}function renewAllLinePoints(){var nSel,i;for(nSel=0;nSel<4;nSel++){for(i=0;i<6;i++){m_nInMapEQ[nSel].filterArray[i].UpDataPoint(false)}m_nInMapEQ[nSel].Conver_In_EQPoint();svgDrawCurve.drawCurveLine(nSel+1,m_nInMapEQ[nSel].m_nPointF)}for(nSel=0;nSel<8;nSel++){for(i=0;i<11;i++){if(i===6||i===7||i===8){continue}m_nOutMapEQ[nSel].filterArray[i].UpDataPoint(false)}m_nOutMapEQ[nSel].Conver_Out_PHLPoint();svgDrawCurve.drawCurveLine(nSel+5,m_nOutMapEQ[nSel].m_nPointF)}}function DrawInLine(nSel){DrawInLineF(nSel);DrawInLineText()}function DrawInLineText(){var InSize=6;var str;for(var i=InSize-1;i>=0;i--){var Filter=m_nInMapEQ[curButtonNo-1].filterArray[i];var nFilterType=Filter.GetFilterType();var pointDataText=new PointClass(m_nInMapEQ[curButtonNo-1].filterArray[i].m_nShowRect.left+28,m_nInMapEQ[curButtonNo-1].filterArray[i].m_nShowRect.top);str=m_nInMapEQ[curButtonNo-1].filterArray[i].GetShowData();var point=m_nInMapEQ[curButtonNo-1].filterArray[i].FDToRect();if(nFilterType===eqType.AllPass_Shelf1){svgDrawCurve.drawDataText(pointDataText,i+1,str,"#ff0000",true);svgDrawCurve.drawChannelText(point,i+1,"#ff0000")}else if(nFilterType===eqType.AllPass_Shelf2){svgDrawCurve.drawDataText(pointDataText,i+1,str,"#ff0000",false);svgDrawCurve.drawChannelText(point,i+1,"#ff0000")}else{svgDrawCurve.drawDataText(pointDataText,i+1,str,"#ffffff",false);svgDrawCurve.drawChannelText(point,i+1,"#ffffff")}pointOfLeft=new PointClass(m_nInMapEQ[curButtonNo-1].filterArray[i].m_nLRect.left,m_nInMapEQ[curButtonNo-1].filterArray[i].m_nLRect.top);svgDrawCurve.drawLeftRect(pointOfLeft,i+1);var pointOfRight=new PointClass(m_nInMapEQ[curButtonNo-1].filterArray[i].m_nRRect.left,m_nInMapEQ[curButtonNo-1].filterArray[i].m_nRRect.top);svgDrawCurve.drawRightRect(pointOfRight,i+1)}}function UpdataLineData(index){var InSize=6;var str;for(var i=InSize-1;i>=0;i--){var Filter=m_nInMapEQ[curButtonNo-1].filterArray[i];var nFilterType=Filter.GetFilterType();var pointDataText=new PointClass(m_nInMapEQ[curButtonNo-1].filterArray[i].m_nShowRect.left+28,m_nInMapEQ[curButtonNo-1].filterArray[i].m_nShowRect.top);str=m_nInMapEQ[curButtonNo-1].filterArray[i].GetShowData();var point=m_nInMapEQ[curButtonNo-1].filterArray[i].FDToRect();if(nFilterType===eqType.AllPass_Shelf1){svgDrawCurve.drawDataText(pointDataText,i+1,str,"#ff0000",true);svgDrawCurve.drawChannelText(point,i+1,"#ff0000")}else if(nFilterType===eqType.AllPass_Shelf2){svgDrawCurve.drawDataText(pointDataText,i+1,str,"#ff0000",false);svgDrawCurve.drawChannelText(point,i+1,"#ff0000")}else{svgDrawCurve.drawDataText(pointDataText,i+1,str,"#ffffff",false);svgDrawCurve.drawChannelText(point,i+1,"#ffffff")}pointOfLeft=new PointClass(m_nInMapEQ[curButtonNo-1].filterArray[i].m_nLRect.left,m_nInMapEQ[curButtonNo-1].filterArray[i].m_nLRect.top);svgDrawCurve.drawLeftRect(pointOfLeft,i+1);var pointOfRight=new PointClass(m_nInMapEQ[curButtonNo-1].filterArray[i].m_nRRect.left,m_nInMapEQ[curButtonNo-1].filterArray[i].m_nRRect.top);svgDrawCurve.drawRightRect(pointOfRight,i+1)}}function DrawOtherInLockLine(){for(var i=0;i<4;i++){if(m_nLinkIn_EQLine[i]||m_nCurIn_EQLine[i]){m_nInMapEQ[i].Conver_In_EQPoint();svgDrawCurve.drawCurveLine(i+1,m_nInMapEQ[i].m_nPointF)}}}var pointsInArray=[];function DrawFollowInLine(){svgDrawCurve.drawCurveLine(linkIndex+1,pointsInArray.shift());svgDrawCurve.drawCurveLine(curButtonNo,m_nInMapEQ[curButtonNo-1].m_nPointF);DrawInLineText()}function DrawInLineF(nSel){if(nSel>=0){var linkArray=getLinkInputArray(nSel+1);var followLineMark=false;if(linkArray.length>0){for(var t=linkArray.length-1;t>=0;t--){for(i=0;i<6;i++){m_nInMapEQ[linkArray[t]].filterArray[i].UpDataPoint(false)}if(!followLineMark&&m_nLinkIn_EQLine[linkArray[t]]&&!ignoreFollowLine){followLineMark=true;ignoreFollowLine=false;linkIndex=linkArray[t];m_nInMapEQ[linkIndex].Conver_In_EQPoint();pointsInArray.push(m_nInMapEQ[linkIndex].m_nPointF.slice(0));setTimeout("DrawFollowInLine()",700)}else{ignoreFollowLine=false;m_nInMapEQ[linkArray[t]].Conver_In_EQPoint();svgDrawCurve.drawCurveLine(linkArray[t]+1,m_nInMapEQ[linkArray[t]].m_nPointF)}}}for(var i=0;i<6;i++){m_nInMapEQ[nSel].filterArray[i].UpDataPoint(false)}m_nInMapEQ[nSel].Conver_In_EQPoint();svgDrawCurve.drawCurveLine(curButtonNo,m_nInMapEQ[nSel].m_nPointF);if(controlsData.buttonStates.buttonPhaseCurveStatus[curButtonNo-1]){svgDrawCurve.linePhaseElement.setAttribute("visibility","visible");svgDrawCurve.drawCurveLine(curButtonNo+20,m_nInMapEQ[nSel].m_nPol_Point)}else{svgDrawCurve.linePhaseElement.setAttribute("visibility","hidden")}svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo)}svgDrawCurve.drawOtherCurveLine()}function DrawOutLine(nSel){DrawOutLineF(nSel);DrawOutLineText()}function DrawOutLineText(){var InSize=11;for(var i=InSize-1;i>=0;i--){if(i===6||i===7||i===8){continue}var Filter=m_nOutMapEQ[curButtonNo-5].filterArray[i];var nFilterType=Filter.GetFilterType();m_nOutMapEQ[curButtonNo-5].filterArray[i].HLToRect();var pointDataText=new PointClass(m_nOutMapEQ[curButtonNo-5].filterArray[i].m_nShowRect.left+28,m_nOutMapEQ[curButtonNo-5].filterArray[i].m_nShowRect.top);var str=m_nOutMapEQ[curButtonNo-5].filterArray[i].GetShowData();if(nFilterType===eqType.AllPass_Shelf1){svgDrawCurve.drawDataText(pointDataText,i+1,str,"#ff0000",true)}else if(nFilterType===eqType.AllPass_Shelf2){svgDrawCurve.drawDataText(pointDataText,i+1,str,"#ff0000",false)}else{svgDrawCurve.drawDataText(pointDataText,i+1,str,"#ffffff",false)}if(i<6){var point=m_nOutMapEQ[curButtonNo-5].filterArray[i].FDToRect();if(nFilterType===eqType.AllPass_Shelf1||nFilterType===eqType.AllPass_Shelf2){svgDrawCurve.drawChannelText(point,i+1,"#ff0000")}else{svgDrawCurve.drawChannelText(point,i+1,"#ffffff")}pointOfLeft=new PointClass(m_nOutMapEQ[curButtonNo-5].filterArray[i].m_nLRect.left,m_nOutMapEQ[curButtonNo-5].filterArray[i].m_nLRect.top);svgDrawCurve.drawLeftRect(pointOfLeft,i+1);pointOfRight=new PointClass(m_nOutMapEQ[curButtonNo-5].filterArray[i].m_nRRect.left,m_nOutMapEQ[curButtonNo-5].filterArray[i].m_nRRect.top);svgDrawCurve.drawRightRect(pointOfRight,i+1)}else{var point=m_nOutMapEQ[curButtonNo-5].filterArray[i].HLToRect();if(nFilterType===eqType.AllPass_Shelf1||nFilterType===eqType.AllPass_Shelf2){svgDrawCurve.drawChannelText(point,i+1,"#ff0000")}else{svgDrawCurve.drawChannelText(point,i+1,"#ffffff")}}}}function DrawOtherLockOutLine(){for(var i=0;i<8;i++){if(m_nLinkOut_EQLine[i]||m_nCurOut_EQLine[i]){m_nOutMapEQ[i].Conver_Out_PHLPoint();svgDrawCurve.drawCurveLine(i+5,m_nOutMapEQ[i].m_nPointF)}}}var linkIndex;var pointsOutArray=[];var ignoreFollowLine=false;function DrawFollowOutLine(){svgDrawCurve.drawCurveLine(linkIndex+5,pointsOutArray.shift());svgDrawCurve.drawCurveLine(curButtonNo,m_nOutMapEQ[curButtonNo-5].m_nPointF);DrawOutLineText()}function DrawOutLineF(nSel){var i;if(nSel>=0){var linkArray=getLinkOutArray(nSel+5);var followLineMark=false;if(linkArray.length>0){for(var t=linkArray.length-1;t>=0;t--){for(i=0;i<11;i++){if(i===6||i===7||i===8){continue}m_nOutMapEQ[linkArray[t]].filterArray[i].UpDataPoint(false)}if(!followLineMark&&m_nLinkOut_EQLine[linkArray[t]]&&!ignoreFollowLine){followLineMark=true;ignoreFollowLine=false;linkIndex=linkArray[t];m_nOutMapEQ[linkIndex].Conver_Out_PHLPoint();pointsOutArray.push(m_nOutMapEQ[linkIndex].m_nPointF.slice(0));setTimeout("DrawFollowOutLine()",700)}else{ignoreFollowLine=false;m_nOutMapEQ[linkArray[t]].Conver_Out_PHLPoint();svgDrawCurve.drawCurveLine(linkArray[t]+5,m_nOutMapEQ[linkArray[t]].m_nPointF)}}}for(i=0;i<11;i++){if(i===6||i===7||i===8){continue}m_nOutMapEQ[nSel].filterArray[i].UpDataPoint(false)}m_nOutMapEQ[nSel].Conver_Out_PHLPoint();svgDrawCurve.drawCurveLine(curButtonNo,m_nOutMapEQ[nSel].m_nPointF);if(controlsData.buttonStates.buttonPhaseCurveStatus[curButtonNo-1]){svgDrawCurve.linePhaseElement.setAttribute("visibility","visible");svgDrawCurve.drawCurveLine(curButtonNo+20,m_nOutMapEQ[nSel].m_nPol_Point)}else{svgDrawCurve.linePhaseElement.setAttribute("visibility","hidden")}svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo)}svgDrawCurve.drawOtherCurveLine()}function refreshKeepStep(){for(var i=1;i<5;i++){for(var j=1;j<7;j++){eqDataKeepStep(i,j)}}for(i=5;i<13;i++){for(j=1;j<9;j++){eqDataKeepStep(i,j)}}}function eqDataKeepStep(routeID,channelID){switch(routeID){case 1:inputDataKeepStep(currentGroupData.dataInputA,m_nInMapEQ[0],channelID);break;case 2:inputDataKeepStep(currentGroupData.dataInputB,m_nInMapEQ[1],channelID);break;case 3:inputDataKeepStep(currentGroupData.dataInputC,m_nInMapEQ[2],channelID);break;case 4:inputDataKeepStep(currentGroupData.dataInputD,m_nInMapEQ[3],channelID);break;case 5:outDataKeepStep(currentGroupData.dataOut1,m_nOutMapEQ[0],channelID);break;case 6:outDataKeepStep(currentGroupData.dataOut2,m_nOutMapEQ[1],channelID);break;case 7:outDataKeepStep(currentGroupData.dataOut3,m_nOutMapEQ[2],channelID);break;case 8:outDataKeepStep(currentGroupData.dataOut4,m_nOutMapEQ[3],channelID);break;case 9:outDataKeepStep(currentGroupData.dataOut5,m_nOutMapEQ[4],channelID);break;case 10:outDataKeepStep(currentGroupData.dataOut6,m_nOutMapEQ[5],channelID);break;case 11:outDataKeepStep(currentGroupData.dataOut7,m_nOutMapEQ[6],channelID);break;case 12:outDataKeepStep(currentGroupData.dataOut8,m_nOutMapEQ[7],channelID);break;default:break}}function inputDataKeepStep(inputData,inMapEq,channelID){switch(channelID){case 1:inMapEq.filterArray[0].SetPublicEQ(inputData.InEQ.EQ1);inMapEq.filterArray[0].UpDataPoint(false);break;case 2:inMapEq.filterArray[1].SetPublicEQ(inputData.InEQ.EQ2);inMapEq.filterArray[1].UpDataPoint(false);break;case 3:inMapEq.filterArray[2].SetPublicEQ(inputData.InEQ.EQ3);inMapEq.filterArray[2].UpDataPoint(false);break;case 4:inMapEq.filterArray[3].SetPublicEQ(inputData.InEQ.EQ4);inMapEq.filterArray[3].UpDataPoint(false);break;case 5:inMapEq.filterArray[4].SetPublicEQ(inputData.InEQ.EQ5);inMapEq.filterArray[4].UpDataPoint(false);break;case 6:inMapEq.filterArray[5].SetPublicEQ(inputData.InEQ.EQ6);inMapEq.filterArray[5].UpDataPoint(false);break;default:break}}function outDataKeepStep(outData,outMapEq,channelID){switch(channelID){case 1:outMapEq.filterArray[0].SetPublicEQ(outData.OutEQ.EQ1);outMapEq.filterArray[0].UpDataPoint(false);break;case 2:outMapEq.filterArray[1].SetPublicEQ(outData.OutEQ.EQ2);outMapEq.filterArray[1].UpDataPoint(false);break;case 3:outMapEq.filterArray[2].SetPublicEQ(outData.OutEQ.EQ3);outMapEq.filterArray[2].UpDataPoint(false);break;case 4:outMapEq.filterArray[3].SetPublicEQ(outData.OutEQ.EQ4);outMapEq.filterArray[3].UpDataPoint(false);break;case 5:outMapEq.filterArray[4].SetPublicEQ(outData.OutEQ.EQ5);outMapEq.filterArray[4].UpDataPoint(false);break;case 6:outMapEq.filterArray[5].SetPublicEQ(outData.OutEQ.EQ6);outMapEq.filterArray[5].UpDataPoint(false);break;case 7:outMapEq.filterArray[9].SetFilterType(eqType.HPF_SEQ);outMapEq.filterArray[9].SetPublicXOver(outData.HPFData);outMapEq.filterArray[9].UpDataPoint(false);break;case 8:outMapEq.filterArray[10].SetFilterType(eqType.LPF_SEQ);outMapEq.filterArray[10].SetPublicXOver(outData.LPFData);outMapEq.filterArray[10].UpDataPoint(false);break;default:break}}function curveDataKeepStep(routeID,channelID){switch(routeID){case 1:curveInputDataKeepStep(currentGroupData.dataInputA,m_nInMapEQ[0],channelID);break;case 2:curveInputDataKeepStep(currentGroupData.dataInputB,m_nInMapEQ[1],channelID);break;case 3:curveInputDataKeepStep(currentGroupData.dataInputC,m_nInMapEQ[2],channelID);break;case 4:curveInputDataKeepStep(currentGroupData.dataInputD,m_nInMapEQ[3],channelID);break;case 5:curveOutDataKeepStep(currentGroupData.dataOut1,m_nOutMapEQ[0],channelID);break;case 6:curveOutDataKeepStep(currentGroupData.dataOut2,m_nOutMapEQ[1],channelID);break;case 7:curveOutDataKeepStep(currentGroupData.dataOut3,m_nOutMapEQ[2],channelID);break;case 8:curveOutDataKeepStep(currentGroupData.dataOut4,m_nOutMapEQ[3],channelID);break;case 9:curveOutDataKeepStep(currentGroupData.dataOut5,m_nOutMapEQ[4],channelID);break;case 10:curveOutDataKeepStep(currentGroupData.dataOut6,m_nOutMapEQ[5],channelID);break;case 11:curveOutDataKeepStep(currentGroupData.dataOut7,m_nOutMapEQ[6],channelID);break;case 12:curveOutDataKeepStep(currentGroupData.dataOut8,m_nOutMapEQ[7],channelID);break;default:break}}function curveInputDataKeepStep(inputData,inMapEq,channelID){switch(channelID){case 1:inMapEq.filterArray[0].returnPublicEQ(inputData.InEQ.EQ1);updateEqDataDisplay(inputData.InEQ.EQ1,channelID);break;case 2:inMapEq.filterArray[1].returnPublicEQ(inputData.InEQ.EQ2);updateEqDataDisplay(inputData.InEQ.EQ2,channelID);break;case 3:inMapEq.filterArray[2].returnPublicEQ(inputData.InEQ.EQ3);updateEqDataDisplay(inputData.InEQ.EQ3,channelID);break;case 4:inMapEq.filterArray[3].returnPublicEQ(inputData.InEQ.EQ4);updateEqDataDisplay(inputData.InEQ.EQ4,channelID);break;case 5:inMapEq.filterArray[4].returnPublicEQ(inputData.InEQ.EQ5);updateEqDataDisplay(inputData.InEQ.EQ5,channelID);break;case 6:inMapEq.filterArray[5].returnPublicEQ(inputData.InEQ.EQ6);updateEqDataDisplay(inputData.InEQ.EQ6,channelID);break;default:break}}function curveOutDataKeepStep(outData,outMapEq,channelID){switch(channelID){case 1:outMapEq.filterArray[0].returnPublicEQ(outData.OutEQ.EQ1);updateEqDataDisplay(outData.OutEQ.EQ1,channelID);break;case 2:outMapEq.filterArray[1].returnPublicEQ(outData.OutEQ.EQ2);updateEqDataDisplay(outData.OutEQ.EQ2,channelID);break;case 3:outMapEq.filterArray[2].returnPublicEQ(outData.OutEQ.EQ3);updateEqDataDisplay(outData.OutEQ.EQ3,channelID);break;case 4:outMapEq.filterArray[3].returnPublicEQ(outData.OutEQ.EQ4);updateEqDataDisplay(outData.OutEQ.EQ4,channelID);break;case 5:outMapEq.filterArray[4].returnPublicEQ(outData.OutEQ.EQ5);updateEqDataDisplay(outData.OutEQ.EQ5,channelID);break;case 6:outMapEq.filterArray[5].returnPublicEQ(outData.OutEQ.EQ6);updateEqDataDisplay(outData.OutEQ.EQ6,channelID);break;case 10:outMapEq.filterArray[9].returnPublicXOver(outData.HPFData);updateXoverDataDisplay(outData.HPFData,eqType.HPF_SEQ);break;case 11:outMapEq.filterArray[10].returnPublicXOver(outData.LPFData);updateXoverDataDisplay(outData.LPFData,eqType.LPF_SEQ);break;default:break}}function updateXoverDataDisplay(xover,type){var freqElement;switch(type){case eqType.HPF_SEQ:freqElement=document.getElementById("text_hpf_frequency");freqElement.value=getFrequencyDisplay(xover.HL_freq);break;case eqType.LPF_SEQ:freqElement=document.getElementById("text_lpf_frequency");freqElement.value=getFrequencyDisplay(xover.HL_freq);break;default:break}}function updateEqDataDisplay(nEQ,channelID){var freqElement,bandwidthElement,slopeElement,levelElement;switch(channelID){case 1:freqElement=document.getElementById("text_eq1_frequency");bandwidthElement=document.getElementById("text_eq1_bandwidth");slopeElement=document.getElementById("text_eq1_slope");levelElement=document.getElementById("text_eq1_gain");setSliderPosition(controlsId.SLIDER_EQ1_THUMP,nEQ.level);updateEqGainButton(1);break;case 2:freqElement=document.getElementById("text_eq2_frequency");bandwidthElement=document.getElementById("text_eq2_bandwidth");slopeElement=document.getElementById("text_eq2_slope");levelElement=document.getElementById("text_eq2_gain");setSliderPosition(controlsId.SLIDER_EQ2_THUMP,nEQ.level);updateEqGainButton(2);break;case 3:freqElement=document.getElementById("text_eq3_frequency");bandwidthElement=document.getElementById("text_eq3_bandwidth");slopeElement=document.getElementById("text_eq3_slope");levelElement=document.getElementById("text_eq3_gain");setSliderPosition(controlsId.SLIDER_EQ3_THUMP,nEQ.level);updateEqGainButton(3);break;case 4:freqElement=document.getElementById("text_eq4_frequency");bandwidthElement=document.getElementById("text_eq4_bandwidth");slopeElement=document.getElementById("text_eq4_slope");levelElement=document.getElementById("text_eq4_gain");setSliderPosition(controlsId.SLIDER_EQ4_THUMP,nEQ.level);updateEqGainButton(4);break;case 5:freqElement=document.getElementById("text_eq5_frequency");bandwidthElement=document.getElementById("text_eq5_bandwidth");slopeElement=document.getElementById("text_eq5_slope");levelElement=document.getElementById("text_eq5_gain");setSliderPosition(controlsId.SLIDER_EQ5_THUMP,nEQ.level);updateEqGainButton(5);break;case 6:freqElement=document.getElementById("text_eq6_frequency");bandwidthElement=document.getElementById("text_eq6_bandwidth");slopeElement=document.getElementById("text_eq6_slope");levelElement=document.getElementById("text_eq6_gain");setSliderPosition(controlsId.SLIDER_EQ6_THUMP,nEQ.level);updateEqGainButton(6);break;case 7:break;case 8:break;default:break}freqElement.value=getFrequencyDisplay(nEQ.freq);bandwidthElement.value=getBandwidthDisplay(nEQ.bw);slopeElement.value=getSlopeDisplay(nEQ.bw);levelElement.value=getEqGainDisplay(nEQ.level);updateAllEqGainButton(channelID)}function drawGrid(){this.drawHorizontalLine();this.drawVerticalLine()}var lineArrayVertical=new Array(27);function drawVerticalLine(){var i;var startPoint=20;startPoint=docToWidth(startPoint,curveWidth);for(i=0;i<9;i++){verLinePoint[i]=(i+2)*10}for(i=0;i<9;i++){verLinePoint[i+9]=(i+2)*100}for(i=0;i<9;i++){verLinePoint[i+18]=(i+2)*1e3}verLinePoint[27]=2e4;for(i=0;i<28;i++){verLinePoint[i]=docToWidth(verLinePoint[i],curveWidth+1)}for(i=1;i<27;i++){lineArrayVertical[i]=document.createElementNS("http://www.w3.org/2000/svg","line");lineArrayVertical[i].setAttribute("x1",verLinePoint[i]+.5);lineArrayVertical[i].setAttribute("y1",0);lineArrayVertical[i].setAttribute("x2",verLinePoint[i]+.5);lineArrayVertical[i].setAttribute("y2",curveHeight+1);lineArrayVertical[i].setAttribute("stroke","#009100");lineArrayVertical[i].setAttribute("stroke-width","1");curve_svg.appendChild(lineArrayVertical[i])}}var lineArrayHorizontal=new Array(7);function drawHorizontalLine(){var coordinateY=["12.5%","25.1%","37.5%","50.1%","62.5%","75.1%","87.5%"];for(var i=0;i<7;i++){lineArrayHorizontal[i]=document.createElementNS("http://www.w3.org/2000/svg","line");lineArrayHorizontal[i].setAttribute("x1",0);lineArrayHorizontal[i].setAttribute("y1",coordinateY[i]);lineArrayHorizontal[i].setAttribute("x2",curveWidth);lineArrayHorizontal[i].setAttribute("y2",coordinateY[i]);lineArrayHorizontal[i].setAttribute("stroke","#009100");lineArrayHorizontal[i].setAttribute("stroke-width",1);curve_svg.appendChild(lineArrayHorizontal[i])}}window.COLOR_INPUT_A="#00FFFF";window.COLOR_INPUT_B="#E9127B";window.COLOR_INPUT_C="ffff00";window.COLOR_INPUT_D="#027BC0";window.COLOR_OUT1="#FF0000";window.COLOR_OUT2="#00C000";window.COLOR_OUT3="#8080C0";window.COLOR_OUT4="#FF40FF";window.COLOR_OUT5="#00C0C0";window.COLOR_OUT6="#C0A800";window.COLOR_OUT7="#FF8000";window.COLOR_OUT8="#0000FF";window.COLOR_INPUT=["#00FFFF","#E9127B","#027BC0","#ffff00"];window.COLOR_OUT=["#FF0000","#00C000","#8080C0","#FF40FF","#00C0C0","#C0A800","#FF8000","#0000FF"];function CurveEQ(){this.m_nPoint=new Array(frequency.length);this.m_nPointF=new Array(frequency.length);this.m_nPol_Point=new Array(frequency.length);this.m_nHight=0;this.m_nWidth=0;this.m_nRotueType=0;this.m_nEQCol=0;this.m_nEQLineCol=COLOR_INPUT_A;this.m_bAllByPass=0;this.m_pFilter=new FilterClass;this.m_nRouteID=0;this.filterArray=[];this.polar=false;CurveEQ.prototype.Init=function(){var size;var m,i;m=curveHeight;this.m_nHight=curveHeight;this.m_nWidth=curveWidth;for(i=0;i0){if(pMod>=pi){pMod=pMod-2*pi}else{if(pMod<=-pi){pMod=pMod+2*pi}}}}this.m_nPointF[i].x=docToWidthF(frequency[i],this.m_nWidth);this.m_nPointF[i].y=docToHighF(Mod,this.m_nHight)+TopGap;Mod=0;if(this.polar){pMod=pMod-pi;if(pMod>=pi){pMod=pMod-2*pi}else{if(pMod<-pi){pMod=pMod+2*pi}}}pMod=pMod*12.73239566454288;this.m_nPol_Point[i].y=docToHighF(pMod,this.m_nHight)+TopGap;if(this.m_nPol_Point[i].y>=this.m_nHight){this.m_nPol_Point[i].y=this.m_nPol_Point[i].y+2}pMod=0}};CurveEQ.prototype.Conver_Out_PHLPoint=function(){var nType,i;var size;var Mod=0;var pMod=0;size=this.filterArray.length;for(i=0;i0){if(pMod>=pi){pMod=pMod-2*pi}else{if(pMod<=-pi){pMod=pMod+2*pi}}}}this.m_nPointF[i].y=docToHighF(Mod,this.m_nHight)+TopGap;Mod=0;if(this.polar){pMod=pMod-pi;if(pMod>=pi){pMod=pMod-2*pi}else{if(pMod<-pi){pMod=pMod+2*pi}}}pMod=pMod*12.73239566454288;this.m_nPol_Point[i].y=docToHighF(pMod,this.m_nHight)+TopGap;if(this.m_nPol_Point[i].y>=this.m_nHight){this.m_nPol_Point[i].y=this.m_nPol_Point[i].y+2}pMod=0}};CurveEQ.prototype.UpDataOutPoint=function(){for(var i=0;i4){m_nCurOut_EQLine[oldNo-5]=0}else{m_nCurIn_EQLine[oldNo-1]=0}if(curNo>4){m_nCurOut_EQLine[curNo-5]=1}else{m_nCurIn_EQLine[curNo-1]=1}};DrawWithSVG.prototype.drawCurveLine=function(index,pointArray){var svgElement;switch(index){case 1:svgElement=this.lineInputElement[0];break;case 2:svgElement=this.lineInputElement[1];break;case 3:svgElement=this.lineInputElement[2];break;case 4:svgElement=this.lineInputElement[3];break;case 5:svgElement=this.lineOutElement[0];break;case 6:svgElement=this.lineOutElement[1];break;case 7:svgElement=this.lineOutElement[2];break;case 8:svgElement=this.lineOutElement[3];break;case 9:svgElement=this.lineOutElement[4];break;case 10:svgElement=this.lineOutElement[5];break;case 11:svgElement=this.lineOutElement[6];break;case 12:svgElement=this.lineOutElement[7];break;case 21:svgElement=this.linePhaseElement;svgElement.setAttribute("stroke",COLOR_INPUT[0]);break;case 22:svgElement=this.linePhaseElement;svgElement.setAttribute("stroke",COLOR_INPUT[1]);break;case 23:svgElement=this.linePhaseElement;svgElement.setAttribute("stroke",COLOR_INPUT[2]);break;case 24:svgElement=this.linePhaseElement;svgElement.setAttribute("stroke",COLOR_INPUT[3]);break;case 25:svgElement=this.linePhaseElement;svgElement.setAttribute("stroke",COLOR_OUT[0]);break;case 26:svgElement=this.linePhaseElement;svgElement.setAttribute("stroke",COLOR_OUT[1]);break;case 27:svgElement=this.linePhaseElement;svgElement.setAttribute("stroke",COLOR_OUT[2]);break;case 28:svgElement=this.linePhaseElement;svgElement.setAttribute("stroke",COLOR_OUT[3]);break;case 29:svgElement=this.linePhaseElement;svgElement.setAttribute("stroke",COLOR_OUT[4]);break;case 30:svgElement=this.linePhaseElement;svgElement.setAttribute("stroke",COLOR_OUT[5]);break;case 31:svgElement=this.linePhaseElement;svgElement.setAttribute("stroke",COLOR_OUT[6]);break;case 32:svgElement=this.linePhaseElement;svgElement.setAttribute("stroke",COLOR_OUT[7]);break;default:break}var pointsString=pointArray[0].x+","+pointArray[0].y;for(var i=1;i2){svgDrawCurve.eqChannelTextElement[index-1].setAttribute("cursor","w-resize")}else{svgDrawCurve.eqChannelTextElement[index-1].setAttribute("cursor","move")}}function setLittleRRectDown(element,index,isleft){element.onmousedown=function(event){paramsOfRRect.index=index;paramsOfRRect.currentX=event.pageX-curtainLeft;paramsOfRRect.currentY=event.pageY-curtainTop;paramsOfRRect.isDown=true;paramsOfRRect.flag=true;if(event.preventDefault){event.preventDefault()}else{event.returnValue=false}clearTextFocusEvent()}}function showOrHideLittleRect(){svgDrawCurve.eqLRectElement[0].setAttribute("visibility","hidden");svgDrawCurve.eqLRectElement[1].setAttribute("visibility","hidden");svgDrawCurve.eqLRectElement[2].setAttribute("visibility","hidden");svgDrawCurve.eqLRectElement[3].setAttribute("visibility","hidden");svgDrawCurve.eqLRectElement[4].setAttribute("visibility","hidden");svgDrawCurve.eqLRectElement[5].setAttribute("visibility","hidden");svgDrawCurve.eqRRectElement[0].setAttribute("visibility","hidden");svgDrawCurve.eqRRectElement[1].setAttribute("visibility","hidden");svgDrawCurve.eqRRectElement[2].setAttribute("visibility","hidden");svgDrawCurve.eqRRectElement[3].setAttribute("visibility","hidden");svgDrawCurve.eqRRectElement[4].setAttribute("visibility","hidden");svgDrawCurve.eqRRectElement[5].setAttribute("visibility","hidden");if(curEqChannel<=0||curEqChannel>6){return}var type;if(curButtonNo<5){type=m_nInMapEQ[curButtonNo-1].filterArray[curEqChannel-1].GetFilterType();if(type===eqType.Li_SEQ||type===eqType.Hi_Shelf||type===eqType.AllPass_Shelf1){return}}else{type=m_nOutMapEQ[curButtonNo-5].filterArray[curEqChannel-1].GetFilterType();if(type===eqType.Li_SEQ||type===eqType.Hi_Shelf||type===eqType.AllPass_Shelf1){return}}svgDrawCurve.eqLRectElement[curEqChannel-1].setAttribute("visibility","visible");svgDrawCurve.eqRRectElement[curEqChannel-1].setAttribute("visibility","visible")}function showOrHideEqData(){if(curEqChannel===10)curEqChannel=7;if(curEqChannel===11)curEqChannel=8;svgDrawCurve.eqDataTextElement[0].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement[1].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement[2].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement[3].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement[4].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement[5].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement[6].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement[7].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement1[0].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement1[1].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement1[2].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement1[3].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement1[4].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement1[5].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement1[6].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement1[7].setAttribute("visibility","hidden");if(curEqChannel<=0||curEqChannel>8){return}svgDrawCurve.eqDataTextElement[curEqChannel-1].setAttribute("visibility","visible");svgDrawCurve.eqDataTextElement1[curEqChannel-1].setAttribute("visibility","visible")}function hideHLPFChannelName(){svgDrawCurve.eqChannelTextElement[6].setAttribute("visibility","hidden");svgDrawCurve.eqChannelTextElement[7].setAttribute("visibility","hidden")}function showHLPFChannelName(){svgDrawCurve.eqChannelTextElement[6].setAttribute("visibility","visible");svgDrawCurve.eqChannelTextElement[7].setAttribute("visibility","visible")}window.LeftGap=0;window.TopGap=0;window.m_nShadowPoint=new Array(frequency.length);window.m_nPointF=new Array(frequency.length);window.EQPoint=frequency.length;window.m_nPol_Point=new Array(frequency.length);window.pi=3.1415926;window.FS=96e3;window.TopGap=0;window.BottomGap=0;window.AddBW=10;window.RightGap=50;window.RectSize=20;window.BWRectSize=8;window.FS=96e3;window.pi=3.1415926;window.EQPoint=frequency.length;function FilterClass(){this.m_nHigh=curveHeight;this.m_nWidth=curveWidth;this.m_pEQ=new PublicEQ(0,0,0,0,0);this.m_pXOver=new PublicXover;this.m_nShowRect=new RectClass(0,0,0,0);this.m_nPoint=new Array(frequency.length);this.m_nPol_Point=new Array(frequency.length);this.m_nFirstFreq=0;this.m_nFDSpace=new PointClass(0,0);this.m_nLSpace=0;this.m_nRSpace=0;this.m_nRect=new RectClass(0,0,0,0);this.m_nLRect=new RectClass(0,0,0,0);this.m_nRRect=new RectClass(0,0,0,0);this.m_bRectOver=false;this.m_bLRectOver=false;this.m_bRRectOver=false;this.m_bMouseDown=false;this.m_bLMouseDown=false;this.m_bRMouseDown=false;this.m_nFilterType=0;this.m_nFreq=0;this.m_nHLFreq=0;this.m_nHLShowType=0;this.m_ndB=0;this.m_nBW=0;this.m_nType=0;this.m_nOct=0;this.m_nid=0;this.m_nWidth=curveWidth;this.m_nHigh=curveHeight;this.m_bFType=0;this.m_bByPass=false;this.m_bAllByPass=false;this.m_bAllEQByPass=false;this.m_bAPF_Pass_Flag=false;this.m_bAPF_AllByPass=false;this.m_bAPF_ByPass=false;this.m_bAPF_Save_AllByPass=false;this.m_nLimit_HPFFreq=0;this.m_nLimit_LPFFreq=0;this.m_nShadowPoint=new Array(423);this.m_nShowData=["",""];FilterClass.prototype.init=function(){for(var i=0;ithis.m_nShadowPoint[EQPoint+1].x){this.m_nShadowPoint[i+1].x=this.m_nShadowPoint[EQPoint+1].x}}};FilterClass.prototype.GetBW=function(){this.m_nBW=this.m_pEQ.bw*.01+.05;return this.m_nBW};FilterClass.prototype.GetdB=function(){var ndB=0;if(this.m_bAllByPass){return ndB}else{if(this.m_bByPass){return ndB}else{ndB=this.m_pEQ.level*eqType.StepEQdB-eqType.MiddleEQdB;return ndB}}return this.m_ndB};FilterClass.prototype.GetLoType=function(){return GET_4H_BYTE(this.m_pEQ.HL_db_AP_Flag)};FilterClass.prototype.GetHiType=function(){return GET_4H_BYTE(this.m_pEQ.HL_db_AP_Flag)};FilterClass.prototype.GetByPass=function(){if(this.m_pEQ.type===eqType.AllPass_Shelf1||this.m_pEQ.type===eqType.AllPass_Shelf2){if(this.m_bAPF_AllByPass){return this.m_bAPF_AllByPass}else{if(this.m_bAPF_ByPass){return this.m_bAPF_Pass_Flag}else{return GET_4L_BYTE(this.m_pEQ.HL_db_AP_Flag)}}}else{if(this.m_bAllByPass){return this.m_bAllByPass}else{return this.m_bByPass}}};FilterClass.prototype.GetShowData=function(){var str;switch(this.m_nFilterType){case eqType.Pi_SEQ:str=this.m_nid.toString(10);str="EQ"+str+"";this.m_nShowData[0]=str;if(this.m_pEQ.freq<=eqType.End_Double_Freq){this.m_nShowData[1]="PEQ "+getFrequencyDisplay(this.m_pEQ.freq)}else{this.m_nShowData[1]="PEQ "+getFrequencyDisplay(this.m_pEQ.freq)}this.m_nShowData[1]=this.m_nShowData[1]+"Hz ";this.GetBW();str=toStringFloat(this.m_nBW,2);str=str+"Oct ";this.m_nShowData[1]=this.m_nShowData[1]+str;if(this.m_bAllByPass){str="0.0"}else{if(this.m_bByPass){str="0.0"}else{str=toStringFloat(this.GetdB(),1)}}str=str+"dB";this.m_nShowData[1]=this.m_nShowData[1]+str;break;case eqType.Li_SEQ:str=this.m_nid.toString(10);str="EQ"+str;this.m_nShowData[0]=str;if(this.m_pEQ.freq<=eqType.End_Double_Freq){this.m_nShowData[1]="Lo "+getFrequencyDisplay(this.m_pEQ.freq)}else{this.m_nShowData[1]="Lo "+getFrequencyDisplay(this.m_pEQ.freq)}this.m_nShowData[1]=this.m_nShowData[1]+"Hz ";this.m_nShowData[1]=this.m_nShowData[1]+this.GetPlayEQOct()+" ";if(this.m_bAllByPass){str="0.0"}else{if(this.m_bByPass){str="0.0"}else{str=toStringFloat(this.GetdB(),1)}}str=str+"dB";this.m_nShowData[1]=this.m_nShowData[1]+str;break;case eqType.Hi_Shelf:str=this.m_nid.toString(10);str="EQ"+str;this.m_nShowData[0]=str;if(this.m_pEQ.freq<=eqType.End_Double_Freq){this.m_nShowData[1]="Hi "+getFrequencyDisplay(this.m_pEQ.freq)}else{this.m_nShowData[1]="Hi "+getFrequencyDisplay(this.m_pEQ.freq)}this.m_nShowData[1]=this.m_nShowData[1]+"Hz ";this.m_nShowData[1]=this.m_nShowData[1]+this.GetPlayEQOct()+" ";if(this.m_bAllByPass){str="0.0"}else{if(this.m_bByPass){str="0.0"}else{str=toStringFloat(this.GetdB(),1)}}str=str+"dB";this.m_nShowData[1]=this.m_nShowData[1]+str;break;case eqType.AllPass_Shelf1:str=this.m_nid.toString(10);str="EQ"+str;this.m_nShowData[0]=str;if(this.m_pEQ.freq<=eqType.End_Double_Freq){this.m_nShowData[1]="APF 1st "+getFrequencyDisplay(this.m_pEQ.freq)}else{this.m_nShowData[1]="APF 1st "+getFrequencyDisplay(this.m_pEQ.freq)}this.m_nShowData[1]=this.m_nShowData[1]+"Hz ";this.GetBW();str=toStringFloat(this.m_nBW,2);str=str+"Oct ";this.m_nShowData[1]=this.m_nShowData[1]+this.m_nShowData[0];break;case eqType.AllPass_Shelf2:str=this.m_nid.toString(10);str="EQ"+str;this.m_nShowData[0]=str;if(this.m_pEQ.freq<=eqType.End_Double_Freq){this.m_nShowData[1]="APF 2nd "+getFrequencyDisplay(this.m_pEQ.freq)}else{this.m_nShowData[1]="APF 2nd "+getFrequencyDisplay(this.m_pEQ.freq)}this.m_nShowData[1]=this.m_nShowData[1]+"Hz ";this.GetBW();str=toStringFloat(this.m_nBW,2);str=str+"Oct ";this.m_nShowData[1]=this.m_nShowData[1]+str;break;case eqType.HPF_SEQ:if(this.m_pXOver.HL_freq<=eqType.End_Double_Freq){this.m_nShowData[0]=getFrequencyDisplay(this.m_pXOver.HL_freq)}else{this.m_nShowData[0]=getFrequencyDisplay(this.m_pXOver.HL_freq)}this.m_nShowData[0]=this.m_nShowData[0]+"Hz ";this.m_nShowData[1]="";break;case eqType.LPF_SEQ:if(this.m_pXOver.HL_freq<=eqType.End_Double_Freq){this.m_nShowData[0]=getFrequencyDisplay(this.m_pXOver.HL_freq)}else{this.m_nShowData[0]=getFrequencyDisplay(this.m_pXOver.HL_freq)}this.m_nShowData[0]=this.m_nShowData[0]+"Hz ";this.m_nShowData[1]="";break;default:break}return this.m_nShowData};FilterClass.prototype.GetSendFreq=function(){if(this.m_nFilterType===eqType.HPF_SEQ||this.m_nFilterType===eqType.LPF_SEQ){switch(this.m_nFilterType){case eqType.HPF_SEQ:this.m_nFreq=getFrequencyDisplay(this.m_pXOver.HL_freq);break;case eqType.LPF_SEQ:this.m_nFreq=getFrequencyDisplay(this.m_pXOver.HL_freq);break}}else{this.m_nFreq=getFrequencyDisplay(this.m_pEQ.freq)}return this.m_nFreq};FilterClass.prototype.GetSenddB=function(){var dB;var ndB;ndB=(parseFloat(this.m_ndB)+20)*100/10;dB=ndB.toFixed(0);return dB};FilterClass.prototype.GetSendBW=function(){var BW;BW=parseInt((this.m_nBW-.05)/.01+.05);return BW};FilterClass.prototype.GetSendFilterType=function(){return this.m_nFilterType};FilterClass.prototype.GetFilterType=function(){return this.m_nFilterType};FilterClass.prototype.SetEQID=function(nID){this.m_nid=nID};FilterClass.prototype.SetBW=function(BW){this.m_nBW=BW;this.GetSendBW()};FilterClass.prototype.SetdB=function(dB){this.m_ndB=dB;this.GetSenddB()};FilterClass.prototype.SetFilterType=function(FType){this.m_nFilterType=FType;if(this.m_pEQ){switch(this.m_nFilterType){case eqType.Param:break;case eqType.Lo_Shelf:if(this.m_nFreq>eqType.MaxLoFreq){this.m_nFreq=eqType.MaxLoFreq;this.m_pEQ.freq=eqType.MaxFreq_Index}break;case eqType.Hi_Shelf:if(this.m_nFreqthis.m_nWidth){Point1.x=this.m_nWidth;Point.x=Point1.x-20}this.m_nRect.CRect(Point,Point1);var t=this.m_nRect.top;this.m_nRect.top=this.m_nRect.top+TopGap;t=this.m_nRect.top;this.m_nRect.bottom=this.m_nRect.bottom+TopGap;this.m_nRect.left=this.m_nRect.left+LeftGap;this.m_nRect.right=this.m_nRect.right+LeftGap;switch(this.m_nFilterType){case eqType.HPF_SEQ:this.m_nShowRect.top=this.m_nRect.top+25;if(this.m_nRect.right+50>this.m_nWidth+LeftGap){this.m_nShowRect.right=this.m_nWidth+LeftGap;this.m_nShowRect.left=this.m_nShowRect.right-66}else{this.m_nShowRect.left=this.m_nRect.left;this.m_nShowRect.right=this.m_nRect.right+50}this.m_nShowRect.bottom=this.m_nRect.bottom+25;break;case eqType.LPF_SEQ:this.m_nShowRect.top=this.m_nRect.top+20;if(this.m_nRect.right+50>this.m_nWidth+LeftGap){this.m_nShowRect.right=this.m_nWidth+LeftGap;this.m_nShowRect.left=this.m_nShowRect.right-66}else{this.m_nShowRect.left=this.m_nRect.left;this.m_nShowRect.right=this.m_nRect.right+50}this.m_nShowRect.bottom=this.m_nRect.bottom+20;break;default:break}return Point};FilterClass.prototype.FDToRect=function(){var Point=new PointClass(0,0);var Point1=new PointClass(0,0);Point.x=parseInt(docToWidthF(getFrequencyDisplay(this.m_pEQ.freq),this.m_nWidth))-RectSize/2;if(this.m_bAllByPass){Point.y=parseInt(docToHighF(0,this.m_nHigh))-RectSize/2}else{if(this.m_bByPass||this.m_pEQ.type===eqType.ALLPass_SEQ1||this.m_pEQ.type===eqType.ALLPass_SEQ2){Point.y=parseInt(docToHighF(0,this.m_nHigh))-RectSize/2}else{Point.y=parseInt(docToHighF(this.GetdB(),this.m_nHigh))-RectSize/2}}if(Point.x<-(RectSize/2)){Point.x=-(RectSize/2)+2}if(Point.y<-(RectSize/2)){Point.y=-(RectSize/2)+2}if(Point.y<=0){Point.y=0}Point1.x=Point.x+20;Point1.y=Point.y+20;if(Point1.x>this.m_nWidth+3){Point1.x=this.m_nWidth+8;Point.x=Point1.x-30}if(Point1.y>this.m_nHigh+8){Point1.y=this.m_nHigh+8;Point.y=Point1.y-16}var Size=new SizeClass(16,16);this.m_nRect.CRect(Point,Point1);Point=this.m_nRect.CenterPoint();Point.x=Point.x-2;Point.y=Point.y+0;this.m_nRect.top=this.m_nRect.top+TopGap;this.m_nRect.bottom=this.m_nRect.bottom+TopGap;this.m_nRect.left=this.m_nRect.left+LeftGap;this.m_nRect.right=this.m_nRect.right+LeftGap;switch(this.m_nFilterType){case eqType.Pi_SEQ:this.m_nShowRect.left=this.m_nRect.left-100;this.m_nShowRect.right=this.m_nRect.right+100;if(this.m_nShowRect.right>this.m_nWidth+LeftGap){this.m_nShowRect.right=this.m_nWidth+LeftGap;this.m_nShowRect.left=this.m_nShowRect.right-240}else{if(this.m_nShowRect.left=eqType.ZEROEQdB){this.m_nShowRect.top=this.m_nRect.top+35;this.m_nShowRect.bottom=this.m_nRect.bottom+85}else{this.m_nShowRect.top=this.m_nRect.top-40;this.m_nShowRect.bottom=this.m_nRect.top+50}break;case eqType.Li_SEQ:case eqType.Hi_SEQ:this.m_nShowRect.left=this.m_nRect.left-100;this.m_nShowRect.right=this.m_nRect.right+100;if(this.m_nShowRect.right>this.m_nWidth+LeftGap){this.m_nShowRect.right=this.m_nWidth+LeftGap;this.m_nShowRect.left=this.m_nShowRect.right-225}else{if(this.m_nShowRect.left=eqType.ZEROEQdB){this.m_nShowRect.top=this.m_nRect.top+35;this.m_nShowRect.bottom=this.m_nRect.bottom+85}else{this.m_nShowRect.top=this.m_nRect.top-40;this.m_nShowRect.bottom=this.m_nRect.top+50}break;case eqType.AllPass_Shelf1:this.m_nShowRect.left=this.m_nRect.left-100;this.m_nShowRect.right=this.m_nRect.right+100;if(this.m_nShowRect.right>this.m_nWidth+LeftGap){this.m_nShowRect.right=this.m_nWidth+LeftGap;this.m_nShowRect.left=this.m_nShowRect.right-210}else{if(this.m_nShowRect.left=eqType.ZEROEQdB){this.m_nShowRect.top=this.m_nRect.top+35;this.m_nShowRect.bottom=this.m_nRect.bottom+85}else{this.m_nShowRect.top=this.m_nRect.top-40;this.m_nShowRect.bottom=this.m_nRect.top+50}break;case eqType.AllPass_Shelf2:this.m_nShowRect.left=this.m_nRect.left-100;this.m_nShowRect.right=this.m_nRect.right+100;if(this.m_nShowRect.right>this.m_nWidth+LeftGap){this.m_nShowRect.right=this.m_nWidth+LeftGap;this.m_nShowRect.left=this.m_nShowRect.right-220}else{if(this.m_nShowRect.left=eqType.ZEROEQdB){this.m_nShowRect.top=this.m_nRect.top+35;this.m_nShowRect.bottom=this.m_nRect.bottom+85}else{this.m_nShowRect.top=this.m_nRect.top-40;this.m_nShowRect.bottom=this.m_nRect.top+50}break;default:break}this.BWToRect();return Point};FilterClass.prototype.BWToRect=function(){var Center,Point;Point=new PointClass(0,0);Center=deepCopy(this.m_nRect.CenterPoint());if(this.GetdB()>=0){Center.y=Center.y+10}else{if(this.GetdB()<0){Center.y=Center.y-10}}var nFreq=getFrequencyDisplay(this.m_pEQ.freq);var nWidth=parseInt(docToWidthF(nFreq*Math.pow(2,this.GetBW()),this.m_nWidth))+LeftGap+AddBW;Point.x=nWidth-BWRectSize/2;this.m_nRRect.left=Point.x;this.m_nRRect.top=Center.y-BWRectSize/2;this.m_nRRect.right=Point.x+BWRectSize;this.m_nRRect.bottom=Center.y+BWRectSize/2;nWidth=parseInt(docToWidthF(nFreq/Math.pow(2,this.GetBW()),this.m_nWidth))+LeftGap-AddBW;Point.x=nWidth+BWRectSize/2;this.m_nLRect.right=Point.x;this.m_nLRect.left=Point.x-BWRectSize;this.m_nLRect.top=Center.y-BWRectSize/2;this.m_nLRect.bottom=Center.y+BWRectSize/2};FilterClass.prototype.UpDataPoint=function(nFlag){var i;switch(this.m_nFilterType){case eqType.Pi_SEQ:if(nFlag){this.SetSenddB(this.m_pEQ.level)}if(this.m_bAllByPass){for(i=0;i=pi){temp_Pol=temp_Pol-2*pi}if(temp_Pol<=-pi){temp_Pol=temp_Pol+2*pi}}this.m_nPoint[j]=tmp;tmp=0;this.m_nPol_Point[j]=temp_Pol;temp_Pol=0}};FilterClass.prototype.UpDataLPF=function(){var i;var LPF_FsPi,f;var w0;var LPF_fre,temp_Pol,temp1,temp2;var LPF_type,LPF_oct;var alphal1,alphal2;var Bessel_LPF_Qa=new Array(4);var temp_ai;var Bessel_LPF_Qb=new Array(4);var temp_bi;var temp_a0=new Array(4);var temp_a1=new Array(4);var temp_a2=new Array(4);var temp_b0=new Array(4);var temp_b1=new Array(4);var temp_b2=new Array(4);var LPF_Q=new Array(4);var a1,a2,b1,b2,b3;var A,B,C,D,EE;var w0_cValue,w0_sValue,w_l,alph_l,alphal;var LPF_Wf;var tmp=0;LPF_fre=getFrequencyDisplay(this.m_pXOver.HL_freq);LPF_type=this.m_pXOver.HL_Type;if(LPF_type===eqType.L_R){LPF_oct=this.m_pXOver.LR_Level}else{LPF_oct=this.m_pXOver.HL_Oct}LPF_FsPi=6544985e-11;if(LPF_type===eqType.Bessel){switch(LPF_oct){case eqType.Oct_12dB:LPF_fre=LPF_fre/1.3616541287;Bessel_LPF_Qa[0]=1;Bessel_LPF_Qb[0]=.3333333333;Bessel_LPF_Qa[1]=0;Bessel_LPF_Qb[1]=0;Bessel_LPF_Qa[2]=0;Bessel_LPF_Qb[2]=0;Bessel_LPF_Qa[3]=0;Bessel_LPF_Qb[3]=0;break;case eqType.Oct_18dB:LPF_fre=LPF_fre/1.75567236868;Bessel_LPF_Qa[0]=.5693712514;Bessel_LPF_Qb[0]=.154812441;Bessel_LPF_Qa[1]=.430628846;Bessel_LPF_Qb[1]=0;Bessel_LPF_Qa[2]=0;Bessel_LPF_Qb[2]=0;Bessel_LPF_Qa[3]=0;Bessel_LPF_Qb[3]=0;break;case eqType.Oct_24dB:LPF_fre=LPF_fre/2.1139176749;Bessel_LPF_Qa[0]=.369;Bessel_LPF_Qb[0]=.087858766;Bessel_LPF_Qa[1]=.6278294896;Bessel_LPF_Qb[1]=.109408;Bessel_LPF_Qa[2]=0;Bessel_LPF_Qb[2]=0;Bessel_LPF_Qa[3]=0;Bessel_LPF_Qb[3]=0;break;case eqType.Oct_30dB:LPF_fre=LPF_fre/1;Bessel_LPF_Qa[0]=.6656;Bessel_LPF_Qb[0]=0;Bessel_LPF_Qa[1]=1.1402;Bessel_LPF_Qb[1]=.4128;Bessel_LPF_Qa[2]=.6216;Bessel_LPF_Qb[2]=.3245;Bessel_LPF_Qa[3]=0;Bessel_LPF_Qb[3]=0;break;case eqType.Oct_36dB:LPF_fre=LPF_fre/1;Bessel_LPF_Qa[0]=1.2217;Bessel_LPF_Qb[0]=.3887;Bessel_LPF_Qa[1]=.9686;Bessel_LPF_Qb[1]=.3505;Bessel_LPF_Qa[2]=.5131;Bessel_LPF_Qb[2]=.2756;Bessel_LPF_Qa[3]=0;Bessel_LPF_Qb[3]=0;break;case eqType.Oct_42dB:LPF_fre=LPF_fre/1;Bessel_LPF_Qa[0]=.5937;Bessel_LPF_Qb[0]=0;Bessel_LPF_Qa[1]=1.0944;Bessel_LPF_Qb[1]=.3395;Bessel_LPF_Qa[2]=.8304;Bessel_LPF_Qb[2]=.3011;Bessel_LPF_Qa[3]=.4332;Bessel_LPF_Qb[3]=.2381;break;case eqType.Oct_48dB:LPF_fre=LPF_fre/3.17961723751;Bessel_LPF_Qa[0]=.117235677;Bessel_LPF_Qb[0]=.02064747;Bessel_LPF_Qa[1]=.226516664;Bessel_LPF_Qb[1]=.0259273886;Bessel_LPF_Qa[2]=.3067559;Bessel_LPF_Qb[2]=.0294683265;Bessel_LPF_Qa[3]=.3494916166;Bessel_LPF_Qb[3]=.031272257;break}w0=LPF_fre*LPF_FsPi;alphal1=Math.tan(w0*.5);alphal2=alphal1*alphal1;for(i=0;i<4;i++){temp_ai=Bessel_LPF_Qa[i];temp_bi=Bessel_LPF_Qb[i];if(temp_ai===0){temp_a0[i]=1;temp_a1[i]=0;temp_a2[i]=0;temp_b0[i]=1;temp_b1[i]=0;temp_b2[i]=0}else{temp_a0[i]=alphal2+temp_ai*alphal1+temp_bi;temp_a1[i]=2*alphal2-2*temp_bi;temp_a2[i]=alphal2-temp_ai*alphal1+temp_bi;temp_b0[i]=alphal2;temp_b1[i]=2*alphal2;temp_b2[i]=alphal2}}}else{switch(LPF_oct){case eqType.Oct_12dB:if(LPF_type===eqType.L_R){LPF_Q[0]=1;LPF_Q[1]=0;LPF_Q[2]=0;LPF_Q[3]=0}if(LPF_type===eqType.ButtWorth){LPF_Q[0]=.70422535;LPF_Q[1]=0;LPF_Q[2]=0;LPF_Q[3]=0}break;case eqType.Oct_18dB:if(LPF_type===eqType.L_R){LPF_Q[0]=1;LPF_Q[1]=.70422535211;LPF_Q[2]=0;LPF_Q[3]=0}if(LPF_type===eqType.ButtWorth){LPF_Q[0]=1;LPF_Q[1]=.5;LPF_Q[2]=0;LPF_Q[3]=0}break;case eqType.Oct_24dB:if(LPF_type===eqType.L_R){LPF_Q[0]=.70422535211;LPF_Q[1]=.70422535211;LPF_Q[2]=0;LPF_Q[3]=0}if(LPF_type===eqType.ButtWorth){LPF_Q[0]=.92592593;LPF_Q[1]=.38167939;LPF_Q[2]=0;LPF_Q[3]=0}break;case eqType.Oct_30dB:if(LPF_type===eqType.L_R){LPF_Q[0]=1;LPF_Q[1]=.62;LPF_Q[2]=.62;LPF_Q[3]=0}if(LPF_type===eqType.ButtWorth){LPF_Q[0]=1;LPF_Q[1]=.8064616129;LPF_Q[2]=.3086417953;LPF_Q[3]=0}break;case eqType.Oct_36dB:if(LPF_type===eqType.L_R){LPF_Q[0]=1;LPF_Q[1]=.5;LPF_Q[2]=.5;LPF_Q[3]=0}if(LPF_type===eqType.ButtWorth){LPF_Q[0]=.96153846;LPF_Q[1]=.70422535211;LPF_Q[2]=.2590673575;LPF_Q[3]=0}break;case eqType.Oct_42dB:if(LPF_type===eqType.L_R){LPF_Q[0]=1;LPF_Q[1]=.453134315;LPF_Q[2]=.92592592593;LPF_Q[3]=.453134315}if(LPF_type===eqType.ButtWorth){LPF_Q[0]=1;LPF_Q[1]=.90909090909;LPF_Q[2]=.625;LPF_Q[3]=.2222222222}break;case eqType.Oct_48dB:if(LPF_type===eqType.L_R){LPF_Q[0]=.92592592593;LPF_Q[1]=.373134315;LPF_Q[2]=.92592592593;LPF_Q[3]=.373134315}if(LPF_type===eqType.ButtWorth){LPF_Q[0]=.98039216;LPF_Q[1]=.83333333;LPF_Q[2]=.55555556;LPF_Q[3]=.1953125}break}w0=LPF_fre*LPF_FsPi;w0_cValue=Math.cos(w0);w0_sValue=Math.sin(w0);w_l=w0*.5;alph_l=Math.tan(w_l);for(i=0;i<4;i++){alphal=w0_sValue*LPF_Q[i];if(LPF_Q[i]===0){temp_a0[i]=1;temp_a1[i]=0;temp_a2[i]=0;temp_b0[i]=1;temp_b1[i]=0;temp_b2[i]=0}else{temp_a0[i]=1+alphal;if(temp_a0[i]===0){temp_a0[i]=1e-10}temp_a1[i]=-2*w0_cValue;temp_a2[i]=1-alphal;temp_b0[i]=(1-w0_cValue)*.5;temp_b1[i]=2*temp_b0[i];temp_b2[i]=temp_b0[i]}}if(LPF_oct===eqType.Oct_18dB||LPF_oct===eqType.Oct_30dB||LPF_oct===eqType.Oct_42dB){temp_a0[0]=alph_l+LPF_Q[0];if(temp_a0[0]===0){temp_a0[0]=1e-10}temp_a1[0]=alph_l-LPF_Q[0];temp_a2[0]=0;temp_b0[0]=alph_l;temp_b1[0]=alph_l;temp_b2[0]=0}}tmp=0;temp_Pol=0;for(j=0;j=pi){temp_Pol=temp_Pol-2*pi}if(temp_Pol<=-pi){temp_Pol=temp_Pol+2*pi}}this.m_nPoint[j]=tmp;tmp=0;this.m_nPol_Point[j]=temp_Pol;temp_Pol=0}};FilterClass.prototype.UpDataPEQ=function(){var i,f;var PEQ_FsPi,PEQ_Fc,PEQ_dB,PEQ_bw;var temp_a0,temp1,temp2,Q1,K,V;var a1,a2,b1,b2,b3;var A,B,C,D,EE,tmp;var PEQ_Wf;PEQ_Fc=getFrequencyDisplay(this.m_pEQ.freq);PEQ_dB=this.GetdB();PEQ_bw=this.GetBW();PEQ_FsPi=32724923474e-15;K=Math.tan(PEQ_FsPi*PEQ_Fc);Q1=Math.sqrt(Math.pow(2,PEQ_bw))/(Math.pow(2,PEQ_bw)-1);V=Math.pow(10,Math.abs(PEQ_dB)/20);if(PEQ_dB>=0){temp_a0=1/(1+K/Q1+K*K);a1=2*(K*K-1)*temp_a0;a2=(1-K/Q1+K*K)*temp_a0;b1=(1+K*V/Q1+K*K)*temp_a0;b2=2*(K*K-1)*temp_a0;b3=(1-K*V/Q1+K*K)*temp_a0}else{temp_a0=1/(1+V*K/Q1+K*K);a1=2*(K*K-1)*temp_a0;a2=(1-V*K/Q1+K*K)*temp_a0;b1=(1+K/Q1+K*K)*temp_a0;b2=2*(K*K-1)*temp_a0;b3=(1-K/Q1+K*K)*temp_a0}for(i=0;i3){this.m_nBW=3}if(this.m_nBW<.05){this.m_nBW=.05}this.m_pEQ.bw=this.GetSendBW();this.UpDataPoint(false)}else{Width=point.x-offsetR;Tmp=widthToDoc(Width,this.m_nWidth)/nFreq;this.m_nBW=Math.log(Tmp)/Math.LN10/(Math.log(2)/Math.LN10);if(this.m_nBW>3){this.m_nBW=3}if(this.m_nBW<.05){this.m_nBW=.05}this.m_pEQ.bw=this.GetSendBW();this.UpDataPoint(false)}return true};FilterClass.prototype.PointToFD=function(point){if(this.m_nFilterType===eqType.HPF_SEQ||this.m_nFilterType===eqType.LPF_SEQ){return false}var Flag=true;var Center=new PointClass(0,0);Center.x=point.x-190;Center.y=point.y-70;if(Center.x<=0){Center.x=0}if(Center.x>=this.m_nWidth){Center.x=this.m_nWidth}if(Center.y<=0){Center.y=0}if(Center.y>=this.m_nHigh){Center.y=this.m_nHigh}if(Center.y<=0){Center.y=8}this.m_nFreq=widthToDoc(Center.x,this.m_nWidth);this.m_pEQ.freq=binarySearch(frequency,this.m_nFreq);if(this.m_nFilterType!==eqType.AllPass_Shelf1&&this.m_nFilterType!==eqType.AllPass_Shelf2){this.m_ndB=highToDoc(Center.y,this.m_nHigh);if(this.m_ndB>20){this.m_ndB=20}else{if(this.m_ndB<-20){this.m_ndB=-20}}if(this.m_ndB===0){this.m_bByPass=true}else{this.m_bByPass=false;this.m_bAllByPass=false}this.m_pEQ.level=this.GetSenddB()}this.UpDataPoint(false);return Flag};FilterClass.prototype.PointToFDSpace=function(point){var Center;Center=deepCopy(this.m_nRect.CenterPoint());this.m_nFDSpace.x=point.x-Center.x;this.m_nFDSpace.y=point.y-Center.y};FilterClass.prototype.PointToLRRectSpace=function(point){if(this.m_bLMouseDown){this.m_nLSpace=point.x-this.m_nLRect.right}else{if(this.m_bRMouseDown){this.m_nRSpace=point.x-this.m_nRRect.left}}};FilterClass.prototype.PointToHLFreq=function(point,HLFreq){this.m_nLimit_LPFFreq=eqType.MinFreq_Index;this.m_nLimit_HPFFreq=eqType.MaxFreq_Index;var Flag=false;var nFreq1,LimHLFreq;var Center;Center=new PointClass(0,0);Center.x=point.x-195;Center.y=point.y-75;if(Center.x<=0){Center.x=0;if(this.m_nFilterType===eqType.HPF_SEQ){this.m_pXOver.HL_freq=eqType.MinFreq_Index;for(var i=0;i<241;i++){this.m_nPoint[i]=0}this.UpDataPoint(false);this.HLToRect();Flag=true;return Flag}}if(Center.x>=this.m_nWidth){Center.x=this.m_nWidth}LimHLFreq=getFrequencyStep(HLFreq);nFreq1=widthToDoc(Center.x,this.m_nWidth);nFreq1=getFrequencyStep(nFreq1);if(this.m_nFilterType===eqType.HPF_SEQ){if(nFreq1>LimHLFreq){if(nFreq1>this.m_nLimit_HPFFreq){nFreq1=this.m_nLimit_HPFFreq}this.m_pXOver.HL_freq=LimHLFreq;this.HLToRect();this.UpDataPoint(false);Flag=true;return Flag}else{if(nFreq1>this.m_nLimit_HPFFreq){nFreq1=this.m_nLimit_HPFFreq}this.m_pXOver.HL_freq=nFreq1;this.UpDataPoint(false);Flag=true;return Flag}}if(this.GetFilterType()===eqType.LPF_SEQ){if(nFreq10;if(down){currentStep--}else{currentStep++}if(event.preventDefault){event.preventDefault()}return false}function addTextFocusEvent(id){currentEditControl=document.getElementById(id);currentEditControl.onfocus=function(){focusElementId=id};currentEditControl.onblur=function(){focusElementId="null"}}function clearTextFocusEvent(){switch(focusElementId){case"text_gain":document.getElementById("slider_gain_thump").blur();break;case"text_eq1_gain":document.getElementById("slider_eq1_thump").blur();break;case"text_eq2_gain":document.getElementById("slider_eq2_thump").blur();break;case"text_eq3_gain":document.getElementById("slider_eq3_thump").blur();break;case"text_eq4_gain":document.getElementById("slider_eq4_thump").blur();break;case"text_eq5_gain":document.getElementById("slider_eq5_thump").blur();break;case"text_eq6_gain":document.getElementById("slider_eq6_thump").blur();break;case"text_volume_a":document.getElementById("slider_input_a_thump").blur();break;case"text_volume_b":document.getElementById("slider_input_b_thump").blur();break;case"text_volume_c":document.getElementById("slider_input_c_thump").blur();break;case"text_volume_d":document.getElementById("slider_input_d_thump").blur();break;case"text_volume_out1":document.getElementById("slider_out1_thump").blur();break;case"text_volume_out2":document.getElementById("slider_out2_thump").blur();break;case"text_volume_out3":document.getElementById("slider_out3_thump").blur();break;case"text_volume_out4":document.getElementById("slider_out4_thump").blur();break;case"text_volume_out5":document.getElementById("slider_out5_thump").blur();break;case"text_volume_out6":document.getElementById("slider_out6_thump").blur();break;case"text_volume_out7":document.getElementById("slider_out7_thump").blur();break;case"text_volume_out8":document.getElementById("slider_out8_thump").blur();break;default:break}if(document.getElementById(focusElementId)){document.getElementById(focusElementId).blur();focusElementId=null}}window.DOMMouseScroll=windowMouseWheelResponse;window.onmousewheel=windowMouseWheelResponse;function windowMouseWheelResponse(event){var ev=event?event:window.event;dispatchMouseWheelEvent(ev)}function dispatchMouseWheelEvent(event){switch(focusElementId){case"text_gate":gateFocusMouseWheelRespond(event);break;case"text_delay_millisecond":delayTimeFocusMouseWheelRespond(event);break;case"text_delay_meter":delayMeterFocusMouseWheelRespond(event);break;case"text_delay_inch":delayInchFocusMouseWheelRespond(event);break;case"text_eq1_frequency":eq1FrequencyFocusMouseWheelRespond(event);break;case"text_eq1_bandwidth":eq1BandwidthFocusMouseWheelRespond(event);break;case"text_eq1_slope":eq1SlopeFocusMouseWheelRespond(event);break;case"text_eq1_gain":eq1GainFocusMouseWheelRespond(event);break;case"text_eq2_frequency":eq2FrequencyFocusMouseWheelRespond(event);break;case"text_eq2_bandwidth":eq2BandwidthFocusMouseWheelRespond(event);break;case"text_eq2_slope":eq2SlopeFocusMouseWheelRespond(event);break;case"text_eq2_gain":eq2GainFocusMouseWheelRespond(event);break;case"text_eq3_frequency":eq3FrequencyFocusMouseWheelRespond(event);break;case"text_eq3_bandwidth":eq3BandwidthFocusMouseWheelRespond(event);break;case"text_eq3_slope":eq3SlopeFocusMouseWheelRespond(event);break;case"text_eq3_gain":eq3GainFocusMouseWheelRespond(event);break;case"text_eq4_frequency":eq4FrequencyFocusMouseWheelRespond(event);break;case"text_eq4_bandwidth":eq4BandwidthFocusMouseWheelRespond(event);break;case"text_eq4_slope":eq4SlopeFocusMouseWheelRespond(event);break;case"text_eq4_gain":eq4GainFocusMouseWheelRespond(event);break;case"text_eq5_frequency":eq5FrequencyFocusMouseWheelRespond(event);break;case"text_eq5_bandwidth":eq5BandwidthFocusMouseWheelRespond(event);break;case"text_eq5_slope":eq5SlopeFocusMouseWheelRespond(event);break;case"text_eq5_gain":eq5GainFocusMouseWheelRespond(event);break;case"text_eq6_frequency":eq6FrequencyFocusMouseWheelRespond(event);break;case"text_eq6_bandwidth":eq6BandwidthFocusMouseWheelRespond(event);break;case"text_eq6_slope":eq6SlopeFocusMouseWheelRespond(event);break;case"text_eq6_gain":eq6GainFocusMouseWheelRespond(event);break;case"text_deq1_frequency":deq1FrequencyFocusMouseWheelRespond(event);break;case"text_deq1_bandwidth":deq1BandwidthFocusMouseWheelRespond(event);break;case"text_deq1_level":deq1LevelFocusMouseWheelRespond(event);break;case"text_deq2_frequency":deq2FrequencyFocusMouseWheelRespond(event);break;case"text_deq2_bandwidth":deq2BandwidthFocusMouseWheelRespond(event);break;case"text_deq2_level":deq2LevelFocusMouseWheelRespond(event);break;case"deq1_threshold":deq1ThresholdFocusMouseWheelRespond(event);break;case"deq1_ratio":deq1RatioFocusMouseWheelRespond(event);break;case"deq1_attack_time":deq1AttackFocusMouseWheelRespond(event);break;case"deq1_release_time":deq1ReleaseFocusMouseWheelRespond(event);break;case"deq2_threshold":deq2ThresholdFocusMouseWheelRespond(event);break;case"deq2_ratio":deq2RatioFocusMouseWheelRespond(event);break;case"deq2_attack_time":deq2AttackFocusMouseWheelRespond(event);break;case"deq2_release_time":deq2ReleaseFocusMouseWheelRespond(event);break;case"text_threshold":thresholdFocusMouseWheelRespond(event);break;case"text_target_level":targetLevelFocusMouseWheelRespond(event);break;case"text_extension_ratio":extensionRatioFocusMouseWheelRespond(event);break;case"text_extension_attack":extensionAttackFocusMouseWheelRespond(event);break;case"text_extension_release":extensionReleaseFocusMouseWheelRespond(event);break;case"text_compressor":compressorFocusMouseWheelRespond(event);break;case"text_comp_ratio":compRatioFocusMouseWheelRespond(event);break;case"text_comp_attack":compAttackFocusMouseWheelRespond(event);break;case"text_comp_release":compReleaseFocusMouseWheelRespond(event);break;case"text_volume_a":volumeAFocusMouseWheelRespond(event);break;case"text_volume_b":volumeBFocusMouseWheelRespond(event);break;case"text_volume_c":volumeCFocusMouseWheelRespond(event);break;case"text_volume_d":volumeDFocusMouseWheelRespond(event);break;case"text_volume_out1":volumeOut1FocusMouseWheelRespond(event);break;case"text_volume_out2":volumeOut2FocusMouseWheelRespond(event);break;case"text_volume_out3":volumeOut3FocusMouseWheelRespond(event);break;case"text_volume_out4":volumeOut4FocusMouseWheelRespond(event);break;case"text_volume_out5":volumeOut5FocusMouseWheelRespond(event);break;case"text_volume_out6":volumeOut6FocusMouseWheelRespond(event);break;case"text_volume_out7":volumeOut7FocusMouseWheelRespond(event);break;case"text_volume_out8":volumeOut8FocusMouseWheelRespond(event);break;case"text_gain":gainFocusMouseWheelRespond(event);break;case"text_delay_millisecond_out":outDelayTimeFocusMouseWheelRespond(event);break;case"text_delay_meter_out":outDelayMeterFocusMouseWheelRespond(event);break;case"text_delay_inch_out":outDelayInchFocusMouseWheelRespond(event);break;case"text_hpf_frequency":hpfFrequencyFocusMouseWheelRespond(event);break;case"text_lpf_frequency":lpfFrequencyFocusMouseWheelRespond(event);break;case"text_threshold_compress_out":outThresholdCompressFocusMouseWheelRespond(event);break;case"text_ratio_compress_out":outRatioCompressFocusMouseWheelRespond(event);break;case"text_attack_compress_out":outAttackCompressFocusMouseWheelRespond(event);break;case"text_release_compress_out":outReleaseCompressFocusMouseWheelRespond(event);break;case"text_threshold_limit_out":outThresholdLimitFocusMouseWheelRespond(event);break;case"text_attack_limit_out":outAttackLimitFocusMouseWheelRespond(event);break;case"text_release_limit_out":outReleaseLimitFocusMouseWheelRespond(event);break;case"gain_setting":gainSettingFocusMouseWheelRespond(event);break;case"input_gain_setting":inputGainSettingFocusMouseWheelRespond(event);break;case"select_link_a":selectInputAMouseWheelRespond(event);break;case"select_link_b":selectInputBMouseWheelRespond(event);break;case"select_link_c":selectInputCMouseWheelRespond(event);break;case"select_link_d":selectInputDMouseWheelRespond(event);break;case"select_link_out1":selectOut1MouseWheelRespond(event);break;case"select_link_out2":selectOut2MouseWheelRespond(event);break;case"select_link_out3":selectOut3MouseWheelRespond(event);break;case"select_link_out4":selectOut4MouseWheelRespond(event);break;case"select_link_out5":selectOut5MouseWheelRespond(event);break;case"select_link_out6":selectOut6MouseWheelRespond(event);break;case"select_link_out7":selectOut7MouseWheelRespond(event);break;case"select_link_out8":selectOut8MouseWheelRespond(event);break;case"select_mode1":selectEqType1MouseWheelRespond(event);break;case"select_mode2":selectEqType2MouseWheelRespond(event);break;case"select_mode3":selectEqType3MouseWheelRespond(event);break;case"select_mode4":selectEqType4MouseWheelRespond(event);break;case"select_mode5":selectEqType5MouseWheelRespond(event);break;case"select_mode6":selectEqType6MouseWheelRespond(event);break;case"select_slope1":selectEqSlope1MouseWheelRespond(event);break;case"select_slope2":selectEqSlope2MouseWheelRespond(event);break;case"select_slope3":selectEqSlope3MouseWheelRespond(event);break;case"select_slope4":selectEqSlope4MouseWheelRespond(event);break;case"select_slope5":selectEqSlope5MouseWheelRespond(event);break;case"select_slope6":selectEqSlope6MouseWheelRespond(event);break;case"text_hpf_mode":selectHpfMouseWheelModeRespond(event);break;case"text_lpf_mode":selectLpfMouseWheelModeRespond(event);break;case"text_hpf_slope":selectHpfMouseWheelSlopeRespond(event);break;case"text_lpf_slope":selectLpfMouseWheelSlopeRespond(event);break;default:break}}function mouseWheelCurStepRespond(ev){var event=ev||window.event;var down;down=event.wheelDelta?event.wheelDelta<0:event.detail>0;if(down){currentStep--}else{currentStep++}if(event.preventDefault){event.preventDefault()}return false}function gateFocusMouseWheelRespond(ev){currentStep=controlsData.inputData.noisegate;mouseWheelCurStepRespond(ev);var editControl=document.getElementById("text_gate");checkCurrentStep(inputTextValueType.NOISE_GATE);controlsData.inputData.noisegate=currentStep;editControl.value=getDisplayValue(inputTextValueType.NOISE_GATE);keepLinkInputGate(curButtonNo,currentStep)}function delayTimeFocusMouseWheelRespond(ev){currentStep=controlsData.inputData.delay;mouseWheelCurStepRespond(ev);var editControl=document.getElementById("text_delay_millisecond");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.inputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkInputTime(curButtonNo,currentStep)}function delayMeterFocusMouseWheelRespond(ev){currentStep=controlsData.inputData.delay;mouseWheelCurStepRespond(ev);var editControl=document.getElementById("text_delay_meter");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.inputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_inch");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkInputTime(curButtonNo,currentStep)}function delayInchFocusMouseWheelRespond(ev){currentStep=controlsData.inputData.delay;mouseWheelCurStepRespond(ev);var editControl=document.getElementById("text_delay_inch");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.inputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);editControl=document.getElementById("text_delay_meter");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);keepLinkInputTime(curButtonNo,currentStep)}function eq1FrequencyFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq1_frequency");currentStep=eqData.EQ1.freq;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ1.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq1Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData()}function eq1BandwidthFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq1_bandwidth");currentStep=eqData.EQ1.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq1_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq1Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData()}function eq1SlopeFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq1_slope");currentStep=eqData.EQ1.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq1_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq1Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData()}function eq1GainFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq1_gain");currentStep=eqData.EQ1.level;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ1.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq1Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ1_THUMP,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();updateAllEqGainButton(1);curEqChannel=1;showOrHideEqData()}function eq2FrequencyFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq2_frequency");currentStep=eqData.EQ2.freq;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ2.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq2Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData()}function eq2BandwidthFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq2_bandwidth");currentStep=eqData.EQ2.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq2_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq2Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData()}function eq2SlopeFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq2_slope");currentStep=eqData.EQ2.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq2_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq2Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData()}function eq2GainFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq2_gain");currentStep=eqData.EQ2.level;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ2.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq2Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ2_THUMP,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();updateAllEqGainButton(2);curEqChannel=2;showOrHideEqData()}function eq3FrequencyFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq3_frequency");currentStep=eqData.EQ3.freq;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ3.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq3Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData()}function eq3BandwidthFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq3_bandwidth");currentStep=eqData.EQ3.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ3.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq3_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq3Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData()}function eq3SlopeFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq3_slope");currentStep=eqData.EQ3.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ3.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq3_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq3Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData()}function eq3GainFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq3_gain");currentStep=eqData.EQ3.level;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ3.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq3Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ3_THUMP,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();updateAllEqGainButton(3);curEqChannel=3;showOrHideEqData()}function eq4FrequencyFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq4_frequency");currentStep=eqData.EQ4.freq;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ4.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq4Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData()}function eq4BandwidthFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq4_bandwidth");currentStep=eqData.EQ4.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ4.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq4_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq4Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData()}function eq4SlopeFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq4_slope");currentStep=eqData.EQ4.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ4.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq4_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq4Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData()}function eq4GainFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq4_gain");currentStep=eqData.EQ4.level;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ4.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq4Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ4_THUMP,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();updateAllEqGainButton(4);curEqChannel=4;showOrHideEqData()}function eq5FrequencyFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq5_frequency");currentStep=eqData.EQ5.freq;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ5.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq5Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData()}function eq5BandwidthFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq5_bandwidth");currentStep=eqData.EQ5.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ5.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq5_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq5Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData()}function eq5SlopeFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq5_slope");currentStep=eqData.EQ5.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ5.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq5_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq5Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData()}function eq5GainFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq5_gain");currentStep=eqData.EQ5.level;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ5.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq5Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ5_THUMP,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();updateAllEqGainButton(5);curEqChannel=5;showOrHideEqData()}function eq6FrequencyFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq6_frequency");currentStep=eqData.EQ6.freq;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ6.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq6Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData()}function eq6BandwidthFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq6_bandwidth");currentStep=eqData.EQ6.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ6.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq6_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq6Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData()}function eq6SlopeFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq6_slope");currentStep=eqData.EQ6.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ6.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq6_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq6Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData()}function eq6GainFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_eq6_gain");currentStep=eqData.EQ6.level;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ6.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq6Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ6_THUMP,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();updateAllEqGainButton(6);curEqChannel=6;showOrHideEqData()}function deq1FrequencyFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_deq1_frequency");currentStep=controlsData.inputData.InDeq1.req;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);controlsData.inputData.InDeq1.req=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkInputDeq1Frequency(curButtonNo,currentStep)}function deq1BandwidthFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_deq1_bandwidth");currentStep=controlsData.inputData.InDeq1.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);controlsData.inputData.InDeq1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkInputDeq1Bandwidth(curButtonNo,currentStep)}function deq1LevelFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_deq1_level");currentStep=controlsData.inputData.InDeq1.level;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.DEQ_LEVEL);controlsData.inputData.InDeq1.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_LEVEL);keepLinkInputDeq1Level(curButtonNo,currentStep);updateDeqButton()}function deq1ThresholdFocusMouseWheelRespond(ev){var editControl=document.getElementById("deq1_threshold");currentStep=controlsData.inputData.DeqParam1.DEQ_Threshold;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.DEQ_THRESHOLD);controlsData.inputData.DeqParam1.DEQ_Threshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_THRESHOLD);keepLinkInputDeq1Threshold(curButtonNo,currentStep)}function deq1RatioFocusMouseWheelRespond(ev){var editControl=document.getElementById("deq1_ratio");currentStep=controlsData.inputData.DeqParam1.DEQ_ratio;mouseWheelCurStepRespond(ev);fixRatioCurrentStep(controlsData.inputData.DeqParam1.DEQ_ratio);checkCurrentStep(inputTextValueType.EXTENSION_RATION);controlsData.inputData.DeqParam1.DEQ_ratio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputDeq1Ratio(curButtonNo,currentStep)}function deq1AttackFocusMouseWheelRespond(ev){var editControl=document.getElementById("deq1_attack_time");currentStep=controlsData.inputData.DeqParam1.DEQ_a;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.DeqParam1.DEQ_a=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputDeq1AttackTime(curButtonNo,currentStep)}function deq1ReleaseFocusMouseWheelRespond(ev){var editControl=document.getElementById("deq1_release_time");currentStep=controlsData.inputData.DeqParam1.DEQ_r;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.DeqParam1.DEQ_r=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputDeq1ReleaseTime(curButtonNo,currentStep)}function deq2FrequencyFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_deq2_frequency");currentStep=controlsData.inputData.InDeq2.req;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);controlsData.inputData.InDeq2.req=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkInputDeq2Frequency(curButtonNo,currentStep)}function deq2BandwidthFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_deq2_bandwidth");currentStep=controlsData.inputData.InDeq2.bw;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);controlsData.inputData.InDeq2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkInputDeq2Bandwidth(curButtonNo,currentStep)}function deq2LevelFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_deq2_level");currentStep=controlsData.inputData.InDeq2.level;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.DEQ_LEVEL);controlsData.inputData.InDeq2.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_LEVEL);keepLinkInputDeq2Level(curButtonNo,currentStep);updateDeqButton()}function deq2ThresholdFocusMouseWheelRespond(ev){var editControl=document.getElementById("deq2_threshold");currentStep=controlsData.inputData.DeqParam2.DEQ_Threshold;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.DEQ_LEVEL);controlsData.inputData.DeqParam2.DEQ_Threshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_THRESHOLD);keepLinkInputDeq2Threshold(curButtonNo,currentStep)}function deq2RatioFocusMouseWheelRespond(ev){var editControl=document.getElementById("deq2_ratio");currentStep=controlsData.inputData.DeqParam2.DEQ_ratio;mouseWheelCurStepRespond(ev);fixRatioCurrentStep(controlsData.inputData.DeqParam2.DEQ_ratio);checkCurrentStep(inputTextValueType.EXTENSION_RATION);controlsData.inputData.DeqParam2.DEQ_ratio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputDeq2Ratio(curButtonNo,currentStep)}function deq2AttackFocusMouseWheelRespond(ev){var editControl=document.getElementById("deq2_attack_time");currentStep=controlsData.inputData.DeqParam2.DEQ_a;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.DeqParam2.DEQ_a=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputDeq2AttackTime(curButtonNo,currentStep)}function deq2ReleaseFocusMouseWheelRespond(ev){var editControl=document.getElementById("deq2_release_time");currentStep=controlsData.inputData.DeqParam2.DEQ_r;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.DeqParam2.DEQ_r=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputDeq2ReleaseTime(curButtonNo,currentStep)}function thresholdFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_threshold");currentStep=controlsData.inputData.agThreshold;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.INPUT_EXTEND_THRESHOLD);controlsData.inputData.agThreshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_EXTEND_THRESHOLD);keepLinkInputThreshold(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function targetLevelFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_target_level");currentStep=controlsData.inputData.agLevel;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.TARGET_LEVEL);controlsData.inputData.agLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_EXTEND_THRESHOLD);keepLinkInputLevel(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function extensionRatioFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_extension_ratio");currentStep=controlsData.inputData.agRatio;mouseWheelCurStepRespond(ev);fixRatioCurrentStep(controlsData.inputData.agRatio);checkCurrentStep(inputTextValueType.EXTENSION_RATION);controlsData.inputData.agRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputExtendRatio(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function extensionAttackFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_extension_attack");currentStep=controlsData.inputData.agAttack;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.agAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputExtendAttackTime(curButtonNo,currentStep)}function extensionReleaseFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_extension_release");currentStep=controlsData.inputData.agRelease;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.agRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputExtendReleaseTime(curButtonNo,currentStep)}function compressorFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_compressor");currentStep=controlsData.inputData.compLevel;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.INPUT_COMPRESS_THRESHOLD);controlsData.inputData.compLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_COMPRESS_THRESHOLD);keepLinkInputCompressLevel(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function compRatioFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_comp_ratio");currentStep=controlsData.inputData.compRatio;mouseWheelCurStepRespond(ev);fixRatioCurrentStep(controlsData.inputData.compRatio);checkCurrentStep(inputTextValueType.COMPRESS_RATION);controlsData.inputData.compRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.COMPRESS_RATION);keepLinkInputCompressRatio(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function compAttackFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_comp_attack");currentStep=controlsData.inputData.compAttack;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.compAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputCompressAttackTime(curButtonNo,currentStep)}function compReleaseFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_comp_release");currentStep=controlsData.inputData.compRelease;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.compRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputCompressReleaseTime(curButtonNo,currentStep)}function volumeAFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_a");currentStep=currentGroupData.dataInputA.gain;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputA.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_A,currentStep);keepLinkInputVolume(0,currentStep)}function volumeBFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_b");currentStep=currentGroupData.dataInputB.gain;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputB.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_B,currentStep);keepLinkInputVolume(1,currentStep)}function volumeCFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_c");currentStep=currentGroupData.dataInputC.gain;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputC.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_C,currentStep);keepLinkInputVolume(2,currentStep)}function volumeDFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_d");currentStep=currentGroupData.dataInputD.gain;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputD.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_D,currentStep);keepLinkInputVolume(3,currentStep)}function volumeOut1FocusMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out1");currentStep=currentGroupData.dataOut1.gain;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut1.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT1,currentStep);keepLinkOutVolume(0,currentStep)}function volumeOut2FocusMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out2");currentStep=currentGroupData.dataOut2.gain;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut2.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT2,currentStep);keepLinkOutVolume(1,currentStep)}function volumeOut3FocusMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out3");currentStep=currentGroupData.dataOut3.gain;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut3.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT3,currentStep);keepLinkOutVolume(2,currentStep)}function volumeOut4FocusMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out4");currentStep=currentGroupData.dataOut4.gain;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut4.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT4,currentStep);keepLinkOutVolume(3,currentStep)}function volumeOut5FocusMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out5");currentStep=currentGroupData.dataOut5.gain;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut5.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT5,currentStep);keepLinkOutVolume(4,currentStep)}function volumeOut6FocusMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out6");currentStep=currentGroupData.dataOut6.gain;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut6.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT6,currentStep);keepLinkOutVolume(5,currentStep)}function volumeOut7FocusMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out7");currentStep=currentGroupData.dataOut7.gain;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut7.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT7,currentStep);keepLinkOutVolume(6,currentStep)}function volumeOut8FocusMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out8");currentStep=currentGroupData.dataOut8.gain;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut8.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT8,currentStep);keepLinkOutVolume(7,currentStep)}function gainFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_gain");currentStep=getChannelGain(curButtonNo);mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);setChannelGain(curButtonNo,currentStep);editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setGainSliderPosition(currentStep);keepShortGainInStep(currentStep)}function outThresholdCompressFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_threshold_compress_out");currentStep=controlsData.outputData.compLevel;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.OUTPUT_COMPRESS_THRESHOLD);controlsData.outputData.compLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.OUTPUT_COMPRESS_THRESHOLD);keepLinkOutThresholdCompress(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT()}function outRatioCompressFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_ratio_compress_out");currentStep=controlsData.outputData.compRatio;mouseWheelCurStepRespond(ev);fixRatioCurrentStep(controlsData.outputData.compRatio);checkCurrentStep(inputTextValueType.COMPRESS_RATION);controlsData.outputData.compRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.COMPRESS_RATION);keepLinkOutRatioCompress(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT()}function outAttackCompressFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_attack_compress_out");currentStep=controlsData.outputData.compAttack;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.outputData.compAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkOutAttackCompress(curButtonNo,currentStep)}function outReleaseCompressFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_release_compress_out");currentStep=controlsData.outputData.compR;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.outputData.compR=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkOutReleaseCompress(curButtonNo,currentStep)}function outThresholdLimitFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_threshold_limit_out");currentStep=controlsData.outputData.limT;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.OUTPUT_LIMITER_THRESHOLD);controlsData.outputData.limT=currentStep;editControl.value=getDisplayValue(inputTextValueType.OUTPUT_LIMITER_THRESHOLD);keepLinkOutThresholdLimit(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT()}function outAttackLimitFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_attack_limit_out");currentStep=controlsData.outputData.limAttack;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.outputData.limAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkOutAttackLimit(curButtonNo,currentStep)}function outReleaseLimitFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_release_limit_out");currentStep=controlsData.outputData.limRelease;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.outputData.limRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkOutReleaseLimit(curButtonNo,currentStep)}function outDelayTimeFocusMouseWheelRespond(ev){currentStep=controlsData.outputData.delay;mouseWheelCurStepRespond(ev);var editControl=document.getElementById("text_delay_millisecond_out");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.outputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkOutDelayTime(curButtonNo,currentStep)}function outDelayMeterFocusMouseWheelRespond(ev){currentStep=controlsData.outputData.delay;mouseWheelCurStepRespond(ev);var editControl=document.getElementById("text_delay_meter_out");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.outputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_inch_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkOutDelayTime(curButtonNo,currentStep)}function outDelayInchFocusMouseWheelRespond(ev){currentStep=controlsData.outputData.delay;mouseWheelCurStepRespond(ev);var editControl=document.getElementById("text_delay_inch_out");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.outputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);editControl=document.getElementById("text_delay_meter_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);keepLinkOutDelayTime(curButtonNo,currentStep)}function hpfFrequencyFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_hpf_frequency");currentStep=controlsData.outputData.HPFData.HL_freq;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);if(currentStep>controlsData.outputData.LPFData.HL_freq){currentStep=controlsData.outputData.LPFData.HL_freq}controlsData.outputData.HPFData.HL_freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkOutHpfFrequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,7);DrawLine();curEqChannel=7;showOrHideEqData()}function lpfFrequencyFocusMouseWheelRespond(ev){var editControl=document.getElementById("text_lpf_frequency");currentStep=controlsData.outputData.LPFData.HL_freq;mouseWheelCurStepRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);if(currentStep12){currentStep=12}document.getElementById("gain_setting").value=currentStep+"dB";getOutputWriteCode()}function inputGainSettingFocusMouseWheelRespond(ev){currentStep=parseInt(document.getElementById("input_gain_setting").value);FocusRespond(ev);if(currentStep<-80){currentStep=-80}else if(currentStep>12){currentStep=12}document.getElementById("input_gain_setting").value=currentStep+"dB";getInputWriteCode()}function getSpinerMaxStep(id){var maxStep;switch(id){case"select_link_a":case"select_link_b":case"select_link_c":case"select_link_d":maxStep=3;break;case"select_link_out1":case"select_link_out2":case"select_link_out3":case"select_link_out4":case"select_link_out5":case"select_link_out6":case"select_link_out7":case"select_link_out8":maxStep=7;break;case"select_mode1":case"select_mode2":case"select_mode3":case"select_mode4":case"select_mode5":case"select_mode6":maxStep=4;break;case"select_slope1":case"select_slope2":case"select_slope3":case"select_slope4":case"select_slope5":case"select_slope6":maxStep=1;break;case"text_hpf_mode":case"text_lpf_mode":maxStep=2;break;case"text_hpf_slope":if(controlsData.outputData.HPFData.HL_Type===0){maxStep=3}else{maxStep=6}break;case"text_lpf_slope":if(controlsData.outputData.LPFData.HL_Type===0){maxStep=3}else{maxStep=6}}return maxStep}function mouseWheelSpinnerRespond(ev,step,id){var event=ev||window.event;var minStep=0;var down,maxStep;down=event.wheelDelta?event.wheelDelta<0:event.detail>0;if(down){step++}else{step--}maxStep=getSpinerMaxStep(id);if(stepmaxStep){step=maxStep}if(event.preventDefault){event.preventDefault()}setModeSelect(id,step);return step}function selectInputAMouseWheelRespond(ev){var selectElement=document.getElementById("select_link_a");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_link_a");currentGroupData.dataInputA.inLinkSel=index;linkInputSelect[0]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_INPUT_A);updateLinkInputDisplay(constConfig.CURRENT_CHANNGEL_INPUT_A);keepLinkPhaseLineStatus(index+1,controlsData.buttonStates.buttonPhaseCurveStatus[index]);if(curButtonNo===1){assignChannelData(constConfig.CURRENT_CHANNGEL_INPUT_A);inputOrOutputModule(true);hideHLPFChannelName();agcExtMap.SetInData(0);lockDisplay.refreshInputLockDisplay();initPolar();setPhaseDirectionStatus();if(currentLockData.nIn_LockData.nIn_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();inputEqBeLocked()}else{if(curEqChannel>6){curEqChannel=1}showOrHideEqData();inputEqUnlock();DrawLine()}setCurPhaseCurveStatus()}}function selectInputBMouseWheelRespond(ev){var selectElement=document.getElementById("select_link_b");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_link_b");currentGroupData.dataInputB.inLinkSel=index;linkInputSelect[1]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_INPUT_B);updateLinkInputDisplay(constConfig.CURRENT_CHANNGEL_INPUT_B);keepLinkPhaseLineStatus(index+1,controlsData.buttonStates.buttonPhaseCurveStatus[index]);if(curButtonNo===2){assignChannelData(constConfig.CURRENT_CHANNGEL_INPUT_B);inputOrOutputModule(true);hideHLPFChannelName();agcExtMap.SetInData(1);lockDisplay.refreshInputLockDisplay();initPolar();setPhaseDirectionStatus();if(currentLockData.nIn_LockData.nIn_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();inputEqBeLocked()}else{if(curEqChannel>6){curEqChannel=1}showOrHideEqData();inputEqUnlock();DrawLine()}setCurPhaseCurveStatus()}}function selectInputCMouseWheelRespond(ev){var selectElement=document.getElementById("select_link_c");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_link_c");currentGroupData.dataInputC.inLinkSel=index;linkInputSelect[2]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_INPUT_C);updateLinkInputDisplay(constConfig.CURRENT_CHANNGEL_INPUT_C);keepLinkPhaseLineStatus(index+1,controlsData.buttonStates.buttonPhaseCurveStatus[index]);if(curButtonNo===3){assignChannelData(constConfig.CURRENT_CHANNGEL_INPUT_C);inputOrOutputModule(true);hideHLPFChannelName();agcExtMap.SetInData(2);lockDisplay.refreshInputLockDisplay();initPolar();setPhaseDirectionStatus();if(currentLockData.nIn_LockData.nIn_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();inputEqBeLocked()}else{if(curEqChannel>6){curEqChannel=1}showOrHideEqData();inputEqUnlock();DrawLine()}setCurPhaseCurveStatus()}}function selectInputDMouseWheelRespond(ev){var selectElement=document.getElementById("select_link_d");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_link_d");currentGroupData.dataInputD.inLinkSel=index;linkInputSelect[3]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_INPUT_D);updateLinkInputDisplay(constConfig.CURRENT_CHANNGEL_INPUT_D);keepLinkPhaseLineStatus(index+1,controlsData.buttonStates.buttonPhaseCurveStatus[index]);if(curButtonNo===4){assignChannelData(constConfig.CURRENT_CHANNGEL_INPUT_D);inputOrOutputModule(true);hideHLPFChannelName();agcExtMap.SetInData(3);lockDisplay.refreshInputLockDisplay();initPolar();setPhaseDirectionStatus();if(currentLockData.nIn_LockData.nIn_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();inputEqBeLocked()}else{if(curEqChannel>6){curEqChannel=1}showOrHideEqData();inputEqUnlock();DrawLine()}setCurPhaseCurveStatus()}}function selectOut1MouseWheelRespond(ev){var selectElement=document.getElementById("select_link_out1");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_link_out1");currentGroupData.dataOut1.outLinkSel=index;linkOutSelect[0]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_1);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_1);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===5){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_1);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(0);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}}function selectOut2MouseWheelRespond(ev){var selectElement=document.getElementById("select_link_out2");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_link_out2");currentGroupData.dataOut2.outLinkSel=index;linkOutSelect[1]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_2);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_2);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===6){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_2);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(1);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}}function selectOut3MouseWheelRespond(ev){var selectElement=document.getElementById("select_link_out3");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_link_out3");currentGroupData.dataOut3.outLinkSel=index;linkOutSelect[2]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_3);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_3);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===7){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_3);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(2);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}}function selectOut4MouseWheelRespond(ev){var selectElement=document.getElementById("select_link_out4");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_link_out4");currentGroupData.dataOut4.outLinkSel=index;linkOutSelect[3]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_4);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_4);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===8){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_4);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(3);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}}function selectOut5MouseWheelRespond(ev){var selectElement=document.getElementById("select_link_out5");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_link_out5");currentGroupData.dataOut5.outLinkSel=index;linkOutSelect[4]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_5);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_5);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===9){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_5);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(4);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}}function selectOut6MouseWheelRespond(ev){var selectElement=document.getElementById("select_link_out6");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_link_out6");currentGroupData.dataOut6.outLinkSel=index;linkOutSelect[5]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_6);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_6);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===10){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_6);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(5);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}}function selectOut7MouseWheelRespond(ev){var selectElement=document.getElementById("select_link_out7");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_link_out7");currentGroupData.dataOut7.outLinkSel=index;linkOutSelect[6]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_7);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_7);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===11){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_7);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(6);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}}function selectOut8MouseWheelRespond(ev){var selectElement=document.getElementById("select_link_out8");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_link_out8");currentGroupData.dataOut8.outLinkSel=index;linkOutSelect[7]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_8);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_8);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===12){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_8);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(7);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}}function selectEqType1MouseWheelRespond(ev){var selectElement=document.getElementById("select_mode1");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_mode1");eqData.EQ1.type=index;keepLinkEq1Mode(curButtonNo,index);if(index>2){if(GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag)){controlsData.buttonStates.buttonEqStatus[1]=false;document.getElementById("button_eq1").setAttribute("class","button_eq_false")}else{controlsData.buttonStates.buttonEqStatus[1]=true;document.getElementById("button_eq1").setAttribute("class","button_eq_true")}svgDrawCurve.eqChannelTextElement[0].setAttribute("cursor","w-resize")}else{if(eqData.EQ1.level!==200){controlsData.buttonStates.buttonEqStatus[1]=true;document.getElementById("button_eq1").setAttribute("class","button_eq_true")}else{controlsData.buttonStates.buttonEqStatus[1]=false;document.getElementById("button_eq1").setAttribute("class","button_eq_false")}svgDrawCurve.eqChannelTextElement[0].setAttribute("cursor","move")}eqDataKeepStep(curButtonNo,1);DrawLine();updateAllEqGainButton(1);updateEqModeDisplay(index,1);curEqChannel=1;showOrHideEqData();showOrHideLittleRect()}function selectEqType2MouseWheelRespond(ev){var selectElement=document.getElementById("select_mode2");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_mode2");eqData.EQ2.type=index;keepLinkEq2Mode(curButtonNo,index);if(index>2){if(GET_4L_BYTE(eqData.EQ2.HL_db_AP_Flag)){controlsData.buttonStates.buttonEqStatus[2]=false;document.getElementById("button_eq2").setAttribute("class","button_eq_false")}else{controlsData.buttonStates.buttonEqStatus[2]=true;document.getElementById("button_eq2").setAttribute("class","button_eq_true")}svgDrawCurve.eqChannelTextElement[1].setAttribute("cursor","w-resize")}else{if(eqData.EQ2.level!==200){controlsData.buttonStates.buttonEqStatus[2]=true;document.getElementById("button_eq2").setAttribute("class","button_eq_true")}else{controlsData.buttonStates.buttonEqStatus[2]=false;document.getElementById("button_eq2").setAttribute("class","button_eq_false")}svgDrawCurve.eqChannelTextElement[1].setAttribute("cursor","move")}eqDataKeepStep(curButtonNo,2);DrawLine();updateAllEqGainButton(2);updateEqModeDisplay(index,2);curEqChannel=2;showOrHideEqData();showOrHideLittleRect()}function selectEqType3MouseWheelRespond(ev){var selectElement=document.getElementById("select_mode3");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_mode3");eqData.EQ3.type=index;keepLinkEq3Mode(curButtonNo,index);if(index>2){if(GET_4L_BYTE(eqData.EQ3.HL_db_AP_Flag)){controlsData.buttonStates.buttonEqStatus[3]=false;document.getElementById("button_eq3").setAttribute("class","button_eq_false")}else{controlsData.buttonStates.buttonEqStatus[3]=true;document.getElementById("button_eq3").setAttribute("class","button_eq_true")}svgDrawCurve.eqChannelTextElement[2].setAttribute("cursor","w-resize")}else{if(eqData.EQ3.level!==200){controlsData.buttonStates.buttonEqStatus[3]=true;document.getElementById("button_eq3").setAttribute("class","button_eq_true")}else{controlsData.buttonStates.buttonEqStatus[3]=false;document.getElementById("button_eq3").setAttribute("class","button_eq_false")}svgDrawCurve.eqChannelTextElement[2].setAttribute("cursor","move")}eqDataKeepStep(curButtonNo,3);DrawLine();updateAllEqGainButton(3);updateEqModeDisplay(index,3);curEqChannel=3;showOrHideEqData();showOrHideLittleRect()}function selectEqType4MouseWheelRespond(ev){var selectElement=document.getElementById("select_mode4");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_mode4");eqData.EQ4.type=index;keepLinkEq4Mode(curButtonNo,index);if(index>2){if(GET_4L_BYTE(eqData.EQ4.HL_db_AP_Flag)){controlsData.buttonStates.buttonEqStatus[4]=false;document.getElementById("button_eq4").setAttribute("class","button_eq_false")}else{controlsData.buttonStates.buttonEqStatus[4]=true;document.getElementById("button_eq4").setAttribute("class","button_eq_true")}svgDrawCurve.eqChannelTextElement[3].setAttribute("cursor","w-resize")}else{if(eqData.EQ4.level!==200){controlsData.buttonStates.buttonEqStatus[4]=true;document.getElementById("button_eq4").setAttribute("class","button_eq_true")}else{controlsData.buttonStates.buttonEqStatus[4]=false;document.getElementById("button_eq4").setAttribute("class","button_eq_false")}svgDrawCurve.eqChannelTextElement[3].setAttribute("cursor","move")}eqDataKeepStep(curButtonNo,4);DrawLine();updateAllEqGainButton(4);updateEqModeDisplay(index,4);curEqChannel=4;showOrHideEqData();showOrHideLittleRect()}function selectEqType5MouseWheelRespond(ev){var selectElement=document.getElementById("select_mode5");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_mode5");eqData.EQ5.type=index;keepLinkEq5Mode(curButtonNo,index);if(index>2){if(GET_4L_BYTE(eqData.EQ5.HL_db_AP_Flag)){controlsData.buttonStates.buttonEqStatus[5]=false;document.getElementById("button_eq5").setAttribute("class","button_eq_false")}else{controlsData.buttonStates.buttonEqStatus[5]=true;document.getElementById("button_eq5").setAttribute("class","button_eq_true")}svgDrawCurve.eqChannelTextElement[4].setAttribute("cursor","w-resize")}else{if(eqData.EQ5.level!==200){controlsData.buttonStates.buttonEqStatus[5]=true;document.getElementById("button_eq5").setAttribute("class","button_eq_true")}else{controlsData.buttonStates.buttonEqStatus[5]=false;document.getElementById("button_eq5").setAttribute("class","button_eq_false")}svgDrawCurve.eqChannelTextElement[4].setAttribute("cursor","move")}eqDataKeepStep(curButtonNo,5);DrawLine();updateAllEqGainButton(5);updateEqModeDisplay(index,5);curEqChannel=5;showOrHideEqData();showOrHideLittleRect()}function selectEqType6MouseWheelRespond(ev){var selectElement=document.getElementById("select_mode6");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_mode6");eqData.EQ6.type=index;keepLinkEq6Mode(curButtonNo,index);if(index>2){if(GET_4L_BYTE(eqData.EQ6.HL_db_AP_Flag)){controlsData.buttonStates.buttonEqStatus[6]=false;document.getElementById("button_eq6").setAttribute("class","button_eq_false")}else{controlsData.buttonStates.buttonEqStatus[6]=true;document.getElementById("button_eq6").setAttribute("class","button_eq_true")}svgDrawCurve.eqChannelTextElement[5].setAttribute("cursor","w-resize")}else{if(eqData.EQ6.level!==200){controlsData.buttonStates.buttonEqStatus[6]=true;document.getElementById("button_eq6").setAttribute("class","button_eq_true")}else{controlsData.buttonStates.buttonEqStatus[6]=false;document.getElementById("button_eq6").setAttribute("class","button_eq_false")}svgDrawCurve.eqChannelTextElement[5].setAttribute("cursor","move")}eqDataKeepStep(curButtonNo,6);DrawLine();updateAllEqGainButton(6);updateEqModeDisplay(index,6);curEqChannel=6;showOrHideEqData();showOrHideLittleRect()}function selectEqSlope1MouseWheelRespond(ev){var selectElement=document.getElementById("select_slope1");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_slope1");eqData.EQ1.HL_db_AP_Flag=SET_4H_BYTE(index,GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag));keepLinkEq1SlopeSelect(curButtonNo,index);eqDataKeepStep(curButtonNo,1);DrawLine();updateEqModeDisplay(eqData.EQ1.type,1);curEqChannel=1;showOrHideEqData()}function selectEqSlope2MouseWheelRespond(ev){var selectElement=document.getElementById("select_slope2");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_slope2");eqData.EQ2.HL_db_AP_Flag=SET_4H_BYTE(index,GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag));keepLinkEq2SlopeSelect(curButtonNo,index);eqDataKeepStep(curButtonNo,2);DrawLine();updateEqModeDisplay(eqData.EQ2.type,2);curEqChannel=2;showOrHideEqData()}function selectEqSlope3MouseWheelRespond(ev){var selectElement=document.getElementById("select_slope3");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_slope3");eqData.EQ3.HL_db_AP_Flag=SET_4H_BYTE(index,GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag));keepLinkEq3SlopeSelect(curButtonNo,index);eqDataKeepStep(curButtonNo,3);DrawLine();updateEqModeDisplay(eqData.EQ3.type,3);curEqChannel=3;showOrHideEqData()}function selectEqSlope4MouseWheelRespond(ev){var selectElement=document.getElementById("select_slope4");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_slope4");eqData.EQ4.HL_db_AP_Flag=SET_4H_BYTE(index,GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag));keepLinkEq4SlopeSelect(curButtonNo,index);eqDataKeepStep(curButtonNo,4);DrawLine();updateEqModeDisplay(eqData.EQ4.type,4);curEqChannel=4;showOrHideEqData()}function selectEqSlope5MouseWheelRespond(ev){var selectElement=document.getElementById("select_slope5");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_slope5");eqData.EQ5.HL_db_AP_Flag=SET_4H_BYTE(index,GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag));keepLinkEq5SlopeSelect(curButtonNo,index);eqDataKeepStep(curButtonNo,5);DrawLine();updateEqModeDisplay(eqData.EQ5.type,5);curEqChannel=5;showOrHideEqData()}function selectEqSlope6MouseWheelRespond(ev){var selectElement=document.getElementById("select_slope6");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"select_slope6");eqData.EQ6.HL_db_AP_Flag=SET_4H_BYTE(index,GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag));keepLinkEq6SlopeSelect(curButtonNo,index);eqDataKeepStep(curButtonNo,6);DrawLine();updateEqModeDisplay(eqData.EQ6.type,6);curEqChannel=6;showOrHideEqData()}function selectHpfMouseWheelModeRespond(ev){var selectElement=document.getElementById("text_hpf_mode");var slopeElement=document.getElementById("text_hpf_slope");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"text_hpf_mode");controlsData.outputData.HPFData.HL_Type=index;keepLinkOutHpfMode(curButtonNo,index);eqDataKeepStep(curButtonNo,7);DrawLine();switch(index){case 0:slopeElement.innerHTML="";initXoverFew("text_hpf_slope");setModeSelect("text_hpf_slope",controlsData.outputData.HPFData.LR_Level);break;case 1:case 2:slopeElement.innerHTML="";initXoverMany("text_hpf_slope");setModeSelect("text_hpf_slope",controlsData.outputData.HPFData.HL_Oct);break;default:break}curEqChannel=7;showOrHideEqData()}function selectLpfMouseWheelModeRespond(ev){var selectElement=document.getElementById("text_lpf_mode");var slopeElement=document.getElementById("text_lpf_slope");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"text_lpf_mode");controlsData.outputData.LPFData.HL_Type=index;keepLinkOutLpfMode(curButtonNo,index);eqDataKeepStep(curButtonNo,8);DrawLine();switch(index){case 0:slopeElement.innerHTML="";initXoverFew("text_lpf_slope");setModeSelect("text_lpf_slope",controlsData.outputData.LPFData.LR_Level);break;case 1:case 2:slopeElement.innerHTML="";initXoverMany("text_lpf_slope");setModeSelect("text_lpf_slope",controlsData.outputData.LPFData.HL_Oct);break;default:break}curEqChannel=8;showOrHideEqData()}function selectHpfMouseWheelSlopeRespond(ev){var selectElement=document.getElementById("text_hpf_slope");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"text_hpf_slope");keepLinkOutHpfSlope(curButtonNo,index);if(controlsData.outputData.HPFData.HL_Type===0){controlsData.outputData.HPFData.LR_Level=index}else{controlsData.outputData.HPFData.HL_Oct=index}eqDataKeepStep(curButtonNo,7);DrawLine();curEqChannel=7;showOrHideEqData()}function selectLpfMouseWheelSlopeRespond(ev){var selectElement=document.getElementById("text_lpf_slope");var index=selectElement.selectedIndex;index=mouseWheelSpinnerRespond(ev,index,"text_lpf_slope");keepLinkOutLpfSlope(curButtonNo,index);if(controlsData.outputData.LPFData.HL_Type===0){controlsData.outputData.LPFData.LR_Level=index}else{controlsData.outputData.LPFData.HL_Oct=index}eqDataKeepStep(curButtonNo,8);DrawLine();curEqChannel=8;showOrHideEqData()}function addInputTextChangeListener(){var editControlID=[controlsId.TEXT_GATE,controlsId.TEXT_DELAY_MILLISECOND,controlsId.TEXT_DELAY_METER,controlsId.TEXT_DELAY_INCH];var eqEditControlID=[controlsId.TEXT_EQ1_FREQUENCY,controlsId.TEXT_EQ1_BANDWIDTH,controlsId.TEXT_EQ1_SLOPE,controlsId.TEXT_EQ1_GAIN,controlsId.TEXT_EQ2_FREQUENCY,controlsId.TEXT_EQ2_BANDWIDTH,controlsId.TEXT_EQ2_SLOPE,controlsId.TEXT_EQ2_GAIN,controlsId.TEXT_EQ3_FREQUENCY,controlsId.TEXT_EQ3_BANDWIDTH,controlsId.TEXT_EQ3_SLOPE,controlsId.TEXT_EQ3_GAIN,controlsId.TEXT_EQ4_FREQUENCY,controlsId.TEXT_EQ4_BANDWIDTH,controlsId.TEXT_EQ4_SLOPE,controlsId.TEXT_EQ4_GAIN,controlsId.TEXT_EQ5_FREQUENCY,controlsId.TEXT_EQ5_BANDWIDTH,controlsId.TEXT_EQ5_SLOPE,controlsId.TEXT_EQ5_GAIN,controlsId.TEXT_EQ6_FREQUENCY,controlsId.TEXT_EQ6_BANDWIDTH,controlsId.TEXT_EQ6_SLOPE,controlsId.TEXT_EQ6_GAIN];var deqEditControlID=[controlsId.TEXT_DEQ1_FREQUENCY,controlsId.TEXT_DEQ1_BANDWIDTH,controlsId.TEXT_DEQ1_LEVEL,controlsId.TEXT_DEQ2_FREQUENCY,controlsId.TEXT_DEQ2_BANDWIDTH,controlsId.TEXT_DEQ2_LEVEL,controlsId.TEXT_DEQ1_THRESHOLD,controlsId.TEXT_DEQ1_RATIO,controlsId.TEXT_DEQ1_ATTACK_TIME,controlsId.TEXT_DEQ1_RELEASE_TIME,controlsId.TEXT_DEQ2_THRESHOLD,controlsId.TEXT_DEQ2_RATIO,controlsId.TEXT_DEQ2_ATTACK_TIME,controlsId.TEXT_DEQ2_RELEASE_TIME];var agcEditControlID=[controlsId.TEXT_THRESHOLD,controlsId.TEXT_TARGET_LEVEL,controlsId.TEXT_EXTENSION_RATIO,controlsId.TEXT_EXTENSION_ATTACK,controlsId.TEXT_EXTENSION_RELEASE,controlsId.TEXT_COMPRESSOR,controlsId.TEXT_COMP_RATIO,controlsId.TEXT_COMP_ATTACK,controlsId.TEXT_COMP_RELEASE];var gainEditControlID=[controlsId.TEXT_VOLUME_A,controlsId.TEXT_VOLUME_B,controlsId.TEXT_VOLUME_C,controlsId.TEXT_VOLUME_D,controlsId.TEXT_VOLUME_OUT1,controlsId.TEXT_VOLUME_OUT2,controlsId.TEXT_VOLUME_OUT3,controlsId.TEXT_VOLUME_OUT4,controlsId.TEXT_VOLUME_OUT5,controlsId.TEXT_VOLUME_OUT6,controlsId.TEXT_VOLUME_OUT7,controlsId.TEXT_VOLUME_OUT8,controlsId.TEXT_GAIN];for(var i in editControlID){addTextChangeEvent(editControlID[i])}for(var t in eqEditControlID){addTextChangeEvent(eqEditControlID[t])}for(var n in deqEditControlID){addTextChangeEvent(deqEditControlID[n])}for(var c in agcEditControlID){addTextChangeEvent(agcEditControlID[c])}for(var b in gainEditControlID){addTextChangeEvent(gainEditControlID[b])}addOutTextChangeEvent();document.getElementById("gain_setting").addEventListener("change",gainSettingChangeRespond);document.getElementById("input_gain_setting").addEventListener("change",inputGainSettingChangeRespond);document.getElementById("program_name").addEventListener("change",inputProgramChangeRespond)}function inputProgramChangeRespond(){var value=document.getElementById("program_name").value;value=value.match(/[\x00-\xff]{1,12}/);document.getElementById("program_name").value=value}function gainSettingChangeRespond(ev){currentStep=parseInt(document.getElementById("gain_setting").value);if(currentStep<-80){currentStep=-80}else if(currentStep>12){currentStep=12}document.getElementById("gain_setting").value=currentStep+"dB";getOutputWriteCode()}function inputGainSettingChangeRespond(ev){currentStep=parseInt(document.getElementById("input_gain_setting").value);if(currentStep<-80){currentStep=-80}else if(currentStep>12){currentStep=12}document.getElementById("input_gain_setting").value=currentStep+"dB";getInputWriteCode()}function addTextChangeEvent(id){var fn;var inputTextId;switch(id){case controlsId.TEXT_GATE:fn=gateChangeRespond;inputTextId="text_gate";break;case controlsId.TEXT_DELAY_MILLISECOND:fn=delayTimeChangeRespond;inputTextId="text_delay_millisecond";break;case controlsId.TEXT_DELAY_METER:fn=delayMeterChangeRespond;inputTextId="text_delay_meter";break;case controlsId.TEXT_DELAY_INCH:fn=delayInchChangeRespond;inputTextId="text_delay_inch";break;case controlsId.TEXT_EQ1_FREQUENCY:fn=eq1FrequencyChangeRespond;inputTextId="text_eq1_frequency";break;case controlsId.TEXT_EQ1_BANDWIDTH:fn=eq1BandwidthChangeRespond;inputTextId="text_eq1_bandwidth";break;case controlsId.TEXT_EQ1_SLOPE:fn=eq1SlopeChangeRespond;inputTextId="text_eq1_slope";break;case controlsId.TEXT_EQ1_GAIN:fn=eq1GainChangeRespond;inputTextId="text_eq1_gain";break;case controlsId.TEXT_EQ2_FREQUENCY:fn=eq2FrequencyChangeRespond;inputTextId="text_eq2_frequency";break;case controlsId.TEXT_EQ2_BANDWIDTH:fn=eq2BandwidthChangeRespond;inputTextId="text_eq2_bandwidth";break;case controlsId.TEXT_EQ2_SLOPE:fn=eq2SlopeChangeRespond;inputTextId="text_eq2_slope";break;case controlsId.TEXT_EQ2_GAIN:fn=eq2GainChangeRespond;inputTextId="text_eq2_gain";break;case controlsId.TEXT_EQ3_FREQUENCY:fn=eq3FrequencyChangeRespond;inputTextId="text_eq3_frequency";break;case controlsId.TEXT_EQ3_BANDWIDTH:fn=eq3BandwidthChangeRespond;inputTextId="text_eq3_bandwidth";break;case controlsId.TEXT_EQ3_SLOPE:fn=eq3SlopeChangeRespond;inputTextId="text_eq3_slope";break;case controlsId.TEXT_EQ3_GAIN:fn=eq3GainChangeRespond;inputTextId="text_eq3_gain";break;case controlsId.TEXT_EQ4_FREQUENCY:fn=eq4FrequencyChangeRespond;inputTextId="text_eq4_frequency";break;case controlsId.TEXT_EQ4_BANDWIDTH:fn=eq4BandwidthChangeRespond;inputTextId="text_eq4_bandwidth";break;case controlsId.TEXT_EQ4_SLOPE:fn=eq4SlopeChangeRespond;inputTextId="text_eq4_slope";break;case controlsId.TEXT_EQ4_GAIN:fn=eq4GainChangeRespond;inputTextId="text_eq4_gain";break;case controlsId.TEXT_EQ5_FREQUENCY:fn=eq5FrequencyChangeRespond;inputTextId="text_eq5_frequency";break;case controlsId.TEXT_EQ5_BANDWIDTH:fn=eq5BandwidthChangeRespond;inputTextId="text_eq5_bandwidth";break;case controlsId.TEXT_EQ5_SLOPE:fn=eq5SlopeChangeRespond;inputTextId="text_eq5_slope";break;case controlsId.TEXT_EQ5_GAIN:fn=eq5GainChangeRespond;inputTextId="text_eq5_gain";break;case controlsId.TEXT_EQ6_FREQUENCY:fn=eq6FrequencyChangeRespond;inputTextId="text_eq6_frequency";break;case controlsId.TEXT_EQ6_BANDWIDTH:fn=eq6BandwidthChangeRespond;inputTextId="text_eq6_bandwidth";break;case controlsId.TEXT_EQ6_SLOPE:fn=eq6SlopeChangeRespond;inputTextId="text_eq6_slope";break;case controlsId.TEXT_EQ6_GAIN:fn=eq6GainChangeRespond;inputTextId="text_eq6_gain";break;case controlsId.TEXT_DEQ1_FREQUENCY:fn=deq1FrequencyChangeRespond;inputTextId="text_deq1_frequency";break;case controlsId.TEXT_DEQ1_BANDWIDTH:fn=deq1BandwidthChangeRespond;inputTextId="text_deq1_bandwidth";break;case controlsId.TEXT_DEQ1_LEVEL:fn=deq1LelChangeRespond;inputTextId="text_deq1_level";break;case controlsId.TEXT_DEQ2_FREQUENCY:fn=deq2FrequencyChangeRespond;inputTextId="text_deq2_frequency";break;case controlsId.TEXT_DEQ2_BANDWIDTH:fn=deq2BandwidthChangeRespond;inputTextId="text_deq2_bandwidth";break;case controlsId.TEXT_DEQ2_LEVEL:fn=deq2LelChangeRespond;inputTextId="text_deq2_level";break;case controlsId.TEXT_DEQ1_THRESHOLD:fn=deq1ThresholdChangeRespond;inputTextId="deq1_threshold";break;case controlsId.TEXT_DEQ1_RATIO:fn=deq1RatioChangeRespond;inputTextId="deq1_ratio";break;case controlsId.TEXT_DEQ1_ATTACK_TIME:fn=deq1AttackChangeRespond;inputTextId="deq1_attack_time";break;case controlsId.TEXT_DEQ1_RELEASE_TIME:fn=deq1ReleaseChangeRespond;inputTextId="deq1_release_time";break;case controlsId.TEXT_DEQ2_THRESHOLD:fn=deq2ThresholdChangeRespond;inputTextId="deq2_threshold";break;case controlsId.TEXT_DEQ2_RATIO:fn=deq2RatioChangeRespond;inputTextId="deq2_ratio";break;case controlsId.TEXT_DEQ2_ATTACK_TIME:fn=deq2AttackChangeRespond;inputTextId="deq2_attack_time";break;case controlsId.TEXT_DEQ2_RELEASE_TIME:fn=deq2ReleaseChangeRespond;inputTextId="deq2_release_time";break;case controlsId.TEXT_THRESHOLD:fn=thresholdChangeRespond;inputTextId="text_threshold";break;case controlsId.TEXT_TARGET_LEVEL:fn=targetLelChangeRespond;inputTextId="text_target_level";break;case controlsId.TEXT_EXTENSION_RATIO:fn=extensionRatioChangeRespond;inputTextId="text_extension_ratio";break;case controlsId.TEXT_EXTENSION_ATTACK:fn=extensionAttackChangeRespond;inputTextId="text_extension_attack";break;case controlsId.TEXT_EXTENSION_RELEASE:fn=extensionReleaseChangeRespond;inputTextId="text_extension_release";break;case controlsId.TEXT_COMPRESSOR:fn=compressorChangeRespond;inputTextId="text_compressor";break;case controlsId.TEXT_COMP_RATIO:fn=compRatioChangeRespond;inputTextId="text_comp_ratio";break;case controlsId.TEXT_COMP_ATTACK:fn=compAttackChangeRespond;inputTextId="text_comp_attack";break;case controlsId.TEXT_COMP_RELEASE:fn=compReleaseChangeRespond;inputTextId="text_comp_release";break;case controlsId.TEXT_VOLUME_A:fn=volumeAChangeRespond;inputTextId="text_volume_a";break;case controlsId.TEXT_VOLUME_B:fn=volumeBChangeRespond;inputTextId="text_volume_b";break;case controlsId.TEXT_VOLUME_C:fn=volumeCChangeRespond;inputTextId="text_volume_c";break;case controlsId.TEXT_VOLUME_D:fn=volumeDChangeRespond;inputTextId="text_volume_d";break;case controlsId.TEXT_VOLUME_OUT1:fn=volumeOut1ChangeRespond;inputTextId="text_volume_out1";break;case controlsId.TEXT_VOLUME_OUT2:fn=volumeOut2ChangeRespond;inputTextId="text_volume_out2";break;case controlsId.TEXT_VOLUME_OUT3:fn=volumeOut3ChangeRespond;inputTextId="text_volume_out3";break;case controlsId.TEXT_VOLUME_OUT4:fn=volumeOut4ChangeRespond;inputTextId="text_volume_out4";break;case controlsId.TEXT_VOLUME_OUT5:fn=volumeOut5ChangeRespond;inputTextId="text_volume_out5";break;case controlsId.TEXT_VOLUME_OUT6:fn=volumeOut6ChangeRespond;inputTextId="text_volume_out6";break;case controlsId.TEXT_VOLUME_OUT7:fn=volumeOut7ChangeRespond;inputTextId="text_volume_out7";break;case controlsId.TEXT_VOLUME_OUT8:fn=volumeOut8ChangeRespond;inputTextId="text_volume_out8";break;case controlsId.TEXT_GAIN:fn=gainChangeRespond;inputTextId="text_gain";break;default:break}currentEditControl=document.getElementById(inputTextId);currentEditControl.addEventListener("change",fn)}function gateChangeRespond(){var editControl=document.getElementById("text_gate");var str=editControl.value;var num=parseInt(str);getRightInputTextChange(num,inputTextValueType.NOISE_GATE);controlsData.inputData.noisegate=currentStep;editControl.value=getDisplayValue(inputTextValueType.NOISE_GATE);keepLinkInputGate(curButtonNo,currentStep)}function delayTimeChangeRespond(){var editControl=document.getElementById("text_delay_millisecond");var str=editControl.value;getRightDelayMillisecond(str);controlsData.inputData.delay=currentStep;controlsData.inputData.secondDelay=secondStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkInputTime(curButtonNo,currentStep,secondStep)}function isRealNaN(val){if(val===""||val==null){return false}if(!isNaN(val)){return true}else{return false}}function getRightDelayMillisecond(strValue){var arrayTemp=strValue.split(".");var num;if(isRealNaN(arrayTemp[0])){num=parseInt(arrayTemp[0]);if(num>constConfig.DELAY_TIME_STEPS_MAX){num=constConfig.DELAY_TIME_STEPS_MAX}else if(num=1e3){secondStep=0;return}}if(isRealNaN(arrayTemp[1])){arrayTemp[1]=arrayTemp[1].replace(/\s+/g,"");num=binarySearch(fine_delay,parseInt(arrayTemp[1])/Math.pow(10,arrayTemp[1].length));secondStep=num}}function delayMeterChangeRespond(){var editControl=document.getElementById("text_delay_meter");var str=editControl.value;getRightDelayMeter(str);controlsData.inputData.delay=currentStep;controlsData.inputData.secondDelay=secondStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_inch");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkInputTime(curButtonNo,currentStep,secondStep)}function getRightDelayMeter(strValue){var str=(Number(strValue)*1e3/331).toString();var arrayTemp=str.split(".");var num;if(isRealNaN(arrayTemp[0])){num=parseInt(arrayTemp[0]);if(num>constConfig.DELAY_TIME_STEPS_MAX){num=constConfig.DELAY_TIME_STEPS_MAX}else if(num=1e3){secondStep=0;return}}if(isRealNaN(arrayTemp[1])){arrayTemp[1]=arrayTemp[1].replace(/\s+/g,"");num=binarySearch(fine_delay,parseInt(arrayTemp[1])/Math.pow(10,arrayTemp[1].length));secondStep=num}}function delayInchChangeRespond(){var editControl=document.getElementById("text_delay_inch");var str=editControl.value;getRightDelayInch(str);controlsData.inputData.delay=currentStep;controlsData.inputData.secondDelay=secondStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);editControl=document.getElementById("text_delay_meter");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);keepLinkInputTime(curButtonNo,currentStep,secondStep)}function getRightDelayInch(strValue){var str=(Number(strValue)*1e3/(331*3.281)).toString();var arrayTemp=str.split(".");var num;if(isRealNaN(arrayTemp[0])){num=parseInt(arrayTemp[0]);if(num>constConfig.DELAY_TIME_STEPS_MAX){num=constConfig.DELAY_TIME_STEPS_MAX}else if(num=1e3){secondStep=0;return}}if(isRealNaN(arrayTemp[1])){arrayTemp[1]=arrayTemp[1].replace(/\s+/g,"");num=binarySearch(fine_delay,parseInt(arrayTemp[1])/Math.pow(10,arrayTemp[1].length));secondStep=num}}function eq1FrequencyChangeRespond(){var editControl=document.getElementById("text_eq1_frequency");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.FREQUENCY);eqData.EQ1.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq1Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData()}function eq1BandwidthChangeRespond(){var editControl=document.getElementById("text_eq1_bandwidth");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.BANDWIDTH);eqData.EQ1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq1_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq1Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData()}function eq1SlopeChangeRespond(){var editControl=document.getElementById("text_eq1_slope");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.SLOPE);eqData.EQ1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq1_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq1Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData()}function eq1GainChangeRespond(){var editControl=document.getElementById("text_eq1_gain");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.EQ_GAIN);eqData.EQ1.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq1Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ1_THUMP,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();updateAllEqGainButton(1);curEqChannel=1;showOrHideEqData()}function eq2FrequencyChangeRespond(){var editControl=document.getElementById("text_eq2_frequency");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.FREQUENCY);eqData.EQ2.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq2Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData()}function eq2BandwidthChangeRespond(){var editControl=document.getElementById("text_eq2_bandwidth");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.BANDWIDTH);eqData.EQ2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq2_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq2Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData()}function eq2SlopeChangeRespond(){var editControl=document.getElementById("text_eq2_slope");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.SLOPE);eqData.EQ2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq2_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq2Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData()}function eq2GainChangeRespond(){var editControl=document.getElementById("text_eq2_gain");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.EQ_GAIN);eqData.EQ2.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq2Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ2_THUMP,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();updateAllEqGainButton(2);curEqChannel=2;showOrHideEqData()}function eq3FrequencyChangeRespond(){var editControl=document.getElementById("text_eq3_frequency");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.FREQUENCY);eqData.EQ3.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq3Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData()}function eq3BandwidthChangeRespond(){var editControl=document.getElementById("text_eq3_bandwidth");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.BANDWIDTH);eqData.EQ3.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq3_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq3Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData()}function eq3SlopeChangeRespond(){var editControl=document.getElementById("text_eq3_slope");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.SLOPE);eqData.EQ3.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq3_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq3Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData()}function eq3GainChangeRespond(){var editControl=document.getElementById("text_eq3_gain");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.EQ_GAIN);eqData.EQ3.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq3Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ3_THUMP,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();updateAllEqGainButton(3);curEqChannel=3;showOrHideEqData()}function eq4FrequencyChangeRespond(){var editControl=document.getElementById("text_eq4_frequency");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.FREQUENCY);eqData.EQ4.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq4Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData()}function eq4BandwidthChangeRespond(){var editControl=document.getElementById("text_eq4_bandwidth");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.BANDWIDTH);eqData.EQ4.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq4_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq4Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData()}function eq4SlopeChangeRespond(){var editControl=document.getElementById("text_eq4_slope");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.SLOPE);eqData.EQ4.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq4_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq4Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData()}function eq4GainChangeRespond(){var editControl=document.getElementById("text_eq4_gain");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.EQ_GAIN);eqData.EQ4.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq4Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ4_THUMP,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();updateAllEqGainButton(4);curEqChannel=4;showOrHideEqData()}function eq5FrequencyChangeRespond(){var editControl=document.getElementById("text_eq5_frequency");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.FREQUENCY);eqData.EQ5.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);editControl=document.getElementById("text_eq1_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq5Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData()}function eq5BandwidthChangeRespond(){var editControl=document.getElementById("text_eq5_bandwidth");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.BANDWIDTH);eqData.EQ5.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq5_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq5Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData()}function eq5SlopeChangeRespond(){var editControl=document.getElementById("text_eq5_slope");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.SLOPE);eqData.EQ5.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq5_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq5Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData()}function eq5GainChangeRespond(){var editControl=document.getElementById("text_eq5_gain");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.EQ_GAIN);eqData.EQ5.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq5Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ5_THUMP,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();updateAllEqGainButton(5);curEqChannel=5;showOrHideEqData()}function eq6FrequencyChangeRespond(){var editControl=document.getElementById("text_eq6_frequency");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.FREQUENCY);eqData.EQ6.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq6Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData()}function eq6BandwidthChangeRespond(){var editControl=document.getElementById("text_eq6_bandwidth");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.BANDWIDTH);eqData.EQ6.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq6_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq6Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData()}function eq6SlopeChangeRespond(){var editControl=document.getElementById("text_eq6_slope");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.SLOPE);eqData.EQ6.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq6_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq6Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData()}function eq6GainChangeRespond(){var editControl=document.getElementById("text_eq6_gain");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.EQ_GAIN);eqData.EQ6.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq6Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ6_THUMP,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();updateAllEqGainButton(6);curEqChannel=6;showOrHideEqData()}function deq1FrequencyChangeRespond(){var editControl=document.getElementById("text_deq1_frequency");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.FREQUENCY);controlsData.inputData.InDeq1.req=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkInputDeq1Frequency(curButtonNo,currentStep)}function deq1BandwidthChangeRespond(){var editControl=document.getElementById("text_deq1_bandwidth");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.BANDWIDTH);controlsData.inputData.InDeq1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkInputDeq1Bandwidth(curButtonNo,currentStep)}function deq1LelChangeRespond(){var editControl=document.getElementById("text_deq1_level");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.DEQ_LEVEL);controlsData.inputData.InDeq1.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_LEVEL);keepLinkInputDeq1Level(curButtonNo,currentStep);updateDeqButton()}function deq1ThresholdChangeRespond(){var editControl=document.getElementById("deq1_threshold");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.DEQ_THRESHOLD);controlsData.inputData.DeqParam1.DEQ_Threshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_THRESHOLD);keepLinkInputDeq1Threshold(curButtonNo,currentStep)}function deq1RatioChangeRespond(){var editControl=document.getElementById("deq1_ratio");var str=editControl.value;currentStep=getRightExtensionRatio(str);controlsData.inputData.DeqParam1.DEQ_ratio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputDeq1Ratio(curButtonNo,currentStep)}function deq1AttackChangeRespond(){var editControl=document.getElementById("deq1_attack_time");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.ATTACK_TIME);controlsData.inputData.DeqParam1.DEQ_a=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputDeq1AttackTime(curButtonNo,currentStep)}function deq1ReleaseChangeRespond(){var editControl=document.getElementById("deq1_release_time");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.RELEASE_TIME);controlsData.inputData.DeqParam1.DEQ_r=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputDeq1ReleaseTime(curButtonNo,currentStep)}function deq2FrequencyChangeRespond(){var editControl=document.getElementById("text_deq2_frequency");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.FREQUENCY);controlsData.inputData.InDeq2.req=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkInputDeq2Frequency(curButtonNo,currentStep)}function deq2BandwidthChangeRespond(){var editControl=document.getElementById("text_deq2_bandwidth");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.BANDWIDTH);controlsData.inputData.InDeq2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkInputDeq2Bandwidth(curButtonNo,currentStep)}function deq2LelChangeRespond(){var editControl=document.getElementById("text_deq2_level");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.DEQ_LEVEL);controlsData.inputData.InDeq2.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_LEVEL);keepLinkInputDeq2Level(curButtonNo,currentStep);updateDeqButton()}function deq2ThresholdChangeRespond(){var editControl=document.getElementById("deq2_threshold");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.DEQ_THRESHOLD);controlsData.inputData.DeqParam2.DEQ_Threshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_THRESHOLD);keepLinkInputDeq2Threshold(curButtonNo,currentStep)}function deq2RatioChangeRespond(){var editControl=document.getElementById("deq2_ratio");var str=editControl.value;currentStep=getRightExtensionRatio(str);controlsData.inputData.DeqParam2.DEQ_ratio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputDeq2Ratio(curButtonNo,currentStep)}function deq2AttackChangeRespond(){var editControl=document.getElementById("deq2_attack_time");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.ATTACK_TIME);controlsData.inputData.DeqParam2.DEQ_a=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputDeq2AttackTime(curButtonNo,currentStep)}function deq2ReleaseChangeRespond(){var editControl=document.getElementById("deq2_release_time");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.RELEASE_TIME);controlsData.inputData.DeqParam2.DEQ_r=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputDeq2ReleaseTime(curButtonNo,currentStep)}function thresholdChangeRespond(){var editControl=document.getElementById("text_threshold");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.INPUT_EXTEND_THRESHOLD);controlsData.inputData.agThreshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_EXTEND_THRESHOLD);keepLinkInputThreshold(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function targetLelChangeRespond(){var editControl=document.getElementById("text_target_level");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.TARGET_LEVEL);controlsData.inputData.agLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_EXTEND_THRESHOLD);keepLinkInputLevel(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function extensionRatioChangeRespond(){var editControl=document.getElementById("text_extension_ratio");var str=editControl.value;currentStep=getRightExtensionRatio(str);controlsData.inputData.agRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputExtendRatio(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function getRightExtensionRatio(str){var strArray=str.split(":");if(strArray.length===0||strArray.length>2){return currentStep}else if(strArray.length===2){if(!isNaN(strArray[1])){return getExtensionRatioStep(strArray[1])}}else if(strArray.length===1){if(strArray[0]){if(!isNaN(strArray[0])){return getExtensionRatioStep(strArray[0])}}}return currentStep}function extensionAttackChangeRespond(){var editControl=document.getElementById("text_extension_attack");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.ATTACK_TIME);controlsData.inputData.agAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputExtendAttackTime(curButtonNo,currentStep)}function extensionReleaseChangeRespond(){var editControl=document.getElementById("text_extension_release");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.RELEASE_TIME);controlsData.inputData.agRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputExtendReleaseTime(curButtonNo,currentStep)}function compressorChangeRespond(){var editControl=document.getElementById("text_compressor");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.INPUT_COMPRESS_THRESHOLD);controlsData.inputData.compLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_COMPRESS_THRESHOLD);keepLinkInputCompressLevel(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function compRatioChangeRespond(){var editControl=document.getElementById("text_comp_ratio");var str=editControl.value;currentStep=getRightCompressorRatio(str);controlsData.inputData.compRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.COMPRESS_RATION);keepLinkInputCompressRatio(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function getRightCompressorRatio(str){var strArray=str.split(":");if(strArray.length===0||strArray.length>2){return currentStep}else if(strArray.length===2){if(!isNaN(strArray[0])){return getExtensionRatioStep(strArray[1])}}else if(strArray.length===1){if(!isNaN(strArray[0])){return getExtensionRatioStep(strArray[0])}}return currentStep}function compAttackChangeRespond(){var editControl=document.getElementById("text_comp_attack");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.ATTACK_TIME);controlsData.inputData.compAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputCompressAttackTime(curButtonNo,currentStep)}function compReleaseChangeRespond(){var editControl=document.getElementById("text_comp_release");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.RELEASE_TIME);controlsData.inputData.compRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputCompressReleaseTime(curButtonNo,currentStep)}function keepLinkInputVolume(curChannel,value){var linkArray=[],i;for(i=0;i<4;i++){if(i!==curChannel){if(linkInputSelect[i]===linkInputSelect[curChannel]){linkArray.push(i)}}}if(linkArray.length>0){for(i=0;i0){for(i=0;i=constConfig.NOISE_GATE_VALUE_MAX){currentStep=constConfig.NOISE_GATE_STEPS_MAX}else if(numconstConfig.DELAY_TIME_VALUE_MAX){currentStep=constConfig.DELAY_TIME_STEPS_MAX}else if(numconstConfig.DELAY_METER_VALUE_MAX){currentStep=constConfig.DELAY_TIME_STEPS_MAX}else if(numconstConfig.DELAY_INCH_VALUE_MAX){currentStep=constConfig.DELAY_TIME_STEPS_MAX}else if(numconstConfig.FREQUENCY_VALUE_MAX){currentStep=constConfig.FREQUENCY_STEPS_MAX}else if(numconstConfig.BANDWIDTH_VALUE_MAX){currentStep=constConfig.BANDWIDTH_STEPS_MAX}else if(numconstConfig.SLOPE_VALUE_MAX){currentStep=0}else if(numconstConfig.EQ_GAIN_VALUE_MAX){currentStep=constConfig.EQ_GAIN_STEPS_MAX}else if(numconstConfig.CHANNEL_GAIN_VALUE_MAX){currentStep=constConfig.CHANNEL_GAIN_STEPS_MAX}else if(numconstConfig.EXTENSION_RATIO_VALUE_MAX){currentStep=constConfig.EXTENSION_RATIO_STEPS_MAX}else if(numconstConfig.ATTACK_TIME_VALUE_MAX){currentStep=constConfig.ATTACK_TIME_STEPS_MAX}else if(numconstConfig.RELEASE_TIME_VALUE_MAX){currentStep=constConfig.RELEASE_TIME_STEPS_MAX}else if(numconstConfig.INPUT_EXTEND_THRESHOLD_VALUE_MAX){currentStep=constConfig.INPUT_EXTEND_THRESHOLD_STEPS_MAX}else if(num=controlsData.inputData.agLevel){currentStep=controlsData.inputData.agLevel}currentStep=Math.round(currentStep);break;case inputTextValueType.TARGET_LEVEL:if(num>constConfig.INPUT_EXTEND__TARGET_LEVEL_VALUE_MAX){currentStep=constConfig.INPUT_EXTEND_TARGET_LEVEL_STEPS_MAX}else if(num=controlsData.inputData.compLevel+Middle_Comp_Level){currentStep=controlsData.inputData.compLevel+Middle_Comp_Level}else if(currentStep<=controlsData.inputData.agThreshold){currentStep=controlsData.inputData.agThreshold}currentStep=Math.round(currentStep);break;case inputTextValueType.INPUT_COMPRESS_THRESHOLD:if(num>constConfig.INPUT_COMPRESS_THRESHOLD_VALUE_MAX){currentStep=constConfig.INPUT_COMPRESS_THRESHOLD_STEPS_MAX}else if(numconstConfig.OUTPUT_COMPRESS_THRESHOLD_VALUE_MAX){currentStep=constConfig.OUTPUT_COMPRESS_THRESHOLD_STEPS_MAX}else if(num=controlsData.outputData.limT){currentStep=controlsData.outputData.limT}currentStep=Math.round(currentStep);break;case inputTextValueType.OUTPUT_LIMITER_THRESHOLD:if(num>constConfig.OUTPUT_LIMITER_THRESHOLD_VALUE_MAX){currentStep=constConfig.OUTPUT_LIMITER_THRESHOLD_STEPS_MAX}else if(numconstConfig.DEQ_LEVEL_MAX){currentStep=constConfig.DEQ_LEVEL_STEPS_MAX}else if(numconstConfig.DEQ_LEVEL_MAX){currentStep=constConfig.DEQ_LEVEL_STEPS_MAX}else if(numconstConfig.ATTACK_TIME_VALUE_MAX){currentStep=constConfig.ATTACK_TIME_STEPS_MAX}else if(numconstConfig.RELEASE_TIME_VALUE_MAX){currentStep=constConfig.RELEASE_TIME_STEPS_MAX}else if(numdata[m]){return binarySearchReverse(data,item,start,m)}else{return binarySearchReverse(data,item,m,end)}return end}function addOutTextChangeEvent(){var editControl=document.getElementById("text_delay_millisecond_out");editControl.addEventListener("change",outDelayTimeChangeRespond);editControl=document.getElementById("text_delay_meter_out");editControl.addEventListener("change",outDelayMeterChangeRespond);editControl=document.getElementById("text_delay_inch_out");editControl.addEventListener("change",outDelayInchChangeRespond);editControl=document.getElementById("text_hpf_frequency");editControl.addEventListener("change",hpfFrequencyChangeRespond);editControl=document.getElementById("text_lpf_frequency");editControl.addEventListener("change",lpfFrequencyChangeRespond);editControl=document.getElementById("text_threshold_compress_out");editControl.addEventListener("change",outThresholdCompressChangeRespond);editControl=document.getElementById("text_ratio_compress_out");editControl.addEventListener("change",outRatioCompressChangeRespond);editControl=document.getElementById("text_attack_compress_out");editControl.addEventListener("change",outAttackCompressChangeRespond);editControl=document.getElementById("text_release_compress_out");editControl.addEventListener("change",outReleaseCompressChangeRespond);editControl=document.getElementById("text_threshold_limit_out");editControl.addEventListener("change",outThresholdLimitChangeRespond);editControl=document.getElementById("text_attack_limit_out");editControl.addEventListener("change",outAttackLimitChangeRespond);editControl=document.getElementById("text_release_limit_out");editControl.addEventListener("change",outReleaseLimitChangeRespond)}function outThresholdCompressChangeRespond(){var editControl=document.getElementById("text_threshold_compress_out");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.OUTPUT_COMPRESS_THRESHOLD);controlsData.outputData.compLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.OUTPUT_COMPRESS_THRESHOLD);keepLinkOutThresholdCompress(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT()}function outRatioCompressChangeRespond(){var editControl=document.getElementById("text_ratio_compress_out");var str=editControl.value;currentStep=getRightCompressorRatio(str);controlsData.outputData.compRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.COMPRESS_RATION);keepLinkOutRatioCompress(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT()}function outAttackCompressChangeRespond(){var editControl=document.getElementById("text_attack_compress_out");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.ATTACK_TIME);controlsData.outputData.compAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkOutAttackCompress(curButtonNo,currentStep)}function outReleaseCompressChangeRespond(){var editControl=document.getElementById("text_release_compress_out");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.RELEASE_TIME);controlsData.outputData.compR=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkOutReleaseCompress(curButtonNo,currentStep)}function outThresholdLimitChangeRespond(){var editControl=document.getElementById("text_threshold_limit_out");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.OUTPUT_LIMITER_THRESHOLD);controlsData.outputData.limT=currentStep;editControl.value=getDisplayValue(inputTextValueType.OUTPUT_LIMITER_THRESHOLD);keepLinkOutThresholdLimit(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT()}function outAttackLimitChangeRespond(){var editControl=document.getElementById("text_attack_limit_out");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.ATTACK_TIME);controlsData.outputData.limAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkOutAttackLimit(curButtonNo,currentStep)}function outReleaseLimitChangeRespond(){var editControl=document.getElementById("text_release_limit_out");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.RELEASE_TIME);controlsData.outputData.limRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkOutReleaseLimit(curButtonNo,currentStep)}function outDelayTimeChangeRespond(){var editControl=document.getElementById("text_delay_millisecond_out");var str=editControl.value;getRightDelayMillisecond(str);controlsData.outputData.delay=currentStep;controlsData.outputData.secondDelay=secondStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkOutDelayTime(curButtonNo,currentStep,secondStep)}function outDelayMeterChangeRespond(){var editControl=document.getElementById("text_delay_meter_out");var str=editControl.value;getRightDelayMeter(str);controlsData.outputData.delay=currentStep;controlsData.outputData.secondDelay=secondStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_inch_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkOutDelayTime(curButtonNo,currentStep,secondStep)}function outDelayInchChangeRespond(){var editControl=document.getElementById("text_delay_inch_out");var str=editControl.value;getRightDelayInch(str);controlsData.outputData.delay=currentStep;controlsData.outputData.secondDelay=secondStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);editControl=document.getElementById("text_delay_meter_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);keepLinkOutDelayTime(curButtonNo,currentStep,secondStep)}function hpfFrequencyChangeRespond(){var editControl=document.getElementById("text_hpf_frequency");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.FREQUENCY);if(currentStep>controlsData.outputData.LPFData.HL_freq){currentStep=controlsData.outputData.LPFData.HL_freq}controlsData.outputData.HPFData.HL_freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkOutHpfFrequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,7);DrawLine();curEqChannel=7;showOrHideEqData()}function lpfFrequencyChangeRespond(){var editControl=document.getElementById("text_lpf_frequency");var str=editControl.value;var num=parseFloat(str);getRightInputTextChange(num,inputTextValueType.FREQUENCY);if(currentStep12){currentStep=12}document.getElementById("gain_setting").value=currentStep+"dB";getOutputWriteCode()}function inputGainSettingKeyDownRespond(ev){currentStep=parseInt(document.getElementById("input_gain_setting").value);if(!keyDownRespond(ev)){return false}if(currentStep<-80){currentStep=-80}else if(currentStep>12){currentStep=12}document.getElementById("input_gain_setting").value=currentStep+"dB";getInputWriteCode()}function addTextKeyDownEvent(id){var fn;var inputTextId;switch(id){case controlsId.TEXT_GATE:fn=gateKeyDownRespond;inputTextId="text_gate";break;case controlsId.TEXT_DELAY_MILLISECOND:fn=delayTimeKeyDownRespond;inputTextId="text_delay_millisecond";break;case controlsId.TEXT_DELAY_METER:fn=delayMeterKeyDownRespond;inputTextId="text_delay_meter";break;case controlsId.TEXT_DELAY_INCH:fn=delayInchKeyDownRespond;inputTextId="text_delay_inch";break;case controlsId.TEXT_EQ1_FREQUENCY:fn=eq1FrequencyKeyDownRespond;inputTextId="text_eq1_frequency";break;case controlsId.TEXT_EQ1_BANDWIDTH:fn=eq1BandwidthKeyDownRespond;inputTextId="text_eq1_bandwidth";break;case controlsId.TEXT_EQ1_SLOPE:fn=eq1SlopeKeyDownRespond;inputTextId="text_eq1_slope";break;case controlsId.TEXT_EQ1_GAIN:fn=eq1GainKeyDownRespond;inputTextId="text_eq1_gain";break;case controlsId.TEXT_EQ2_FREQUENCY:fn=eq2FrequencyKeyDownRespond;inputTextId="text_eq2_frequency";break;case controlsId.TEXT_EQ2_BANDWIDTH:fn=eq2BandwidthKeyDownRespond;inputTextId="text_eq2_bandwidth";break;case controlsId.TEXT_EQ2_SLOPE:fn=eq2SlopeKeyDownRespond;inputTextId="text_eq2_slope";break;case controlsId.TEXT_EQ2_GAIN:fn=eq2GainKeyDownRespond;inputTextId="text_eq2_gain";break;case controlsId.TEXT_EQ3_FREQUENCY:fn=eq3FrequencyKeyDownRespond;inputTextId="text_eq3_frequency";break;case controlsId.TEXT_EQ3_BANDWIDTH:fn=eq3BandwidthKeyDownRespond;inputTextId="text_eq3_bandwidth";break;case controlsId.TEXT_EQ3_SLOPE:fn=eq3SlopeKeyDownRespond;inputTextId="text_eq3_slope";break;case controlsId.TEXT_EQ3_GAIN:fn=eq3GainKeyDownRespond;inputTextId="text_eq3_gain";break;case controlsId.TEXT_EQ4_FREQUENCY:fn=eq4FrequencyKeyDownRespond;inputTextId="text_eq4_frequency";break;case controlsId.TEXT_EQ4_BANDWIDTH:fn=eq4BandwidthKeyDownRespond;inputTextId="text_eq4_bandwidth";break;case controlsId.TEXT_EQ4_SLOPE:fn=eq4SlopeKeyDownRespond;inputTextId="text_eq4_slope";break;case controlsId.TEXT_EQ4_GAIN:fn=eq4GainKeyDownRespond;inputTextId="text_eq4_gain";break;case controlsId.TEXT_EQ5_FREQUENCY:fn=eq5FrequencyKeyDownRespond;inputTextId="text_eq5_frequency";break;case controlsId.TEXT_EQ5_BANDWIDTH:fn=eq5BandwidthKeyDownRespond;inputTextId="text_eq5_bandwidth";break;case controlsId.TEXT_EQ5_SLOPE:fn=eq5SlopeKeyDownRespond;inputTextId="text_eq5_slope";break;case controlsId.TEXT_EQ5_GAIN:fn=eq5GainKeyDownRespond;inputTextId="text_eq5_gain";break;case controlsId.TEXT_EQ6_FREQUENCY:fn=eq6FrequencyKeyDownRespond;inputTextId="text_eq6_frequency";break;case controlsId.TEXT_EQ6_BANDWIDTH:fn=eq6BandwidthKeyDownRespond;inputTextId="text_eq6_bandwidth";break;case controlsId.TEXT_EQ6_SLOPE:fn=eq6SlopeKeyDownRespond;inputTextId="text_eq6_slope";break;case controlsId.TEXT_EQ6_GAIN:fn=eq6GainKeyDownRespond;inputTextId="text_eq6_gain";break;case controlsId.TEXT_DEQ1_FREQUENCY:fn=deq1FrequencyKeyDownRespond;inputTextId="text_deq1_frequency";break;case controlsId.TEXT_DEQ1_BANDWIDTH:fn=deq1BandwidthKeyDownRespond;inputTextId="text_deq1_bandwidth";break;case controlsId.TEXT_DEQ1_LEVEL:fn=deq1LevelKeyDownRespond;inputTextId="text_deq1_level";break;case controlsId.TEXT_DEQ2_FREQUENCY:fn=deq2FrequencyKeyDownRespond;inputTextId="text_deq2_frequency";break;case controlsId.TEXT_DEQ2_BANDWIDTH:fn=deq2BandwidthKeyDownRespond;inputTextId="text_deq2_bandwidth";break;case controlsId.TEXT_DEQ2_LEVEL:fn=deq2LevelKeyDownRespond;inputTextId="text_deq2_level";break;case controlsId.TEXT_DEQ1_THRESHOLD:fn=deq1ThresholdKeyDownRespond;inputTextId="deq1_threshold";break;case controlsId.TEXT_DEQ1_RATIO:fn=deq1RatioKeyDownRespond;inputTextId="deq1_ratio";break;case controlsId.TEXT_DEQ1_ATTACK_TIME:fn=deq1AttackKeyDownRespond;inputTextId="deq1_attack_time";break;case controlsId.TEXT_DEQ1_RELEASE_TIME:fn=deq1ReleaseKeyDownRespond;inputTextId="deq1_release_time";break;case controlsId.TEXT_DEQ2_THRESHOLD:fn=deq2ThresholdKeyDownRespond;inputTextId="deq2_threshold";break;case controlsId.TEXT_DEQ2_RATIO:fn=deq2RatioKeyDownRespond;inputTextId="deq2_ratio";break;case controlsId.TEXT_DEQ2_ATTACK_TIME:fn=deq2AttackKeyDownRespond;inputTextId="deq2_attack_time";break;case controlsId.TEXT_DEQ2_RELEASE_TIME:fn=deq2ReleaseKeyDownRespond;inputTextId="deq2_release_time";break;case controlsId.TEXT_THRESHOLD:fn=thresholdKeyDownRespond;inputTextId="text_threshold";break;case controlsId.TEXT_TARGET_LEVEL:fn=targetLevelKeyDownRespond;inputTextId="text_target_level";break;case controlsId.TEXT_EXTENSION_RATIO:fn=extensionRatioKeyDownRespond;inputTextId="text_extension_ratio";break;case controlsId.TEXT_EXTENSION_ATTACK:fn=extensionAttackKeyDownRespond;inputTextId="text_extension_attack";break;case controlsId.TEXT_EXTENSION_RELEASE:fn=extensionReleaseKeyDownRespond;inputTextId="text_extension_release";break;case controlsId.TEXT_COMPRESSOR:fn=compressorKeyDownRespond;inputTextId="text_compressor";break;case controlsId.TEXT_COMP_RATIO:fn=compRatioKeyDownRespond;inputTextId="text_comp_ratio";break;case controlsId.TEXT_COMP_ATTACK:fn=compAttackKeyDownRespond;inputTextId="text_comp_attack";break;case controlsId.TEXT_COMP_RELEASE:fn=compReleaseKeyDownRespond;inputTextId="text_comp_release";break;case controlsId.TEXT_VOLUME_A:fn=volumeAKeyDownRespond;inputTextId="text_volume_a";break;case controlsId.TEXT_VOLUME_B:fn=volumeBKeyDownRespond;inputTextId="text_volume_b";break;case controlsId.TEXT_VOLUME_C:fn=volumeCKeyDownRespond;inputTextId="text_volume_c";break;case controlsId.TEXT_VOLUME_D:fn=volumeDKeyDownRespond;inputTextId="text_volume_d";break;case controlsId.TEXT_VOLUME_OUT1:fn=volumeOut1KeyDownRespond;inputTextId="text_volume_out1";break;case controlsId.TEXT_VOLUME_OUT2:fn=volumeOut2KeyDownRespond;inputTextId="text_volume_out2";break;case controlsId.TEXT_VOLUME_OUT3:fn=volumeOut3KeyDownRespond;inputTextId="text_volume_out3";break;case controlsId.TEXT_VOLUME_OUT4:fn=volumeOut4KeyDownRespond;inputTextId="text_volume_out4";break;case controlsId.TEXT_VOLUME_OUT5:fn=volumeOut5KeyDownRespond;inputTextId="text_volume_out5";break;case controlsId.TEXT_VOLUME_OUT6:fn=volumeOut6KeyDownRespond;inputTextId="text_volume_out6";break;case controlsId.TEXT_VOLUME_OUT7:fn=volumeOut7KeyDownRespond;inputTextId="text_volume_out7";break;case controlsId.TEXT_VOLUME_OUT8:fn=volumeOut8KeyDownRespond;inputTextId="text_volume_out8";break;case controlsId.TEXT_GAIN:fn=gainKeyDownRespond;inputTextId="text_gain";break;default:break}currentEditControl=document.getElementById(inputTextId);currentEditControl.addEventListener("keydown",fn)}function keyDownRespond(ev){var e=window.event||ev;var code=e.keyCode;if(code===38){currentStep++;return true}else if(code===40){currentStep--;return true}return false}function gateKeyDownRespond(ev){currentStep=controlsData.inputData.noisegate;if(!keyDownRespond(ev)){return false}var editControl=document.getElementById("text_gate");checkCurrentStep(inputTextValueType.NOISE_GATE);controlsData.inputData.noisegate=currentStep;editControl.value=getDisplayValue(inputTextValueType.NOISE_GATE);keepLinkInputGate(curButtonNo,currentStep)}function delayTimeKeyDownRespond(ev){currentStep=controlsData.inputData.delay;if(!keyDownRespond(ev)){return false}var editControl=document.getElementById("text_delay_millisecond");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.inputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkInputTime(curButtonNo,currentStep)}function delayMeterKeyDownRespond(ev){currentStep=controlsData.inputData.delay;if(!keyDownRespond(ev)){return false}var editControl=document.getElementById("text_delay_meter");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.inputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_inch");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkInputTime(curButtonNo,currentStep)}function delayInchKeyDownRespond(ev){currentStep=controlsData.inputData.delay;if(!keyDownRespond(ev)){return false}var editControl=document.getElementById("text_delay_inch");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.inputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);editControl=document.getElementById("text_delay_meter");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);keepLinkInputTime(curButtonNo,currentStep)}function eq1FrequencyKeyDownRespond(ev){var editControl=document.getElementById("text_eq1_frequency");currentStep=eqData.EQ1.freq;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ1.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq1Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData()}function eq1BandwidthKeyDownRespond(ev){var editControl=document.getElementById("text_eq1_bandwidth");currentStep=eqData.EQ1.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq1_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq1Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData()}function eq1SlopeKeyDownRespond(ev){var editControl=document.getElementById("text_eq1_slope");currentStep=eqData.EQ1.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq1_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq1Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData()}function eq1GainKeyDownRespond(ev){var editControl=document.getElementById("text_eq1_gain");currentStep=eqData.EQ1.level;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ1.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq1Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ1_THUMP,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();updateAllEqGainButton(1);curEqChannel=1;showOrHideEqData()}function eq2FrequencyKeyDownRespond(ev){var editControl=document.getElementById("text_eq2_frequency");currentStep=eqData.EQ2.freq;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ2.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq2Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData()}function eq2BandwidthKeyDownRespond(ev){var editControl=document.getElementById("text_eq2_bandwidth");currentStep=eqData.EQ2.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq2_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq2Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData()}function eq2SlopeKeyDownRespond(ev){var editControl=document.getElementById("text_eq2_slope");currentStep=eqData.EQ2.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq2_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq2Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData()}function eq2GainKeyDownRespond(ev){var editControl=document.getElementById("text_eq2_gain");currentStep=eqData.EQ2.level;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ2.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq2Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ2_THUMP,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();updateAllEqGainButton(2);curEqChannel=2;showOrHideEqData()}function eq3FrequencyKeyDownRespond(ev){var editControl=document.getElementById("text_eq3_frequency");currentStep=eqData.EQ3.freq;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ3.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq3Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData()}function eq3BandwidthKeyDownRespond(ev){var editControl=document.getElementById("text_eq3_bandwidth");currentStep=eqData.EQ3.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ3.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq3_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq3Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData()}function eq3SlopeKeyDownRespond(ev){var editControl=document.getElementById("text_eq3_slope");currentStep=eqData.EQ3.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ3.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq3_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq3Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData()}function eq3GainKeyDownRespond(ev){var editControl=document.getElementById("text_eq3_gain");currentStep=eqData.EQ3.level;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ3.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq3Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ3_THUMP,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();updateAllEqGainButton(3);curEqChannel=3;showOrHideEqData()}function eq4FrequencyKeyDownRespond(ev){var editControl=document.getElementById("text_eq4_frequency");currentStep=eqData.EQ4.freq;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ4.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq4Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData()}function eq4BandwidthKeyDownRespond(ev){var editControl=document.getElementById("text_eq4_bandwidth");currentStep=eqData.EQ4.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ4.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq4_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq4Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData()}function eq4SlopeKeyDownRespond(ev){var editControl=document.getElementById("text_eq4_slope");currentStep=eqData.EQ4.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ4.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq4_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq4Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData()}function eq4GainKeyDownRespond(ev){var editControl=document.getElementById("text_eq4_gain");currentStep=eqData.EQ4.level;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ4.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq4Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ4_THUMP,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();updateAllEqGainButton(4);curEqChannel=4;showOrHideEqData()}function eq5FrequencyKeyDownRespond(ev){var editControl=document.getElementById("text_eq5_frequency");currentStep=eqData.EQ5.freq;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ5.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq5Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData()}function eq5BandwidthKeyDownRespond(ev){var editControl=document.getElementById("text_eq5_bandwidth");currentStep=eqData.EQ5.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ5.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq5_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq5Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData()}function eq5SlopeKeyDownRespond(ev){var editControl=document.getElementById("text_eq5_slope");currentStep=eqData.EQ5.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ5.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq5_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq5Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData()}function eq5GainKeyDownRespond(ev){var editControl=document.getElementById("text_eq5_gain");currentStep=eqData.EQ5.level;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ5.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq5Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ5_THUMP,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();updateAllEqGainButton(5);curEqChannel=5;showOrHideEqData()}function eq6FrequencyKeyDownRespond(ev){var editControl=document.getElementById("text_eq6_frequency");currentStep=eqData.EQ6.freq;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ6.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq6Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData()}function eq6BandwidthKeyDownRespond(ev){var editControl=document.getElementById("text_eq6_bandwidth");currentStep=eqData.EQ6.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ6.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq6_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq6Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData()}function eq6SlopeKeyDownRespond(ev){var editControl=document.getElementById("text_eq6_slope");currentStep=eqData.EQ6.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ6.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq6_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq6Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData()}function eq6GainKeyDownRespond(ev){var editControl=document.getElementById("text_eq6_gain");currentStep=eqData.EQ6.level;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ6.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq6Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ6_THUMP,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();updateAllEqGainButton(6);curEqChannel=6;showOrHideEqData()}function deq1FrequencyKeyDownRespond(ev){var editControl=document.getElementById("text_deq1_frequency");currentStep=controlsData.inputData.InDeq1.req;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.FREQUENCY);controlsData.inputData.InDeq1.req=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkInputDeq1Frequency(curButtonNo,currentStep)}function deq1BandwidthKeyDownRespond(ev){var editControl=document.getElementById("text_deq1_bandwidth");currentStep=controlsData.inputData.InDeq1.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);controlsData.inputData.InDeq1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkInputDeq1Bandwidth(curButtonNo,currentStep)}function deq1LevelKeyDownRespond(ev){var editControl=document.getElementById("text_deq1_level");currentStep=controlsData.inputData.InDeq1.level;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.DEQ_LEVEL);controlsData.inputData.InDeq1.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_LEVEL);keepLinkInputDeq1Level(curButtonNo,currentStep);updateDeqButton()}function deq1ThresholdKeyDownRespond(ev){var editControl=document.getElementById("deq1_threshold");currentStep=controlsData.inputData.DeqParam1.DEQ_Threshold;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.DEQ_THRESHOLD);controlsData.inputData.DeqParam1.DEQ_Threshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_THRESHOLD);keepLinkInputDeq1Threshold(curButtonNo,currentStep)}function deq1RatioKeyDownRespond(ev){var editControl=document.getElementById("deq1_ratio");currentStep=controlsData.inputData.DeqParam1.DEQ_ratio;if(!keyDownRespond(ev)){return false}fixRatioCurrentStep(controlsData.inputData.DeqParam1.DEQ_ratio);checkCurrentStep(inputTextValueType.EXTENSION_RATION);controlsData.inputData.DeqParam1.DEQ_ratio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputDeq1Ratio(curButtonNo,currentStep)}function deq1AttackKeyDownRespond(ev){var editControl=document.getElementById("deq1_attack_time");currentStep=controlsData.inputData.DeqParam1.DEQ_a;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.DeqParam1.DEQ_a=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputDeq1AttackTime(curButtonNo,currentStep)}function deq1ReleaseKeyDownRespond(ev){var editControl=document.getElementById("deq1_release_time");currentStep=controlsData.inputData.DeqParam1.DEQ_r;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.DeqParam1.DEQ_r=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputDeq1ReleaseTime(curButtonNo,currentStep)}function deq2FrequencyKeyDownRespond(ev){var editControl=document.getElementById("text_deq2_frequency");currentStep=controlsData.inputData.InDeq2.req;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.FREQUENCY);controlsData.inputData.InDeq2.req=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkInputDeq2Frequency(curButtonNo,currentStep)}function deq2BandwidthKeyDownRespond(ev){var editControl=document.getElementById("text_deq2_bandwidth");currentStep=controlsData.inputData.InDeq2.bw;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.BANDWIDTH);controlsData.inputData.InDeq2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkInputDeq2Bandwidth(curButtonNo,currentStep)}function deq2LevelKeyDownRespond(ev){var editControl=document.getElementById("text_deq2_level");currentStep=controlsData.inputData.InDeq2.level;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.DEQ_LEVEL);controlsData.inputData.InDeq2.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_LEVEL);keepLinkInputDeq2Level(curButtonNo,currentStep);updateDeqButton()}function deq2ThresholdKeyDownRespond(ev){var editControl=document.getElementById("deq2_threshold");currentStep=controlsData.inputData.DeqParam2.DEQ_Threshold;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.DEQ_THRESHOLD);controlsData.inputData.DeqParam2.DEQ_Threshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_THRESHOLD);keepLinkInputDeq2Threshold(curButtonNo,currentStep)}function deq2RatioKeyDownRespond(ev){var editControl=document.getElementById("deq2_ratio");currentStep=controlsData.inputData.DeqParam2.DEQ_ratio;if(!keyDownRespond(ev)){return false}fixRatioCurrentStep(controlsData.inputData.DeqParam2.DEQ_ratio);checkCurrentStep(inputTextValueType.EXTENSION_RATION);controlsData.inputData.DeqParam2.DEQ_ratio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputDeq2Ratio(curButtonNo,currentStep)}function deq2AttackKeyDownRespond(ev){var editControl=document.getElementById("deq2_attack_time");currentStep=controlsData.inputData.DeqParam2.DEQ_a;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.DeqParam2.DEQ_a=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputDeq2AttackTime(curButtonNo,currentStep)}function deq2ReleaseKeyDownRespond(ev){var editControl=document.getElementById("deq2_release_time");currentStep=controlsData.inputData.DeqParam2.DEQ_r;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.DeqParam2.DEQ_r=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputDeq2ReleaseTime(curButtonNo,currentStep)}function thresholdKeyDownRespond(ev){var editControl=document.getElementById("text_threshold");currentStep=controlsData.inputData.agThreshold;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.INPUT_EXTEND_THRESHOLD);controlsData.inputData.agThreshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_EXTEND_THRESHOLD);keepLinkInputThreshold(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function targetLevelKeyDownRespond(ev){var editControl=document.getElementById("text_target_level");currentStep=controlsData.inputData.agLevel;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.TARGET_LEVEL);controlsData.inputData.agLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_EXTEND_THRESHOLD);keepLinkInputLevel(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function extensionRatioKeyDownRespond(ev){var editControl=document.getElementById("text_extension_ratio");currentStep=controlsData.inputData.agRatio;if(!keyDownRespond(ev)){return false}fixRatioCurrentStep(controlsData.inputData.agRatio);checkCurrentStep(inputTextValueType.EXTENSION_RATION);controlsData.inputData.agRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputExtendRatio(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function extensionAttackKeyDownRespond(ev){var editControl=document.getElementById("text_extension_attack");currentStep=controlsData.inputData.agAttack;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.agAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputExtendAttackTime(curButtonNo,currentStep)}function extensionReleaseKeyDownRespond(ev){var editControl=document.getElementById("text_extension_release");currentStep=controlsData.inputData.agRelease;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.agRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputExtendReleaseTime(curButtonNo,currentStep)}function compressorKeyDownRespond(ev){var editControl=document.getElementById("text_compressor");currentStep=controlsData.inputData.compLevel;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.INPUT_COMPRESS_THRESHOLD);controlsData.inputData.compLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_COMPRESS_THRESHOLD);keepLinkInputCompressLevel(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function compRatioKeyDownRespond(ev){var editControl=document.getElementById("text_comp_ratio");currentStep=controlsData.inputData.compRatio;if(!keyDownRespond(ev)){return false}fixRatioCurrentStep(controlsData.inputData.compRatio);checkCurrentStep(inputTextValueType.COMPRESS_RATION);controlsData.inputData.compRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.COMPRESS_RATION);keepLinkInputCompressRatio(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function compAttackKeyDownRespond(ev){var editControl=document.getElementById("text_comp_attack");currentStep=controlsData.inputData.compAttack;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.compAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputCompressAttackTime(curButtonNo,currentStep)}function compReleaseKeyDownRespond(ev){var editControl=document.getElementById("text_comp_release");currentStep=controlsData.inputData.compRelease;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.compRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputCompressReleaseTime(curButtonNo,currentStep)}function volumeAKeyDownRespond(ev){var editControl=document.getElementById("text_volume_a");currentStep=currentGroupData.dataInputA.gain;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputA.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_A,currentStep);keepLinkInputVolume(0,currentStep)}function volumeBKeyDownRespond(ev){var editControl=document.getElementById("text_volume_b");currentStep=currentGroupData.dataInputB.gain;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputB.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_B,currentStep);keepLinkInputVolume(1,currentStep)}function volumeCKeyDownRespond(ev){var editControl=document.getElementById("text_volume_c");currentStep=currentGroupData.dataInputC.gain;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputC.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_C,currentStep);keepLinkInputVolume(2,currentStep)}function volumeDKeyDownRespond(ev){var editControl=document.getElementById("text_volume_d");currentStep=currentGroupData.dataInputD.gain;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputD.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_D,currentStep);keepLinkInputVolume(3,currentStep)}function volumeOut1KeyDownRespond(ev){var editControl=document.getElementById("text_volume_out1");currentStep=currentGroupData.dataOut1.gain;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut1.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT1,currentStep);keepLinkOutVolume(0,currentStep)}function volumeOut2KeyDownRespond(ev){var editControl=document.getElementById("text_volume_out2");currentStep=currentGroupData.dataOut2.gain;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut2.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT2,currentStep);keepLinkOutVolume(1,currentStep)}function volumeOut3KeyDownRespond(ev){var editControl=document.getElementById("text_volume_out3");currentStep=currentGroupData.dataOut3.gain;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut3.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT3,currentStep);keepLinkOutVolume(2,currentStep)}function volumeOut4KeyDownRespond(ev){var editControl=document.getElementById("text_volume_out4");currentStep=currentGroupData.dataOut4.gain;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut4.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT4,currentStep);keepLinkOutVolume(3,currentStep)}function volumeOut5KeyDownRespond(ev){var editControl=document.getElementById("text_volume_out5");currentStep=currentGroupData.dataOut5.gain;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut5.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT5,currentStep);keepLinkOutVolume(4,currentStep)}function volumeOut6KeyDownRespond(ev){var editControl=document.getElementById("text_volume_out6");currentStep=currentGroupData.dataOut6.gain;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut6.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT6,currentStep);keepLinkOutVolume(5,currentStep)}function volumeOut7KeyDownRespond(ev){var editControl=document.getElementById("text_volume_out7");currentStep=currentGroupData.dataOut7.gain;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut7.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT7,currentStep);keepLinkOutVolume(6,currentStep)}function volumeOut8KeyDownRespond(ev){var editControl=document.getElementById("text_volume_out8");currentStep=currentGroupData.dataOut8.gain;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut8.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT8,currentStep);keepLinkOutVolume(7,currentStep)}function gainKeyDownRespond(ev){var editControl=document.getElementById("text_gain");currentStep=getChannelGain(curButtonNo);if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);setChannelGain(curButtonNo,currentStep);editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setGainSliderPosition(currentStep);keepShortGainInStep(currentStep)}function addOutTextKeyDownEvent(){var editControl=document.getElementById("text_delay_millisecond_out");editControl.addEventListener("keydown",outDelayTimeKeyDownRespond);editControl=document.getElementById("text_delay_meter_out");editControl.addEventListener("keydown",outDelayMeterKeyDownRespond);editControl=document.getElementById("text_delay_inch_out");editControl.addEventListener("keydown",outDelayInchKeyDownRespond);editControl=document.getElementById("text_hpf_frequency");editControl.addEventListener("keydown",hpfFrequencyKeyDownRespond);editControl=document.getElementById("text_lpf_frequency");editControl.addEventListener("keydown",lpfFrequencyKeyDownRespond);editControl=document.getElementById("text_threshold_compress_out");editControl.addEventListener("keydown",outThresholdCompressKeydownRespond);editControl=document.getElementById("text_ratio_compress_out");editControl.addEventListener("keydown",outRatioCompressKeydownRespond);editControl=document.getElementById("text_attack_compress_out");editControl.addEventListener("keydown",outAttackCompressKeydownRespond);editControl=document.getElementById("text_release_compress_out");editControl.addEventListener("keydown",outReleaseCompressKeydownRespond);editControl=document.getElementById("text_threshold_limit_out");editControl.addEventListener("keydown",outThresholdLimitKeydownRespond);editControl=document.getElementById("text_attack_limit_out");editControl.addEventListener("keydown",outAttackLimitKeydownRespond);editControl=document.getElementById("text_release_limit_out");editControl.addEventListener("keydown",outReleaseLimitKeydownRespond)}function outThresholdCompressKeydownRespond(ev){var editControl=document.getElementById("text_threshold_compress_out");currentStep=controlsData.outputData.compLevel;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.OUTPUT_COMPRESS_THRESHOLD);controlsData.outputData.compLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.OUTPUT_COMPRESS_THRESHOLD);keepLinkOutThresholdCompress(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT()}function outRatioCompressKeydownRespond(ev){var editControl=document.getElementById("text_ratio_compress_out");currentStep=controlsData.outputData.compRatio;if(!keyDownRespond(ev)){return false}fixRatioCurrentStep(controlsData.outputData.compRatio);checkCurrentStep(inputTextValueType.COMPRESS_RATION);controlsData.outputData.compRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.COMPRESS_RATION);keepLinkOutRatioCompress(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT()}function outAttackCompressKeydownRespond(ev){var editControl=document.getElementById("text_attack_compress_out");currentStep=controlsData.outputData.compAttack;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.outputData.compAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkOutAttackCompress(curButtonNo,currentStep)}function outReleaseCompressKeydownRespond(ev){var editControl=document.getElementById("text_release_compress_out");currentStep=controlsData.outputData.compR;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.outputData.compR=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkOutReleaseCompress(curButtonNo,currentStep)}function outThresholdLimitKeydownRespond(ev){var editControl=document.getElementById("text_threshold_limit_out");currentStep=controlsData.outputData.limT;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.OUTPUT_LIMITER_THRESHOLD);controlsData.outputData.limT=currentStep;editControl.value=getDisplayValue(inputTextValueType.OUTPUT_LIMITER_THRESHOLD);keepLinkOutThresholdLimit(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT()}function outAttackLimitKeydownRespond(ev){var editControl=document.getElementById("text_attack_limit_out");currentStep=controlsData.outputData.limAttack;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.outputData.limAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkOutAttackLimit(curButtonNo,currentStep)}function outReleaseLimitKeydownRespond(ev){var editControl=document.getElementById("text_release_limit_out");currentStep=controlsData.outputData.limRelease;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.outputData.limRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkOutReleaseLimit(curButtonNo,currentStep)}function outDelayTimeKeyDownRespond(ev){currentStep=controlsData.outputData.delay;if(!keyDownRespond(ev)){return false}var editControl=document.getElementById("text_delay_millisecond_out");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.outputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkOutDelayTime(curButtonNo,currentStep)}function outDelayMeterKeyDownRespond(ev){currentStep=controlsData.outputData.delay;if(!keyDownRespond(ev)){return false}var editControl=document.getElementById("text_delay_meter_out");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.outputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_inch_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkOutDelayTime(curButtonNo,currentStep)}function outDelayInchKeyDownRespond(ev){currentStep=controlsData.outputData.delay;if(!keyDownRespond(ev)){return false}var editControl=document.getElementById("text_delay_inch_out");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.outputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);editControl=document.getElementById("text_delay_meter_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);keepLinkOutDelayTime(curButtonNo,currentStep)}function hpfFrequencyKeyDownRespond(ev){var editControl=document.getElementById("text_hpf_frequency");currentStep=controlsData.outputData.HPFData.HL_freq;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.FREQUENCY);if(currentStep>controlsData.outputData.LPFData.HL_freq){currentStep=controlsData.outputData.LPFData.HL_freq}controlsData.outputData.HPFData.HL_freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkOutHpfFrequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,7);DrawLine();curEqChannel=7;showOrHideEqData()}function lpfFrequencyKeyDownRespond(ev){var editControl=document.getElementById("text_lpf_frequency");currentStep=controlsData.outputData.LPFData.HL_freq;if(!keyDownRespond(ev)){return false}checkCurrentStep(inputTextValueType.FREQUENCY);if(currentStep12){currentStep=12}document.getElementById("gain_setting").value=currentStep+"dB";getOutputWriteCode()}function inputGainSettingMouseWheelRespond(ev){currentStep=parseInt(document.getElementById("input_gain_setting").value);mouseWheelRespond(ev);if(currentStep<-80){currentStep=-80}else if(currentStep>12){currentStep=12}document.getElementById("input_gain_setting").value=currentStep+"dB";getInputWriteCode()}function addMouseWheelEvent(obj,xEvent,fn){if(obj.attachEvent){obj.attachEvent("on"+xEvent,fn)}else{obj.addEventListener(xEvent,fn,false)}}function mouseWheelRespond(ev){var event=ev||window.event;var down;down=event.wheelDelta?event.wheelDelta<0:event.detail>0;if(down){currentStep--}else{currentStep++}if(event.preventDefault){event.preventDefault()}return false}function addTextMouseWheelEvent(id){var fn;var inputTextId;switch(id){case controlsId.TEXT_GATE:fn=gateMouseWheelRespond;inputTextId="text_gate";break;case controlsId.TEXT_DELAY_MILLISECOND:fn=delayTimeMouseWheelRespond;inputTextId="text_delay_millisecond";break;case controlsId.TEXT_DELAY_METER:fn=delayMeterMouseWheelRespond;inputTextId="text_delay_meter";break;case controlsId.TEXT_DELAY_INCH:fn=delayInchMouseWheelRespond;inputTextId="text_delay_inch";break;case controlsId.TEXT_EQ1_FREQUENCY:fn=eq1FrequencyMouseWheelRespond;inputTextId="text_eq1_frequency";break;case controlsId.TEXT_EQ1_BANDWIDTH:fn=eq1BandwidthMouseWheelRespond;inputTextId="text_eq1_bandwidth";break;case controlsId.TEXT_EQ1_SLOPE:fn=eq1SlopeMouseWheelRespond;inputTextId="text_eq1_slope";break;case controlsId.TEXT_EQ1_GAIN:fn=eq1GainMouseWheelRespond;inputTextId="text_eq1_gain";break;case controlsId.TEXT_EQ2_FREQUENCY:fn=eq2FrequencyMouseWheelRespond;inputTextId="text_eq2_frequency";break;case controlsId.TEXT_EQ2_BANDWIDTH:fn=eq2BandwidthMouseWheelRespond;inputTextId="text_eq2_bandwidth";break;case controlsId.TEXT_EQ2_SLOPE:fn=eq2SlopeMouseWheelRespond;inputTextId="text_eq2_slope";break;case controlsId.TEXT_EQ2_GAIN:fn=eq2GainMouseWheelRespond;inputTextId="text_eq2_gain";break;case controlsId.TEXT_EQ3_FREQUENCY:fn=eq3FrequencyMouseWheelRespond;inputTextId="text_eq3_frequency";break;case controlsId.TEXT_EQ3_BANDWIDTH:fn=eq3BandwidthMouseWheelRespond;inputTextId="text_eq3_bandwidth";break;case controlsId.TEXT_EQ3_SLOPE:fn=eq3SlopeMouseWheelRespond;inputTextId="text_eq3_slope";break;case controlsId.TEXT_EQ3_GAIN:fn=eq3GainMouseWheelRespond;inputTextId="text_eq3_gain";break;case controlsId.TEXT_EQ4_FREQUENCY:fn=eq4FrequencyMouseWheelRespond;inputTextId="text_eq4_frequency";break;case controlsId.TEXT_EQ4_BANDWIDTH:fn=eq4BandwidthMouseWheelRespond;inputTextId="text_eq4_bandwidth";break;case controlsId.TEXT_EQ4_SLOPE:fn=eq4SlopeMouseWheelRespond;inputTextId="text_eq4_slope";break;case controlsId.TEXT_EQ4_GAIN:fn=eq4GainMouseWheelRespond;inputTextId="text_eq4_gain";break;case controlsId.TEXT_EQ5_FREQUENCY:fn=eq5FrequencyMouseWheelRespond;inputTextId="text_eq5_frequency";break;case controlsId.TEXT_EQ5_BANDWIDTH:fn=eq5BandwidthMouseWheelRespond;inputTextId="text_eq5_bandwidth";break;case controlsId.TEXT_EQ5_SLOPE:fn=eq5SlopeMouseWheelRespond;inputTextId="text_eq5_slope";break;case controlsId.TEXT_EQ5_GAIN:fn=eq5GainMouseWheelRespond;inputTextId="text_eq5_gain";break;case controlsId.TEXT_EQ6_FREQUENCY:fn=eq6FrequencyMouseWheelRespond;inputTextId="text_eq6_frequency";break;case controlsId.TEXT_EQ6_BANDWIDTH:fn=eq6BandwidthMouseWheelRespond;inputTextId="text_eq6_bandwidth";break;case controlsId.TEXT_EQ6_SLOPE:fn=eq6SlopeMouseWheelRespond;inputTextId="text_eq6_slope";break;case controlsId.TEXT_EQ6_GAIN:fn=eq6GainMouseWheelRespond;inputTextId="text_eq6_gain";break;case controlsId.TEXT_DEQ1_FREQUENCY:fn=deq1FrequencyMouseWheelRespond;inputTextId="text_deq1_frequency";break;case controlsId.TEXT_DEQ1_BANDWIDTH:fn=deq1BandwidthMouseWheelRespond;inputTextId="text_deq1_bandwidth";break;case controlsId.TEXT_DEQ1_LEVEL:fn=deq1LevelMouseWheelRespond;inputTextId="text_deq1_level";break;case controlsId.TEXT_DEQ2_FREQUENCY:fn=deq2FrequencyMouseWheelRespond;inputTextId="text_deq2_frequency";break;case controlsId.TEXT_DEQ2_BANDWIDTH:fn=deq2BandwidthMouseWheelRespond;inputTextId="text_deq2_bandwidth";break;case controlsId.TEXT_DEQ2_LEVEL:fn=deq2LevelMouseWheelRespond;inputTextId="text_deq2_level";break;case controlsId.TEXT_DEQ1_THRESHOLD:fn=deq1ThresholdMouseWheelRespond;inputTextId="deq1_threshold";break;case controlsId.TEXT_DEQ1_RATIO:fn=deq1RatioMouseWheelRespond;inputTextId="deq1_ratio";break;case controlsId.TEXT_DEQ1_ATTACK_TIME:fn=deq1AttackMouseWheelRespond;inputTextId="deq1_attack_time";break;case controlsId.TEXT_DEQ1_RELEASE_TIME:fn=deq1ReleaseMouseWheelRespond;inputTextId="deq1_release_time";break;case controlsId.TEXT_DEQ2_THRESHOLD:fn=deq2ThresholdMouseWheelRespond;inputTextId="deq2_threshold";break;case controlsId.TEXT_DEQ2_RATIO:fn=deq2RatioMouseWheelRespond;inputTextId="deq2_ratio";break;case controlsId.TEXT_DEQ2_ATTACK_TIME:fn=deq2AttackMouseWheelRespond;inputTextId="deq2_attack_time";break;case controlsId.TEXT_DEQ2_RELEASE_TIME:fn=deq2ReleaseMouseWheelRespond;inputTextId="deq2_release_time";break;case controlsId.TEXT_THRESHOLD:fn=thresholdMouseWheelRespond;inputTextId="text_threshold";break;case controlsId.TEXT_TARGET_LEVEL:fn=targetLevelMouseWheelRespond;inputTextId="text_target_level";break;case controlsId.TEXT_EXTENSION_RATIO:fn=extensionRatioMouseWheelRespond;inputTextId="text_extension_ratio";break;case controlsId.TEXT_EXTENSION_ATTACK:fn=extensionAttackMouseWheelRespond;inputTextId="text_extension_attack";break;case controlsId.TEXT_EXTENSION_RELEASE:fn=extensionReleaseMouseWheelRespond;inputTextId="text_extension_release";break;case controlsId.TEXT_COMPRESSOR:fn=compressorMouseWheelRespond;inputTextId="text_compressor";break;case controlsId.TEXT_COMP_RATIO:fn=compRatioMouseWheelRespond;inputTextId="text_comp_ratio";break;case controlsId.TEXT_COMP_ATTACK:fn=compAttackMouseWheelRespond;inputTextId="text_comp_attack";break;case controlsId.TEXT_COMP_RELEASE:fn=compReleaseMouseWheelRespond;inputTextId="text_comp_release";break;case controlsId.TEXT_VOLUME_A:fn=volumeAMouseWheelRespond;inputTextId="text_volume_a";break;case controlsId.TEXT_VOLUME_B:fn=volumeBMouseWheelRespond;inputTextId="text_volume_b";break;case controlsId.TEXT_VOLUME_C:fn=volumeCMouseWheelRespond;inputTextId="text_volume_c";break;case controlsId.TEXT_VOLUME_D:fn=volumeDMouseWheelRespond;inputTextId="text_volume_d";break;case controlsId.TEXT_VOLUME_OUT1:fn=volumeOut1MouseWheelRespond;inputTextId="text_volume_out1";break;case controlsId.TEXT_VOLUME_OUT2:fn=volumeOut2MouseWheelRespond;inputTextId="text_volume_out2";break;case controlsId.TEXT_VOLUME_OUT3:fn=volumeOut3MouseWheelRespond;inputTextId="text_volume_out3";break;case controlsId.TEXT_VOLUME_OUT4:fn=volumeOut4MouseWheelRespond;inputTextId="text_volume_out4";break;case controlsId.TEXT_VOLUME_OUT5:fn=volumeOut5MouseWheelRespond;inputTextId="text_volume_out5";break;case controlsId.TEXT_VOLUME_OUT6:fn=volumeOut6MouseWheelRespond;inputTextId="text_volume_out6";break;case controlsId.TEXT_VOLUME_OUT7:fn=volumeOut7MouseWheelRespond;inputTextId="text_volume_out7";break;case controlsId.TEXT_VOLUME_OUT8:fn=volumeOut8MouseWheelRespond;inputTextId="text_volume_out8";break;case controlsId.TEXT_GAIN:fn=gainMouseWheelRespond;inputTextId="text_gain";break;default:break}currentEditControl=document.getElementById(inputTextId);addMouseWheelEvent(currentEditControl,"mousewheel",fn);addMouseWheelEvent(currentEditControl,"DOMMouseScroll",fn)}function gateMouseWheelRespond(ev){currentStep=controlsData.inputData.noisegate;mouseWheelRespond(ev);var editControl=document.getElementById("text_gate");checkCurrentStep(inputTextValueType.NOISE_GATE);controlsData.inputData.noisegate=currentStep;editControl.value=getDisplayValue(inputTextValueType.NOISE_GATE);keepLinkInputGate(curButtonNo,currentStep)}function delayTimeMouseWheelRespond(ev){currentStep=controlsData.inputData.delay;mouseWheelRespond(ev);var editControl=document.getElementById("text_delay_millisecond");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.inputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkInputTime(curButtonNo,currentStep)}function delayMeterMouseWheelRespond(ev){currentStep=controlsData.inputData.delay;mouseWheelRespond(ev);var editControl=document.getElementById("text_delay_meter");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.inputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_inch");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkInputTime(curButtonNo,currentStep)}function delayInchMouseWheelRespond(ev){currentStep=controlsData.inputData.delay;mouseWheelRespond(ev);var editControl=document.getElementById("text_delay_inch");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.inputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);editControl=document.getElementById("text_delay_meter");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);keepLinkInputTime(curButtonNo,currentStep)}function eq1FrequencyMouseWheelRespond(ev){var editControl=document.getElementById("text_eq1_frequency");currentStep=eqData.EQ1.freq;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ1.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq1Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData()}function eq1BandwidthMouseWheelRespond(ev){var editControl=document.getElementById("text_eq1_bandwidth");currentStep=eqData.EQ1.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq1_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq1Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData()}function eq1SlopeMouseWheelRespond(ev){var editControl=document.getElementById("text_eq1_slope");currentStep=eqData.EQ1.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq1_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq1Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData()}function eq1GainMouseWheelRespond(ev){var editControl=document.getElementById("text_eq1_gain");currentStep=eqData.EQ1.level;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ1.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq1Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ1_THUMP,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();updateAllEqGainButton(1);curEqChannel=1;showOrHideEqData()}function eq2FrequencyMouseWheelRespond(ev){var editControl=document.getElementById("text_eq2_frequency");currentStep=eqData.EQ2.freq;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ2.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq2Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData()}function eq2BandwidthMouseWheelRespond(ev){var editControl=document.getElementById("text_eq2_bandwidth");currentStep=eqData.EQ2.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq2_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq2Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData()}function eq2SlopeMouseWheelRespond(ev){var editControl=document.getElementById("text_eq2_slope");currentStep=eqData.EQ2.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq2_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq2Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData()}function eq2GainMouseWheelRespond(ev){var editControl=document.getElementById("text_eq2_gain");currentStep=eqData.EQ2.level;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ2.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq2Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ2_THUMP,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();updateAllEqGainButton(2);curEqChannel=2;showOrHideEqData()}function eq3FrequencyMouseWheelRespond(ev){var editControl=document.getElementById("text_eq3_frequency");currentStep=eqData.EQ3.freq;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ3.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq3Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData()}function eq3BandwidthMouseWheelRespond(ev){var editControl=document.getElementById("text_eq3_bandwidth");currentStep=eqData.EQ3.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ3.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq3_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq3Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData()}function eq3SlopeMouseWheelRespond(ev){var editControl=document.getElementById("text_eq3_slope");currentStep=eqData.EQ3.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ3.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq3_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq3Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData()}function eq3GainMouseWheelRespond(ev){var editControl=document.getElementById("text_eq3_gain");currentStep=eqData.EQ3.level;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ3.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq3Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ3_THUMP,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();updateAllEqGainButton(3);curEqChannel=3;showOrHideEqData()}function eq4FrequencyMouseWheelRespond(ev){var editControl=document.getElementById("text_eq4_frequency");currentStep=eqData.EQ4.freq;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ4.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq4Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData()}function eq4BandwidthMouseWheelRespond(ev){var editControl=document.getElementById("text_eq4_bandwidth");currentStep=eqData.EQ4.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ4.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq4_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq4Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData()}function eq4SlopeMouseWheelRespond(ev){var editControl=document.getElementById("text_eq4_slope");currentStep=eqData.EQ4.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ4.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq4_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq4Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData()}function eq4GainMouseWheelRespond(ev){var editControl=document.getElementById("text_eq4_gain");currentStep=eqData.EQ4.level;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ4.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq4Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ4_THUMP,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();updateAllEqGainButton(4);curEqChannel=4;showOrHideEqData()}function eq5FrequencyMouseWheelRespond(ev){var editControl=document.getElementById("text_eq5_frequency");currentStep=eqData.EQ5.freq;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ5.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq5Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData()}function eq5BandwidthMouseWheelRespond(ev){var editControl=document.getElementById("text_eq5_bandwidth");currentStep=eqData.EQ5.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ5.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq5_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq5Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData()}function eq5SlopeMouseWheelRespond(ev){var editControl=document.getElementById("text_eq5_slope");currentStep=eqData.EQ5.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ5.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq5_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq5Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData()}function eq5GainMouseWheelRespond(ev){var editControl=document.getElementById("text_eq5_gain");currentStep=eqData.EQ5.level;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ5.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq5Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ5_THUMP,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();updateAllEqGainButton(5);curEqChannel=5;showOrHideEqData()}function eq6FrequencyMouseWheelRespond(ev){var editControl=document.getElementById("text_eq6_frequency");currentStep=eqData.EQ6.freq;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ6.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq6Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData()}function eq6BandwidthMouseWheelRespond(ev){var editControl=document.getElementById("text_eq6_bandwidth");currentStep=eqData.EQ6.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ6.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq6_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq6Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData()}function eq6SlopeMouseWheelRespond(ev){var editControl=document.getElementById("text_eq6_slope");currentStep=eqData.EQ6.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ6.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq6_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq6Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData()}function eq6GainMouseWheelRespond(ev){var editControl=document.getElementById("text_eq6_gain");currentStep=eqData.EQ6.level;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ6.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq6Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ6_THUMP,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();updateAllEqGainButton(6);curEqChannel=6;showOrHideEqData()}function deq1FrequencyMouseWheelRespond(ev){var editControl=document.getElementById("text_deq1_frequency");currentStep=controlsData.inputData.InDeq1.req;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);controlsData.inputData.InDeq1.req=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkInputDeq1Frequency(curButtonNo,currentStep)}function deq1BandwidthMouseWheelRespond(ev){var editControl=document.getElementById("text_deq1_bandwidth");currentStep=controlsData.inputData.InDeq1.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);controlsData.inputData.InDeq1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkInputDeq1Bandwidth(curButtonNo,currentStep)}function deq1LevelMouseWheelRespond(ev){var editControl=document.getElementById("text_deq1_level");currentStep=controlsData.inputData.InDeq1.level;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.DEQ_LEVEL);controlsData.inputData.InDeq1.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_LEVEL);keepLinkInputDeq1Level(curButtonNo,currentStep);updateDeqButton()}function deq1ThresholdMouseWheelRespond(ev){var editControl=document.getElementById("deq1_threshold");currentStep=controlsData.inputData.DeqParam1.DEQ_Threshold;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.DEQ_THRESHOLD);controlsData.inputData.DeqParam1.DEQ_Threshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_THRESHOLD);keepLinkInputDeq1Threshold(curButtonNo,currentStep)}function deq1RatioMouseWheelRespond(ev){var editControl=document.getElementById("deq1_ratio");currentStep=controlsData.inputData.DeqParam1.DEQ_ratio;mouseWheelRespond(ev);fixRatioCurrentStep(controlsData.inputData.DeqParam1.DEQ_ratio);checkCurrentStep(inputTextValueType.EXTENSION_RATION);controlsData.inputData.DeqParam1.DEQ_ratio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputDeq1Ratio(curButtonNo,currentStep)}function deq1AttackMouseWheelRespond(ev){var editControl=document.getElementById("deq1_attack_time");currentStep=controlsData.inputData.DeqParam1.DEQ_a;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.DeqParam1.DEQ_a=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputDeq1AttackTime(curButtonNo,currentStep)}function deq1ReleaseMouseWheelRespond(ev){var editControl=document.getElementById("deq1_release_time");currentStep=controlsData.inputData.DeqParam1.DEQ_r;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.DeqParam1.DEQ_r=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputDeq1ReleaseTime(curButtonNo,currentStep)}function deq2FrequencyMouseWheelRespond(ev){var editControl=document.getElementById("text_deq2_frequency");currentStep=controlsData.inputData.InDeq2.req;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);controlsData.inputData.InDeq2.req=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkInputDeq2Frequency(curButtonNo,currentStep)}function deq2BandwidthMouseWheelRespond(ev){var editControl=document.getElementById("text_deq2_bandwidth");currentStep=controlsData.inputData.InDeq2.bw;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.BANDWIDTH);controlsData.inputData.InDeq2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkInputDeq2Bandwidth(curButtonNo,currentStep)}function deq2LevelMouseWheelRespond(ev){var editControl=document.getElementById("text_deq2_level");currentStep=controlsData.inputData.InDeq2.level;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.DEQ_LEVEL);controlsData.inputData.InDeq2.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_LEVEL);keepLinkInputDeq2Level(curButtonNo,currentStep);updateDeqButton()}function deq2ThresholdMouseWheelRespond(ev){var editControl=document.getElementById("deq2_threshold");currentStep=controlsData.inputData.DeqParam2.DEQ_Threshold;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.DEQ_LEVEL);controlsData.inputData.DeqParam2.DEQ_Threshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_THRESHOLD);keepLinkInputDeq2Threshold(curButtonNo,currentStep)}function deq2RatioMouseWheelRespond(ev){var editControl=document.getElementById("deq2_ratio");currentStep=controlsData.inputData.DeqParam2.DEQ_ratio;mouseWheelRespond(ev);fixRatioCurrentStep(controlsData.inputData.DeqParam2.DEQ_ratio);checkCurrentStep(inputTextValueType.EXTENSION_RATION);controlsData.inputData.DeqParam2.DEQ_ratio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputDeq2Ratio(curButtonNo,currentStep)}function deq2AttackMouseWheelRespond(ev){var editControl=document.getElementById("deq2_attack_time");currentStep=controlsData.inputData.DeqParam2.DEQ_a;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.DeqParam2.DEQ_a=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputDeq2AttackTime(curButtonNo,currentStep)}function deq2ReleaseMouseWheelRespond(ev){var editControl=document.getElementById("deq2_release_time");currentStep=controlsData.inputData.DeqParam2.DEQ_r;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.DeqParam2.DEQ_r=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputDeq2ReleaseTime(curButtonNo,currentStep)}function thresholdMouseWheelRespond(ev){var editControl=document.getElementById("text_threshold");currentStep=controlsData.inputData.agThreshold;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.INPUT_EXTEND_THRESHOLD);controlsData.inputData.agThreshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_EXTEND_THRESHOLD);keepLinkInputThreshold(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function targetLevelMouseWheelRespond(ev){var editControl=document.getElementById("text_target_level");currentStep=controlsData.inputData.agLevel;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.TARGET_LEVEL);controlsData.inputData.agLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_EXTEND_THRESHOLD);keepLinkInputLevel(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function extensionRatioMouseWheelRespond(ev){var editControl=document.getElementById("text_extension_ratio");currentStep=controlsData.inputData.agRatio;mouseWheelRespond(ev);fixRatioCurrentStep(controlsData.inputData.agRatio);checkCurrentStep(inputTextValueType.EXTENSION_RATION);controlsData.inputData.agRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputExtendRatio(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function extensionAttackMouseWheelRespond(ev){var editControl=document.getElementById("text_extension_attack");currentStep=controlsData.inputData.agAttack;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.agAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputExtendAttackTime(curButtonNo,currentStep)}function extensionReleaseMouseWheelRespond(ev){var editControl=document.getElementById("text_extension_release");currentStep=controlsData.inputData.agRelease;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.agRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputExtendReleaseTime(curButtonNo,currentStep)}function compressorMouseWheelRespond(ev){var editControl=document.getElementById("text_compressor");currentStep=controlsData.inputData.compLevel;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.INPUT_COMPRESS_THRESHOLD);controlsData.inputData.compLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_COMPRESS_THRESHOLD);keepLinkInputCompressLevel(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function compRatioMouseWheelRespond(ev){var editControl=document.getElementById("text_comp_ratio");currentStep=controlsData.inputData.compRatio;mouseWheelRespond(ev);fixRatioCurrentStep(controlsData.inputData.compRatio);checkCurrentStep(inputTextValueType.COMPRESS_RATION);controlsData.inputData.compRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.COMPRESS_RATION);keepLinkInputCompressRatio(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp()}function compAttackMouseWheelRespond(ev){var editControl=document.getElementById("text_comp_attack");currentStep=controlsData.inputData.compAttack;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.compAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputCompressAttackTime(curButtonNo,currentStep)}function compReleaseMouseWheelRespond(ev){var editControl=document.getElementById("text_comp_release");currentStep=controlsData.inputData.compRelease;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.compRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputCompressReleaseTime(curButtonNo,currentStep)}function volumeAMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_a");currentStep=currentGroupData.dataInputA.gain;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputA.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_A,currentStep);keepLinkInputVolume(0,currentStep)}function volumeBMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_b");currentStep=currentGroupData.dataInputB.gain;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputB.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_B,currentStep);keepLinkInputVolume(1,currentStep)}function volumeCMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_c");currentStep=currentGroupData.dataInputC.gain;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputC.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_C,currentStep);keepLinkInputVolume(2,currentStep)}function volumeDMouseWheelRespond(ev){var editControl=document.getElementById("text_volume_d");currentStep=currentGroupData.dataInputD.gain;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputD.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_D,currentStep);keepLinkInputVolume(3,currentStep)}function volumeOut1MouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out1");currentStep=currentGroupData.dataOut1.gain;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut1.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT1,currentStep);keepLinkOutVolume(0,currentStep)}function volumeOut2MouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out2");currentStep=currentGroupData.dataOut2.gain;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut2.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT2,currentStep);keepLinkOutVolume(1,currentStep)}function volumeOut3MouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out3");currentStep=currentGroupData.dataOut3.gain;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut3.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT3,currentStep);keepLinkOutVolume(2,currentStep)}function volumeOut4MouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out4");currentStep=currentGroupData.dataOut4.gain;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut4.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT4,currentStep);keepLinkOutVolume(3,currentStep)}function volumeOut5MouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out5");currentStep=currentGroupData.dataOut5.gain;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut5.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT5,currentStep);keepLinkOutVolume(4,currentStep)}function volumeOut6MouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out6");currentStep=currentGroupData.dataOut6.gain;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut6.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT6,currentStep);keepLinkOutVolume(5,currentStep)}function volumeOut7MouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out7");currentStep=currentGroupData.dataOut7.gain;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut7.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT7,currentStep);keepLinkOutVolume(6,currentStep)}function volumeOut8MouseWheelRespond(ev){var editControl=document.getElementById("text_volume_out8");currentStep=currentGroupData.dataOut8.gain;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut8.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT8,currentStep);keepLinkOutVolume(7,currentStep)}function gainMouseWheelRespond(ev){var editControl=document.getElementById("text_gain");currentStep=getChannelGain(curButtonNo);mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.CHANNEL_GAIN);setChannelGain(curButtonNo,currentStep);editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setGainSliderPosition(currentStep);keepShortGainInStep(currentStep)}function addOutTextMouseWheelEvent(){var editControl=document.getElementById("text_delay_millisecond_out");addMouseWheelEvent(editControl,"mousewheel",outDelayTimeMouseWheelRespond);addMouseWheelEvent(editControl,"DOMMouseScroll",outDelayTimeMouseWheelRespond);editControl=document.getElementById("text_delay_meter_out");addMouseWheelEvent(editControl,"mousewheel",outDelayMeterMouseWheelRespond);addMouseWheelEvent(editControl,"DOMMouseScroll",outDelayMeterMouseWheelRespond);editControl=document.getElementById("text_delay_inch_out");addMouseWheelEvent(editControl,"mousewheel",outDelayInchMouseWheelRespond);addMouseWheelEvent(editControl,"DOMMouseScroll",outDelayInchMouseWheelRespond);editControl=document.getElementById("text_hpf_frequency");addMouseWheelEvent(editControl,"mousewheel",hpfFrequencyMouseWheelRespond);addMouseWheelEvent(editControl,"DOMMouseScroll",hpfFrequencyMouseWheelRespond);editControl=document.getElementById("text_lpf_frequency");addMouseWheelEvent(editControl,"mousewheel",lpfFrequencyMouseWheelRespond);addMouseWheelEvent(editControl,"DOMMouseScroll",lpfFrequencyMouseWheelRespond);editControl=document.getElementById("text_threshold_compress_out");addMouseWheelEvent(editControl,"mousewheel",outThresholdCompressMouseWheelRespond);addMouseWheelEvent(editControl,"DOMMouseScroll",outThresholdCompressMouseWheelRespond);editControl=document.getElementById("text_ratio_compress_out");addMouseWheelEvent(editControl,"mousewheel",outRatioCompressMouseWheelRespond);addMouseWheelEvent(editControl,"DOMMouseScroll",outRatioCompressMouseWheelRespond);editControl=document.getElementById("text_attack_compress_out");addMouseWheelEvent(editControl,"mousewheel",outAttackCompressMouseWheelRespond);addMouseWheelEvent(editControl,"DOMMouseScroll",outAttackCompressMouseWheelRespond);editControl=document.getElementById("text_release_compress_out");addMouseWheelEvent(editControl,"mousewheel",outReleaseCompressMouseWheelRespond);addMouseWheelEvent(editControl,"DOMMouseScroll",outReleaseCompressMouseWheelRespond);editControl=document.getElementById("text_threshold_limit_out");addMouseWheelEvent(editControl,"mousewheel",outThresholdLimitMouseWheelRespond);addMouseWheelEvent(editControl,"DOMMouseScroll",outThresholdLimitMouseWheelRespond);editControl=document.getElementById("text_attack_limit_out");addMouseWheelEvent(editControl,"mousewheel",outAttackLimitMouseWheelRespond);addMouseWheelEvent(editControl,"DOMMouseScroll",outAttackLimitMouseWheelRespond);editControl=document.getElementById("text_release_limit_out");addMouseWheelEvent(editControl,"mousewheel",outReleaseLimitMouseWheelRespond);addMouseWheelEvent(editControl,"DOMMouseScroll",outReleaseLimitMouseWheelRespond)}function outThresholdCompressMouseWheelRespond(ev){var editControl=document.getElementById("text_threshold_compress_out");currentStep=controlsData.outputData.compLevel;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.OUTPUT_COMPRESS_THRESHOLD);controlsData.outputData.compLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.OUTPUT_COMPRESS_THRESHOLD);keepLinkOutThresholdCompress(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT()}function outRatioCompressMouseWheelRespond(ev){var editControl=document.getElementById("text_ratio_compress_out");currentStep=controlsData.outputData.compRatio;mouseWheelRespond(ev);fixRatioCurrentStep(controlsData.outputData.compRatio);checkCurrentStep(inputTextValueType.COMPRESS_RATION);controlsData.outputData.compRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.COMPRESS_RATION);keepLinkOutRatioCompress(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT()}function outAttackCompressMouseWheelRespond(ev){var editControl=document.getElementById("text_attack_compress_out");currentStep=controlsData.outputData.compAttack;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.outputData.compAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkOutAttackCompress(curButtonNo,currentStep)}function outReleaseCompressMouseWheelRespond(ev){var editControl=document.getElementById("text_release_compress_out");currentStep=controlsData.outputData.compR;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.outputData.compR=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkOutReleaseCompress(curButtonNo,currentStep)}function outThresholdLimitMouseWheelRespond(ev){var editControl=document.getElementById("text_threshold_limit_out");currentStep=controlsData.outputData.limT;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.OUTPUT_LIMITER_THRESHOLD);controlsData.outputData.limT=currentStep;editControl.value=getDisplayValue(inputTextValueType.OUTPUT_LIMITER_THRESHOLD);keepLinkOutThresholdLimit(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT()}function outAttackLimitMouseWheelRespond(ev){var editControl=document.getElementById("text_attack_limit_out");currentStep=controlsData.outputData.limAttack;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.outputData.limAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkOutAttackLimit(curButtonNo,currentStep)}function outReleaseLimitMouseWheelRespond(ev){var editControl=document.getElementById("text_release_limit_out");currentStep=controlsData.outputData.limRelease;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.outputData.limRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkOutReleaseLimit(curButtonNo,currentStep)}function outDelayTimeMouseWheelRespond(ev){currentStep=controlsData.outputData.delay;mouseWheelRespond(ev);var editControl=document.getElementById("text_delay_millisecond_out");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.outputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkOutDelayTime(curButtonNo,currentStep)}function outDelayMeterMouseWheelRespond(ev){currentStep=controlsData.outputData.delay;mouseWheelRespond(ev);var editControl=document.getElementById("text_delay_meter_out");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.outputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_inch_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkOutDelayTime(curButtonNo,currentStep)}function outDelayInchMouseWheelRespond(ev){currentStep=controlsData.outputData.delay;mouseWheelRespond(ev);var editControl=document.getElementById("text_delay_inch_out");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.outputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);editControl=document.getElementById("text_delay_meter_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_millisecond_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);keepLinkOutDelayTime(curButtonNo,currentStep)}function hpfFrequencyMouseWheelRespond(ev){var editControl=document.getElementById("text_hpf_frequency");currentStep=controlsData.outputData.HPFData.HL_freq;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);if(currentStep>controlsData.outputData.LPFData.HL_freq){currentStep=controlsData.outputData.LPFData.HL_freq}controlsData.outputData.HPFData.HL_freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkOutHpfFrequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,7);DrawLine();curEqChannel=7;showOrHideEqData()}function lpfFrequencyMouseWheelRespond(ev){var editControl=document.getElementById("text_lpf_frequency");currentStep=controlsData.outputData.LPFData.HL_freq;mouseWheelRespond(ev);checkCurrentStep(inputTextValueType.FREQUENCY);if(currentStep11){if(currentStep>curValue){currentStep=currentStep+4}else{currentStep=currentStep-4}if((currentStep-11)%5){currentStep=11+Math.round((currentStep-11)/5)*5}}}function checkCurrentStep(type){var stepsMax,stepsMin=0;switch(type){case inputTextValueType.NOISE_GATE:stepsMax=constConfig.NOISE_GATE_STEPS_MAX;break;case inputTextValueType.DELAY_TIME:stepsMax=constConfig.DELAY_TIME_STEPS_MAX;if(currentStep>=constConfig.DELAY_TIME_STEPS_MAX){secondStep=0}break;case inputTextValueType.DELAY_SECOND_TIME:stepsMax=constConfig.DELAY_SECOND_TIME_STEPS_MAX;if(currentStep>=constConfig.DELAY_TIME_STEPS_MAX){currentStep=constConfig.DELAY_TIME_STEPS_MAX;secondStep=0}else if(stepsMin<=secondStep&&secondStep<=stepsMax){return 0}else if(secondStepstepsMax){secondStep=stepsMax}return;case inputTextValueType.COMPRESS_RATION:stepsMax=constConfig.EXTENSION_RATIO_STEPS_MAX;stepsMin=1;break;case inputTextValueType.EXTENSION_RATION:stepsMax=constConfig.EXTENSION_RATIO_STEPS_MAX;stepsMin=1;break;case inputTextValueType.FREQUENCY:stepsMax=constConfig.FREQUENCY_STEPS_MAX;break;case inputTextValueType.BANDWIDTH:stepsMax=constConfig.BANDWIDTH_STEPS_MAX;break;case inputTextValueType.SLOPE:stepsMax=constConfig.SLOPE_STEPS_MAX;break;case inputTextValueType.EQ_GAIN:stepsMax=constConfig.EQ_GAIN_STEPS_MAX;break;case inputTextValueType.CHANNEL_GAIN:stepsMax=constConfig.CHANNEL_GAIN_STEPS_MAX;break;case inputTextValueType.ATTACK_TIME:stepsMax=constConfig.ATTACK_TIME_STEPS_MAX;break;case inputTextValueType.RELEASE_TIME:stepsMax=constConfig.RELEASE_TIME_STEPS_MAX;break;case inputTextValueType.INPUT_EXTEND_THRESHOLD:stepsMax=controlsData.inputData.agLevel;break;case inputTextValueType.TARGET_LEVEL:stepsMin=controlsData.inputData.agThreshold;stepsMax=controlsData.inputData.compLevel+Middle_Comp_Level;break;case inputTextValueType.INPUT_COMPRESS_THRESHOLD:stepsMin=controlsData.inputData.agLevel-Middle_Comp_Level;if(stepsMin<=0){stepsMin=0}stepsMax=constConfig.INPUT_COMPRESS_THRESHOLD_STEPS_MAX;break;case inputTextValueType.OUTPUT_COMPRESS_THRESHOLD:stepsMax=controlsData.outputData.limT;break;case inputTextValueType.OUTPUT_LIMITER_THRESHOLD:stepsMin=controlsData.outputData.compLevel;stepsMax=constConfig.OUTPUT_COMPRESS_THRESHOLD_STEPS_MAX;break;case inputTextValueType.DEQ_LEVEL:stepsMax=constConfig.DEQ_LEVEL_STEPS_MAX;break;case inputTextValueType.DEQ_THRESHOLD:stepsMax=constConfig.DEQ_LEVEL_STEPS_MAX;default:break}if(stepsMin<=currentStep&¤tStep<=stepsMax){return 0}else if(currentStepstepsMax){currentStep=stepsMax}}function getDisplayValue(type){var value;switch(type){case inputTextValueType.NOISE_GATE:value=getNoiseGate();break;case inputTextValueType.DELAY_TIME:value=getDelayTime();break;case inputTextValueType.DELAY_METER:value=getDelayMeter();break;case inputTextValueType.DELAY_INCH:value=getDelayInch();break;case inputTextValueType.EXTENSION_RATION:value=getExtensionRation();break;case inputTextValueType.COMPRESS_RATION:value=getCompressRation();break;case inputTextValueType.FREQUENCY:value=getFrequency();break;case inputTextValueType.BANDWIDTH:value=getBandwidth();break;case inputTextValueType.SLOPE:value=getSlope();break;case inputTextValueType.EQ_GAIN:value=getEqGain();break;case inputTextValueType.CHANNEL_GAIN:value=getChanelGain();break;case inputTextValueType.ATTACK_TIME:value=getAttackTime();break;case inputTextValueType.RELEASE_TIME:value=getReleaseTime();break;case inputTextValueType.INPUT_EXTEND_THRESHOLD:value=getInputThreshold();break;case inputTextValueType.TARGET_LEVEL:value=getInputTargetLevel();break;case inputTextValueType.INPUT_COMPRESS_THRESHOLD:value=getInputCompressThreshold();break;case inputTextValueType.OUTPUT_COMPRESS_THRESHOLD:value=getOutputThreshold();break;case inputTextValueType.OUTPUT_LIMITER_THRESHOLD:value=getOutputLimiterThreshold();break;case inputTextValueType.DEQ_LEVEL:value=getDeqLevel();break;case inputTextValueType.DEQ_THRESHOLD:value=getDeqThreshold();break;default:value=0;break}return value}function getNoiseGate(){var value;value=currentStep*constConfig.NOISE_GATE_STEP_VALUE+constConfig.NOISE_GATE_VALUE_MIN;if(value===-120){value="OFF"}return value}function getNoiseGateDisplay(step){var value;value=step*constConfig.NOISE_GATE_STEP_VALUE+constConfig.NOISE_GATE_VALUE_MIN;if(value===-120){value="OFF"}return value}function getDelayTime(){var time;time=Number(currentStep+fine_delay[secondStep]).toFixed(3);return time}function getDelayTimeDisplay(step,second_step){var time;time=Number(step+fine_delay[second_step]).toFixed(3);return time}function getDelayMeter(){var value;value=Number(331/1e3*(currentStep+fine_delay[secondStep])).toFixed(4);return value}function getDelayMeterDisplay(step,second_step){var value;value=Number(331/1e3*(step+fine_delay[second_step])).toFixed(4);return value}function getDelayInch(){var value;value=Number(331/1e3*(currentStep+fine_delay[secondStep])*3.281).toFixed(4);return value}function getDelayInchDisplay(step,second_step){var value;value=Number(331/1e3*(step+fine_delay[second_step])*3.281).toFixed(4);return value}function getExtensionRation(){if(currentStep>constConfig.EXTENSION_RATIO_STEPS_MAX){currentStep=constConfig.EXTENSION_RATIO_STEPS_MAX}var value,i,j;if(currentStep===1){value="1:1.0"}else if(currentStep<=10){j=1+(currentStep-1)*.1;j=j.toFixed(1);value="1:"+j}else{i=2+(currentStep-11)*.1;i=i.toFixed(1);value="1:"+i}return value}function getExtensionRationDisplay(step){if(step>constConfig.EXTENSION_RATIO_STEPS_MAX){step=constConfig.EXTENSION_RATIO_STEPS_MAX}var value,i,j;if(step<=1){value="1:1.0"}else if(step<=10){j=1+(step-1)*.1;j=j.toFixed(1);value="1:"+j}else{i=2+(step-11)*.1;i=i.toFixed(1);value="1:"+i}return value}function getExtensionRationDisplayForReport(step){if(step>constConfig.EXTENSION_RATIO_STEPS_MAX){step=constConfig.EXTENSION_RATIO_STEPS_MAX}var value,i,j;if(step<=1){value="1.0:1.0"}else if(step<=10){j=1+(step-1)*.1;j=j.toFixed(1);value="1.0:"+j}else{i=2+(step-11)*.1;i=i.toFixed(1);value="1.0:"+i}return value}function getExtensionRatioStep(num){if(isNaN(num)){return}var step;if(num>constConfig.EXTENSION_RATIO_VALUE_MAX){step=constConfig.EXTENSION_RATIO_STEPS_MAX}else if(num11){step=11+Math.round((step-11)/5)*5}Math.round(step);return step}function getCompressRation(){var value,i,j;if(currentStep>constConfig.EXTENSION_RATIO_STEPS_MAX){currentStep=constConfig.EXTENSION_RATIO_STEPS_MAX}if(currentStep<=1){value="1.0:1"}else if(currentStep<=10){j=1+(currentStep-1)*.1;j=j.toFixed(1);value=j+":1"}else{i=2+(currentStep-11)*.1;i=i.toFixed(1);value=i+":1"}return value}function getCompressRationDisplay(step){if(step>constConfig.EXTENSION_RATIO_STEPS_MAX){currentStep=constConfig.EXTENSION_RATIO_STEPS_MAX}var value,i,j;if(step<1){value="1.0:1"}else if(step<=10){j=1+(step-1)*.1;j=j.toFixed(1);value=j+":1"}else{i=2+(step-11)*.1;i=i.toFixed(1);value=i+":1"}return value}function getFrequency(){var value=frequency[currentStep];if(currentStep<=56){value=value.toFixed(1)}else{value=parseInt(value)}return value}function getFrequencyDisplay(step){var value=frequency[step];if(step<=56){value=value.toFixed(1)}else{value=parseInt(value)}return value}function getFrequencyStep(num){var step=0;if(num>constConfig.FREQUENCY_VALUE_MAX){step=constConfig.FREQUENCY_STEPS_MAX}else if(numconstConfig.BANDWIDTH_VALUE_MAX){step=constConfig.BANDWIDTH_STEPS_MAX}else if(numconstConfig.SLOPE_VALUE_MAX){step=constConfig.SLOPE_STEPS_MAX}else if(numconstConfig.EQ_GAIN_VALUE_MAX){step=constConfig.EQ_GAIN_STEPS_MAX}else if(num0){for(i=0;i0){for(i=0;i4){keepLinkOutEq1Frequency(curChannel,value)}else{keepLinkInputEq1Frequency(curChannel,value)}}function keepLinkInputEq1Frequency(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq1Bandwidth(curChannel,value)}else{keepLinkInputEq1Bandwidth(curChannel,value)}}function keepLinkInputEq1Bandwidth(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq1Slope(curChannel,value)}else{keepLinkInputEq1Slope(curChannel,value)}}function keepLinkInputEq1Slope(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq1Gain(curChannel,value)}else{keepLinkInputEq1Gain(curChannel,value)}}function keepLinkInputEq1Gain(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq2Frequency(curChannel,value)}else{keepLinkInputEq2Frequency(curChannel,value)}}function keepLinkInputEq2Frequency(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq2Bandwidth(curChannel,value)}else{keepLinkInputEq2Bandwidth(curChannel,value)}}function keepLinkInputEq2Bandwidth(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq2Slope(curChannel,value)}else{keepLinkInputEq2Slope(curChannel,value)}}function keepLinkInputEq2Slope(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq2Gain(curChannel,value)}else{keepLinkInputEq2Gain(curChannel,value)}}function keepLinkInputEq2Gain(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq3Frequency(curChannel,value)}else{keepLinkInputEq3Frequency(curChannel,value)}}function keepLinkInputEq3Frequency(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq3Bandwidth(curChannel,value)}else{keepLinkInputEq3Bandwidth(curChannel,value)}}function keepLinkInputEq3Bandwidth(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq3Slope(curChannel,value)}else{keepLinkInputEq3Slope(curChannel,value)}}function keepLinkInputEq3Slope(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq3Gain(curChannel,value)}else{keepLinkInputEq3Gain(curChannel,value)}}function keepLinkInputEq3Gain(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq4Frequency(curChannel,value)}else{keepLinkInputEq4Frequency(curChannel,value)}}function keepLinkInputEq4Frequency(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq4Bandwidth(curChannel,value)}else{keepLinkInputEq4Bandwidth(curChannel,value)}}function keepLinkInputEq4Bandwidth(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq4Slope(curChannel,value)}else{keepLinkInputEq4Slope(curChannel,value)}}function keepLinkInputEq4Slope(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq4Gain(curChannel,value)}else{keepLinkInputEq4Gain(curChannel,value)}}function keepLinkInputEq4Gain(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq5Frequency(curChannel,value)}else{keepLinkInputEq5Frequency(curChannel,value)}}function keepLinkInputEq5Frequency(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq5Bandwidth(curChannel,value)}else{keepLinkInputEq5Bandwidth(curChannel,value)}}function keepLinkInputEq5Bandwidth(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq5Slope(curChannel,value)}else{keepLinkInputEq5Slope(curChannel,value)}}function keepLinkInputEq5Slope(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq5Gain(curChannel,value)}else{keepLinkInputEq5Gain(curChannel,value)}}function keepLinkInputEq5Gain(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq6Frequency(curChannel,value)}else{keepLinkInputEq6Frequency(curChannel,value)}}function keepLinkInputEq6Frequency(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq6Bandwidth(curChannel,value)}else{keepLinkInputEq6Bandwidth(curChannel,value)}}function keepLinkInputEq6Bandwidth(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq6Slope(curChannel,value)}else{keepLinkInputEq6Slope(curChannel,value)}}function keepLinkInputEq6Slope(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEq6Gain(curChannel,value)}else{keepLinkInputEq6Gain(curChannel,value)}}function keepLinkInputEq6Gain(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkOutEqButtonGain(curChannel,index,value)}else{keepLinkInputEqButtonGain(curChannel,index,value)}}function keepLinkInputEqButtonGain(curChannel,index,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkAllOutEqButtonGain(curChannel,index,value)}else{keepLinkAllInputEqButtonGain(curChannel,index,value)}}function keepLinkAllInputEqButtonGain(curChannel,index,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i4){keepLinkAllOutEqButtonFlag(curChannel,index,value)}else{keepLinkAllInputEqButtonFlag(curChannel,index,value)}}function keepLinkAllInputEqButtonFlag(curChannel,index,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i2){getInputChannelData(linkArray[i]).InEQ.EQ1.HL_db_AP_Flag=SET_4L_BYTE(getInputChannelData(linkArray[i]).InEQ.EQ1.HL_db_AP_Flag,value)}else{getInputChannelData(linkArray[i]).InEQ.EQ1.level=value}eqDataKeepStep(linkArray[i]+1,1)}}}function keepLinkOutEq1Button(curChannel,value){var i;var linkArray=getLinkOutArray(curChannel);if(linkArray.length>0){for(i=0;i2){getOutChannelData(linkArray[i]).OutEQ.EQ1.HL_db_AP_Flag=SET_4L_BYTE(getOutChannelData(linkArray[i]).OutEQ.EQ1.HL_db_AP_Flag,value)}else{getOutChannelData(linkArray[i]).OutEQ.EQ1.level=value}eqDataKeepStep(linkArray[i]+5,1)}}}function keepLinkEq2Button(curChannel,value){if(curChannel<5){keepLinkInputEq2Button(curChannel,value)}else{keepLinkOutEq2Button(curChannel,value)}}function keepLinkInputEq2Button(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i2){getInputChannelData(linkArray[i]).InEQ.EQ2.HL_db_AP_Flag=SET_4L_BYTE(getInputChannelData(linkArray[i]).InEQ.EQ2.HL_db_AP_Flag,value)}else{getInputChannelData(linkArray[i]).InEQ.EQ2.level=value}eqDataKeepStep(linkArray[i]+1,2)}}}function keepLinkOutEq2Button(curChannel,value){var i;var linkArray=getLinkOutArray(curChannel);if(linkArray.length>0){for(i=0;i2){getOutChannelData(linkArray[i]).OutEQ.EQ2.HL_db_AP_Flag=SET_4L_BYTE(getOutChannelData(linkArray[i]).OutEQ.EQ2.HL_db_AP_Flag,value)}else{getOutChannelData(linkArray[i]).OutEQ.EQ2.level=value}eqDataKeepStep(linkArray[i]+5,2)}}}function keepLinkEq3Button(curChannel,value){if(curChannel<5){keepLinkInputEq3Button(curChannel,value)}else{keepLinkOutEq3Button(curChannel,value)}}function keepLinkInputEq3Button(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i2){getInputChannelData(linkArray[i]).InEQ.EQ3.HL_db_AP_Flag=SET_4L_BYTE(getInputChannelData(linkArray[i]).InEQ.EQ3.HL_db_AP_Flag,value)}else{getInputChannelData(linkArray[i]).InEQ.EQ3.level=value}eqDataKeepStep(linkArray[i]+1,3)}}}function keepLinkOutEq3Button(curChannel,value){var i;var linkArray=getLinkOutArray(curChannel);if(linkArray.length>0){for(i=0;i2){getOutChannelData(linkArray[i]).OutEQ.EQ3.HL_db_AP_Flag=SET_4L_BYTE(getOutChannelData(linkArray[i]).OutEQ.EQ3.HL_db_AP_Flag,value)}else{getOutChannelData(linkArray[i]).OutEQ.EQ3.level=value}eqDataKeepStep(linkArray[i]+5,3)}}}function keepLinkEq4Button(curChannel,value){if(curChannel<5){keepLinkInputEq4Button(curChannel,value)}else{keepLinkOutEq4Button(curChannel,value)}}function keepLinkInputEq4Button(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i2){getInputChannelData(linkArray[i]).InEQ.EQ4.HL_db_AP_Flag=SET_4L_BYTE(getInputChannelData(linkArray[i]).InEQ.EQ4.HL_db_AP_Flag,value)}else{getInputChannelData(linkArray[i]).InEQ.EQ4.level=value}eqDataKeepStep(linkArray[i]+1,4)}}}function keepLinkOutEq4Button(curChannel,value){var i;var linkArray=getLinkOutArray(curChannel);if(linkArray.length>0){for(i=0;i2){getOutChannelData(linkArray[i]).OutEQ.EQ4.HL_db_AP_Flag=SET_4L_BYTE(getOutChannelData(linkArray[i]).OutEQ.EQ4.HL_db_AP_Flag,value)}else{getOutChannelData(linkArray[i]).OutEQ.EQ4.level=value}eqDataKeepStep(linkArray[i]+5,4)}}}function keepLinkEq5Button(curChannel,value){if(curChannel<5){keepLinkInputEq5Button(curChannel,value)}else{keepLinkOutEq5Button(curChannel,value)}}function keepLinkInputEq5Button(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i2){getInputChannelData(linkArray[i]).InEQ.EQ5.HL_db_AP_Flag=SET_4L_BYTE(getInputChannelData(linkArray[i]).InEQ.EQ5.HL_db_AP_Flag,value)}else{getInputChannelData(linkArray[i]).InEQ.EQ5.level=value}eqDataKeepStep(linkArray[i]+1,5)}}}function keepLinkOutEq5Button(curChannel,value){var i;var linkArray=getLinkOutArray(curChannel);if(linkArray.length>0){for(i=0;i2){getOutChannelData(linkArray[i]).OutEQ.EQ5.HL_db_AP_Flag=SET_4L_BYTE(getOutChannelData(linkArray[i]).OutEQ.EQ5.HL_db_AP_Flag,value)}else{getOutChannelData(linkArray[i]).OutEQ.EQ5.level=value}eqDataKeepStep(linkArray[i]+5,5)}}}function keepLinkEq6Button(curChannel,value){if(curChannel<5){keepLinkInputEq6Button(curChannel,value)}else{keepLinkOutEq6Button(curChannel,value)}}function keepLinkInputEq6Button(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i2){getInputChannelData(linkArray[i]).InEQ.EQ6.HL_db_AP_Flag=SET_4L_BYTE(getInputChannelData(linkArray[i]).InEQ.EQ6.HL_db_AP_Flag,value)}else{getInputChannelData(linkArray[i]).InEQ.EQ6.level=value}eqDataKeepStep(linkArray[i]+1,6)}}}function keepLinkOutEq6Button(curChannel,value){var i;var linkArray=getLinkOutArray(curChannel);if(linkArray.length>0){for(i=0;i2){getOutChannelData(linkArray[i]).OutEQ.EQ6.HL_db_AP_Flag=SET_4L_BYTE(getOutChannelData(linkArray[i]).OutEQ.EQ6.HL_db_AP_Flag,value)}else{getOutChannelData(linkArray[i]).OutEQ.EQ6.level=value}eqDataKeepStep(linkArray[i]+5,6)}}}function keepLinkInputDeq1Button(curChannel,value){var i;var linkArray=getLinkInputArray(curChannel);if(linkArray.length>0){for(i=0;i0){for(i=0;i0){for(i=0;i0){for(i=0;i4){this.refreshSystemLockDisplay();this.refreshInputLockDisplay();this.refreshOutLockDisplay()}else{this.refreshOutLockDisplay();this.refreshSystemLockDisplay();this.refreshInputLockDisplay()}};LockDisplay.prototype.setElementLockAttribute=function(elementName){var element=document.getElementById(elementName);element.readonly=true;element.disabled=true};LockDisplay.prototype.initLockElement=function(){var value;if(isChinese){value="锁定"}else{value="LOCK"}setElementValue(this.gain+"_lock",value);this.setElementLockAttribute(this.gain+"_lock");this.setElementLockAttribute(this.gainThump+"_lock");for(var i=0;i1){setElementValue(this.inDeqArray[i]+"_lock",value)}this.setElementLockAttribute(this.inDeqArray[i]+"_lock")}for(i=0;i5;if(!this.checkPasswordIsLegal(currentLockData.nOut_LockData.Out_Lock_PW)){for(i=0;i<6;i++){currentLockData.nOut_LockData.Out_Lock_PW[i]=32}}this.lockParam.isOutCode=bytesToString(currentLockData.nOut_LockData.Out_Lock_PW).toString().trim().length>5;if(!this.checkPasswordIsLegal(currentLockData.nSys_LockData.System_Lock_PW)){for(i=0;i<6;i++){currentLockData.nSys_LockData.System_Lock_PW[i]=32}}this.lockParam.isSystemCode=bytesToString(currentLockData.nSys_LockData.System_Lock_PW).toString().trim().length>5};LockFrame.prototype.checkPasswordIsLegal=function(pArray){for(var i=0;i0;i--){curButtonNo=i;DrawLine()}m_nCurIn_EQLine=[1,0,0,0];m_nCurOut_EQLine=[0,0,0,0,0,0,0,0];svgDrawCurve.drawOtherCurveLine();hideHLPFChannelName();initDeq();initCentralControl();for(i=0;i0?left:0;curtainTop=top>0?top:0;left=curtainLeft+2?curtainLeft+2:0;top=curtainTop-6?curtainTop-6:0;main.style.left=left+"px";main.style.top=top+"px";document.getElementById("cover").style.left=left+"px";document.getElementById("cover").style.top=top+"px"}function docToHigh(doc,high){var tmp;var tmp1,tmp2;tmp1=doc;tmp2=high/80*(40-tmp1);tmp=parseInt(tmp2+.5);return tmp}function docToWidth_start10(doc,width){var tmp;var tmp1,tmp2;tmp1=Math.log(doc)/Math.LN10-1;tmp2=width/(Math.log(2e4)/Math.LN10-1);tmp=parseInt(tmp1*tmp2);return tmp}function docToHighF(doc,high){var tmp1,tmp2;tmp1=doc;tmp2=high/80*(40-tmp1);return tmp2}function docToWidthF_start10(doc,width){var tmp;var tmp1,tmp2;tmp1=Math.log(doc)/Math.LN10-1;tmp2=width/(Math.log(2e4)/Math.LN10-1);tmp=tmp1*tmp2;return tmp}function docToWidth(doc,width){var tmp;var tmp1,tmp2;tmp1=doc;tmp2=width/3*(Math.log(tmp1/20)/Math.LN10);tmp=parseInt(tmp2);return tmp}function docToWidthF(doc,width){var tmp;var tmp1,tmp2;tmp1=doc;tmp2=width/3*(Math.log(tmp1/20)/Math.LN10);return tmp2}function highToDoc(num,high){var tmp1;var tmp,tmp2;tmp1=num;tmp2=40-tmp1*80/high;if(tmp2>0){tmp2=tmp2+.5}else{tmp2=tmp2-.5}tmp=tmp2.toFixed(1);return tmp}function widthToDoc_start10(num,width){var tmp;var tmp1,tmp2;tmp1=num*(Math.log(2e4)/Math.LN10-1);tmp2=tmp1/width+1;tmp=Math.pow(10,tmp2);return parseInt(tmp)}function widthToDoc(num,width){var tmp;var tmp1,tmp2;tmp1=num;tmp2=20*Math.pow(10,tmp1/(width/3));tmp=tmp2;if(tmp>2e4){tmp=2e4}if(tmp<20){tmp=20}return parseInt(tmp)}function Get_LR_Oct(nOct){var nLR_Oct=0;switch(nOct){case eqType.Oct_12dB:nLR_Oct=nOct;break;case eqType.Oct_18dB:nLR_Oct=eqType.Oct_24dB;break;case eqType.Oct_24dB:nLR_Oct=eqType.Oct_36dB;break;case eqType.Oct_30dB:nLR_Oct=eqType.Oct_48dB;break;default:nLR_Oct=nOct;break}return nLR_Oct}function GetCPEXT_Index(nCPExtNum){var val;var i,j;val=nCPExtNum;if(nCPExtNum>11){i=(nCPExtNum-1)%10;if(i!==0){if(i!==5){j=nCPExtNum/10;val=j*10+6}}}if(val>eqType.Max_CP_Ratio){val=eqType.Max_CP_Ratio}return val}function GetCPEXT_Ratio(nIndex){var val;var i,j;val=nIndex;if(nIndex>11){i=(nIndex-1)%10;if(i!==0){if(i!==5){j=nIndex/10;val=j*10+6}}}if(val>eqType.Max_CP_Ratio){val=eqType.Max_CP_Ratio}return val}function CP_Show(nIndex){var str,str1;var i,j;if(nIndex===1){str="1:1"}else{i=(nIndex+9)/10;j=(nIndex+9)%10;str1=i.toString(10);str1=str1+".";str=j.toString(10);str=str1+str+":1"}return str}function Ext_Show(nIndex){var str,str1,str2;var i,j;if(nIndex===1){str="1:1"}else{i=(nIndex+9)/10;j=(nIndex+9)%10;str2="1:";str1=i.toString(10);str1=str1+".";str=j.toString(10);str=str2+str1+str}return str}var ajaxTimer;var xmlHttp;var currentDataForSend;var strBeReceive;var timeBeWait;var timesBeSend;var isReceive;var isConnect;function initAjax(){timeBeWait=0;timesBeSend=0;isReceive=false;isConnect=true;getHttpRequest();startAjaxTimer()}function getHttpRequest(){if(window.XMLHttpRequest){xmlHttp=new XMLHttpRequest}else{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}}var deviceIp;function getDeviceIp(){var address=document.getElementById("text_device_ip").value;address=address.match(/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/);if(address){deviceIp="http://"+address[0];return true}else{deviceIp="";return false}}var communicateSpeed;function startAjaxTimer(){maxTime=250;ajaxTimer=setInterval(requestData,communicateSpeed);isConnect=true;isReceive=true}function stopAjaxTimer(){clearInterval(ajaxTimer)}var waitCount=0;var maxTime=250;var dspMark=false;function requestData(){var connectContent;if(dataForSendArray.length>0&&isReceive===true){if(isReadBigData===true){connectContent=document.getElementById("connect_progress_content");var length=dataForSendArray.length;var progressWidth;length=connectSteps-length+1;progressWidth=length*116/connectSteps+"px";connectContent.setAttribute("width",progressWidth);connectContent.style.width=progressWidth}currentDataForSend=dataForSendArray.shift();isReceive=false;xmlHttp.open("post",deviceIp,true);xmlHttp.send(currentDataForSend)}else{if(isReceive===true){if(getDataForSend()){currentDataForSend=formulateDataForSend(dataForSend);isReceive=false;xmlHttp.open("post",deviceIp,true);xmlHttp.send(currentDataForSend);isReadBigData=false;enableMainCurtain()}}else{waitCount++;if((waitCount===100||waitCount===200)&&!dspMark){isReceive=true;dataForSendArray.unshift(currentDataForSend)}else if(waitCount>maxTime){waitCount=0;isReceive=true;isConnect=false;var buttonElement=document.getElementById("button_connect");buttonElement.setAttribute("class","button_connect_true");buttonElement.innerHTML="未连接";isConnect=false;stopAjaxTimer();alert(isChinese?"连接已断开":"disconnect");enableMainCurtain();connectContent=document.getElementById("connect_progress_content");connectContent.setAttribute("width","0");connectContent.style.width="0";clearLedDisplay()}}}if(xmlHttp.readyState===4&&xmlHttp.status===200&&isReceive===false){strBeReceive=xmlHttp.responseText;if(strBeReceive){if(arrangeReceiveData(strBeReceive)){disposeReceiveData()}if(wrongHeader||wrongTail||wrongVerification||wrongDataLength||wrongRespond){wrongHeader=false;wrongTail=false;wrongVerification=false;wrongDataLength=false;wrongRespond=false;isConnect=false;isReceive=false}else{isConnect=true;isReceive=true;waitCount=0}}return false}else{}}function stringToBytes(str,length){var ch,st,re=[],strHex=[];for(var i=0;i>8}while(ch);re=re.concat(st.reverse())}for(i=0;i>8}while(ch);re=re.concat(st.reverse())}for(i=0;i15){hexStr=hex.toString(16)}else if(hex>0){hexStr="0"+hex.toString(16)}else{hexStr="00"}return hexStr}function GET_4L_BYTE(data){var result;result=data&15;return result}function SET_4L_BYTE(dataH,dataL){var result;result=(dataH&240)+dataL;return result}function GET_4H_BYTE(data){var result;result=(data&240)>>4;return result}function SET_4H_BYTE(dataH,dataL){var result;result=((dataH&15)<<4)+(dataL&15);return result}function toStringFloat(data,digits){var result;result=Number(data);result=result.toFixed(digits);result=result.toString();return result}function setElementLanguageValue(id,chV,enV,chS,enS,chL,enL,chT,enT){var element=document.getElementById(id);if(chV&&enV){element.innerText=isChinese?chV:enV}if(chS&&enS){element.style.fontSize=(isChinese?chS:enS)+"px"}if(chL&&enL){element.style.left=(isChinese?chL:enL)+"px"}if(chT&&enT){element.style.top=(isChinese?chT:enT)+"px"}}function setSelectElementLanguageValue(id,chV,enV,index){var selectElement=document.getElementById(id);selectElement.options[index].innerText=isChinese?chV:enV}function setLabelElementLanguageValue(id,chV,enV,chS,enS,chL,enL,chT,enT){var element=document.getElementById(id);var eHtml=element.innerHTML;if(isChinese){element.innerHTML=eHtml.replace(enV,chV)}else{element.innerHTML=eHtml.replace(chV,enV)}if(chS&&enS){element.style.fontSize=(isChinese?chS:enS)+"px"}if(chL&&enL){element.style.left=(isChinese?chL:enL)+"px"}if(chT&&enT){element.style.top=(isChinese?chT:enT)+"px"}}function setDeviceTypeDisplay(type){switch(type){case 24:setMainTypeDisplay(2,4);break;case 26:setMainTypeDisplay(2,6);break;case 28:setMainTypeDisplay(2,8);break;case 36:setMainTypeDisplay(3,6);break;case 46:setMainTypeDisplay(4,6);break;case 48:default:setMainTypeDisplay(4,8);break}}function setMainTypeDisplay(inN,outN){var inArray=new Array(4);var outArray=new Array(8);var i;inArray[0]=document.getElementById("input_a");inArray[1]=document.getElementById("input_b");inArray[2]=document.getElementById("input_c");inArray[3]=document.getElementById("input_d");outArray[0]=document.getElementById("out_1");outArray[1]=document.getElementById("out_2");outArray[2]=document.getElementById("out_3");outArray[3]=document.getElementById("out_4");outArray[4]=document.getElementById("out_5");outArray[5]=document.getElementById("out_6");outArray[6]=document.getElementById("out_7");outArray[7]=document.getElementById("out_8");inN=inN>inArray.length?inArray.length:inN;outN=outN>outArray.length?outArray.length:outN;for(i=0;i-1;var isIE=userAgent.indexOf("compatible")>-1&&userAgent.indexOf("MSIE")>-1&&!isOpera;var isIE11=userAgent.indexOf("rv:11.")>-1&&!isOpera;var isEdge=userAgent.indexOf("Windows NT 6.1; Trident/7.0;")>-1&&!isIE;var isFF=userAgent.indexOf("Firefox")>-1;var isSafari=userAgent.indexOf("Safari")>-1&&userAgent.indexOf("Chrome")===-1;var isChrome=userAgent.indexOf("Chrome")>-1&&userAgent.indexOf("Safari")>-1;if(isIE){var reIE=new RegExp("MSIE (\\d+\\.\\d+);");reIE.test(userAgent);var fIEVersion=parseFloat(RegExp["$1"]);if(fIEVersion==7){return"IE"}else if(fIEVersion==8){return"IE"}else if(fIEVersion==9){return"IE"}else if(fIEVersion==10){return"IE"}else if(fIEVersion==11){return"IE"}else{return"0"}}if(isIE11){return"IE"}if(isFF){return"FF"}if(isOpera){return"Opera"}if(isSafari){return"Safari"}if(isChrome){return"Chrome"}if(isEdge){return"Edge"}return"unknown"}function isIE(){var userAgent=navigator.userAgent;var isIE=userAgent.indexOf("compatible")>-1&&userAgent.indexOf("MSIE")>-1&&!isOpera;if(isIE){return"1"}else{return"-1"}}function IEVersion(){var userAgent=navigator.userAgent;var isIE=userAgent.indexOf("compatible")>-1&&userAgent.indexOf("MSIE")>-1&&!isOpera;var isEdge=userAgent.indexOf("Windows NT 6.1; Trident/7.0;")>-1&&!isIE;if(isIE){var reIE=new RegExp("MSIE (\\d+\\.\\d+);");reIE.test(userAgent);var fIEVersion=parseFloat(RegExp["$1"]);if(fIEVersion==7){return"IE7"}else if(fIEVersion==8){return"IE8"}else if(fIEVersion==9){return"IE9"}else if(fIEVersion==10){return"IE10"}else if(fIEVersion==11){return"IE11"}else{return"0"}}else if(isEdge){return"Edge"}else{return"-1"}}function exitDialogProgram(){curtainOption(0)}function setLanguage(){var language=null;if(navigator.appName==="Netscape"){language=navigator.language}else{language=navigator.browserLanguage}if(language.indexOf("en")>-1){isChinese=false}else if(language.indexOf("zh")>-1){isChinese=true}else{isChinese=false}}var programIndex=0;var programName="";function initProgramTrClick(){for(var i=1;i<31;i++){setProgramTrClick(i)}document.getElementById("program_name").onchange=deviceSelectResponse;document.getElementById("save_to_device").onclick=deviceSelectResponse;document.getElementById("load_from_device").onclick=deviceSelectResponse;document.getElementById("save_device").onclick=saveDeviceResponse;document.getElementById("delete_device").onclick=deleteDeviceResponse;document.getElementById("button_load_one_from_pc").onclick=buttonLoadOneFromPcResponse;document.getElementById("button_load_all_from_pc").onclick=buttonLoadAllFromPcResponse;document.getElementById("button_save_one_to_pc").onclick=buttonSaveOneToPcResponse;document.getElementById("button_save_all_to_pc").onclick=buttonSaveAllToPcResponse;document.getElementById("save_one_to_pc").onclick=saveOneToPcResponse;document.getElementById("save_all_to_pc").onclick=saveAllToPcResponse;document.getElementById("save_one_to_pc").oncontextmenu=saveOneToPcMenuResponse;document.getElementById("save_all_to_pc").oncontextmenu=saveAllToPcMenuResponse}var factoryProgramText;var userProgramText;var saveText;var loadText;function initProgramDisplay(){var i;if(isChinese){factoryProgramText="工厂程序";userProgramText="用户程序";saveText="保存";loadText="调用"}else{factoryProgramText="Factory";userProgramText="User";saveText="Save";loadText="Load"}for(i=0;i<30;i++){if(icurrentSystemData.Empty){readWriteSystemData(messageType.PC_Write_Data,messageType.Del_PG_ID,programIndex);dataForSendArray.push(formulateDataForSend(dataForSend));document.getElementById("program_name").value="";programNameArray[programIndex-1]="";currentAllGroupData[programIndex-1].name=stringToBytesNot32("",12);document.getElementById("program_name"+programIndex).innerText="";initProgramDisplay()}}function saveProgramToDevice(){var elementProgramName=document.getElementById("program_name");if(currentLockData.nSys_LockData.nSYS_Save_Data){elementProgramName.disabled=true;return}elementProgramName.disabled=false;if(programIndex>0&&programIndex<=30){var programName=document.getElementById("program_name").value;if(programName){programNameArray[programIndex-1]=programName;deepCopyValue(currentGroupData.m_nLockData.nIn_LockData,currentLockData.nIn_LockData);deepCopyValue(currentGroupData.m_nLockData.nOut_LockData,currentLockData.nOut_LockData);deepCopyValue(currentAllGroupData[programIndex-1],currentGroupData);currentAllGroupData[programIndex-1].name=stringToBytesNot32(programName,12);readWriteSystemData(messageType.PC_Write_Data,messageType.PC_RW_PGNAME,programIndex);dataForSendArray.push(formulateDataForSend(dataForSend));deliverOneGroupData(programIndex);if(Number(programIndex)===Number(currentSystemData.m_nSave_Cur_PG_ID)&&Number(currentSystemData.m_nMCU_PG_Type)===0){renewProgramNoAndName(programIndex,programName)}initProgramDisplay()}}}function loadProgramFromDevice(){var elementProgramName=document.getElementById("program_name");if(currentLockData.nSys_LockData.nSYS_Load_Data){return}elementProgramName.disabled=true;if(programIndex>0&&programIndex<=30){currentSystemData.m_nSave_Cur_PG_ID=programIndex;readWriteSystemData(messageType.PC_Write_Data,messageType.Device_StartUp_Set,0);dataForSendArray.push(formulateDataForSend(dataForSend));requestOneGroupData(programIndex);renewProgramNoAndName(programIndex,document.getElementById("program_name"+programIndex).innerText)}}function buttonLoadOneFromPcResponse(){if(currentLockData.nSys_LockData.nSYS_Load_Data){return}}function buttonLoadAllFromPcResponse(){if(currentLockData.nSys_LockData.nSYS_Load_Data){return}}function loadOneFromPcFile(obj){if(typeof FileReader=="undefined"){alert(isChinese?"当前浏览器不支持FileReader接口":"brower not support FileReader");return}var file=obj.files[0];var fileName=file.name;if(!fileName.match(/.dia7y$/)){alert(isChinese?"文件类型不正确":"wrong file type");return}fileName=fileName.replace(".dia7y","");var reader=new FileReader;reader.onload=function(e){var strData=e.target.result;if(!disposeOneProgramString(strData,0)){return}if(isConnect){currentSystemData.m_nMCU_PG_Type=1;readWriteSystemData(messageType.PC_Write_Data,messageType.Device_StartUp_Set,0);dataForSendArray.push(formulateDataForSend(dataForSend));deliverOneGroupData(0)}else{curtainOption(0)}renewProgramNoAndName("PC",fileName.slice(0,12))};reader.readAsBinaryString(file);document.getElementById("load_one_from_pc").value=""}function loadAllFromPcFile(obj){if(typeof FileReader=="undefined"){return}var file=obj.files[0];var reader=new FileReader;var fileName=file.name;if(!fileName.match(/.dat7y/)){alert(isChinese?"文件类型不正确":"wrong file type");return}reader.onload=function(e){var strData=e.target.result;if(!disposeAllProgramString(strData)){return false}if(isConnect){deliverAllGroupData()}else{curtainOption(0)}renewAllProgramName()};reader.readAsBinaryString(file);document.getElementById("load_all_from_pc").value="";return true}function renewAllProgramName(){for(var i=1;i<=30;i++){programNameArray[i-1]=bytesToStringNot32(currentAllGroupData[i-1].name);document.getElementById("program_name"+i).innerText=programNameArray[i-1]}}function buttonSaveOneToPcResponse(){if(currentLockData.nSys_LockData.nSYS_Save_Data){return}var aLink=document.getElementById("save_one_to_pc");var programString="";aLink.style.display="inline";var blob=new Blob(getOneProgramString(0));aLink.download="dp7_one_program.dia7y";aLink.href=URL.createObjectURL(blob)}function buttonSaveAllToPcResponse(){requestAllGroupData()}function dealwithAllProgramString(){var aLink=document.getElementById("save_all_to_pc");aLink.style.display="inline";var blob=new Blob(getAllProgramString());aLink.download="dp7_all_program.dat7y";aLink.href=URL.createObjectURL(blob)}function saveOneToPcResponse(){}function saveAllToPcResponse(){}function saveOneToPcMenuResponse(){}function saveAllToPcMenuResponse(){}function programExitClickResponse(){curtainOption(0)}function getWebSoftVersionForWrite(){var byteArray;byteArray=currentWebSoftVersion.replace(/[SV\-T]/g,"").split("");var strArray=byteArray[0];for(var i=1;i0){str=parseInt(currentPGName[0],10)}else{str="0"}for(var i=1;i0){str+=" "+parseInt(currentPGName[i],10)}else{str+=" "+"0"}}return str}function get30PGNameForWrite(index){var nameArray;var str="";if(index>0&&index<31){nameArray=stringToBytesNot32(programNameArray[index-1],12);str=nameArray[0].toString(10);for(var i=1;i0){if(groupId===1){str=str+getWebSoftVersionForWrite()+" , ";str=str+deviceType+" , ";str=str+currentSystemData.Empty+" , ";str=str+get30PGNameForWrite(groupId)+" , "}else{str=str+get30PGNameForWrite(groupId)+" , "}groupData=currentAllGroupData[groupId-1];lockData=groupData.m_nLockData}else{groupData=currentGroupData;lockData=currentLockData;str=getWebSoftVersionForWrite()+" , ";str=str+deviceType+" , ";str=str+getCurrentPGNameForWrite()+" , "}str=str+arrayToStringWithSpace(getInputRouteSendData(groupData.dataInputA))+" , ";str=str+arrayToStringWithSpace(getInputRouteSendData(groupData.dataInputB))+" , ";str=str+arrayToStringWithSpace(getInputRouteSendData(groupData.dataInputC))+" , ";str=str+arrayToStringWithSpace(getInputRouteSendData(groupData.dataInputD))+" , ";str=str+arrayToStringWithSpace(getLockDataArray(lockData))+" , ";str=str+arrayToStringWithSpace(getOutRouteSendData(groupData.dataOut1))+" , ";str=str+arrayToStringWithSpace(getOutRouteSendData(groupData.dataOut2))+" , ";str=str+arrayToStringWithSpace(getOutRouteSendData(groupData.dataOut3))+" , ";str=str+arrayToStringWithSpace(getOutRouteSendData(groupData.dataOut4))+" , ";str=str+arrayToStringWithSpace(getOutRouteSendData(groupData.dataOut5))+" , ";str=str+arrayToStringWithSpace(getOutRouteSendData(groupData.dataOut6))+" , ";str=str+arrayToStringWithSpace(getOutRouteSendData(groupData.dataOut7))+" , ";str=str+arrayToStringWithSpace(getOutRouteSendData(groupData.dataOut8))+" - ";str1.push(str);return str1}var deviceType=48;function disposeOneProgramString(strData,useId){var index;var i,t;var dataArray,tempArray=new Array,intArray=new Array;if(useId>0){strData=strData.replace(/ - /,"")}else{strData=strData.replace(/ -/,"")}dataArray=strData.split(" , ");var version;var programName;var type;if(useId>0){if(useId===1){version=dataArray[0].replace(/\s/g,"");if(version!=="Z1.00"){alert(isChinese?"版本不匹配":"wrong version");return false}type=dataArray[1];if(Number(type)!==deviceType){}programName=dataArray[3].split(" ");disposeProgramName(programName,useId);currentSystemData.Empty=parseInt(dataArray[2]);index=4}else{programName=dataArray[0].split(" ");disposeProgramName(programName,useId);index=1}}else{version=dataArray[0].replace(/\s/g,"");if(version!=="Z1.00"){alert(isChinese?"版本不匹配":"wrong version");return}type=dataArray[1];if(Number(type)!==deviceType){}programName=dataArray[2].split(" ");disposeProgramName(programName,useId);index=3}tempArray.length=0;for(i=index;i4){lockDisplay.refreshInputLockDisplay();lockDisplay.refreshOutLockDisplay()}else{lockDisplay.refreshOutLockDisplay();lockDisplay.refreshInputLockDisplay()}}return true}function getAllProgramString(){var strData=[];for(var i=1;i<31;i++){strData.push(getOneProgramString(i))}return strData}function disposeAllProgramString(strData){var i;var dataArray;var length;dataArray=strData.split(" - ");if(dataArray.length>30){length=30}else{length=dataArray.length}for(i=0;i0){dataGroup=currentAllGroupData[userID-1]}else{dataGroup=currentGroupData}switch(channelID){case 0:dataInput=dataGroup.dataInputA;break;case 1:dataInput=dataGroup.dataInputB;break;case 2:dataInput=dataGroup.dataInputC;break;case 3:dataInput=dataGroup.dataInputD;break;default:return;break}var tempName=[];var nameShow=[];for(i=0;i<8;i++){tempName.push(dataArray[i]);nameShow.push(dataArray[i].toString(16))}dataInput.name=bytesToStringNot32(tempName);dataInput.mute=dataArray[8];dataInput.polar=dataArray[9];dataInput.delay=dataArray[10]+dataArray[11]*256;dataInput.gain=dataArray[12]+dataArray[13]*256;dataInput.inLinkSel=dataArray[14];if(userID===0){linkInputSelect[channelID]=dataInput.inLinkSel}dataInput.secondDelay=dataArray[15];dataInput.noisegate=dataArray[16];dataInput.InDeq1.req=dataArray[24]+dataArray[25]*256;dataInput.InDeq1.level=dataArray[26]+dataArray[27]*256;dataInput.InDeq1.bw=dataArray[28]+dataArray[29]*256;dataInput.InDeq1.type=dataArray[30];dataInput.InDeq1.shf_db=dataArray[31];dataInput.InDeq2.req=dataArray[32]+dataArray[33]*256;dataInput.InDeq2.level=dataArray[34]+dataArray[35]*256;dataInput.InDeq2.bw=dataArray[36]+dataArray[37]*256;dataInput.InDeq2.type=dataArray[38];dataInput.InDeq2.shf_db=dataArray[39];dataInput.DeqParam1.DEQ_level=dataArray[40]+dataArray[41]*256;dataInput.DeqParam1.DEQ_Threshold=dataArray[42]+dataArray[43]*256;dataInput.DeqParam1.DEQ_r=dataArray[44]+dataArray[45]*256;dataInput.DeqParam1.DEQ_a=dataArray[46];dataInput.DeqParam1.DEQ_ratio=dataArray[47];dataInput.DeqParam2.DEQ_level=dataArray[48]+dataArray[49]*256;dataInput.DeqParam2.DEQ_Threshold=dataArray[50]+dataArray[51]*256;dataInput.DeqParam2.DEQ_r=dataArray[52]+dataArray[53]*256;dataInput.DeqParam2.DEQ_a=dataArray[54];dataInput.DeqParam2.DEQ_ratio=dataArray[55];dataInput.InEQ.EQ1.freq=dataArray[56]+dataArray[57]*256;dataInput.InEQ.EQ1.level=dataArray[58]+dataArray[59]*256;dataInput.InEQ.EQ1.bw=dataArray[60]+dataArray[61]*256;dataInput.InEQ.EQ1.HL_db_AP_Flag=dataArray[62];dataInput.InEQ.EQ1.type=dataArray[63];dataInput.InEQ.EQ2.freq=dataArray[64]+dataArray[65]*256;dataInput.InEQ.EQ2.level=dataArray[66]+dataArray[67]*256;dataInput.InEQ.EQ2.bw=dataArray[68]+dataArray[69]*256;dataInput.InEQ.EQ2.HL_db_AP_Flag=dataArray[70];dataInput.InEQ.EQ2.type=dataArray[71];dataInput.InEQ.EQ3.freq=dataArray[72]+dataArray[73]*256;dataInput.InEQ.EQ3.level=dataArray[74]+dataArray[75]*256;dataInput.InEQ.EQ3.bw=dataArray[76]+dataArray[77]*256;dataInput.InEQ.EQ3.HL_db_AP_Flag=dataArray[78];dataInput.InEQ.EQ3.type=dataArray[79];dataInput.InEQ.EQ4.freq=dataArray[80]+dataArray[81]*256;dataInput.InEQ.EQ4.level=dataArray[82]+dataArray[83]*256;dataInput.InEQ.EQ4.bw=dataArray[84]+dataArray[85]*256;dataInput.InEQ.EQ4.HL_db_AP_Flag=dataArray[86];dataInput.InEQ.EQ4.type=dataArray[87];dataInput.InEQ.EQ5.freq=dataArray[88]+dataArray[89]*256;dataInput.InEQ.EQ5.level=dataArray[90]+dataArray[91]*256;dataInput.InEQ.EQ5.bw=dataArray[92]+dataArray[93]*256;dataInput.InEQ.EQ5.HL_db_AP_Flag=dataArray[94];dataInput.InEQ.EQ5.type=dataArray[95];dataInput.InEQ.EQ6.freq=dataArray[96]+dataArray[97]*256;dataInput.InEQ.EQ6.level=dataArray[98]+dataArray[99]*256;dataInput.InEQ.EQ6.bw=dataArray[100]+dataArray[101]*256;dataInput.InEQ.EQ6.HL_db_AP_Flag=dataArray[102];dataInput.InEQ.EQ6.type=dataArray[103];dataInput.InEQ.EQ7.freq=dataArray[104]+dataArray[105]*256;dataInput.InEQ.EQ7.level=dataArray[106]+dataArray[107]*256;dataInput.InEQ.EQ7.bw=dataArray[108]+dataArray[109]*256;dataInput.InEQ.EQ7.HL_db_AP_Flag=dataArray[110];dataInput.InEQ.EQ7.type=dataArray[111];dataInput.InEQ.EQ8.freq=dataArray[112]+dataArray[113]*256;dataInput.InEQ.EQ8.level=dataArray[114]+dataArray[115]*256;dataInput.InEQ.EQ8.bw=dataArray[116]+dataArray[117]*256;dataInput.InEQ.EQ8.HL_db_AP_Flag=dataArray[118];dataInput.InEQ.EQ8.type=dataArray[119];dataInput.InEQ.EQ9.freq=dataArray[120]+dataArray[121]*256;dataInput.InEQ.EQ9.level=dataArray[122]+dataArray[123]*256;dataInput.InEQ.EQ9.bw=dataArray[124]+dataArray[125]*256;dataInput.InEQ.EQ9.HL_db_AP_Flag=dataArray[126];dataInput.InEQ.EQ9.type=dataArray[127];dataInput.HPFData.HL_freq=dataArray[128]+dataArray[129]*256;dataInput.HPFData.HL_Type=dataArray[130];dataInput.HPFData.HL_Oct=dataArray[131];dataInput.HPFData.LR_Level=dataArray[132];dataInput.LPFData.HL_freq=dataArray[136]+dataArray[137]*256;dataInput.LPFData.HL_Type=dataArray[138];dataInput.LPFData.HL_Oct=dataArray[139];dataInput.LPFData.LR_Level=dataArray[140];dataInput.agLevel=dataArray[144]+dataArray[145]*256;dataInput.agThreshold=dataArray[146]+dataArray[147]*256;dataInput.agRelease=dataArray[148]+dataArray[149]*256;dataInput.agAttack=dataArray[150];dataInput.agRatio=dataArray[151];dataInput.compLevel=dataArray[152]+dataArray[153]*256;dataInput.compRelease=dataArray[154]+dataArray[155]*256;dataInput.compAttack=dataArray[156];dataInput.compRatio=dataArray[157]}function disposeOutData(dataArray,userID,channelID){var i;var index;var indexStart=[];var dataGroup;var dataOut;if(userID>0){dataGroup=currentAllGroupData[userID-1]}else{dataGroup=currentGroupData}switch(channelID){case 0:dataOut=dataGroup.dataOut1;break;case 1:dataOut=dataGroup.dataOut2;break;case 2:dataOut=dataGroup.dataOut3;break;case 3:dataOut=dataGroup.dataOut4;break;case 4:dataOut=dataGroup.dataOut5;break;case 5:dataOut=dataGroup.dataOut6;break;case 6:dataOut=dataGroup.dataOut7;break;case 7:dataOut=dataGroup.dataOut8;break;default:return;break}for(i=0;i<17;i++){indexStart.push(i*8)}var nameTemp=[];var nameShow=[];for(i=0;i<8;i++){nameTemp.push(dataArray[i]);nameShow.push(dataArray[i].toString(16))}dataOut.name=bytesToStringNot32(nameTemp);index=indexStart[1];dataOut.mute=dataArray[index++];dataOut.polar=dataArray[index++];dataOut.delay=dataArray[index++]+dataArray[index++]*256;dataOut.gain=dataArray[index++]+dataArray[index++]*256;dataOut.outLinkSel=dataArray[index++];if(userID===0){linkOutSelect[channelID]=dataOut.outLinkSel}dataOut.secondDelay=dataArray[index];index=indexStart[2];dataOut.allvolume=dataArray[index++]+dataArray[index]*256;index=indexStart[3];dataOut.sourceA=dataArray[index++];dataOut.sourceB=dataArray[index++];dataOut.sourceC=dataArray[index++];dataOut.sourceD=dataArray[index++];dataOut.sourceE=dataArray[index++];dataOut.sourceF=dataArray[index++];dataOut.sourceG=dataArray[index++];dataOut.sourceH=dataArray[index];index=indexStart[4];dataOut.OutEQ.EQ1.freq=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ1.level=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ1.bw=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ1.HL_db_AP_Flag=dataArray[index++];dataOut.OutEQ.EQ1.type=dataArray[index];index=indexStart[5];dataOut.OutEQ.EQ2.freq=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ2.level=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ2.bw=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ2.HL_db_AP_Flag=dataArray[index++];dataOut.OutEQ.EQ2.type=dataArray[index];index=indexStart[6];dataOut.OutEQ.EQ3.freq=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ3.level=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ3.bw=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ3.HL_db_AP_Flag=dataArray[index++];dataOut.OutEQ.EQ3.type=dataArray[index];index=indexStart[7];dataOut.OutEQ.EQ4.freq=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ4.level=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ4.bw=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ4.HL_db_AP_Flag=dataArray[index++];dataOut.OutEQ.EQ4.type=dataArray[index];index=indexStart[8];dataOut.OutEQ.EQ5.freq=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ5.level=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ5.bw=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ5.HL_db_AP_Flag=dataArray[index++];dataOut.OutEQ.EQ5.type=dataArray[index];index=indexStart[9];dataOut.OutEQ.EQ6.freq=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ6.level=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ6.bw=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ6.HL_db_AP_Flag=dataArray[index++];dataOut.OutEQ.EQ6.type=dataArray[index];index=indexStart[10];dataOut.OutEQ.EQ7.freq=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ7.level=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ7.bw=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ7.HL_db_AP_Flag=dataArray[index++];dataOut.OutEQ.EQ7.type=dataArray[index];index=indexStart[11];dataOut.OutEQ.EQ8.freq=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ8.level=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ8.bw=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ8.HL_db_AP_Flag=dataArray[index++];dataOut.OutEQ.EQ8.type=dataArray[index];index=indexStart[12];dataOut.OutEQ.EQ9.freq=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ9.level=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ9.bw=dataArray[index++]+dataArray[index++]*256;dataOut.OutEQ.EQ9.HL_db_AP_Flag=dataArray[index++];dataOut.OutEQ.EQ9.type=dataArray[index];index=indexStart[13];dataOut.HPFData.HL_freq=dataArray[index++]+dataArray[index++]*256;dataOut.HPFData.HL_Type=dataArray[index++];dataOut.HPFData.HL_Oct=dataArray[index++];dataOut.HPFData.LR_Level=dataArray[index];index=indexStart[14];dataOut.LPFData.HL_freq=dataArray[index++]+dataArray[index++]*256;dataOut.LPFData.HL_Type=dataArray[index++];dataOut.LPFData.HL_Oct=dataArray[index++];dataOut.LPFData.LR_Level=dataArray[index];index=indexStart[15];dataOut.compLevel=dataArray[index++]+dataArray[index++]*256;dataOut.compR=dataArray[index++]+dataArray[index++]*256;dataOut.compAttack=dataArray[index++];dataOut.compRatio=dataArray[index++];index=indexStart[16];dataOut.limT=dataArray[index++]+dataArray[index++]*256;dataOut.limRelease=dataArray[index++]+dataArray[index++]*256;dataOut.limAttack=dataArray[index++];return true}function disposePcLockData(dataArray,userID,channelID){var i;var index;var lockData;index=0;if(userID>0){lockData=currentAllGroupData[userID-1].m_nLockData}else{lockData=currentLockData}lockData.nIn_LockData.nIn_Name=dataArray[index++];lockData.nIn_LockData.nIn_Mute=dataArray[index++];lockData.nIn_LockData.nIn_Delay=dataArray[index++];lockData.nIn_LockData.nIn_Pol=dataArray[index++];lockData.nIn_LockData.nIn_Gain=dataArray[index++];lockData.nIn_LockData.nIn_NoiseGate=dataArray[index++];lockData.nIn_LockData.nIn_Comp_AG=dataArray[index++];lockData.nIn_LockData.nIn_DEQ=dataArray[index++];lockData.nIn_LockData.nIn_EQ=dataArray[index++];lockData.nIn_LockData.nIn_Link=dataArray[index++];for(i=0;i<16;i++){lockData.nIn_LockData.In_Empty[i]=dataArray[i+index]}index=26;for(i=0;i<6;i++){lockData.nIn_LockData.In_Lock_PW[i]=dataArray[index+i]}index=32;lockData.nOut_LockData.nOut_Name=dataArray[index++];lockData.nOut_LockData.nOut_Mute=dataArray[index++];lockData.nOut_LockData.nOut_Delay=dataArray[index++];lockData.nOut_LockData.nOut_Pol=dataArray[index++];lockData.nOut_LockData.nOut_Gain=dataArray[index++];lockData.nOut_LockData.nIn_Matrix=dataArray[index++];lockData.nOut_LockData.nOut_Comp_LimT=dataArray[index++];lockData.nOut_LockData.nOut_EQ=dataArray[index++];lockData.nOut_LockData.nOut_Xover=dataArray[index++];lockData.nOut_LockData.nOut_Link=dataArray[index++];for(i=0;i<16;i++){lockData.nOut_LockData.Out_Empty[i]=dataArray[i+index]}index=58;for(i=0;i<6;i++){lockData.nOut_LockData.Out_Lock_PW[i]=dataArray[index+i]}}function disposeProgramName(dataArray,userID){var groupData,i;if(userID>0){groupData=currentAllGroupData[userID-1];for(i=0;iparseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_gain_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_gain_thump").focus();focusElementId="text_gain";thumpRresponse(ev,"slider_track_gain","slider_gain_thump",controlsId.SLIDER_GAIN_THUMP,"slider_gain_thump")};document.getElementById("slider_ruler_gain").onmouseup=function(){if(focusElementId==="text_gain"){document.getElementById("slider_gain_thump").focus();focusElementId="text_gain"}}}var eqPageYBase=528;function addEq1SliderClickResponse(){document.getElementById("slider_ruler_eq1").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_eq1_thump").focus();focusElementId="text_eq1_gain";return}targetId="slider_eq1_thump";thumpTextId=controlsId.SLIDER_EQ1_THUMP;var parentElement=document.getElementById("slider_track_eq1");var targetElement=document.getElementById("slider_eq1_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-eqPageYBase;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_eq1_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_eq1_thump").focus();focusElementId="text_eq1_gain";thumpRresponse(ev,"slider_track_eq1","slider_eq1_thump",controlsId.SLIDER_EQ1_THUMP,"slider_eq1_thump")};document.getElementById("slider_ruler_eq1").onmouseup=function(){if(focusElementId==="text_eq1_gain"){document.getElementById("slider_eq1_thump").focus();focusElementId="text_eq1_gain"}}}function addEq2SliderClickResponse(){document.getElementById("slider_ruler_eq2").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_eq2_thump").focus();focusElementId="text_eq2_gain";return}targetId="slider_eq2_thump";thumpTextId=controlsId.SLIDER_EQ2_THUMP;var parentElement=document.getElementById("slider_track_eq2");var targetElement=document.getElementById("slider_eq2_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-eqPageYBase;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_eq2_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_eq2_thump").focus();focusElementId="text_eq2_gain";thumpRresponse(ev,"slider_track_eq2","slider_eq2_thump",controlsId.SLIDER_EQ2_THUMP,"slider_eq2_thump")};document.getElementById("slider_ruler_eq2").onmouseup=function(){if(focusElementId==="text_eq2_gain"){document.getElementById("slider_eq2_thump").focus();focusElementId="text_eq2_gain"}}}function addEq3SliderClickResponse(){document.getElementById("slider_ruler_eq3").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_eq3_thump").focus();focusElementId="text_eq3_gain";return}targetId="slider_eq3_thump";thumpTextId=controlsId.SLIDER_EQ3_THUMP;var parentElement=document.getElementById("slider_track_eq3");var targetElement=document.getElementById("slider_eq3_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-eqPageYBase;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_eq3_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_eq3_thump").focus();focusElementId="text_eq3_gain";thumpRresponse(ev,"slider_track_eq3","slider_eq3_thump",controlsId.SLIDER_EQ3_THUMP,"slider_eq3_thump")};document.getElementById("slider_ruler_eq3").onmouseup=function(){if(focusElementId==="text_eq3_gain"){document.getElementById("slider_eq3_thump").focus();focusElementId="text_eq3_gain"}}}function addEq4SliderClickResponse(){document.getElementById("slider_ruler_eq4").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_eq4_thump").focus();focusElementId="text_eq4_gain";return}targetId="slider_eq4_thump";thumpTextId=controlsId.SLIDER_EQ4_THUMP;var parentElement=document.getElementById("slider_track_eq4");var targetElement=document.getElementById("slider_eq4_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-eqPageYBase;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_eq4_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_eq4_thump").focus();focusElementId="text_eq4_gain";thumpRresponse(ev,"slider_track_eq4","slider_eq4_thump",controlsId.SLIDER_EQ4_THUMP,"slider_eq4_thump")};document.getElementById("slider_ruler_eq4").onmouseup=function(){if(focusElementId==="text_eq4_gain"){document.getElementById("slider_eq4_thump").focus();focusElementId="text_eq4_gain"}}}function addEq5SliderClickResponse(){document.getElementById("slider_ruler_eq5").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_eq5_thump").focus();focusElementId="text_eq5_gain";return}targetId="slider_eq5_thump";thumpTextId=controlsId.SLIDER_EQ5_THUMP;var parentElement=document.getElementById("slider_track_eq5");var targetElement=document.getElementById("slider_eq5_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-eqPageYBase;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_eq5_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_eq5_thump").focus();focusElementId="text_eq5_gain";thumpRresponse(ev,"slider_track_eq5","slider_eq5_thump",controlsId.SLIDER_EQ5_THUMP,"slider_eq5_thump")};document.getElementById("slider_ruler_eq5").onmouseup=function(){if(focusElementId==="text_eq5_gain"){document.getElementById("slider_eq5_thump").focus();focusElementId="text_eq5_gain"}}}function addEq6SliderClickResponse(){document.getElementById("slider_ruler_eq6").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_eq6_thump").focus();focusElementId="text_eq6_gain";return}targetId="slider_eq6_thump";thumpTextId=controlsId.SLIDER_EQ6_THUMP;var parentElement=document.getElementById("slider_track_eq6");var targetElement=document.getElementById("slider_eq6_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-eqPageYBase;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_eq6_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_eq6_thump").focus();focusElementId="text_eq6_gain";thumpRresponse(ev,"slider_track_eq6","slider_eq6_thump",controlsId.SLIDER_EQ6_THUMP,"slider_eq6_thump")};document.getElementById("slider_ruler_eq6").onmouseup=function(){if(focusElementId==="text_eq6_gain"){document.getElementById("slider_eq6_thump").focus();focusElementId="text_eq6_gain"}}}function addInput1SliderClickResponse(){document.getElementById("slider_track_input_a").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_input_a_thump").focus();focusElementId="text_volume_a";return}targetId="slider_input_a_thump";thumpTextId=controlsId.SLIDER_GAIN_INPUT_A;var parentElement=document.getElementById("slider_track_input_a");var targetElement=document.getElementById("slider_input_a_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-22;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_input_a_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_input_a_thump").focus();focusElementId="text_volume_a";thumpRresponse(ev,"slider_track_input_a","slider_input_a_thump",controlsId.SLIDER_GAIN_INPUT_A,"slider_input_a_thump")};document.getElementById("slider_track_input_a").onmouseup=function(){if(focusElementId==="text_volume_a"){document.getElementById("slider_input_a_thump").focus();focusElementId="text_volume_a"}}}function addInput2SliderClickResponse(){document.getElementById("slider_track_input_b").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_input_b_thump").focus();focusElementId="text_volume_b";return}targetId="slider_input_b_thump";thumpTextId=controlsId.SLIDER_GAIN_INPUT_B;var parentElement=document.getElementById("slider_track_input_b");var targetElement=document.getElementById("slider_input_b_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-198;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_input_b_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_input_b_thump").focus();focusElementId="text_volume_b";thumpRresponse(ev,"slider_track_input_b","slider_input_b_thump",controlsId.SLIDER_GAIN_INPUT_B,"slider_input_b_thump")};document.getElementById("slider_track_input_b").onmouseup=function(){if(focusElementId==="text_volume_b"){document.getElementById("slider_input_b_thump").focus();focusElementId="text_volume_b"}}}function addInput3SliderClickResponse(){document.getElementById("slider_track_input_c").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_input_c_thump").focus();focusElementId="text_volume_c";return}targetId="slider_input_c_thump";thumpTextId=controlsId.SLIDER_GAIN_INPUT_C;var parentElement=document.getElementById("slider_track_input_c");var targetElement=document.getElementById("slider_input_c_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-375;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_input_c_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_input_c_thump").focus();focusElementId="text_volume_c";thumpRresponse(ev,"slider_track_input_c","slider_input_c_thump",controlsId.SLIDER_GAIN_INPUT_C,"slider_input_c_thump")};document.getElementById("slider_track_input_c").onmouseup=function(){if(focusElementId==="text_volume_c"){document.getElementById("slider_input_c_thump").focus();focusElementId="text_volume_c"}}}function addInput4SliderClickResponse(){document.getElementById("slider_track_input_d").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_input_d_thump").focus();focusElementId="text_volume_d";return}targetId="slider_input_d_thump";thumpTextId=controlsId.SLIDER_GAIN_INPUT_D;var parentElement=document.getElementById("slider_track_input_d");var targetElement=document.getElementById("slider_input_d_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-552;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_input_d_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_input_d_thump").focus();focusElementId="text_volume_d";thumpRresponse(ev,"slider_track_input_d","slider_input_d_thump",controlsId.SLIDER_GAIN_INPUT_D,"slider_input_d_thump")};document.getElementById("slider_track_input_d").onmouseup=function(){if(focusElementId==="text_volume_d"){document.getElementById("slider_input_d_thump").focus();focusElementId="text_volume_d"}}}function addOutput1SliderClickResponse(){document.getElementById("slider_track_out1").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_out1_thump").focus();focusElementId="text_volume_out1";return}targetId="slider_out1_thump";thumpTextId=controlsId.SLIDER_GAIN_OUT1;var parentElement=document.getElementById("slider_track_out1");var targetElement=document.getElementById("slider_out1_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-19;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_out1_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_out1_thump").focus();focusElementId="text_volume_out1";thumpRresponse(ev,"slider_track_out1","slider_out1_thump",controlsId.SLIDER_GAIN_OUT1,"slider_out1_thump")};document.getElementById("slider_track_out1").onmouseup=function(){if(focusElementId==="text_volume_out1"){document.getElementById("slider_out1_thump").focus();focusElementId="text_volume_out1"}}}function addOutput2SliderClickResponse(){document.getElementById("slider_track_out2").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_out2_thump").focus();focusElementId="text_volume_out2";return}targetId="slider_out2_thump";thumpTextId=controlsId.SLIDER_GAIN_OUT2;var parentElement=document.getElementById("slider_track_out2");var targetElement=document.getElementById("slider_out2_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-107;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_out2_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_out2_thump").focus();focusElementId="text_volume_out2";thumpRresponse(ev,"slider_track_out2","slider_out2_thump",controlsId.SLIDER_GAIN_OUT2,"slider_out2_thump")};document.getElementById("slider_track_out2").onmouseup=function(){if(focusElementId==="text_volume_out2"){document.getElementById("slider_out2_thump").focus();focusElementId="text_volume_out2"}}}function addOutput3SliderClickResponse(){document.getElementById("slider_track_out3").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_out3_thump").focus();focusElementId="text_volume_out3";return}targetId="slider_out3_thump";thumpTextId=controlsId.SLIDER_GAIN_OUT3;var parentElement=document.getElementById("slider_track_out3");var targetElement=document.getElementById("slider_out3_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-195;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_out3_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_out3_thump").focus();focusElementId="text_volume_out3";thumpRresponse(ev,"slider_track_out3","slider_out3_thump",controlsId.SLIDER_GAIN_OUT3,"slider_out3_thump")};document.getElementById("slider_track_out3").onmouseup=function(){if(focusElementId==="text_volume_out3"){document.getElementById("slider_out3_thump").focus();focusElementId="text_volume_out3"}}}function addOutput4SliderClickResponse(){document.getElementById("slider_track_out4").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_out4_thump").focus();focusElementId="text_volume_out4";return}targetId="slider_out4_thump";thumpTextId=controlsId.SLIDER_GAIN_OUT4;var parentElement=document.getElementById("slider_track_out4");var targetElement=document.getElementById("slider_out4_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-283;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_out4_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_out4_thump").focus();focusElementId="text_volume_out4";thumpRresponse(ev,"slider_track_out4","slider_out4_thump",controlsId.SLIDER_GAIN_OUT4,"slider_out4_thump")};document.getElementById("slider_track_out4").onmouseup=function(){if(focusElementId==="text_volume_out4"){document.getElementById("slider_out4_thump").focus();focusElementId="text_volume_out4"}}}function addOutput5SliderClickResponse(){document.getElementById("slider_track_out5").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_out5_thump").focus();focusElementId="text_volume_out5";return}targetId="slider_out5_thump";thumpTextId=controlsId.SLIDER_GAIN_OUT5;var parentElement=document.getElementById("slider_track_out5");var targetElement=document.getElementById("slider_out5_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-371;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_out5_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_out5_thump").focus();focusElementId="text_volume_out5";thumpRresponse(ev,"slider_track_out5","slider_out5_thump",controlsId.SLIDER_GAIN_OUT5,"slider_out5_thump")};document.getElementById("slider_track_out5").onmouseup=function(){if(focusElementId==="text_volume_out5"){document.getElementById("slider_out5_thump").focus();focusElementId="text_volume_out5"}}}function addOutput6SliderClickResponse(){document.getElementById("slider_track_out6").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_out6_thump").focus();focusElementId="text_volume_out6";return}targetId="slider_out6_thump";thumpTextId=controlsId.SLIDER_GAIN_OUT6;var parentElement=document.getElementById("slider_track_out6");var targetElement=document.getElementById("slider_out6_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-460;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_out6_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_out6_thump").focus();focusElementId="text_volume_out6";thumpRresponse(ev,"slider_track_out6","slider_out6_thump",controlsId.SLIDER_GAIN_OUT6,"slider_out6_thump")};document.getElementById("slider_track_out6").onmouseup=function(){if(focusElementId==="text_volume_out6"){document.getElementById("slider_out6_thump").focus();focusElementId="text_volume_out6"}}}function addOutput7SliderClickResponse(){document.getElementById("slider_track_out7").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_out7_thump").focus();focusElementId="text_volume_out7";return}targetId="slider_out7_thump";thumpTextId=controlsId.SLIDER_GAIN_OUT7;var parentElement=document.getElementById("slider_track_out7");var targetElement=document.getElementById("slider_out7_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-548;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_out7_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_out7_thump").focus();focusElementId="text_volume_out7";thumpRresponse(ev,"slider_track_out7","slider_out7_thump",controlsId.SLIDER_GAIN_OUT7,"slider_out7_thump")};document.getElementById("slider_track_out7").onmouseup=function(){if(focusElementId==="text_volume_out7"){document.getElementById("slider_out7_thump").focus();focusElementId="text_volume_out7"}}}function addOutput8SliderClickResponse(){document.getElementById("slider_track_out8").onmousedown=function(ev){if(isThumpOver){document.getElementById("slider_out8_thump").focus();focusElementId="text_volume_out8";return}targetId="slider_out8_thump";thumpTextId=controlsId.SLIDER_GAIN_OUT8;var parentElement=document.getElementById("slider_track_out8");var targetElement=document.getElementById("slider_out8_thump");var nowY=ev.pageY-curtainTop;var disY=nowY-635;var topT=disY+"px";if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById("slider_out8_thump");thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range);document.getElementById("slider_out8_thump").focus();focusElementId="text_volume_out8";thumpRresponse(ev,"slider_track_out8","slider_out8_thump",controlsId.SLIDER_GAIN_OUT8,"slider_out8_thump")};document.getElementById("slider_track_out8").onmouseup=function(){if(focusElementId==="text_volume_out8"){document.getElementById("slider_out8_thump").focus();focusElementId="text_volume_out8"}}}var isThumpOver;function addSliderFocusEvent(id){var elementID;switch(id){case"slider_gain_thump":elementID="text_gain";break;case"slider_eq1_thump":elementID="text_eq1_gain";break;case"slider_eq2_thump":elementID="text_eq2_gain";break;case"slider_eq3_thump":elementID="text_eq3_gain";break;case"slider_eq4_thump":elementID="text_eq4_gain";break;case"slider_eq5_thump":elementID="text_eq5_gain";break;case"slider_eq6_thump":elementID="text_eq6_gain";break;case"slider_input_a_thump":elementID="text_volume_a";break;case"slider_input_b_thump":elementID="text_volume_b";break;case"slider_input_c_thump":elementID="text_volume_c";break;case"slider_input_d_thump":elementID="text_volume_d";break;case"slider_out1_thump":elementID="text_volume_out1";break;case"slider_out2_thump":elementID="text_volume_out2";break;case"slider_out3_thump":elementID="text_volume_out3";break;case"slider_out4_thump":elementID="text_volume_out4";break;case"slider_out5_thump":elementID="text_volume_out5";break;case"slider_out6_thump":elementID="text_volume_out6";break;case"slider_out7_thump":elementID="text_volume_out7";break;case"slider_out8_thump":elementID="text_volume_out8";break;default:break}var currentEditControl=document.getElementById(id);currentEditControl.onmouseover=function(){isThumpOver=true};currentEditControl.onmouseleave=function(){isThumpOver=false};currentEditControl.onclick=function(){currentEditControl.focus();focusElementId=elementID};currentEditControl.onblur=function(ev){focusElementId="null";switch(elementID){case"text_gain":document.getElementById("slider_gain_thump").blur();case"text_eq1_gain":document.getElementById("slider_eq1_thump").blur();break;case"text_eq2_gain":document.getElementById("slider_eq2_thump").blur();break;case"text_eq3_gain":document.getElementById("slider_eq3_thump").blur();break;case"text_eq4_gain":document.getElementById("slider_eq4_thump").blur();break;case"text_eq5_gain":document.getElementById("slider_eq5_thump").blur();break;case"text_eq6_gain":document.getElementById("slider_eq6_thump").blur();break;default:break}}}var setSliderListener=function(parentElement,targetElement,textId,thumpId){targetElement.onmouseover=function(event){document.documentElement.style.cursor="pointer"};targetElement.onmouseout=function(event){document.documentElement.style.cursor="default"};targetElement.onmousedown=function(event){isMouseDown=true;isMouseUp=false;params.flag=true;targetId=thumpId;thumpTextId=textId;if(getCss(parentElement,"height")!=="auto"){var parentHeight=getCss(parentElement,"height")}if(getCss(targetElement,"height")!=="auto"){var targetHeight=getCss(targetElement,"height")}params.top_max=parseFloat(parentHeight)-parseFloat(targetHeight)+"px";params.top_min=0;if(getCss(targetElement,"left")!=="auto"){params.left=getCss(targetElement,"left")}if(getCss(targetElement,"top")!=="auto"){params.top=getCss(targetElement,"top")}if(event.preventDefault){event.preventDefault()}else{event.returnValue=false}var e=event;params.currentX=e.pageX-curtainLeft;params.currentY=e.pageY-curtainTop}};var addSliderListener=function(){var parentElement=document.getElementById("slider_track_gain");var targetElement=document.getElementById("slider_gain_thump");var gainSliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_GAIN_THUMP,"slider_gain_thump");parentElement=document.getElementById("slider_track_eq1");targetElement=document.getElementById("slider_eq1_thump");var eq1SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_EQ1_THUMP,"slider_eq1_thump");targetElement=document.getElementById("slider_eq2_thump");var eq2SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_EQ2_THUMP,"slider_eq2_thump");targetElement=document.getElementById("slider_eq3_thump");var eq3SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_EQ3_THUMP,"slider_eq3_thump");targetElement=document.getElementById("slider_eq4_thump");var eq4SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_EQ4_THUMP,"slider_eq4_thump");targetElement=document.getElementById("slider_eq5_thump");var eq5SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_EQ5_THUMP,"slider_eq5_thump");targetElement=document.getElementById("slider_eq6_thump");var eq6SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_EQ6_THUMP,"slider_eq6_thump");parentElement=document.getElementById("slider_track_input_a");targetElement=document.getElementById("slider_input_a_thump");var inputASliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_GAIN_INPUT_A,"slider_input_a_thump");targetElement=document.getElementById("slider_input_b_thump");var inputBSliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_GAIN_INPUT_B,"slider_input_b_thump");targetElement=document.getElementById("slider_input_c_thump");var inputCSliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_GAIN_INPUT_C,"slider_input_c_thump");targetElement=document.getElementById("slider_input_d_thump");var inputDSliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_GAIN_INPUT_D,"slider_input_d_thump");parentElement=document.getElementById("slider_track_out1");targetElement=document.getElementById("slider_out1_thump");var out1SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_GAIN_OUT1,"slider_out1_thump");targetElement=document.getElementById("slider_out2_thump");var out2SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_GAIN_OUT2,"slider_out2_thump");targetElement=document.getElementById("slider_out3_thump");var out3SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_GAIN_OUT3,"slider_out3_thump");targetElement=document.getElementById("slider_out4_thump");var out4SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_GAIN_OUT4,"slider_out4_thump");targetElement=document.getElementById("slider_out5_thump");var out5SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_GAIN_OUT5,"slider_out5_thump");targetElement=document.getElementById("slider_out6_thump");var out6SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_GAIN_OUT6,"slider_out6_thump");targetElement=document.getElementById("slider_out7_thump");var out7SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_GAIN_OUT7,"slider_out7_thump");targetElement=document.getElementById("slider_out8_thump");var out8SliderListener=setSliderListener(parentElement,targetElement,controlsId.SLIDER_GAIN_OUT8,"slider_out8_thump")};var getCss=function(o,key){return document.defaultView.getComputedStyle(o,false)[key]};window.onmouseup=function(event){if(event.preventDefault){event.preventDefault()}else{event.returnValue=false}document.documentElement.style.cursor="default";clearInterval(upDownInterval);upDownPressTime=0;isMouseDown=false;isMouseUp=true;isMouseMove=false;params.flag=false;paramsOfEQ.flag=false;paramsOfEQ.isDown=false;paramsOfEQ.isUp=true;paramsOfEQ.isMove=false;paramsOfLRect.isHover=false;paramsOfLRect.isDown=false;paramsOfLRect.flag=false;paramsOfRRect.isHover=false;paramsOfRRect.isDown=false;paramsOfRRect.flag=false;paramsOfInputPoint.isHover=false;paramsOfInputPoint.isDown=false;paramsOfInputPoint.flag=false;paramsOfOutPoint.isHover=false;paramsOfOutPoint.isDown=false;paramsOfOutPoint.flag=false;targetId="none"};window.onmousemove=function(event){var pointRect=new PointClass(0,0);var e=event?event:window.event;if(isMouseDown&¶ms.flag){if(targetId==="none"){return}var nowX=e.pageX-curtainLeft,nowY=e.pageY-curtainTop;var disX=nowX-params.currentX,disY=nowY-params.currentY;var topT=parseFloat(params.top)+disY+"px";if(parseFloat(topT)parseFloat(params.top_max)){topT=params.top_max}var thumpElement=document.getElementById(targetId);thumpElement.style.top=topT;var range=parseInt(thumpElement.style.top)/parseInt(params.top_max);refreshSliderData(range)}paramsOfEQ.isMove=true;if(paramsOfEQ.isDown&¶msOfEQ.isMove&¶msOfEQ.flag){var downPoint=new PointClass(paramsOfEQ.currentX,paramsOfEQ.currentY);var point=new PointClass(e.pageX-curtainLeft,e.pageY-curtainTop);if(curButtonNo<5){m_nInMapEQ[curButtonNo-1].filterArray[paramsOfEQ.index-1].PointToFD(point)}else{if(paramsOfEQ.index>9){var freq;if(paramsOfEQ.index===10){freq=m_nOutMapEQ[curButtonNo-5].filterArray[10].GetSendFreq();m_nOutMapEQ[curButtonNo-5].filterArray[paramsOfEQ.index-1].PointToHLFreq(point,freq)}else{freq=m_nOutMapEQ[curButtonNo-5].filterArray[9].GetSendFreq();m_nOutMapEQ[curButtonNo-5].filterArray[paramsOfEQ.index-1].PointToHLFreq(point,freq)}}else{m_nOutMapEQ[curButtonNo-5].filterArray[paramsOfEQ.index-1].PointToFD(point)}}curveDataKeepStep(curButtonNo,paramsOfEQ.index);keepLinkCurveEqData(curButtonNo,paramsOfEQ.index);DrawLine()}paramsOfLRect.isMove=true;if(paramsOfLRect.isDown&¶msOfLRect.isMove&¶msOfLRect.flag){pointRect.x=e.pageX-curtainLeft;pointRect.y=e.pageY-curtainTop;if(curButtonNo<5){m_nInMapEQ[curButtonNo-1].filterArray[paramsOfLRect.index-1].PointToBW(pointRect,true)}else{m_nOutMapEQ[curButtonNo-5].filterArray[paramsOfLRect.index-1].PointToBW(pointRect,true)}curveDataKeepStep(curButtonNo,paramsOfLRect.index);keepLinkCurveEqData(curButtonNo,paramsOfLRect.index);DrawLine()}paramsOfRRect.isMove=true;if(paramsOfRRect.isDown&¶msOfRRect.isMove&¶msOfRRect.flag){pointRect.x=e.pageX-curtainLeft;pointRect.y=e.pageY-curtainTop;if(curButtonNo<5){m_nInMapEQ[curButtonNo-1].filterArray[paramsOfRRect.index-1].PointToBW(pointRect,false)}else{m_nOutMapEQ[curButtonNo-5].filterArray[paramsOfRRect.index-1].PointToBW(pointRect,false)}curveDataKeepStep(curButtonNo,paramsOfRRect.index);keepLinkCurveEqData(curButtonNo,paramsOfRRect.index);DrawLine()}paramsOfInputPoint.isMove=true;if(paramsOfInputPoint.isDown&¶msOfInputPoint.isMove&¶msOfInputPoint.flag){pointRect.x=e.pageX-curtainLeft;pointRect.y=e.pageY-curtainTop;switch(paramsOfInputPoint.index){case 1:agcExtMap.Conver_AGC_Threshold(pointRect);break;case 2:agcExtMap.Conver_AGC_Level(pointRect);break;case 3:agcExtMap.Conver_Comp_Level(pointRect);break;case 4:agcExtMap.Conver_AGC_Ratio(pointRect);break;case 5:agcExtMap.Conver_Comp_Ratio(pointRect);break;default:break}agcExtMap.Draw_AGC_Comp()}paramsOfOutPoint.isMove=true;if(paramsOfOutPoint.isDown&¶msOfOutPoint.isMove&¶msOfOutPoint.flag){pointRect.x=e.pageX-curtainLeft;pointRect.y=e.pageY-curtainTop;switch(paramsOfOutPoint.index){case 1:comExtMap.Conver_OutComp_Level(pointRect);break;case 2:comExtMap.Conver_OutLimT(pointRect);break;case 3:comExtMap.Conver_OutComp_Ratio(pointRect);break;default:break}comExtMap.DrawOutComp_LimT()}};function refreshSliderData(range){var editControl;if(thumpTextId>controlsId.SLIDER_EQ6_THUMP){currentStep=constConfig.CHANNEL_GAIN_STEPS_MAX-parseInt(range*constConfig.CHANNEL_GAIN_STEPS_MAX);checkCurrentStep(inputTextValueType.CHANNEL_GAIN)}else{currentStep=constConfig.EQ_GAIN_STEPS_MAX-parseInt(range*constConfig.EQ_GAIN_STEPS_MAX);checkCurrentStep(inputTextValueType.EQ_GAIN)}switch(thumpTextId){case controlsId.SLIDER_EQ1_THUMP:editControl=document.getElementById("text_eq1_gain");eqData.EQ1.level=currentStep;keepLinkEq1Gain(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);curEqChannel=1;showOrHideEqData();break;case controlsId.SLIDER_EQ2_THUMP:editControl=document.getElementById("text_eq2_gain");eqData.EQ2.level=currentStep;keepLinkEq2Gain(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);curEqChannel=2;showOrHideEqData();break;case controlsId.SLIDER_EQ3_THUMP:editControl=document.getElementById("text_eq3_gain");eqData.EQ3.level=currentStep;keepLinkEq3Gain(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);curEqChannel=3;showOrHideEqData();break;case controlsId.SLIDER_EQ4_THUMP:editControl=document.getElementById("text_eq4_gain");eqData.EQ4.level=currentStep;keepLinkEq4Gain(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);curEqChannel=4;showOrHideEqData();break;case controlsId.SLIDER_EQ5_THUMP:editControl=document.getElementById("text_eq5_gain");eqData.EQ5.level=currentStep;keepLinkEq5Gain(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);curEqChannel=5;showOrHideEqData();break;case controlsId.SLIDER_EQ6_THUMP:editControl=document.getElementById("text_eq6_gain");eqData.EQ6.level=currentStep;keepLinkEq6Gain(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);curEqChannel=6;showOrHideEqData();break;case controlsId.SLIDER_GAIN_INPUT_A:editControl=document.getElementById("text_volume_a");currentGroupData.dataInputA.gain=currentStep;keepLongGainInStep(1,currentStep);keepLinkInputVolume(0,currentStep);break;case controlsId.SLIDER_GAIN_INPUT_B:editControl=document.getElementById("text_volume_b");currentGroupData.dataInputB.gain=currentStep;keepLongGainInStep(2,currentStep);keepLinkInputVolume(1,currentStep);break;case controlsId.SLIDER_GAIN_INPUT_C:editControl=document.getElementById("text_volume_c");currentGroupData.dataInputC.gain=currentStep;keepLongGainInStep(3,currentStep);keepLinkInputVolume(2,currentStep);break;case controlsId.SLIDER_GAIN_INPUT_D:editControl=document.getElementById("text_volume_d");currentGroupData.dataInputD.gain=currentStep;keepLongGainInStep(4,currentStep);keepLinkInputVolume(3,currentStep);break;case controlsId.SLIDER_GAIN_OUT1:editControl=document.getElementById("text_volume_out1");currentGroupData.dataOut1.gain=currentStep;keepLongGainInStep(5,currentStep);keepLinkOutVolume(0,currentStep);break;case controlsId.SLIDER_GAIN_OUT2:editControl=document.getElementById("text_volume_out2");currentGroupData.dataOut2.gain=currentStep;keepLongGainInStep(6,currentStep);keepLinkOutVolume(1,currentStep);break;case controlsId.SLIDER_GAIN_OUT3:editControl=document.getElementById("text_volume_out3");currentGroupData.dataOut3.gain=currentStep;keepLongGainInStep(7,currentStep);keepLinkOutVolume(2,currentStep);break;case controlsId.SLIDER_GAIN_OUT4:editControl=document.getElementById("text_volume_out4");currentGroupData.dataOut4.gain=currentStep;keepLongGainInStep(8,currentStep);keepLinkOutVolume(3,currentStep);break;case controlsId.SLIDER_GAIN_OUT5:editControl=document.getElementById("text_volume_out5");currentGroupData.dataOut5.gain=currentStep;keepLongGainInStep(9,currentStep);keepLinkOutVolume(4,currentStep);break;case controlsId.SLIDER_GAIN_OUT6:editControl=document.getElementById("text_volume_out6");currentGroupData.dataOut6.gain=currentStep;keepLongGainInStep(10,currentStep);keepLinkOutVolume(5,currentStep);break;case controlsId.SLIDER_GAIN_OUT7:editControl=document.getElementById("text_volume_out7");currentGroupData.dataOut7.gain=currentStep;keepLongGainInStep(11,currentStep);keepLinkOutVolume(6,currentStep);break;case controlsId.SLIDER_GAIN_OUT8:editControl=document.getElementById("text_volume_out8");currentGroupData.dataOut8.gain=currentStep;keepLongGainInStep(12,currentStep);keepLinkOutVolume(7,currentStep);break;case controlsId.SLIDER_GAIN_THUMP:editControl=document.getElementById("text_gain");setChannelGain(curButtonNo,currentStep);keepShortGainInStep(currentStep);break;default:break}if(thumpTextId>controlsId.SLIDER_EQ6_THUMP){editControl.value=getChanelGain()}else{editControl.value=getEqGain();updateAllEqGainButton(curEqChannel)}DrawLine()}function keepLongGainInStep(no,value){if(curButtonNo===no){var gainEdit=document.getElementById("text_gain");currentStep=value;setGainSliderPosition(value);gainEdit.value=getChanelGain()}}function keepShortGainInStep(value){var gainEdit;switch(curButtonNo){case 1:gainEdit=document.getElementById("text_volume_a");setSliderPosition(controlsId.SLIDER_GAIN_INPUT_A,value);keepLinkInputVolume(0,value);break;case 2:gainEdit=document.getElementById("text_volume_b");setSliderPosition(controlsId.SLIDER_GAIN_INPUT_B,value);keepLinkInputVolume(1,value);break;case 3:gainEdit=document.getElementById("text_volume_c");setSliderPosition(controlsId.SLIDER_GAIN_INPUT_C,value);keepLinkInputVolume(2,value);break;case 4:gainEdit=document.getElementById("text_volume_d");setSliderPosition(controlsId.SLIDER_GAIN_INPUT_D,value);keepLinkInputVolume(3,value);break;case 5:gainEdit=document.getElementById("text_volume_out1");setSliderPosition(controlsId.SLIDER_GAIN_OUT1,value);keepLinkOutVolume(0,value);break;case 6:gainEdit=document.getElementById("text_volume_out2");setSliderPosition(controlsId.SLIDER_GAIN_OUT2,value);keepLinkOutVolume(1,value);break;case 7:gainEdit=document.getElementById("text_volume_out3");setSliderPosition(controlsId.SLIDER_GAIN_OUT3,value);keepLinkOutVolume(2,value);break;case 8:gainEdit=document.getElementById("text_volume_out4");setSliderPosition(controlsId.SLIDER_GAIN_OUT4,value);keepLinkOutVolume(3,value);break;case 9:gainEdit=document.getElementById("text_volume_out5");setSliderPosition(controlsId.SLIDER_GAIN_OUT5,value);keepLinkOutVolume(4,value);break;case 10:gainEdit=document.getElementById("text_volume_out6");setSliderPosition(controlsId.SLIDER_GAIN_OUT6,value);keepLinkOutVolume(5,value);break;case 11:gainEdit=document.getElementById("text_volume_out7");setSliderPosition(controlsId.SLIDER_GAIN_OUT7,value);keepLinkOutVolume(6,value);break;case 12:gainEdit=document.getElementById("text_volume_out8");setSliderPosition(controlsId.SLIDER_GAIN_OUT8,value);keepLinkOutVolume(7,value);break;default:break}gainEdit.value=getChanelGain()}function initInputSelectControl(which){var selectElement=document.getElementById(which);var newOption=new Option("联调A","0");selectElement.options.add(newOption);newOption=new Option("联调B","1");selectElement.options.add(newOption);newOption=new Option("联调C","2");selectElement.options.add(newOption);newOption=new Option("联调D","3");selectElement.options.add(newOption)}function initOutSelectControl(which){var selectElement=document.getElementById(which);var newOption;for(var i=1;i<9;i++){newOption=new Option("联调"+i,i-1+"");selectElement.options.add(newOption)}}function initModeSelectControl(which){var selectElement=document.getElementById(which);var newOption=new Option("参量","0");selectElement.options.add(newOption);newOption=new Option("低调","1");selectElement.options.add(newOption);newOption=new Option("高调","2");selectElement.options.add(newOption);newOption=new Option("1阶全通","3");selectElement.options.add(newOption);newOption=new Option("2阶全通","4");selectElement.options.add(newOption)}function initXoverControl(which){var selectElement=document.getElementById(which);var newOption=new Option("宁克","0");selectElement.options.add(newOption);newOption=new Option("贝塞尔","1");selectElement.options.add(newOption);newOption=new Option("巴特沃斯","2");selectElement.options.add(newOption)}function initXoverMany(which){var selectElement=document.getElementById(which);var newOption=new Option("12","0");selectElement.options.add(newOption);newOption=new Option("18","1");selectElement.options.add(newOption);newOption=new Option("24","2");selectElement.options.add(newOption);newOption=new Option("30","3");selectElement.options.add(newOption);newOption=new Option("36","4");selectElement.options.add(newOption);newOption=new Option("42","5");selectElement.options.add(newOption);newOption=new Option("48","6");selectElement.options.add(newOption)}function initXoverFew(which){var selectElement=document.getElementById(which);var newOption=new Option("12","0");selectElement.options.add(newOption);newOption=new Option("24","1");selectElement.options.add(newOption);newOption=new Option("36","2");selectElement.options.add(newOption);newOption=new Option("48","3");selectElement.options.add(newOption)}function initSlopeSelectControl(which){var selectElement=document.getElementById(which);var newOption=new Option("6dB","0");selectElement.options.add(newOption);newOption=new Option("12dB","1");selectElement.options.add(newOption)}function setOptionControlText(id,text){var optionElement=document.getElementById(id);for(var i=0;i6){curEqChannel=1}showOrHideEqData();inputEqUnlock();DrawLine()}setCurPhaseCurveStatus();updateDeqButton(true)}initPolar();keepLinkOldEqData(constConfig.CURRENT_CHANNGEL_INPUT_A);keepLinkInputDeqButtonOld(constConfig.CURRENT_CHANNGEL_INPUT_A)}function selectElementLinkInputBRespond(){var selectElement=document.getElementById("select_link_b");var index=selectElement.selectedIndex;currentGroupData.dataInputB.inLinkSel=index;linkInputSelect[1]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_INPUT_B);updateLinkInputDisplay(constConfig.CURRENT_CHANNGEL_INPUT_B);keepLinkPhaseLineStatus(index+1,controlsData.buttonStates.buttonPhaseCurveStatus[index]);if(curButtonNo===2){assignChannelData(constConfig.CURRENT_CHANNGEL_INPUT_B);inputOrOutputModule(true);hideHLPFChannelName();agcExtMap.SetInData(1);lockDisplay.refreshInputLockDisplay();initPolar();setPhaseDirectionStatus();if(currentLockData.nIn_LockData.nIn_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();inputEqBeLocked();DrawLine()}else{if(curEqChannel>6){curEqChannel=1}showOrHideEqData();inputEqUnlock();DrawLine()}setCurPhaseCurveStatus();updateDeqButton(true)}initPolar();keepLinkOldEqData(constConfig.CURRENT_CHANNGEL_INPUT_B);keepLinkInputDeqButtonOld(constConfig.CURRENT_CHANNGEL_INPUT_B)}function selectElementLinkInputCRespond(){var selectElement=document.getElementById("select_link_c");var index=selectElement.selectedIndex;currentGroupData.dataInputC.inLinkSel=index;linkInputSelect[2]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_INPUT_C);updateLinkInputDisplay(constConfig.CURRENT_CHANNGEL_INPUT_C);keepLinkPhaseLineStatus(index+1,controlsData.buttonStates.buttonPhaseCurveStatus[index]);if(curButtonNo===3){assignChannelData(constConfig.CURRENT_CHANNGEL_INPUT_C);inputOrOutputModule(true);hideHLPFChannelName();agcExtMap.SetInData(2);lockDisplay.refreshInputLockDisplay();initPolar();setPhaseDirectionStatus();if(currentLockData.nIn_LockData.nIn_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();inputEqBeLocked();DrawLine()}else{if(curEqChannel>6){curEqChannel=1}showOrHideEqData();inputEqUnlock();DrawLine()}setCurPhaseCurveStatus();updateDeqButton(true)}initPolar();keepLinkOldEqData(constConfig.CURRENT_CHANNGEL_INPUT_C);keepLinkInputDeqButtonOld(constConfig.CURRENT_CHANNGEL_INPUT_C)}function selectElementLinkInputDRespond(){var selectElement=document.getElementById("select_link_d");var index=selectElement.selectedIndex;currentGroupData.dataInputD.inLinkSel=index;linkInputSelect[3]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_INPUT_D);updateLinkInputDisplay(constConfig.CURRENT_CHANNGEL_INPUT_D);keepLinkPhaseLineStatus(index+1,controlsData.buttonStates.buttonPhaseCurveStatus[index]);if(curButtonNo===4){assignChannelData(constConfig.CURRENT_CHANNGEL_INPUT_D);inputOrOutputModule(true);hideHLPFChannelName();agcExtMap.SetInData(3);lockDisplay.refreshInputLockDisplay();initPolar();setPhaseDirectionStatus();if(currentLockData.nIn_LockData.nIn_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();inputEqBeLocked();DrawLine()}else{if(curEqChannel>6){curEqChannel=1}showOrHideEqData();inputEqUnlock();DrawLine()}setCurPhaseCurveStatus();updateDeqButton(true)}initPolar();keepLinkOldEqData(constConfig.CURRENT_CHANNGEL_INPUT_D);keepLinkInputDeqButtonOld(constConfig.CURRENT_CHANNGEL_INPUT_D)}function selectElementLinkOut1Respond(){var selectElement=document.getElementById("select_link_out1");var index=selectElement.selectedIndex;currentGroupData.dataOut1.outLinkSel=index;linkOutSelect[0]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_1);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_1);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===5){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_1);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(0);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}initPolar();keepLinkOldEqData(constConfig.CURRENT_CHANNGEL_OUT_1)}function selectElementLinkOut2Respond(){var selectElement=document.getElementById("select_link_out2");var index=selectElement.selectedIndex;currentGroupData.dataOut2.outLinkSel=index;linkOutSelect[1]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_2);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_2);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===6){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_2);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(1);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}initPolar();keepLinkOldEqData(constConfig.CURRENT_CHANNGEL_OUT_2)}function selectElementLinkOut3Respond(){var selectElement=document.getElementById("select_link_out3");var index=selectElement.selectedIndex;currentGroupData.dataOut3.outLinkSel=index;linkOutSelect[2]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_3);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_3);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===7){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_3);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(2);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}initPolar();keepLinkOldEqData(constConfig.CURRENT_CHANNGEL_OUT_3)}function selectElementLinkOut4Respond(){var selectElement=document.getElementById("select_link_out4");var index=selectElement.selectedIndex;currentGroupData.dataOut4.outLinkSel=index;linkOutSelect[3]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_4);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_4);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===8){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_4);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(3);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}initPolar();keepLinkOldEqData(constConfig.CURRENT_CHANNGEL_OUT_4)}function selectElementLinkOut5Respond(){var selectElement=document.getElementById("select_link_out5");var index=selectElement.selectedIndex;currentGroupData.dataOut5.outLinkSel=index;linkOutSelect[4]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_5);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_5);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===9){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_5);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(4);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}initPolar();keepLinkOldEqData(constConfig.CURRENT_CHANNGEL_OUT_5)}function selectElementLinkOut6Respond(){var selectElement=document.getElementById("select_link_out6");var index=selectElement.selectedIndex;currentGroupData.dataOut6.outLinkSel=index;linkOutSelect[5]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_6);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_6);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===10){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_6);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(5);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}initPolar();keepLinkOldEqData(constConfig.CURRENT_CHANNGEL_OUT_6)}function selectElementLinkOut7Respond(){var selectElement=document.getElementById("select_link_out7");var index=selectElement.selectedIndex;currentGroupData.dataOut7.outLinkSel=index;linkOutSelect[6]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_7);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_7);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===11){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_7);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(6);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}initPolar();keepLinkOldEqData(constConfig.CURRENT_CHANNGEL_OUT_7)}function selectElementLinkOut8Respond(){var selectElement=document.getElementById("select_link_out8");var index=selectElement.selectedIndex;currentGroupData.dataOut8.outLinkSel=index;linkOutSelect[7]=index;keepLinkChannelData(constConfig.CURRENT_CHANNGEL_OUT_8);updateLinkOutDisplay(constConfig.CURRENT_CHANNGEL_OUT_8);keepLinkPhaseLineStatus(index+5,controlsData.buttonStates.buttonPhaseCurveStatus[index+4]);if(curButtonNo===12){assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_8);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(7);lockDisplay.refreshOutLockDisplay();initPolar();setPhaseOutDirectionStatus();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}setCurPhaseCurveStatus()}initPolar();keepLinkOldEqData(constConfig.CURRENT_CHANNGEL_OUT_8)}function updateEqModeDisplay(type,index){var editBandwidth,editSlope,selectSlope,editGain,editGainPass,sliderEq;editBandwidth=document.getElementById("text_eq"+index+"_bandwidth_div");editSlope=document.getElementById("text_eq"+index+"_slope_div");selectSlope=document.getElementById("select_slope"+index);editGain=document.getElementById("text_eq"+index+"_gain_div");editGainPass=document.getElementById("text_eq"+index+"_gain_pass");sliderEq=document.getElementById("slider_ruler_eq"+index);switch(type){case 0:editBandwidth.style.display="inline";editSlope.style.display="inline";editGain.style.display="inline";sliderEq.style.display="inline";selectSlope.style.display="none";break;case 1:editBandwidth.style.display="none";editSlope.style.display="none";editGain.style.display="inline";sliderEq.style.display="inline";selectSlope.style.display="inline";break;case 2:editBandwidth.style.display="none";editSlope.style.display="none";editGain.style.display="inline";sliderEq.style.display="inline";selectSlope.style.display="inline";break;case 3:editBandwidth.style.display="none";editSlope.style.display="none";editGain.style.display="none";sliderEq.style.display="none";selectSlope.style.display="none";editGainPass.style.display="inline";break;case 4:editBandwidth.style.display="inline";editSlope.style.display="inline";editGain.style.display="none";sliderEq.style.display="none";selectSlope.style.display="none";editGainPass.style.display="inline";break;default:break}}function selectElementEqType1Respond(){var selectElement=document.getElementById("select_mode1");var index=selectElement.selectedIndex;eqData.EQ1.type=index;keepLinkEq1Mode(curButtonNo,index);if(index>2){if(GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag)){controlsData.buttonStates.buttonEqStatus[1]=false;document.getElementById("button_eq1").setAttribute("class","button_eq_false")}else{controlsData.buttonStates.buttonEqStatus[1]=true;document.getElementById("button_eq1").setAttribute("class","button_eq_true")}svgDrawCurve.eqChannelTextElement[0].setAttribute("cursor","w-resize")}else{if(eqData.EQ1.level!==200){controlsData.buttonStates.buttonEqStatus[1]=true;document.getElementById("button_eq1").setAttribute("class","button_eq_true")}else{controlsData.buttonStates.buttonEqStatus[1]=false;document.getElementById("button_eq1").setAttribute("class","button_eq_false")}svgDrawCurve.eqChannelTextElement[0].setAttribute("cursor","move")}eqDataKeepStep(curButtonNo,1);DrawLine();updateAllEqGainButton(1);updateEqModeDisplay(index,1);curEqChannel=1;showOrHideEqData();showOrHideLittleRect()}function selectElementEqType2Respond(){var selectElement=document.getElementById("select_mode2");var index=selectElement.selectedIndex;eqData.EQ2.type=index;keepLinkEq2Mode(curButtonNo,index);if(index>2){if(GET_4L_BYTE(eqData.EQ2.HL_db_AP_Flag)){controlsData.buttonStates.buttonEqStatus[2]=false;document.getElementById("button_eq2").setAttribute("class","button_eq_false")}else{controlsData.buttonStates.buttonEqStatus[2]=true;document.getElementById("button_eq2").setAttribute("class","button_eq_true")}svgDrawCurve.eqChannelTextElement[1].setAttribute("cursor","w-resize")}else{if(eqData.EQ2.level!==200){controlsData.buttonStates.buttonEqStatus[2]=true;document.getElementById("button_eq2").setAttribute("class","button_eq_true")}else{controlsData.buttonStates.buttonEqStatus[2]=false;document.getElementById("button_eq2").setAttribute("class","button_eq_false")}svgDrawCurve.eqChannelTextElement[1].setAttribute("cursor","move")}eqDataKeepStep(curButtonNo,2);DrawLine();updateAllEqGainButton(2);updateEqModeDisplay(index,2);curEqChannel=2;showOrHideEqData();showOrHideLittleRect()}function selectElementEqType3Respond(){var selectElement=document.getElementById("select_mode3");var index=selectElement.selectedIndex;eqData.EQ3.type=index;keepLinkEq3Mode(curButtonNo,index);if(index>2){if(GET_4L_BYTE(eqData.EQ3.HL_db_AP_Flag)){controlsData.buttonStates.buttonEqStatus[3]=false;document.getElementById("button_eq3").setAttribute("class","button_eq_false")}else{controlsData.buttonStates.buttonEqStatus[3]=true;document.getElementById("button_eq3").setAttribute("class","button_eq_true")}svgDrawCurve.eqChannelTextElement[2].setAttribute("cursor","w-resize")}else{if(eqData.EQ3.level!==200){controlsData.buttonStates.buttonEqStatus[3]=true;document.getElementById("button_eq3").setAttribute("class","button_eq_true")}else{controlsData.buttonStates.buttonEqStatus[3]=false;document.getElementById("button_eq3").setAttribute("class","button_eq_false")}svgDrawCurve.eqChannelTextElement[2].setAttribute("cursor","move")}eqDataKeepStep(curButtonNo,3);DrawLine();updateAllEqGainButton(3);updateEqModeDisplay(index,3);curEqChannel=3;showOrHideEqData();showOrHideLittleRect()}function selectElementEqType4Respond(){var selectElement=document.getElementById("select_mode4");var index=selectElement.selectedIndex;eqData.EQ4.type=index;keepLinkEq4Mode(curButtonNo,index);if(index>2){if(GET_4L_BYTE(eqData.EQ4.HL_db_AP_Flag)){controlsData.buttonStates.buttonEqStatus[4]=false;document.getElementById("button_eq4").setAttribute("class","button_eq_false")}else{controlsData.buttonStates.buttonEqStatus[4]=true;document.getElementById("button_eq4").setAttribute("class","button_eq_true")}svgDrawCurve.eqChannelTextElement[3].setAttribute("cursor","w-resize")}else{if(eqData.EQ4.level!==200){controlsData.buttonStates.buttonEqStatus[4]=true;document.getElementById("button_eq4").setAttribute("class","button_eq_true")}else{controlsData.buttonStates.buttonEqStatus[4]=false;document.getElementById("button_eq4").setAttribute("class","button_eq_false")}svgDrawCurve.eqChannelTextElement[3].setAttribute("cursor","move")}eqDataKeepStep(curButtonNo,4);DrawLine();updateAllEqGainButton(4);updateEqModeDisplay(index,4);curEqChannel=4;showOrHideEqData();showOrHideLittleRect()}function selectElementEqType5Respond(){var selectElement=document.getElementById("select_mode5");var index=selectElement.selectedIndex;eqData.EQ5.type=index;keepLinkEq5Mode(curButtonNo,index);if(index>2){if(GET_4L_BYTE(eqData.EQ5.HL_db_AP_Flag)){controlsData.buttonStates.buttonEqStatus[5]=false;document.getElementById("button_eq5").setAttribute("class","button_eq_false")}else{controlsData.buttonStates.buttonEqStatus[5]=true;document.getElementById("button_eq5").setAttribute("class","button_eq_true")}svgDrawCurve.eqChannelTextElement[4].setAttribute("cursor","w-resize")}else{if(eqData.EQ5.level!==200){controlsData.buttonStates.buttonEqStatus[5]=true;document.getElementById("button_eq5").setAttribute("class","button_eq_true")}else{controlsData.buttonStates.buttonEqStatus[5]=false;document.getElementById("button_eq5").setAttribute("class","button_eq_false")}svgDrawCurve.eqChannelTextElement[4].setAttribute("cursor","move")}eqDataKeepStep(curButtonNo,5);DrawLine();updateAllEqGainButton(5);updateEqModeDisplay(index,5);curEqChannel=5;showOrHideEqData();showOrHideLittleRect()}function selectElementEqType6Respond(){var selectElement=document.getElementById("select_mode6");var index=selectElement.selectedIndex;eqData.EQ6.type=index;keepLinkEq6Mode(curButtonNo,index);if(index>2){if(GET_4L_BYTE(eqData.EQ6.HL_db_AP_Flag)){controlsData.buttonStates.buttonEqStatus[6]=false;document.getElementById("button_eq6").setAttribute("class","button_eq_false")}else{controlsData.buttonStates.buttonEqStatus[6]=true;document.getElementById("button_eq6").setAttribute("class","button_eq_true")}svgDrawCurve.eqChannelTextElement[5].setAttribute("cursor","w-resize")}else{if(eqData.EQ6.level!==200){controlsData.buttonStates.buttonEqStatus[6]=true;document.getElementById("button_eq6").setAttribute("class","button_eq_true")}else{controlsData.buttonStates.buttonEqStatus[6]=false;document.getElementById("button_eq6").setAttribute("class","button_eq_false")}svgDrawCurve.eqChannelTextElement[5].setAttribute("cursor","move")}eqDataKeepStep(curButtonNo,6);DrawLine();updateAllEqGainButton(6);updateEqModeDisplay(index,6);curEqChannel=6;showOrHideEqData();showOrHideLittleRect()}function selectElementEqSlope1Respond(){var selectElement=document.getElementById("select_slope1");var index=selectElement.selectedIndex;eqData.EQ1.HL_db_AP_Flag=SET_4H_BYTE(index,GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag));keepLinkEq1SlopeSelect(curButtonNo,index);eqDataKeepStep(curButtonNo,1);DrawLine();updateEqModeDisplay(eqData.EQ1.type,1);curEqChannel=1;showOrHideEqData()}function selectElementEqSlope2Respond(){var selectElement=document.getElementById("select_slope2");var index=selectElement.selectedIndex;eqData.EQ2.HL_db_AP_Flag=SET_4H_BYTE(index,GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag));keepLinkEq2SlopeSelect(curButtonNo,index);eqDataKeepStep(curButtonNo,2);DrawLine();updateEqModeDisplay(eqData.EQ2.type,2);curEqChannel=2;showOrHideEqData()}function selectElementEqSlope3Respond(){var selectElement=document.getElementById("select_slope3");var index=selectElement.selectedIndex;eqData.EQ3.HL_db_AP_Flag=SET_4H_BYTE(index,GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag));keepLinkEq3SlopeSelect(curButtonNo,index);eqDataKeepStep(curButtonNo,3);DrawLine();updateEqModeDisplay(eqData.EQ3.type,3);curEqChannel=3;showOrHideEqData()}function selectElementEqSlope4Respond(){var selectElement=document.getElementById("select_slope4");var index=selectElement.selectedIndex;eqData.EQ4.HL_db_AP_Flag=SET_4H_BYTE(index,GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag));keepLinkEq4SlopeSelect(curButtonNo,index);eqDataKeepStep(curButtonNo,4);DrawLine();updateEqModeDisplay(eqData.EQ4.type,4);curEqChannel=4;showOrHideEqData()}function selectElementEqSlope5Respond(){var selectElement=document.getElementById("select_slope5");var index=selectElement.selectedIndex;eqData.EQ5.HL_db_AP_Flag=SET_4H_BYTE(index,GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag));keepLinkEq5SlopeSelect(curButtonNo,index);eqDataKeepStep(curButtonNo,5);DrawLine();updateEqModeDisplay(eqData.EQ5.type,5);curEqChannel=5;showOrHideEqData()}function selectElementEqSlope6Respond(){var selectElement=document.getElementById("select_slope6");var index=selectElement.selectedIndex;eqData.EQ6.HL_db_AP_Flag=SET_4H_BYTE(index,GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag));keepLinkEq6SlopeSelect(curButtonNo,index);eqDataKeepStep(curButtonNo,6);DrawLine();updateEqModeDisplay(eqData.EQ6.type,6);curEqChannel=6;showOrHideEqData()}function selectElementHpfModeRespond(){var selectElement=document.getElementById("text_hpf_mode");var slopeElement=document.getElementById("text_hpf_slope");var index=selectElement.selectedIndex;controlsData.outputData.HPFData.HL_Type=index;keepLinkOutHpfMode(curButtonNo,index);eqDataKeepStep(curButtonNo,7);DrawLine();switch(index){case 0:slopeElement.innerHTML="";initXoverFew("text_hpf_slope");setModeSelect("text_hpf_slope",controlsData.outputData.HPFData.LR_Level);break;case 1:case 2:slopeElement.innerHTML="";initXoverMany("text_hpf_slope");setModeSelect("text_hpf_slope",controlsData.outputData.HPFData.HL_Oct);break;default:break}curEqChannel=7;showOrHideEqData()}function selectElementLpfModeRespond(){var selectElement=document.getElementById("text_lpf_mode");var slopeElement=document.getElementById("text_lpf_slope");var index=selectElement.selectedIndex;controlsData.outputData.LPFData.HL_Type=index;keepLinkOutLpfMode(curButtonNo,index);eqDataKeepStep(curButtonNo,8);DrawLine();switch(index){case 0:slopeElement.innerHTML="";initXoverFew("text_lpf_slope");setModeSelect("text_lpf_slope",controlsData.outputData.LPFData.LR_Level);break;case 1:case 2:slopeElement.innerHTML="";initXoverMany("text_lpf_slope");setModeSelect("text_lpf_slope",controlsData.outputData.LPFData.HL_Oct);break;default:break}curEqChannel=8;showOrHideEqData()}function selectElementHpfSlopeRespond(){var selectElement=document.getElementById("text_hpf_slope");var index=selectElement.selectedIndex;keepLinkOutHpfSlope(curButtonNo,index);if(controlsData.outputData.HPFData.HL_Type===0){controlsData.outputData.HPFData.LR_Level=index}else{controlsData.outputData.HPFData.HL_Oct=index}eqDataKeepStep(curButtonNo,7);DrawLine();curEqChannel=7;showOrHideEqData()}function selectElementLpfSlopeRespond(){var selectElement=document.getElementById("text_lpf_slope");var index=selectElement.selectedIndex;keepLinkOutLpfSlope(curButtonNo,index);if(controlsData.outputData.LPFData.HL_Type===0){controlsData.outputData.LPFData.LR_Level=index}else{controlsData.outputData.LPFData.HL_Oct=index}eqDataKeepStep(curButtonNo,8);DrawLine();curEqChannel=8;showOrHideEqData()}function initSystemCurtain(){var selectElement=document.getElementById("system_back_selector");var newOption=new Option("常亮","0");selectElement.options.add(newOption);newOption=new Option("10s","1");selectElement.options.add(newOption);selectElement=document.getElementById("startup_selector");newOption=new Option("当前程序","0");selectElement.options.add(newOption);newOption=new Option("全静音","1");selectElement.options.add(newOption);for(var i=1;i<31;i++){newOption=new Option("设备程序"+i,i+1+"");selectElement.options.add(newOption)}document.getElementById("system_back_selector").onchange=backSelectorChange;document.getElementById("startup_selector").onchange=startUpSelectorChange;document.getElementById("text_first_line").onchange=firstLineChange;document.getElementById("text_second_line").onchange=secondLineChange;document.getElementById("button_central_control").onclick=centralClickResponse;document.getElementById("interface_confirm").onclick=interfaceConfirmClickResponse;document.getElementById("interface_cancel").onclick=interfaceCancelClickResponse;document.getElementById("system_quit").onclick=systemQuitClickResponse}function refreshSystemCurtain(){}function renewSystemCurtain(){document.getElementById("system_back_selector").options[currentSystemData.m_nBack_Light].selected=true;if(Number(currentSystemData.m_nDevSSet)===1){document.getElementById("startup_selector").options[0].selected=true}else if(Number(currentSystemData.m_nDevSSet)===2){document.getElementById("startup_selector").options[1].selected=true}else{document.getElementById("startup_selector").options[currentSystemData.m_nSetPG_ID+1].selected=true}}function backSelectorChange(){var value=document.getElementById("system_back_selector").value;currentSystemData.m_nBack_Light=value;readWriteSystemData(messageType.PC_Write_Data,messageType.PC_Back_Light_ID,0);dataForSendArray.push(formulateDataForSend(dataForSend))}function startUpSelectorChange(){var value=document.getElementById("startup_selector").value;if(Number(value)===0){currentSystemData.m_nDevSSet=1}else if(Number(value)===1){currentSystemData.m_nDevSSet=2}else{currentSystemData.m_nDevSSet=3;currentSystemData.m_nSetPG_ID=value-1}readWriteSystemData(messageType.PC_Write_Data,messageType.Device_StartUp_Set,0);dataForSendArray.push(formulateDataForSend(dataForSend))}function centralClickResponse(){curtainOption(4)}function interfaceConfirmClickResponse(){var fistLine=document.getElementById("text_first_line").value;var secondLine=document.getElementById("text_second_line").value;var firstArray=stringToBytesOfInterface(fistLine,24);var secondArray=stringToBytesOfInterface(secondLine,24);var newArray=[];newArray=firstArray.concat(secondArray);currentSystemData.firstRow=fistLine;currentSystemData.secondRow=secondLine;deepCopyValue(currentSystemData.m_nInformation,newArray);readWriteSystemData(messageType.PC_Write_Data,messageType.PC_Information_ID,0);dataForSendArray.push(formulateDataForSend(dataForSend))}function interfaceCancelClickResponse(){document.getElementById("text_first_line").value=currentSystemData.firstRow.trim();document.getElementById("text_second_line").value=currentSystemData.secondRow.trim();curtainOption(0)}function systemQuitClickResponse(){document.getElementById("text_first_line").value=currentSystemData.firstRow.trim();document.getElementById("text_second_line").value=currentSystemData.secondRow.trim();curtainOption(0)}function firstLineChange(){}function secondLineChange(){}function stringToBytesOfInterface(str,length){var ch,st,re=[],strHex=[];for(var i=0;i>8}while(ch);re=re.concat(st.reverse())}for(i=0;iupDownPressTimeConst){fn(isUp)}},upDownSpeed)}}function upAndDownMouseUpResponse(){isUpAndDownStop=false;clearInterval(upDownInterval)}function upAndDownMouseLeaveResponse(){isUpAndDownStop=false;clearInterval(upDownInterval)}function setElementFocus(id){document.getElementById(id).focus();focusElementId=id}function gateKeyRightAdjust(isUp){currentStep=controlsData.inputData.noisegate;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}var editControl=document.getElementById("text_gate");checkCurrentStep(inputTextValueType.NOISE_GATE);controlsData.inputData.noisegate=currentStep;editControl.value=getDisplayValue(inputTextValueType.NOISE_GATE);keepLinkInputGate(curButtonNo,currentStep);setElementFocus("text_gate")}function millisecondLeftDownAdjust(){currentStep=controlsData.inputData.delay;secondStep=controlsData.inputData.secondDelay;currentStep=currentStep-1;var editControl=document.getElementById("text_delay_millisecond");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.inputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkInputTime(curButtonNo,currentStep,secondStep);setElementFocus("text_delay_millisecond")}function millisecondLeftUpAdjust(){currentStep=controlsData.inputData.delay;secondStep=controlsData.inputData.secondDelay;currentStep=currentStep+1;var editControl=document.getElementById("text_delay_millisecond");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.inputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkInputTime(curButtonNo,currentStep,secondStep);setElementFocus("text_delay_millisecond")}function millisecondRightDownAdjust(){currentStep=controlsData.inputData.delay;secondStep=controlsData.inputData.secondDelay;secondStep=secondStep-1;var editControl=document.getElementById("text_delay_millisecond");checkCurrentStep(inputTextValueType.DELAY_SECOND_TIME);controlsData.inputData.secondDelay=secondStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkInputTime(curButtonNo,currentStep,secondStep);setElementFocus("text_delay_millisecond")}function millisecondRightUpAdjust(){currentStep=controlsData.inputData.delay;secondStep=controlsData.inputData.secondDelay;secondStep=secondStep+1;var editControl=document.getElementById("text_delay_millisecond");checkCurrentStep(inputTextValueType.DELAY_SECOND_TIME);controlsData.inputData.secondDelay=secondStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkInputTime(curButtonNo,currentStep,secondStep);setElementFocus("text_delay_millisecond")}function millisecondOutLeftDownAdjust(){currentStep=controlsData.outputData.delay;secondStep=controlsData.outputData.secondDelay;currentStep=currentStep-1;var editControl=document.getElementById("text_delay_millisecond_out");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.outputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkOutDelayTime(curButtonNo,currentStep,secondStep);setElementFocus("text_delay_millisecond_out")}function millisecondOutLeftUpAdjust(){currentStep=controlsData.outputData.delay;secondStep=controlsData.outputData.secondDelay;currentStep=currentStep+1;var editControl=document.getElementById("text_delay_millisecond_out");checkCurrentStep(inputTextValueType.DELAY_TIME);controlsData.outputData.delay=currentStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkOutDelayTime(curButtonNo,currentStep,secondStep);setElementFocus("text_delay_millisecond_out")}function millisecondOutRightDownAdjust(ev){currentStep=controlsData.outputData.delay;secondStep=controlsData.outputData.secondDelay;secondStep=secondStep-1;var editControl=document.getElementById("text_delay_millisecond_out");checkCurrentStep(inputTextValueType.DELAY_SECOND_TIME);controlsData.outputData.secondDelay=secondStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkOutDelayTime(curButtonNo,currentStep,secondStep);setElementFocus("text_delay_millisecond_out")}function millisecondOutRightUpAdjust(){currentStep=controlsData.outputData.delay;secondStep=controlsData.outputData.secondDelay;secondStep=secondStep+1;var editControl=document.getElementById("text_delay_millisecond_out");checkCurrentStep(inputTextValueType.DELAY_SECOND_TIME);controlsData.outputData.secondDelay=secondStep;editControl.value=getDisplayValue(inputTextValueType.DELAY_TIME);editControl=document.getElementById("text_delay_meter_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_METER);editControl=document.getElementById("text_delay_inch_out");editControl.value=getDisplayValue(inputTextValueType.DELAY_INCH);keepLinkOutDelayTime(curButtonNo,currentStep,secondStep);setElementFocus("text_delay_millisecond_out")}function eq1FrequencyRightAdjust(isUp){var editControl=document.getElementById("text_eq1_frequency");currentStep=eqData.EQ1.freq;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ1.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq1Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData();setElementFocus("text_eq1_frequency")}function eq1BandwidthRightAdjust(isUp){var editControl=document.getElementById("text_eq1_bandwidth");currentStep=eqData.EQ1.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq1_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq1Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData();setElementFocus("text_eq1_bandwidth")}function eq1SlopeRightAdjust(isUp){var editControl=document.getElementById("text_eq1_slope");currentStep=eqData.EQ1.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq1_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq1Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();curEqChannel=1;showOrHideEqData();setElementFocus("text_eq1_slope")}function eq1GainRightAdjust(isUp){var editControl=document.getElementById("text_eq1_gain");currentStep=eqData.EQ1.level;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ1.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq1Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ1_THUMP,currentStep);eqDataKeepStep(curButtonNo,1);DrawLine();updateAllEqGainButton(1);curEqChannel=1;showOrHideEqData();setElementFocus("text_eq1_gain")}function eq2FrequencyRightAdjust(isUp){var editControl=document.getElementById("text_eq2_frequency");currentStep=eqData.EQ2.freq;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ2.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq2Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData();setElementFocus("text_eq2_frequency")}function eq2BandwidthRightAdjust(isUp){var editControl=document.getElementById("text_eq2_bandwidth");currentStep=eqData.EQ2.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq2_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq2Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData();setElementFocus("text_eq2_bandwidth")}function eq2SlopeRightAdjust(isUp){var editControl=document.getElementById("text_eq2_slope");currentStep=eqData.EQ2.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq2_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq2Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();curEqChannel=2;showOrHideEqData();setElementFocus("text_eq2_slope")}function eq2GainRightAdjust(isUp){var editControl=document.getElementById("text_eq2_gain");currentStep=eqData.EQ2.level;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ2.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq2Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ2_THUMP,currentStep);eqDataKeepStep(curButtonNo,2);DrawLine();updateAllEqGainButton(2);curEqChannel=2;showOrHideEqData();setElementFocus("text_eq2_gain")}function eq3FrequencyRightAdjust(isUp){var editControl=document.getElementById("text_eq3_frequency");currentStep=eqData.EQ3.freq;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ3.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq3Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData();setElementFocus("text_eq3_frequency")}function eq3BandwidthRightAdjust(isUp){var editControl=document.getElementById("text_eq3_bandwidth");currentStep=eqData.EQ3.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ3.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq3_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq3Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData();setElementFocus("text_eq3_bandwidth")}function eq3SlopeRightAdjust(isUp){var editControl=document.getElementById("text_eq3_slope");currentStep=eqData.EQ3.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ3.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq3_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq3Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();curEqChannel=3;showOrHideEqData();setElementFocus("text_eq3_slope")}function eq3GainRightAdjust(isUp){var editControl=document.getElementById("text_eq3_gain");currentStep=eqData.EQ3.level;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ3.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq3Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ3_THUMP,currentStep);eqDataKeepStep(curButtonNo,3);DrawLine();updateAllEqGainButton(3);curEqChannel=3;showOrHideEqData();setElementFocus("text_eq3_gain")}function eq4FrequencyRightAdjust(isUp){var editControl=document.getElementById("text_eq4_frequency");currentStep=eqData.EQ4.freq;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ4.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq4Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData();setElementFocus("text_eq4_frequency")}function eq4BandwidthRightAdjust(isUp){var editControl=document.getElementById("text_eq4_bandwidth");currentStep=eqData.EQ4.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ4.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq4_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq4Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData();setElementFocus("text_eq4_bandwidth")}function eq4SlopeRightAdjust(isUp){var editControl=document.getElementById("text_eq4_slope");currentStep=eqData.EQ4.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ4.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq4_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq4Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();curEqChannel=4;showOrHideEqData();setElementFocus("text_eq4_slope")}function eq4GainRightAdjust(isUp){var editControl=document.getElementById("text_eq4_gain");currentStep=eqData.EQ4.level;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ4.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq4Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ4_THUMP,currentStep);eqDataKeepStep(curButtonNo,4);DrawLine();updateAllEqGainButton(4);curEqChannel=4;showOrHideEqData();setElementFocus("text_eq4_gain")}function eq5FrequencyRightAdjust(isUp){var editControl=document.getElementById("text_eq5_frequency");currentStep=eqData.EQ5.freq;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ5.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq5Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData();setElementFocus("text_eq5_frequency")}function eq5BandwidthRightAdjust(isUp){var editControl=document.getElementById("text_eq5_bandwidth");currentStep=eqData.EQ5.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ5.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq5_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq5Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData();setElementFocus("text_eq5_bandwidth")}function eq5SlopeRightAdjust(isUp){var editControl=document.getElementById("text_eq5_slope");currentStep=eqData.EQ5.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ5.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq5_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq5Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();curEqChannel=5;showOrHideEqData();setElementFocus("text_eq5_slope")}function eq5GainRightAdjust(isUp){var editControl=document.getElementById("text_eq5_gain");currentStep=eqData.EQ5.level;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ5.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq5Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ5_THUMP,currentStep);eqDataKeepStep(curButtonNo,5);DrawLine();updateAllEqGainButton(5);curEqChannel=5;showOrHideEqData();setElementFocus("text_eq5_gain")}function eq6FrequencyRightAdjust(isUp){var editControl=document.getElementById("text_eq6_frequency");currentStep=eqData.EQ6.freq;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.FREQUENCY);eqData.EQ6.freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkEq6Frequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData();setElementFocus("text_eq6_frequency")}function eq6BandwidthRightAdjust(isUp){var editControl=document.getElementById("text_eq6_bandwidth");currentStep=eqData.EQ6.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ6.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);editControl=document.getElementById("text_eq6_slope");editControl.value=getDisplayValue(inputTextValueType.SLOPE);keepLinkEq6Bandwidth(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData();setElementFocus("text_eq6_bandwidth")}function eq6SlopeRightAdjust(isUp){var editControl=document.getElementById("text_eq6_slope");currentStep=eqData.EQ6.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);eqData.EQ6.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.SLOPE);editControl=document.getElementById("text_eq6_bandwidth");editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkEq6Slope(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();curEqChannel=6;showOrHideEqData();setElementFocus("text_eq6_slope")}function eq6GainRightAdjust(isUp){var editControl=document.getElementById("text_eq6_gain");currentStep=eqData.EQ6.level;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.EQ_GAIN);eqData.EQ6.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.EQ_GAIN);keepLinkEq6Gain(curButtonNo,currentStep);setSliderPosition(controlsId.SLIDER_EQ6_THUMP,currentStep);eqDataKeepStep(curButtonNo,6);DrawLine();updateAllEqGainButton(6);curEqChannel=6;showOrHideEqData();setElementFocus("text_eq6_gain")}function deq1FrequencyRightAdjust(isUp){var editControl=document.getElementById("text_deq1_frequency");currentStep=controlsData.inputData.InDeq1.req;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.FREQUENCY);controlsData.inputData.InDeq1.req=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkInputDeq1Frequency(curButtonNo,currentStep);setElementFocus("text_deq1_frequency")}function deq1BandwidthRightAdjust(isUp){var editControl=document.getElementById("text_deq1_bandwidth");currentStep=controlsData.inputData.InDeq1.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);controlsData.inputData.InDeq1.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkInputDeq1Bandwidth(curButtonNo,currentStep);setElementFocus("text_deq1_bandwidth")}function deq1LevelRightAdjust(isUp){var editControl=document.getElementById("text_deq1_level");currentStep=controlsData.inputData.InDeq1.level;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.DEQ_LEVEL);controlsData.inputData.InDeq1.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_LEVEL);keepLinkInputDeq1Level(curButtonNo,currentStep);updateDeqButton();setElementFocus("text_deq1_level")}function deq1ThresholdRightAdjust(isUp){var editControl=document.getElementById("deq1_threshold");currentStep=controlsData.inputData.DeqParam1.DEQ_Threshold;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.DEQ_THRESHOLD);controlsData.inputData.DeqParam1.DEQ_Threshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_THRESHOLD);keepLinkInputDeq1Threshold(curButtonNo,currentStep);setElementFocus("deq1_threshold")}function deq1RatioRightAdjust(isUp){var editControl=document.getElementById("deq1_ratio");currentStep=controlsData.inputData.DeqParam1.DEQ_ratio;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}fixRatioCurrentStep(controlsData.inputData.DeqParam1.DEQ_ratio);checkCurrentStep(inputTextValueType.EXTENSION_RATION);controlsData.inputData.DeqParam1.DEQ_ratio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputDeq1Ratio(curButtonNo,currentStep);setElementFocus("deq1_ratio")}function deq1AttackRightAdjust(isUp){var editControl=document.getElementById("deq1_attack_time");currentStep=controlsData.inputData.DeqParam1.DEQ_a;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.DeqParam1.DEQ_a=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputDeq1AttackTime(curButtonNo,currentStep);setElementFocus("deq1_attack_time")}function deq1ReleaseRightAdjust(isUp){var editControl=document.getElementById("deq1_release_time");currentStep=controlsData.inputData.DeqParam1.DEQ_r;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.DeqParam1.DEQ_r=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputDeq1ReleaseTime(curButtonNo,currentStep);setElementFocus("deq1_release_time")}function deq2FrequencyRightAdjust(isUp){var editControl=document.getElementById("text_deq2_frequency");currentStep=controlsData.inputData.InDeq2.req;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.FREQUENCY);controlsData.inputData.InDeq2.req=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkInputDeq2Frequency(curButtonNo,currentStep);setElementFocus("text_deq2_frequency")}function deq2BandwidthRightAdjust(isUp){var editControl=document.getElementById("text_deq2_bandwidth");currentStep=controlsData.inputData.InDeq2.bw;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.BANDWIDTH);controlsData.inputData.InDeq2.bw=currentStep;editControl.value=getDisplayValue(inputTextValueType.BANDWIDTH);keepLinkInputDeq2Bandwidth(curButtonNo,currentStep);setElementFocus("text_deq2_bandwidth")}function deq2LevelRightAdjust(isUp){var editControl=document.getElementById("text_deq2_level");currentStep=controlsData.inputData.InDeq2.level;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.DEQ_LEVEL);controlsData.inputData.InDeq2.level=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_LEVEL);keepLinkInputDeq2Level(curButtonNo,currentStep);updateDeqButton();setElementFocus("text_deq2_level")}function deq2ThresholdRightAdjust(isUp){var editControl=document.getElementById("deq2_threshold");currentStep=controlsData.inputData.DeqParam2.DEQ_Threshold;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.DEQ_THRESHOLD);controlsData.inputData.DeqParam2.DEQ_Threshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.DEQ_THRESHOLD);keepLinkInputDeq2Threshold(curButtonNo,currentStep);setElementFocus("deq2_threshold")}function deq2RatioRightAdjust(isUp){var editControl=document.getElementById("deq2_ratio");currentStep=controlsData.inputData.DeqParam2.DEQ_ratio;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}fixRatioCurrentStep(controlsData.inputData.DeqParam2.DEQ_ratio);checkCurrentStep(inputTextValueType.EXTENSION_RATION);controlsData.inputData.DeqParam2.DEQ_ratio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputDeq2Ratio(curButtonNo,currentStep);setElementFocus("deq2_ratio")}function deq2AttackRightAdjust(isUp){var editControl=document.getElementById("deq2_attack_time");currentStep=controlsData.inputData.DeqParam2.DEQ_a;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.DeqParam2.DEQ_a=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputDeq2AttackTime(curButtonNo,currentStep);setElementFocus("deq2_attack_time")}function deq2ReleaseRightAdjust(isUp){var editControl=document.getElementById("deq2_release_time");currentStep=controlsData.inputData.DeqParam2.DEQ_r;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.DeqParam2.DEQ_r=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputDeq2ReleaseTime(curButtonNo,currentStep);setElementFocus("deq2_release_time")}function thresholdRightAdjust(isUp){var editControl=document.getElementById("text_threshold");currentStep=controlsData.inputData.agThreshold;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.INPUT_EXTEND_THRESHOLD);controlsData.inputData.agThreshold=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_EXTEND_THRESHOLD);keepLinkInputThreshold(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp();setElementFocus("text_threshold")}function targetLevelRightAdjust(isUp){var editControl=document.getElementById("text_target_level");currentStep=controlsData.inputData.agLevel;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.TARGET_LEVEL);controlsData.inputData.agLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_EXTEND_THRESHOLD);keepLinkInputLevel(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp();setElementFocus("text_target_level")}function extensionRatioRightAdjust(isUp){var editControl=document.getElementById("text_extension_ratio");currentStep=controlsData.inputData.agRatio;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}fixRatioCurrentStep(controlsData.inputData.agRatio);checkCurrentStep(inputTextValueType.EXTENSION_RATION);controlsData.inputData.agRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.EXTENSION_RATION);keepLinkInputExtendRatio(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp();setElementFocus("text_extension_ratio")}function extensionAttackRightAdjust(isUp){var editControl=document.getElementById("text_extension_attack");currentStep=controlsData.inputData.agAttack;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.agAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputExtendAttackTime(curButtonNo,currentStep);setElementFocus("text_extension_attack")}function extensionReleaseRightAdjust(isUp){var editControl=document.getElementById("text_extension_release");currentStep=controlsData.inputData.agRelease;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.agRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputExtendReleaseTime(curButtonNo,currentStep);setElementFocus("text_extension_release")}function compressorRightAdjust(isUp){var editControl=document.getElementById("text_compressor");currentStep=controlsData.inputData.compLevel;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.INPUT_COMPRESS_THRESHOLD);controlsData.inputData.compLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.INPUT_COMPRESS_THRESHOLD);keepLinkInputCompressLevel(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp();setElementFocus("text_compressor")}function compRatioRightAdjust(isUp){var editControl=document.getElementById("text_comp_ratio");currentStep=controlsData.inputData.compRatio;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}fixRatioCurrentStep(controlsData.inputData.compRatio);checkCurrentStep(inputTextValueType.COMPRESS_RATION);controlsData.inputData.compRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.COMPRESS_RATION);keepLinkInputCompressRatio(curButtonNo,currentStep);agcExtMap.Draw_AGC_Comp();setElementFocus("text_comp_ratio")}function compAttackRightAdjust(isUp){var editControl=document.getElementById("text_comp_attack");currentStep=controlsData.inputData.compAttack;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.inputData.compAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkInputCompressAttackTime(curButtonNo,currentStep);setElementFocus("text_comp_attack")}function compReleaseRightAdjust(isUp){var editControl=document.getElementById("text_comp_release");currentStep=controlsData.inputData.compRelease;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.inputData.compRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkInputCompressReleaseTime(curButtonNo,currentStep);setElementFocus("text_comp_release")}function volumeARightAdjust(isUp){var editControl=document.getElementById("text_volume_a");currentStep=currentGroupData.dataInputA.gain;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputA.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_A,currentStep);keepLinkInputVolume(0,currentStep);setElementFocus("text_volume_a")}function volumeBRightAdjust(isUp){var editControl=document.getElementById("text_volume_b");currentStep=currentGroupData.dataInputB.gain;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputB.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_B,currentStep);keepLinkInputVolume(1,currentStep);setElementFocus("text_volume_b")}function volumeCRightAdjust(isUp){var editControl=document.getElementById("text_volume_c");currentStep=currentGroupData.dataInputC.gain;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputC.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_C,currentStep);keepLinkInputVolume(2,currentStep);setElementFocus("text_volume_c")}function volumeDRightAdjust(isUp){var editControl=document.getElementById("text_volume_d");currentStep=currentGroupData.dataInputD.gain;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataInputD.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_D,currentStep);keepLinkInputVolume(3,currentStep);setElementFocus("text_volume_d")}function volumeOut1RightAdjust(isUp){var editControl=document.getElementById("text_volume_out1");currentStep=currentGroupData.dataOut1.gain;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut1.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT1,currentStep);keepLinkOutVolume(0,currentStep);setElementFocus("text_volume_out1")}function volumeOut2RightAdjust(isUp){var editControl=document.getElementById("text_volume_out2");currentStep=currentGroupData.dataOut2.gain;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut2.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT2,currentStep);keepLinkOutVolume(1,currentStep);setElementFocus("text_volume_out2")}function volumeOut3RightAdjust(isUp){var editControl=document.getElementById("text_volume_out3");currentStep=currentGroupData.dataOut3.gain;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut3.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT3,currentStep);keepLinkOutVolume(2,currentStep);setElementFocus("text_volume_out3")}function volumeOut4RightAdjust(isUp){var editControl=document.getElementById("text_volume_out4");currentStep=currentGroupData.dataOut4.gain;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut4.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT4,currentStep);keepLinkOutVolume(3,currentStep);setElementFocus("text_volume_out4")}function volumeOut5RightAdjust(isUp){var editControl=document.getElementById("text_volume_out5");currentStep=currentGroupData.dataOut5.gain;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut5.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT5,currentStep);keepLinkOutVolume(4,currentStep);setElementFocus("text_volume_out5")}function volumeOut6RightAdjust(isUp){var editControl=document.getElementById("text_volume_out6");currentStep=currentGroupData.dataOut6.gain;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut6.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT6,currentStep);keepLinkOutVolume(5,currentStep);setElementFocus("text_volume_out6")}function volumeOut7RightAdjust(isUp){var editControl=document.getElementById("text_volume_out7");currentStep=currentGroupData.dataOut7.gain;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut7.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT7,currentStep);keepLinkOutVolume(6,currentStep);setElementFocus("text_volume_out7")}function volumeOut8RightAdjust(isUp){var editControl=document.getElementById("text_volume_out8");currentStep=currentGroupData.dataOut8.gain;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);currentGroupData.dataOut8.gain=currentStep;editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_OUT8,currentStep);keepLinkOutVolume(7,currentStep);setElementFocus("text_volume_out8")}function gainRightAdjust(isUp){var editControl=document.getElementById("text_gain");currentStep=getChannelGain(curButtonNo);if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.CHANNEL_GAIN);setChannelGain(curButtonNo,currentStep);editControl.value=getDisplayValue(inputTextValueType.CHANNEL_GAIN);setGainSliderPosition(currentStep);keepShortGainInStep(currentStep);setElementFocus("text_gain")}function outThresholdCompressRightAdjust(isUp){var editControl=document.getElementById("text_threshold_compress_out");currentStep=controlsData.outputData.compLevel;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.OUTPUT_COMPRESS_THRESHOLD);controlsData.outputData.compLevel=currentStep;editControl.value=getDisplayValue(inputTextValueType.OUTPUT_COMPRESS_THRESHOLD);keepLinkOutThresholdCompress(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT();setElementFocus("text_threshold_compress_out")}function outRatioCompressRightAdjust(isUp){var editControl=document.getElementById("text_ratio_compress_out");currentStep=controlsData.outputData.compRatio;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}fixRatioCurrentStep(controlsData.outputData.compRatio);checkCurrentStep(inputTextValueType.COMPRESS_RATION);controlsData.outputData.compRatio=currentStep;editControl.value=getDisplayValue(inputTextValueType.COMPRESS_RATION);keepLinkOutRatioCompress(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT();setElementFocus("text_ratio_compress_out")}function outAttackCompressRightAdjust(isUp){var editControl=document.getElementById("text_attack_compress_out");currentStep=controlsData.outputData.compAttack;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.outputData.compAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkOutAttackCompress(curButtonNo,currentStep);setElementFocus("text_attack_compress_out")}function outReleaseCompressRightAdjust(isUp){var editControl=document.getElementById("text_release_compress_out");currentStep=controlsData.outputData.compR;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.outputData.compR=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkOutReleaseCompress(curButtonNo,currentStep);setElementFocus("text_release_compress_out")}function outThresholdLimitRightAdjust(isUp){var editControl=document.getElementById("text_threshold_limit_out");currentStep=controlsData.outputData.limT;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.OUTPUT_LIMITER_THRESHOLD);controlsData.outputData.limT=currentStep;editControl.value=getDisplayValue(inputTextValueType.OUTPUT_LIMITER_THRESHOLD);keepLinkOutThresholdLimit(curButtonNo,currentStep);comExtMap.DrawOutComp_LimT();setElementFocus("text_threshold_limit_out")}function outAttackLimitRightAdjust(isUp){var editControl=document.getElementById("text_attack_limit_out");currentStep=controlsData.outputData.limAttack;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.ATTACK_TIME);controlsData.outputData.limAttack=currentStep;editControl.value=getDisplayValue(inputTextValueType.ATTACK_TIME);keepLinkOutAttackLimit(curButtonNo,currentStep);setElementFocus("text_attack_limit_out")}function outReleaseLimitRightAdjust(isUp){var editControl=document.getElementById("text_release_limit_out");currentStep=controlsData.outputData.limRelease;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.RELEASE_TIME);controlsData.outputData.limRelease=currentStep;editControl.value=getDisplayValue(inputTextValueType.RELEASE_TIME);keepLinkOutReleaseLimit(curButtonNo,currentStep);setElementFocus("text_release_limit_out")}function hpfFrequencyRightAdjust(isUp){var editControl=document.getElementById("text_hpf_frequency");currentStep=controlsData.outputData.HPFData.HL_freq;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.FREQUENCY);if(currentStep>controlsData.outputData.LPFData.HL_freq){currentStep=controlsData.outputData.LPFData.HL_freq}controlsData.outputData.HPFData.HL_freq=currentStep;editControl.value=getDisplayValue(inputTextValueType.FREQUENCY);keepLinkOutHpfFrequency(curButtonNo,currentStep);eqDataKeepStep(curButtonNo,7);DrawLine();curEqChannel=7;showOrHideEqData();setElementFocus("text_hpf_frequency")}function lpfFrequencyRightAdjust(isUp){var editControl=document.getElementById("text_lpf_frequency");currentStep=controlsData.outputData.LPFData.HL_freq;if(isUp){currentStep=currentStep+1}else{currentStep=currentStep-1}checkCurrentStep(inputTextValueType.FREQUENCY);if(currentStepeqType.Max_In_EXT_Level-200){if(this.m_pInData.agThreshold>eqType.Max_In_EXT_Threshold-200){centerPoint=new PointClass(this.m_nComp_Level_Point.x,this.m_nComp_Level_Point.y);svgDrawInput.drawPoint(3,centerPoint,6);centerPoint=new PointClass(this.m_nAGC_Level_Point.x,this.m_nAGC_Level_Point.y);svgDrawInput.drawPoint(2,centerPoint,6);centerPoint=new PointClass(this.m_nAGC_Ratio_Point.x,this.m_nAGC_Ratio_Point.y);svgDrawInput.drawPoint(4,centerPoint,6);centerPoint=new PointClass(this.m_nAGC_Threshold_Point.x,this.m_nAGC_Threshold_Point.y);svgDrawInput.drawPoint(1,centerPoint,6)}else{centerPoint=new PointClass(this.m_nComp_Level_Point.x,this.m_nComp_Level_Point.y);svgDrawInput.drawPoint(3,centerPoint,6);centerPoint=new PointClass(this.m_nAGC_Level_Point.x,this.m_nAGC_Level_Point.y);svgDrawInput.drawPoint(2,centerPoint,6);centerPoint=new PointClass(this.m_nAGC_Threshold_Point.x,this.m_nAGC_Threshold_Point.y);svgDrawInput.drawPoint(1,centerPoint,6);centerPoint=new PointClass(this.m_nAGC_Ratio_Point.x,this.m_nAGC_Ratio_Point.y);svgDrawInput.drawPoint(4,centerPoint,6)}}else{centerPoint=new PointClass(this.m_nAGC_Threshold_Point.x,this.m_nAGC_Threshold_Point.y);svgDrawInput.drawPoint(1,centerPoint,6);centerPoint=new PointClass(this.m_nAGC_Ratio_Point.x,this.m_nAGC_Ratio_Point.y);svgDrawInput.drawPoint(4,centerPoint,6);centerPoint=new PointClass(this.m_nAGC_Level_Point.x,this.m_nAGC_Level_Point.y);svgDrawInput.drawPoint(2,centerPoint,6);centerPoint=new PointClass(this.m_nComp_Level_Point.x,this.m_nComp_Level_Point.y);svgDrawInput.drawPoint(3,centerPoint,6)}}};AgcExtMap.prototype.MouseMove_AGC_Comp=function(nPoint){if(this.m_bMouseDown){if(this.m_bComp_Level_Rect_Over){this.Conver_Comp_Level(nPoint);return}if(this.m_bComp_Ratio_Rect_Over){this.Conver_Comp_Ratio(nPoint);return}if(this.m_bAGC_Threshold_Rect_Over){this.Conver_AGC_Threshold(nPoint);return}if(this.m_bAGC_Ratio_Rect_Over){this.Conver_AGC_Ratio(nPoint);return}if(this.m_bAGC_Level_Rect_Over){this.Conver_AGC_Level(nPoint);return}}else{if(this.m_pInData.agThreshold===eqType.Max_In_EXT_Threshold){if(this.m_nAGC_Threshold_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=true;this.m_bAGC_Level_Rect_Over=false;this.m_bAGC_Ratio_Rect_Over=false;this.m_bComp_Ratio_Rect_Over=false;this.m_bComp_Level_Rect_Over=false;this.m_bRectOver=true;return}if(this.m_nAGC_Level_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=false;this.m_bAGC_Level_Rect_Over=true;this.m_bAGC_Ratio_Rect_Over=false;this.m_bComp_Ratio_Rect_Over=false;this.m_bComp_Level_Rect_Over=false;this.m_bRectOver=true;return}if(this.m_nComp_Level_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=false;this.m_bAGC_Level_Rect_Over=false;this.m_bAGC_Ratio_Rect_Over=false;this.m_bComp_Ratio_Rect_Over=false;this.m_bComp_Level_Rect_Over=true;this.m_bRectOver=true;return}if(this.m_nComp_Ratio_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=false;this.m_bAGC_Level_Rect_Over=false;this.m_bAGC_Ratio_Rect_Over=false;this.m_bComp_Ratio_Rect_Over=true;this.m_bComp_Level_Rect_Over=false;this.m_bRectOver=true;return}if(this.m_nAGC_Ratio_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=false;this.m_bAGC_Level_Rect_Over=false;this.m_bAGC_Ratio_Rect_Over=true;this.m_bComp_Ratio_Rect_Over=false;this.m_bComp_Level_Rect_Over=false;this.m_bRectOver=true;return}}if(this.m_pInData.agLevel===eqType.Max_In_EXT_Level){if(this.m_nAGC_Level_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=false;this.m_bAGC_Level_Rect_Over=true;this.m_bAGC_Ratio_Rect_Over=false;this.m_bComp_Ratio_Rect_Over=false;this.m_bComp_Level_Rect_Over=false;this.m_bRectOver=true;return}if(this.m_nComp_Level_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=false;this.m_bAGC_Level_Rect_Over=false;this.m_bAGC_Ratio_Rect_Over=false;this.m_bComp_Ratio_Rect_Over=false;this.m_bComp_Level_Rect_Over=true;this.m_bRectOver=true;return}if(this.m_nComp_Ratio_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=false;this.m_bAGC_Level_Rect_Over=false;this.m_bAGC_Ratio_Rect_Over=false;this.m_bComp_Ratio_Rect_Over=true;this.m_bComp_Level_Rect_Over=false;this.m_bRectOver=true;return}if(this.m_nAGC_Ratio_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=false;this.m_bAGC_Level_Rect_Over=false;this.m_bAGC_Ratio_Rect_Over=true;this.m_bComp_Ratio_Rect_Over=false;this.m_bComp_Level_Rect_Over=false;this.m_bRectOver=true;return}if(this.m_nAGC_Threshold_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=true;this.m_bAGC_Level_Rect_Over=false;this.m_bAGC_Ratio_Rect_Over=false;this.m_bComp_Ratio_Rect_Over=false;this.m_bComp_Level_Rect_Over=false;this.m_bRectOver=true;return}}else{if(this.m_nComp_Level_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=false;this.m_bAGC_Level_Rect_Over=false;this.m_bAGC_Ratio_Rect_Over=false;this.m_bComp_Ratio_Rect_Over=false;this.m_bComp_Level_Rect_Over=true;this.m_bRectOver=true;return}if(this.m_nComp_Ratio_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=false;this.m_bAGC_Level_Rect_Over=false;this.m_bAGC_Ratio_Rect_Over=false;this.m_bComp_Ratio_Rect_Over=true;this.m_bComp_Level_Rect_Over=false;this.m_bRectOver=true;return}if(this.m_nAGC_Level_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=false;this.m_bAGC_Level_Rect_Over=true;this.m_bAGC_Ratio_Rect_Over=false;this.m_bComp_Ratio_Rect_Over=false;this.m_bComp_Level_Rect_Over=false;this.m_bRectOver=true;return}if(this.m_nAGC_Ratio_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=false;this.m_bAGC_Level_Rect_Over=false;this.m_bAGC_Ratio_Rect_Over=true;this.m_bComp_Ratio_Rect_Over=false;this.m_bComp_Level_Rect_Over=false;this.m_bRectOver=true;return}if(this.m_nAGC_Threshold_Rect.Contains(nPoint.x,nPoint.y)){this.m_bAGC_Threshold_Rect_Over=true;this.m_bAGC_Level_Rect_Over=false;this.m_bAGC_Ratio_Rect_Over=false;this.m_bComp_Ratio_Rect_Over=false;this.m_bComp_Level_Rect_Over=false;this.m_bRectOver=true;return}}this.m_bAGC_Threshold_Rect_Over=false;this.m_bAGC_Level_Rect_Over=false;this.m_bAGC_Ratio_Rect_Over=false;this.m_bComp_Ratio_Rect_Over=false;this.m_bComp_Level_Rect_Over=false;this.m_bRectOver=false}};AgcExtMap.prototype.Conver_AGC_Threshold=function(Point){Point.y=Point.y-520;this.m_nAGC_Threshold=parseInt((this.m_nMapRect.bottom-Point.y)/this.m_nHeight);if(this.m_nAGC_Threshold>eqType.Max_In_EXT_Threshold){this.m_nAGC_Threshold=eqType.Max_In_EXT_Threshold}if(this.m_nAGC_Thresholdthis.m_pInData.agLevel){this.m_nAGC_Threshold=this.m_pInData.agLevel}if(this.m_nAGC_Threshold!==this.m_pInData.agThreshold){this.m_pInData.agThreshold=this.m_nAGC_Threshold;keepLinkInputThreshold(curButtonNo,this.m_nAGC_Threshold);var element=document.getElementById("text_threshold");var value=getInputThresholdDisplay(this.m_nAGC_Threshold);element.innerHTML=value;element.value=value;element.setAttribute("value",value)}};AgcExtMap.prototype.Conver_AGC_Level=function(Point){Point.y=Point.y-520;this.m_nAGC_Level=parseInt((this.m_nMapRect.bottom-Point.y)/this.m_nHeight);if(this.m_nAGC_Level>eqType.Max_In_EXT_Level){this.m_nAGC_Level=eqType.Max_In_EXT_Level}if(this.m_nAGC_Level<0){this.m_nAGC_Level=0}if(this.m_nAGC_Levelthis.m_pInData.compLevel+Middle_Comp_Level){this.m_nAGC_Level=this.m_pInData.compLevel+Middle_Comp_Level}if(this.m_nAGC_Level!==this.m_pInData.agLevel){this.m_pInData.agLevel=this.m_nAGC_Level;keepLinkInputLevel(curButtonNo,this.m_nAGC_Level);var element=document.getElementById("text_target_level");var value=getInputThresholdDisplay(this.m_nAGC_Level);element.innerHTML=value;element.value=value;element.setAttribute("value",value)}};AgcExtMap.prototype.Conver_AGC_Ratio=function(Point){Point.y=Point.y-520;var nHeight=this.m_nAGC_Threshold_Point.y-this.m_nAGC_Level_Point.y;var nCurHeight=Point.y-this.m_nAGC_Level_Point.y;var nRatio;if(nCurHeight<=0){nCurHeight=1}nRatio=parseInt(nHeight/nCurHeight*10-9);nRatio=GetCPEXT_Ratio(nRatio);if(nRatio>eqType.Max_CP_Ratio){nRatio=eqType.Max_CP_Ratio}if(nRatio<1){nRatio=1}if(nRatio!==this.m_pInData.agRatio){if(nRatio>11){if((nRatio-11)%5){return}}this.m_pInData.agRatio=nRatio;keepLinkInputExtendRatio(curButtonNo,nRatio);var element=document.getElementById("text_extension_ratio");var ratio=getExtensionRationDisplay(nRatio);element.innerHTML=ratio;element.value=ratio;element.setAttribute("value",ratio)}};AgcExtMap.prototype.Conver_Comp_Level=function(Point){Point.y=Point.y-520;this.m_nComp_Level=parseInt((this.m_nMapRect.bottom-Point.y-Middle_Comp_Level*this.m_nHeight)/this.m_nHeight);if(this.m_nComp_Level>600){this.m_nComp_Level=600}if(this.m_nComp_Level<0){this.m_nComp_Level=0}if(this.m_nComp_Level+Middle_Comp_LeveleqType.Max_CP_Ratio){nRatio=eqType.Max_CP_Ratio}if(nRatio<1){nRatio=1}if(nRatio!==this.m_pInData.compRatio){if(nRatio>11){if((nRatio-11)%5){return}}this.m_pInData.compRatio=nRatio;keepLinkInputCompressRatio(curButtonNo,nRatio);var element=document.getElementById("text_comp_ratio");var ratio=getCompressRationDisplay(nRatio);element.innerHTML=ratio;element.value=ratio;element.setAttribute("value",ratio)}}}function GetCPEXT_Ratio(nIndex){var val;var i,j;val=nIndex;if(nIndex>11){i=(nIndex-1)%10;if(i!==0){if(i!==5){j=nIndex/10;val=j*10+6}}}if(val>eqType.Max_CP_Ratio){val=eqType.Max_CP_Ratio}return val}var wrongDataLength=false;var wrongHeader=false;var wrongTail=false;var wrongVerification=false;var wrongRespond=false;function arrangeReceiveData(messageStr){var i;var messageArray=[];var messageStrArray;wrongDataLength=false;wrongHeader=false;wrongTail=false;wrongVerification=false;wrongRespond=false;messageStr=messageStr.replace(/(\s*$)/g,"");messageStrArray=messageStr.split(" ");var length=messageStrArray.length;for(i=0;i0){dataGroup=currentAllGroupData[userID-1]}else{dataGroup=currentGroupData}switch(channelID){case 0:dataInput=dataGroup.dataInputA;break;case 1:dataInput=dataGroup.dataInputB;break;case 2:dataInput=dataGroup.dataInputC;break;case 3:dataInput=dataGroup.dataInputD;break;default:return;break}var tempName=[];var nameShow=[];for(i=0;i<8;i++){tempName.push(dataBeReceive.DataBuff[i]);nameShow.push(dataBeReceive.DataBuff[i].toString(16))}dataInput.name=bytesToStringNot32(tempName);dataInput.mute=dataBeReceive.DataBuff[8];dataInput.polar=dataBeReceive.DataBuff[9];dataInput.delay=dataBeReceive.DataBuff[10]+dataBeReceive.DataBuff[11]*256;dataInput.gain=dataBeReceive.DataBuff[12]+dataBeReceive.DataBuff[13]*256;dataInput.inLinkSel=dataBeReceive.DataBuff[14];if(userID===0){linkInputSelect[channelID]=dataInput.inLinkSel}dataInput.secondDelay=dataBeReceive.DataBuff[15];dataInput.noisegate=dataBeReceive.DataBuff[16];dataInput.InDeq1.req=dataBeReceive.DataBuff[24]+dataBeReceive.DataBuff[25]*256;dataInput.InDeq1.level=dataBeReceive.DataBuff[26]+dataBeReceive.DataBuff[27]*256;dataInput.InDeq1.bw=dataBeReceive.DataBuff[28]+dataBeReceive.DataBuff[29]*256;dataInput.InDeq1.type=dataBeReceive.DataBuff[30];dataInput.InDeq1.shf_db=dataBeReceive.DataBuff[31];dataInput.InDeq2.req=dataBeReceive.DataBuff[32]+dataBeReceive.DataBuff[33]*256;dataInput.InDeq2.level=dataBeReceive.DataBuff[34]+dataBeReceive.DataBuff[35]*256;dataInput.InDeq2.bw=dataBeReceive.DataBuff[36]+dataBeReceive.DataBuff[37]*256;dataInput.InDeq2.type=dataBeReceive.DataBuff[38];dataInput.InDeq2.shf_db=dataBeReceive.DataBuff[39];dataInput.DeqParam1.DEQ_level=dataBeReceive.DataBuff[40]+dataBeReceive.DataBuff[41]*256;dataInput.DeqParam1.DEQ_Threshold=dataBeReceive.DataBuff[42]+dataBeReceive.DataBuff[43]*256;dataInput.DeqParam1.DEQ_r=dataBeReceive.DataBuff[44]+dataBeReceive.DataBuff[45]*256;dataInput.DeqParam1.DEQ_a=dataBeReceive.DataBuff[46];dataInput.DeqParam1.DEQ_ratio=dataBeReceive.DataBuff[47];dataInput.DeqParam2.DEQ_level=dataBeReceive.DataBuff[48]+dataBeReceive.DataBuff[49]*256;dataInput.DeqParam2.DEQ_Threshold=dataBeReceive.DataBuff[50]+dataBeReceive.DataBuff[51]*256;dataInput.DeqParam2.DEQ_r=dataBeReceive.DataBuff[52]+dataBeReceive.DataBuff[53]*256;dataInput.DeqParam2.DEQ_a=dataBeReceive.DataBuff[54];dataInput.DeqParam2.DEQ_ratio=dataBeReceive.DataBuff[55];dataInput.InEQ.EQ1.freq=dataBeReceive.DataBuff[56]+dataBeReceive.DataBuff[57]*256;dataInput.InEQ.EQ1.level=dataBeReceive.DataBuff[58]+dataBeReceive.DataBuff[59]*256;dataInput.InEQ.EQ1.bw=dataBeReceive.DataBuff[60]+dataBeReceive.DataBuff[61]*256;dataInput.InEQ.EQ1.HL_db_AP_Flag=dataBeReceive.DataBuff[62];dataInput.InEQ.EQ1.type=dataBeReceive.DataBuff[63];dataInput.InEQ.EQ2.freq=dataBeReceive.DataBuff[64]+dataBeReceive.DataBuff[65]*256;dataInput.InEQ.EQ2.level=dataBeReceive.DataBuff[66]+dataBeReceive.DataBuff[67]*256;dataInput.InEQ.EQ2.bw=dataBeReceive.DataBuff[68]+dataBeReceive.DataBuff[69]*256;dataInput.InEQ.EQ2.HL_db_AP_Flag=dataBeReceive.DataBuff[70];dataInput.InEQ.EQ2.type=dataBeReceive.DataBuff[71];dataInput.InEQ.EQ3.freq=dataBeReceive.DataBuff[72]+dataBeReceive.DataBuff[73]*256;dataInput.InEQ.EQ3.level=dataBeReceive.DataBuff[74]+dataBeReceive.DataBuff[75]*256;dataInput.InEQ.EQ3.bw=dataBeReceive.DataBuff[76]+dataBeReceive.DataBuff[77]*256;dataInput.InEQ.EQ3.HL_db_AP_Flag=dataBeReceive.DataBuff[78];dataInput.InEQ.EQ3.type=dataBeReceive.DataBuff[79];dataInput.InEQ.EQ4.freq=dataBeReceive.DataBuff[80]+dataBeReceive.DataBuff[81]*256;dataInput.InEQ.EQ4.level=dataBeReceive.DataBuff[82]+dataBeReceive.DataBuff[83]*256;dataInput.InEQ.EQ4.bw=dataBeReceive.DataBuff[84]+dataBeReceive.DataBuff[85]*256;dataInput.InEQ.EQ4.HL_db_AP_Flag=dataBeReceive.DataBuff[86];dataInput.InEQ.EQ4.type=dataBeReceive.DataBuff[87];dataInput.InEQ.EQ5.freq=dataBeReceive.DataBuff[88]+dataBeReceive.DataBuff[89]*256;dataInput.InEQ.EQ5.level=dataBeReceive.DataBuff[90]+dataBeReceive.DataBuff[91]*256;dataInput.InEQ.EQ5.bw=dataBeReceive.DataBuff[92]+dataBeReceive.DataBuff[93]*256;dataInput.InEQ.EQ5.HL_db_AP_Flag=dataBeReceive.DataBuff[94];dataInput.InEQ.EQ5.type=dataBeReceive.DataBuff[95];dataInput.InEQ.EQ6.freq=dataBeReceive.DataBuff[96]+dataBeReceive.DataBuff[97]*256;dataInput.InEQ.EQ6.level=dataBeReceive.DataBuff[98]+dataBeReceive.DataBuff[99]*256;dataInput.InEQ.EQ6.bw=dataBeReceive.DataBuff[100]+dataBeReceive.DataBuff[101]*256;dataInput.InEQ.EQ6.HL_db_AP_Flag=dataBeReceive.DataBuff[102];dataInput.InEQ.EQ6.type=dataBeReceive.DataBuff[103];dataInput.InEQ.EQ7.freq=dataBeReceive.DataBuff[104]+dataBeReceive.DataBuff[105]*256;dataInput.InEQ.EQ7.level=dataBeReceive.DataBuff[106]+dataBeReceive.DataBuff[107]*256;dataInput.InEQ.EQ7.bw=dataBeReceive.DataBuff[108]+dataBeReceive.DataBuff[109]*256;dataInput.InEQ.EQ7.HL_db_AP_Flag=dataBeReceive.DataBuff[110];dataInput.InEQ.EQ7.type=dataBeReceive.DataBuff[111];dataInput.InEQ.EQ8.freq=dataBeReceive.DataBuff[112]+dataBeReceive.DataBuff[113]*256;dataInput.InEQ.EQ8.level=dataBeReceive.DataBuff[114]+dataBeReceive.DataBuff[115]*256;dataInput.InEQ.EQ8.bw=dataBeReceive.DataBuff[116]+dataBeReceive.DataBuff[117]*256;dataInput.InEQ.EQ8.HL_db_AP_Flag=dataBeReceive.DataBuff[118];dataInput.InEQ.EQ8.type=dataBeReceive.DataBuff[119];dataInput.InEQ.EQ9.freq=dataBeReceive.DataBuff[120]+dataBeReceive.DataBuff[121]*256;dataInput.InEQ.EQ9.level=dataBeReceive.DataBuff[122]+dataBeReceive.DataBuff[123]*256;dataInput.InEQ.EQ9.bw=dataBeReceive.DataBuff[124]+dataBeReceive.DataBuff[125]*256;dataInput.InEQ.EQ9.HL_db_AP_Flag=dataBeReceive.DataBuff[126];dataInput.InEQ.EQ9.type=dataBeReceive.DataBuff[127];dataInput.HPFData.HL_freq=dataBeReceive.DataBuff[128]+dataBeReceive.DataBuff[129]*256;dataInput.HPFData.HL_Type=dataBeReceive.DataBuff[130];dataInput.HPFData.HL_Oct=dataBeReceive.DataBuff[131];dataInput.HPFData.LR_Level=dataBeReceive.DataBuff[132];dataInput.LPFData.HL_freq=dataBeReceive.DataBuff[136]+dataBeReceive.DataBuff[137]*256;dataInput.LPFData.HL_Type=dataBeReceive.DataBuff[138];dataInput.LPFData.HL_Oct=dataBeReceive.DataBuff[139];dataInput.LPFData.LR_Level=dataBeReceive.DataBuff[140];dataInput.agLevel=dataBeReceive.DataBuff[144]+dataBeReceive.DataBuff[145]*256;dataInput.agThreshold=dataBeReceive.DataBuff[146]+dataBeReceive.DataBuff[147]*256;dataInput.agRelease=dataBeReceive.DataBuff[148]+dataBeReceive.DataBuff[149]*256;dataInput.agAttack=dataBeReceive.DataBuff[150];dataInput.agRatio=dataBeReceive.DataBuff[151];dataInput.compLevel=dataBeReceive.DataBuff[152]+dataBeReceive.DataBuff[153]*256;dataInput.compRelease=dataBeReceive.DataBuff[154]+dataBeReceive.DataBuff[155]*256;dataInput.compAttack=dataBeReceive.DataBuff[156];dataInput.compRatio=dataBeReceive.DataBuff[157];return true}function disposeOutRouteData(userID,channelID){var i;var index;var indexStart=[];var dataGroup;var dataOut;if(userID>0){dataGroup=currentAllGroupData[userID-1]}else{dataGroup=currentGroupData}switch(channelID){case 0:dataOut=dataGroup.dataOut1;break;case 1:dataOut=dataGroup.dataOut2;break;case 2:dataOut=dataGroup.dataOut3;break;case 3:dataOut=dataGroup.dataOut4;break;case 4:dataOut=dataGroup.dataOut5;break;case 5:dataOut=dataGroup.dataOut6;break;case 6:dataOut=dataGroup.dataOut7;break;case 7:dataOut=dataGroup.dataOut8;break;default:return;break}for(i=0;i<17;i++){indexStart.push(i*8)}var nameTemp=[];var nameShow=[];for(i=0;i<8;i++){nameTemp.push(dataBeReceive.DataBuff[i]);nameShow.push(dataBeReceive.DataBuff[i].toString(16))}dataOut.name=bytesToStringNot32(nameTemp);index=indexStart[1];dataOut.mute=dataBeReceive.DataBuff[index++];dataOut.polar=dataBeReceive.DataBuff[index++];dataOut.delay=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.gain=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.outLinkSel=dataBeReceive.DataBuff[index++];if(userID===0){linkOutSelect[channelID]=dataOut.outLinkSel}dataOut.secondDelay=dataBeReceive.DataBuff[index];index=indexStart[2];dataOut.allvolume=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index]*256;index=indexStart[3];dataOut.sourceA=dataBeReceive.DataBuff[index++];dataOut.sourceB=dataBeReceive.DataBuff[index++];dataOut.sourceC=dataBeReceive.DataBuff[index++];dataOut.sourceD=dataBeReceive.DataBuff[index++];dataOut.sourceE=dataBeReceive.DataBuff[index++];dataOut.sourceF=dataBeReceive.DataBuff[index++];dataOut.sourceG=dataBeReceive.DataBuff[index++];dataOut.sourceH=dataBeReceive.DataBuff[index];index=indexStart[4];dataOut.OutEQ.EQ1.freq=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ1.level=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ1.bw=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ1.HL_db_AP_Flag=dataBeReceive.DataBuff[index++];dataOut.OutEQ.EQ1.type=dataBeReceive.DataBuff[index];index=indexStart[5];dataOut.OutEQ.EQ2.freq=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ2.level=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ2.bw=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ2.HL_db_AP_Flag=dataBeReceive.DataBuff[index++];dataOut.OutEQ.EQ2.type=dataBeReceive.DataBuff[index];index=indexStart[6];dataOut.OutEQ.EQ3.freq=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ3.level=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ3.bw=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ3.HL_db_AP_Flag=dataBeReceive.DataBuff[index++];dataOut.OutEQ.EQ3.type=dataBeReceive.DataBuff[index];index=indexStart[7];dataOut.OutEQ.EQ4.freq=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ4.level=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ4.bw=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ4.HL_db_AP_Flag=dataBeReceive.DataBuff[index++];dataOut.OutEQ.EQ4.type=dataBeReceive.DataBuff[index];index=indexStart[8];dataOut.OutEQ.EQ5.freq=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ5.level=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ5.bw=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ5.HL_db_AP_Flag=dataBeReceive.DataBuff[index++];dataOut.OutEQ.EQ5.type=dataBeReceive.DataBuff[index];index=indexStart[9];dataOut.OutEQ.EQ6.freq=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ6.level=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ6.bw=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ6.HL_db_AP_Flag=dataBeReceive.DataBuff[index++];dataOut.OutEQ.EQ6.type=dataBeReceive.DataBuff[index];index=indexStart[10];dataOut.OutEQ.EQ7.freq=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ7.level=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ7.bw=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ7.HL_db_AP_Flag=dataBeReceive.DataBuff[index++];dataOut.OutEQ.EQ7.type=dataBeReceive.DataBuff[index];index=indexStart[11];dataOut.OutEQ.EQ8.freq=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ8.level=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ8.bw=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ8.HL_db_AP_Flag=dataBeReceive.DataBuff[index++];dataOut.OutEQ.EQ8.type=dataBeReceive.DataBuff[index];index=indexStart[12];dataOut.OutEQ.EQ9.freq=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ9.level=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ9.bw=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.OutEQ.EQ9.HL_db_AP_Flag=dataBeReceive.DataBuff[index++];dataOut.OutEQ.EQ9.type=dataBeReceive.DataBuff[index];index=indexStart[13];dataOut.HPFData.HL_freq=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.HPFData.HL_Type=dataBeReceive.DataBuff[index++];dataOut.HPFData.HL_Oct=dataBeReceive.DataBuff[index++];dataOut.HPFData.LR_Level=dataBeReceive.DataBuff[index];index=indexStart[14];dataOut.LPFData.HL_freq=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.LPFData.HL_Type=dataBeReceive.DataBuff[index++];dataOut.LPFData.HL_Oct=dataBeReceive.DataBuff[index++];dataOut.LPFData.LR_Level=dataBeReceive.DataBuff[index];index=indexStart[15];dataOut.compLevel=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.compR=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.compAttack=dataBeReceive.DataBuff[index++];dataOut.compRatio=dataBeReceive.DataBuff[index++];index=indexStart[16];dataOut.limT=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.limRelease=dataBeReceive.DataBuff[index++]+dataBeReceive.DataBuff[index++]*256;dataOut.limAttack=dataBeReceive.DataBuff[index++];if(userID===30&&channelID===7){curtainOption(1);dealwithAllProgramString()}return true}function disposeAllInRouteData(){disposeInRouteData(dataBeReceive.Userid,dataBeReceive.ChannelID)}function disposeAllOutRouteData(){disposeOutRouteData(dataBeReceive.Userid,dataBeReceive.ChannelID)}function disposeSystemData(){var i;switch(dataBeReceive.ChannelID){case messageType.PC_RW_PGNAME:if(dataBeReceive.Userid>0){for(i=0;imessageType.Soft_Information_Lenght){length=messageType.Soft_Information_Lenght}for(i=0;i0){lockData=currentAllGroupData[useId-1].m_nLockData}else{lockData=currentLockData}index=0;lockData.nIn_LockData.nIn_Name=dataBeReceive.DataBuff[index++];lockData.nIn_LockData.nIn_Mute=dataBeReceive.DataBuff[index++];lockData.nIn_LockData.nIn_Delay=dataBeReceive.DataBuff[index++];lockData.nIn_LockData.nIn_Pol=dataBeReceive.DataBuff[index++];lockData.nIn_LockData.nIn_Gain=dataBeReceive.DataBuff[index++];lockData.nIn_LockData.nIn_NoiseGate=dataBeReceive.DataBuff[index++];lockData.nIn_LockData.nIn_Comp_AG=dataBeReceive.DataBuff[index++];lockData.nIn_LockData.nIn_DEQ=dataBeReceive.DataBuff[index++];lockData.nIn_LockData.nIn_EQ=dataBeReceive.DataBuff[index++];lockData.nIn_LockData.nIn_Link=dataBeReceive.DataBuff[index++];for(i=0;i<16;i++){lockData.nIn_LockData.In_Empty[i]=dataBeReceive.DataBuff[i+index]}index=26;for(i=0;i<6;i++){lockData.nIn_LockData.In_Lock_PW[i]=dataBeReceive.DataBuff[index+i]}index=32;lockData.nOut_LockData.nOut_Name=dataBeReceive.DataBuff[index++];lockData.nOut_LockData.nOut_Mute=dataBeReceive.DataBuff[index++];lockData.nOut_LockData.nOut_Delay=dataBeReceive.DataBuff[index++];lockData.nOut_LockData.nOut_Pol=dataBeReceive.DataBuff[index++];lockData.nOut_LockData.nOut_Gain=dataBeReceive.DataBuff[index++];lockData.nOut_LockData.nIn_Matrix=dataBeReceive.DataBuff[index++];lockData.nOut_LockData.nOut_Comp_LimT=dataBeReceive.DataBuff[index++];lockData.nOut_LockData.nOut_EQ=dataBeReceive.DataBuff[index++];lockData.nOut_LockData.nOut_Xover=dataBeReceive.DataBuff[index++];lockData.nOut_LockData.nOut_Link=dataBeReceive.DataBuff[index++];for(i=0;i<16;i++){lockData.nOut_LockData.Out_Empty[i]=dataBeReceive.DataBuff[i+index]}index=58;for(i=0;i<6;i++){lockData.nOut_LockData.Out_Lock_PW[i]=dataBeReceive.DataBuff[index+i]}}function disposeLockData(){var i;var index;index=0;currentLockData.nIn_LockData.nIn_Name=dataBeReceive.DataBuff[index++];currentLockData.nIn_LockData.nIn_Mute=dataBeReceive.DataBuff[index++];currentLockData.nIn_LockData.nIn_Delay=dataBeReceive.DataBuff[index++];currentLockData.nIn_LockData.nIn_Pol=dataBeReceive.DataBuff[index++];currentLockData.nIn_LockData.nIn_Gain=dataBeReceive.DataBuff[index++];currentLockData.nIn_LockData.nIn_NoiseGate=dataBeReceive.DataBuff[index++];currentLockData.nIn_LockData.nIn_Comp_AG=dataBeReceive.DataBuff[index++];currentLockData.nIn_LockData.nIn_DEQ=dataBeReceive.DataBuff[index++];currentLockData.nIn_LockData.nIn_EQ=dataBeReceive.DataBuff[index++];currentLockData.nIn_LockData.nIn_Link=dataBeReceive.DataBuff[index++];for(i=0;i<16;i++){currentLockData.nIn_LockData.In_Empty[i]=dataBeReceive.DataBuff[i+index]}index=26;for(i=0;i<6;i++){currentLockData.nIn_LockData.In_Lock_PW[i]=dataBeReceive.DataBuff[index+i]}index=32;currentLockData.nOut_LockData.nOut_Name=dataBeReceive.DataBuff[index++];currentLockData.nOut_LockData.nOut_Mute=dataBeReceive.DataBuff[index++];currentLockData.nOut_LockData.nOut_Delay=dataBeReceive.DataBuff[index++];currentLockData.nOut_LockData.nOut_Pol=dataBeReceive.DataBuff[index++];currentLockData.nOut_LockData.nOut_Gain=dataBeReceive.DataBuff[index++];currentLockData.nOut_LockData.nIn_Matrix=dataBeReceive.DataBuff[index++];currentLockData.nOut_LockData.nOut_Comp_LimT=dataBeReceive.DataBuff[index++];currentLockData.nOut_LockData.nOut_EQ=dataBeReceive.DataBuff[index++];currentLockData.nOut_LockData.nOut_Xover=dataBeReceive.DataBuff[index++];currentLockData.nOut_LockData.nOut_Link=dataBeReceive.DataBuff[index++];for(i=0;i<16;i++){currentLockData.nOut_LockData.Out_Empty[i]=dataBeReceive.DataBuff[i+index]}index=58;for(i=0;i<6;i++){currentLockData.nOut_LockData.Out_Lock_PW[i]=dataBeReceive.DataBuff[index+i]}if(dataBeReceive.DataBuff.length<64){return}if(firstRequest){index=64;currentLockData.nSys_LockData.nSYS_Load_Data=dataBeReceive.DataBuff[index++];currentLockData.nSys_LockData.nSYS_Save_Data=dataBeReceive.DataBuff[index++];currentLockData.nSys_LockData.nSYS_PC_Del=dataBeReceive.DataBuff[index++];currentLockData.nSys_LockData.nSYS_Copy_Data=dataBeReceive.DataBuff[index++];currentLockData.nSys_LockData.nSYS_Device_ID=dataBeReceive.DataBuff[index++];currentLockData.nSys_LockData.nSYS_Logo=dataBeReceive.DataBuff[index++];currentLockData.nSys_LockData.nSYS_Back_Linght=dataBeReceive.DataBuff[index++];currentLockData.nSys_LockData.nSYS_nPanel=dataBeReceive.DataBuff[index++];currentLockData.nSys_LockData.nSYS_PowerOn=dataBeReceive.DataBuff[index++];for(i=0;i<17;i++){currentLockData.nSys_LockData.Sys_Empty[i]=dataBeReceive.DataBuff[i+index]}index=90;for(i=0;i<6;i++){currentLockData.nSys_LockData.System_Lock_PW[i]=dataBeReceive.DataBuff[index+i]}}}function disposeAllLockData(){disposeProgramLockData(dataBeReceive.Userid)}var firstRequest=false;function connectDevice(){firstRequest=true;dataForSendArray.length=0;connectSteps=0;connectCurStep=0;requestSystemData();requestCurrentGroupData(0);initAjax()}function requestSystemData(){var i;readWriteSystemData(messageType.PC_Read_Data,messageType.Connect_Test_ID,0);dataForSendArray.push(formulateDataForSend(dataForSend));readWriteSystemData(messageType.PC_Read_Data,messageType.Software_Version,0);dataForSendArray.push(formulateDataForSend(dataForSend));readWriteSystemData(messageType.PC_Read_Data,messageType.Device_Type,0);dataForSendArray.push(formulateDataForSend(dataForSend));readWriteSystemData(messageType.PC_Read_Data,messageType.Device_StartUp_Set,0);dataForSendArray.push(formulateDataForSend(dataForSend));connectSteps++;for(i=0;i<=messageType.Max_FGroup;i++){readWriteSystemData(messageType.PC_Read_Data,messageType.PC_RW_PGNAME,i);dataForSendArray.push(formulateDataForSend(dataForSend))}readWriteSystemData(messageType.PC_Read_Data,messageType.PC_Information_ID,0);dataForSendArray.push(formulateDataForSend(dataForSend));readWriteSystemData(messageType.PC_Read_Data,messageType.PC_Back_Light_ID,0);dataForSendArray.push(formulateDataForSend(dataForSend))}function requestCurrentGroupData(useId){var i;readWriteLockData(messageType.PC_Read_Lock_Data,useId);dataForSendArray.push(formulateDataForSend(dataForSend));for(i=0;i<4;i++){readWriteData(messageType.PC_Read_Data,messageType.RW_InRoute_Frame,useId,i,messageType.Frame_RD_DEFDATA);dataForSendArray.push(formulateDataForSend(dataForSend))}for(i=0;i<8;i++){readWriteData(messageType.PC_Read_Data,messageType.RW_OutRoute_Frame,useId,i,messageType.Frame_RD_DEFDATA);dataForSendArray.push(formulateDataForSend(dataForSend))}connectSteps=dataForSendArray.length;isReadBigData=true;curtainOption(0);disableMainCurtain()}function requestOneGroupData(useId){var i;currentSystemData.m_nSave_Cur_PG_ID=useId;currentSystemData.m_nMCU_PG_Type=0;renewSystemCurtain();readWriteSystemData(messageType.PC_Write_Data,messageType.Device_StartUp_Set,0);dataForSendArray.push(formulateDataForSend(dataForSend));readWriteLockData(messageType.PC_Read_Lock_Data,useId);dataForSendArray.push(formulateDataForSend(dataForSend));writeVolumeControl(1);dataForSendArray.push(formulateDataForSend(dataForSend));for(i=0;i<4;i++){readWriteData(messageType.PC_Read_Data,messageType.RW_InRoute_Frame,useId,i,messageType.Frame_RD_DEFDATA);dataForSendArray.push(formulateDataForSend(dataForSend))}for(i=0;i<8;i++){readWriteData(messageType.PC_Read_Data,messageType.RW_OutRoute_Frame,useId,i,messageType.Frame_RD_DEFDATA);dataForSendArray.push(formulateDataForSend(dataForSend))}writeVolumeControl(2);dataForSendArray.push(formulateDataForSend(dataForSend));connectSteps=dataForSendArray.length;isReadBigData=true;curtainOption(0);disableMainCurtain()}function deliverOneGroupData(useId){var i;readWriteLockData(messageType.PC_Write_Lock_Data,useId);dataForSendArray.push(formulateDataForSend(dataForSend));if(useId===0){writeVolumeControl(1);dataForSendArray.push(formulateDataForSend(dataForSend))}for(i=1;i<5;i++){readWriteData(messageType.PC_Write_Data,messageType.RW_InRoute_Frame,useId,i,messageType.Frame_RD_DEFDATA);dataForSendArray.push(formulateDataForSend(dataForSend))}for(i=5;i<13;i++){readWriteData(messageType.PC_Write_Data,messageType.RW_OutRoute_Frame,useId,i,messageType.Frame_RD_DEFDATA);dataForSendArray.push(formulateDataForSend(dataForSend))}if(useId===0){writeVolumeControl(2);dataForSendArray.push(formulateDataForSend(dataForSend))}connectSteps=dataForSendArray.length;isReadBigData=true;curtainOption(0);disableMainCurtain()}function requestAllGroupData(){var i,j;for(i=1;i<=messageType.Max_FGroup;i++){readWriteLockData(messageType.PC_Read_Lock_ALL_Data,i);dataForSendArray.push(formulateDataForSend(dataForSend));for(j=0;j<4;j++){readWriteData(messageType.PC_Read_Data,messageType.RW_AllInRoute_Frame,i,j,messageType.Frame_RD_DEFDATA,0);dataForSendArray.push(formulateDataForSend(dataForSend))}for(j=0;j<8;j++){readWriteData(messageType.PC_Read_Data,messageType.RW_AllOutRoute_Frame,i,j,messageType.Frame_RD_DEFDATA,0);dataForSendArray.push(formulateDataForSend(dataForSend))}}connectSteps=dataForSendArray.length;isReadBigData=true;curtainOption(0);disableMainCurtain()}function deliverAllGroupData(){var i,j;readWriteSystemData(messageType.PC_Write_Data,messageType.Device_StartUp_Set,0);dataForSendArray.push(formulateDataForSend(dataForSend));for(i=1;i<=messageType.Max_FGroup;i++){readWriteSystemData(messageType.PC_Write_Data,messageType.PC_RW_PGNAME,i);dataForSendArray.push(formulateDataForSend(dataForSend));readWriteLockData(messageType.PC_Write_Lock_ALL_Data,i);dataForSendArray.push(formulateDataForSend(dataForSend));for(j=1;j<5;j++){readWriteData(messageType.PC_Write_Data,messageType.RW_AllInRoute_Frame,i,j,messageType.Frame_RD_DEFDATA);dataForSendArray.push(formulateDataForSend(dataForSend))}for(j=5;j<13;j++){readWriteData(messageType.PC_Write_Data,messageType.RW_AllOutRoute_Frame,i,j,messageType.Frame_RD_DEFDATA);dataForSendArray.push(formulateDataForSend(dataForSend))}}connectSteps=dataForSendArray.length;isReadBigData=true;curtainOption(0);refreshMainDisplay();disableMainCurtain()}function writeVolumeControl(data){resetDataForSend();dataForSend.FrameHead=[90,90,90];dataForSend.FrameTrait=173;dataForSend.FrameEnd=170;dataForSend.FrameType=messageType.PC_Write_Data;dataForSend.Userid=0;dataForSend.DataType=messageType.SysType_Frame;dataForSend.ChannelID=messageType.Volume_Control;dataForSend.Dataid=messageType.Frame_RD_DEFDATA;dataForSend.DataLen=1;dataForSend.DataBuff.length=0;dataForSend.DataBuff.push(data);checkSendData()}function readWriteSystemData(FrameType,channelId,useId){var i;var dataBuff=[];resetDataForSend();dataForSend.FrameHead=[90,90,90];dataForSend.FrameTrait=173;dataForSend.FrameEnd=170;dataForSend.FrameType=FrameType;dataForSend.Userid=useId;dataForSend.DataType=messageType.SysType_Frame;dataForSend.ChannelID=channelId;dataForSend.Dataid=messageType.Frame_RD_DEFDATA;switch(FrameType){case messageType.PC_Write_Data:switch(channelId){case messageType.PC_RW_PGNAME:dataForSend.DataLen=messageType.PG_Name_LEN;if(useId>0){for(i=0;i0){groupData=currentAllGroupData[useId-1]}else{groupData=currentGroupData}switch(channelId){case 1:channelData=groupData.dataInputA;break;case 2:channelData=groupData.dataInputB;break;case 3:channelData=groupData.dataInputC;break;case 4:channelData=groupData.dataInputD;break;case 5:channelData=groupData.dataOut1;break;case 6:channelData=groupData.dataOut2;break;case 7:channelData=groupData.dataOut3;break;case 8:channelData=groupData.dataOut4;break;case 9:channelData=groupData.dataOut5;break;case 10:channelData=groupData.dataOut6;break;case 11:channelData=groupData.dataOut7;break;case 12:channelData=groupData.dataOut8;break;default:break}switch(FrameType){case messageType.PC_Write_Data:switch(dataType){case messageType.InType_Frame:dataBuff=getInputSendData(channelData,dataId);dataForSend.DataLen=messageType.Data_Lenght;break;case messageType.OutType_Frame:dataBuff=getOutSendData(channelData,dataId);dataForSend.DataLen=messageType.Data_Lenght;break;case messageType.RW_InRoute_Frame:dataBuff=getInputRouteSendData(channelData);dataForSend.DataLen=dataBuff.length;dataForSend.ChannelID=channelId-1;break;case messageType.RW_OutRoute_Frame:dataBuff=getOutRouteSendData(channelData);dataForSend.DataLen=dataBuff.length;dataForSend.ChannelID=channelId-5;break;case messageType.RW_AllInRoute_Frame:dataBuff=getInputRouteSendData(channelData);dataForSend.DataLen=dataBuff.length;dataForSend.ChannelID=channelId-1;break;case messageType.RW_AllOutRoute_Frame:dataBuff=getOutRouteSendData(channelData);dataForSend.DataLen=dataBuff.length;dataForSend.ChannelID=channelId-5;break}break;case messageType.PC_Read_Data:dataForSend.DataLen=messageType.Data_Lenght;dataBuff=[0,0,0,0,0,0,0,0];break}dataForSend.DataBuff.length=0;for(i=0;i0){lockData=currentAllGroupData[userId-1].m_nLockData}else{lockData=currentLockData}dataForSend.FrameHead=[90,90,90];dataForSend.FrameTrait=173;dataForSend.FrameEnd=170;dataForSend.ChannelID=0;dataForSend.Userid=userId;dataForSend.DataType=dataType;dataForSend.Dataid=messageType.Frame_RD_DEFDATA;switch(dataType){case messageType.PC_Read_Lock_Data:dataForSend.DataLen=messageType.Data_Lenght;dataForSend.FrameType=messageType.PC_Read_Data;for(i=0;i0){dataBuff=getLockDataArray(lockData)}else{dataBuff=getAllLockData(lockData)}dataForSend.DataLen=dataBuff.length;break;case messageType.PC_Write_Lock_SysData:dataForSend.FrameType=messageType.PC_Write_Data;dataBuff=getSystemLockDataArray(lockData.nSys_LockData);dataForSend.DataLen=dataBuff.length;break;case messageType.PC_Write_Lock_InData:dataForSend.FrameType=messageType.PC_Write_Data;dataBuff=getInLockDataArray(lockData.nIn_LockData);dataForSend.DataLen=dataBuff.length;break;case messageType.PC_Write_Lock_OutData:dataForSend.FrameType=messageType.PC_Write_Data;dataBuff=getOutLockDataArray(lockData.nOut_LockData);dataForSend.DataLen=dataBuff.length;break;case messageType.PC_Read_Lock_ALL_Data:dataForSend.FrameType=messageType.PC_Read_Data;dataBuff.push(0,0,0,0,0,0,0,0);dataForSend.DataLen=dataBuff.length;break;case messageType.PC_Write_Lock_ALL_Data:dataForSend.FrameType=messageType.PC_Write_Data;dataBuff=getLockDataArray(lockData);dataForSend.DataLen=dataBuff.length;break;default:break}dataForSend.DataBuff.length=0;for(i=0;i8){dataForSend.DataBuff.length=8}for(var i=0;i8)len=8;for(i=0;i8)len=8;for(i=0;i8)len=8;for(i=0;i8)len=8;for(i=0;i6){curEqChannel=1}showOrHideEqData();inputEqUnlock();renewAllLinePoints();DrawLine()}agcExtMap.Draw_AGC_Comp();setCurPhaseCurveStatus();clearLedDisplay();clearOldEQ();clearOldDeq();renewCursorHoverStyle();resetCurveButtonStatus()}function assignAllButtonStatus(){assignButtonSelectStatus();assignButtonSourceStatus();assignButtonSpeakerStatus();assignButtonEqStatus();assignButtonCurveStatus();assignPhaseCurveStatus()}function assignButtonSelectStatus(){controlsData.buttonStates.buttonSelectStatus[0]=false;oldButtonNo=curButtonNo=1;var buttonElement=document.getElementById("button_input_a");buttonElement.setAttribute("class","button_four_states_false")}function setButtonSourceStatus(id,status){var buttonElement=document.getElementById(id);if(status){buttonElement.setAttribute("class","button_six_states_true")}else{buttonElement.setAttribute("class","button_six_states_false")}}function assignButtonSourceStatus(){controlsData.buttonStates.buttonSourceStatus[0][0]=currentGroupData.dataOut1.sourceA;controlsData.buttonStates.buttonSourceStatus[0][1]=currentGroupData.dataOut1.sourceB;controlsData.buttonStates.buttonSourceStatus[0][2]=currentGroupData.dataOut1.sourceC;controlsData.buttonStates.buttonSourceStatus[0][3]=currentGroupData.dataOut1.sourceD;controlsData.buttonStates.buttonSourceStatus[1][0]=currentGroupData.dataOut2.sourceA;controlsData.buttonStates.buttonSourceStatus[1][1]=currentGroupData.dataOut2.sourceB;controlsData.buttonStates.buttonSourceStatus[1][2]=currentGroupData.dataOut2.sourceC;controlsData.buttonStates.buttonSourceStatus[1][3]=currentGroupData.dataOut2.sourceD;controlsData.buttonStates.buttonSourceStatus[2][0]=currentGroupData.dataOut3.sourceA;controlsData.buttonStates.buttonSourceStatus[2][1]=currentGroupData.dataOut3.sourceB;controlsData.buttonStates.buttonSourceStatus[2][2]=currentGroupData.dataOut3.sourceC;controlsData.buttonStates.buttonSourceStatus[2][3]=currentGroupData.dataOut3.sourceD;controlsData.buttonStates.buttonSourceStatus[3][0]=currentGroupData.dataOut4.sourceA;controlsData.buttonStates.buttonSourceStatus[3][1]=currentGroupData.dataOut4.sourceB;controlsData.buttonStates.buttonSourceStatus[3][2]=currentGroupData.dataOut4.sourceC;controlsData.buttonStates.buttonSourceStatus[3][3]=currentGroupData.dataOut4.sourceD;controlsData.buttonStates.buttonSourceStatus[4][0]=currentGroupData.dataOut5.sourceA;controlsData.buttonStates.buttonSourceStatus[4][1]=currentGroupData.dataOut5.sourceB;controlsData.buttonStates.buttonSourceStatus[4][2]=currentGroupData.dataOut5.sourceC;controlsData.buttonStates.buttonSourceStatus[4][3]=currentGroupData.dataOut5.sourceD;controlsData.buttonStates.buttonSourceStatus[5][0]=currentGroupData.dataOut6.sourceA;controlsData.buttonStates.buttonSourceStatus[5][1]=currentGroupData.dataOut6.sourceB;controlsData.buttonStates.buttonSourceStatus[5][2]=currentGroupData.dataOut6.sourceC;controlsData.buttonStates.buttonSourceStatus[5][3]=currentGroupData.dataOut6.sourceD;controlsData.buttonStates.buttonSourceStatus[6][0]=currentGroupData.dataOut7.sourceA;controlsData.buttonStates.buttonSourceStatus[6][1]=currentGroupData.dataOut7.sourceB;controlsData.buttonStates.buttonSourceStatus[6][2]=currentGroupData.dataOut7.sourceC;controlsData.buttonStates.buttonSourceStatus[6][3]=currentGroupData.dataOut7.sourceD;controlsData.buttonStates.buttonSourceStatus[7][0]=currentGroupData.dataOut8.sourceA;controlsData.buttonStates.buttonSourceStatus[7][1]=currentGroupData.dataOut8.sourceB;controlsData.buttonStates.buttonSourceStatus[7][2]=currentGroupData.dataOut8.sourceC;controlsData.buttonStates.buttonSourceStatus[7][3]=currentGroupData.dataOut8.sourceD;setButtonSourceStatus("button_out1_a",controlsData.buttonStates.buttonSourceStatus[0][0]);setButtonSourceStatus("button_out1_b",controlsData.buttonStates.buttonSourceStatus[0][1]);setButtonSourceStatus("button_out1_c",controlsData.buttonStates.buttonSourceStatus[0][2]);setButtonSourceStatus("button_out1_d",controlsData.buttonStates.buttonSourceStatus[0][3]);setButtonSourceStatus("button_out2_a",controlsData.buttonStates.buttonSourceStatus[1][0]);setButtonSourceStatus("button_out2_b",controlsData.buttonStates.buttonSourceStatus[1][1]);setButtonSourceStatus("button_out2_c",controlsData.buttonStates.buttonSourceStatus[1][2]);setButtonSourceStatus("button_out2_d",controlsData.buttonStates.buttonSourceStatus[1][3]);setButtonSourceStatus("button_out3_a",controlsData.buttonStates.buttonSourceStatus[2][0]);setButtonSourceStatus("button_out3_b",controlsData.buttonStates.buttonSourceStatus[2][1]);setButtonSourceStatus("button_out3_c",controlsData.buttonStates.buttonSourceStatus[2][2]);setButtonSourceStatus("button_out3_d",controlsData.buttonStates.buttonSourceStatus[2][3]);setButtonSourceStatus("button_out4_a",controlsData.buttonStates.buttonSourceStatus[3][0]);setButtonSourceStatus("button_out4_b",controlsData.buttonStates.buttonSourceStatus[3][1]);setButtonSourceStatus("button_out4_c",controlsData.buttonStates.buttonSourceStatus[3][2]);setButtonSourceStatus("button_out4_d",controlsData.buttonStates.buttonSourceStatus[3][3]);setButtonSourceStatus("button_out5_a",controlsData.buttonStates.buttonSourceStatus[4][0]);setButtonSourceStatus("button_out5_b",controlsData.buttonStates.buttonSourceStatus[4][1]);setButtonSourceStatus("button_out5_c",controlsData.buttonStates.buttonSourceStatus[4][2]);setButtonSourceStatus("button_out5_d",controlsData.buttonStates.buttonSourceStatus[4][3]);setButtonSourceStatus("button_out6_a",controlsData.buttonStates.buttonSourceStatus[5][0]);setButtonSourceStatus("button_out6_b",controlsData.buttonStates.buttonSourceStatus[5][1]);setButtonSourceStatus("button_out6_c",controlsData.buttonStates.buttonSourceStatus[5][2]);setButtonSourceStatus("button_out6_d",controlsData.buttonStates.buttonSourceStatus[5][3]);setButtonSourceStatus("button_out7_a",controlsData.buttonStates.buttonSourceStatus[6][0]);setButtonSourceStatus("button_out7_b",controlsData.buttonStates.buttonSourceStatus[6][1]);setButtonSourceStatus("button_out7_c",controlsData.buttonStates.buttonSourceStatus[6][2]);setButtonSourceStatus("button_out7_d",controlsData.buttonStates.buttonSourceStatus[6][3]);setButtonSourceStatus("button_out8_a",controlsData.buttonStates.buttonSourceStatus[7][0]);setButtonSourceStatus("button_out8_b",controlsData.buttonStates.buttonSourceStatus[7][1]);setButtonSourceStatus("button_out8_c",controlsData.buttonStates.buttonSourceStatus[7][2]);setButtonSourceStatus("button_out8_d",controlsData.buttonStates.buttonSourceStatus[7][3])}function setButtonSpeakerStatus(id,spanId1,spanId2,status){var buttonElement=document.getElementById(id);var speakerSpan1=document.getElementById(spanId1);var speakerSpan2=document.getElementById(spanId2);if(status){buttonElement.setAttribute("class","button_speaker_true");speakerSpan1.setAttribute("class","speakingSpan1");speakerSpan2.setAttribute("class","speakingSpan2")}else{buttonElement.setAttribute("class","button_speaker_false");speakerSpan1.setAttribute("class","muteSpan1");speakerSpan2.setAttribute("class","muteSpan2")}}function assignButtonSpeakerStatus(){setButtonSpeakerStatus("button_speaker_a","speakerIn1Span1","speakerIn1Span2",controlsData.buttonStates.buttonSpeakerStatus[0]);setButtonSpeakerStatus("button_speaker_b","speakerIn2Span1","speakerIn2Span2",controlsData.buttonStates.buttonSpeakerStatus[1]);setButtonSpeakerStatus("button_speaker_c","speakerIn3Span1","speakerIn3Span2",controlsData.buttonStates.buttonSpeakerStatus[2]);setButtonSpeakerStatus("button_speaker_d","speakerIn4Span1","speakerIn4Span2",controlsData.buttonStates.buttonSpeakerStatus[3]);setButtonSpeakerStatus("button_speaker_out1","speakerOut1Span1","speakerOut1Span2",controlsData.buttonStates.buttonSpeakerStatus[4]);setButtonSpeakerStatus("button_speaker_out2","speakerOut2Span1","speakerOut2Span2",controlsData.buttonStates.buttonSpeakerStatus[5]);setButtonSpeakerStatus("button_speaker_out3","speakerOut3Span1","speakerOut3Span2",controlsData.buttonStates.buttonSpeakerStatus[6]);setButtonSpeakerStatus("button_speaker_out4","speakerOut4Span1","speakerOut4Span2",controlsData.buttonStates.buttonSpeakerStatus[7]);setButtonSpeakerStatus("button_speaker_out5","speakerOut5Span1","speakerOut5Span2",controlsData.buttonStates.buttonSpeakerStatus[8]);setButtonSpeakerStatus("button_speaker_out6","speakerOut6Span1","speakerOut6Span2",controlsData.buttonStates.buttonSpeakerStatus[9]);setButtonSpeakerStatus("button_speaker_out7","speakerOut7Span1","speakerOut7Span2",controlsData.buttonStates.buttonSpeakerStatus[10]);setButtonSpeakerStatus("button_speaker_out8","speakerOut8Span1","speakerOut8Span2",controlsData.buttonStates.buttonSpeakerStatus[11])}function setButtonEqStatus(id,status){var buttonElement=document.getElementById(id);if(status){buttonElement.setAttribute("class","button_eq_true")}else{buttonElement.setAttribute("class","button_eq_false")}}function setButtonDeqStatus(id,status){var buttonElement=document.getElementById(id);if(status){buttonElement.setAttribute("class","button_deq_true")}else{buttonElement.setAttribute("class","button_deq_false")}}function assignButtonEqStatus(){setButtonEqStatus("button_eq",controlsData.buttonStates.buttonEqStatus[0]);setButtonEqStatus("button_eq1",controlsData.buttonStates.buttonEqStatus[1]);setButtonEqStatus("button_eq2",controlsData.buttonStates.buttonEqStatus[2]);setButtonEqStatus("button_eq3",controlsData.buttonStates.buttonEqStatus[3]);setButtonEqStatus("button_eq4",controlsData.buttonStates.buttonEqStatus[4]);setButtonEqStatus("button_eq5",controlsData.buttonStates.buttonEqStatus[5]);setButtonEqStatus("button_eq6",controlsData.buttonStates.buttonEqStatus[6]);setButtonDeqStatus("button_deq1",controlsData.buttonStates.buttonDeqStatus[0]);setButtonDeqStatus("button_deq2",controlsData.buttonStates.buttonDeqStatus[1])}function setButtonCurveStatus(id,status){var buttonElement=document.getElementById(id);if(status){buttonElement.setAttribute("class","button_curve_true")}else{buttonElement.setAttribute("class","button_curve_false")}var buttonElement,trueString,falseString;switch(id){case"button_curve_a":buttonElement=document.getElementById("button_curve_a");trueString="button_curve_a_true";falseString="button_curve_a_false";break;case"button_curve_b":buttonElement=document.getElementById("button_curve_b");trueString="button_curve_b_true";falseString="button_curve_b_false";break;case"button_curve_c":buttonElement=document.getElementById("button_curve_c");trueString="button_curve_c_true";falseString="button_curve_c_false";break;case"button_curve_d":buttonElement=document.getElementById("button_curve_d");trueString="button_curve_d_true";falseString="button_curve_d_false";break;case"button_curve_out1":buttonElement=document.getElementById("button_curve_out1");trueString="button_curve_out1_true";falseString="button_curve_out1_false";break;case"button_curve_out2":buttonElement=document.getElementById("button_curve_out2");trueString="button_curve_out2_true";falseString="button_curve_out2_false";break;case"button_curve_out3":buttonElement=document.getElementById("button_curve_out3");trueString="button_curve_out3_true";falseString="button_curve_out3_false";break;case"button_curve_out4":buttonElement=document.getElementById("button_curve_out4");trueString="button_curve_out4_true";falseString="button_curve_out4_false";break;case"button_curve_out5":buttonElement=document.getElementById("button_curve_out5");trueString="button_curve_out5_true";falseString="button_curve_out5_false";break;case"button_curve_out6":buttonElement=document.getElementById("button_curve_out6");trueString="button_curve_out6_true";falseString="button_curve_out6_false";break;case"button_curve_out7":buttonElement=document.getElementById("button_curve_out7");trueString="button_curve_out7_true";falseString="button_curve_out7_false";break;case"button_curve_out8":buttonElement=document.getElementById("button_curve_out8");trueString="button_curve_out8_true";falseString="button_curve_out8_false";break}if(status){buttonElement.setAttribute("class",trueString)}else{buttonElement.setAttribute("class",falseString)}}function assignButtonCurveStatus(){setButtonCurveStatus("button_curve_a",m_nLinkIn_EQLine[0]?m_nLinkIn_EQLine[0]:controlsData.buttonStates.buttonCurveStatus[0]);setButtonCurveStatus("button_curve_b",m_nLinkIn_EQLine[1]?m_nLinkIn_EQLine[1]:controlsData.buttonStates.buttonCurveStatus[1]);setButtonCurveStatus("button_curve_c",m_nLinkIn_EQLine[2]?m_nLinkIn_EQLine[2]:controlsData.buttonStates.buttonCurveStatus[2]);setButtonCurveStatus("button_curve_d",m_nLinkIn_EQLine[3]?m_nLinkIn_EQLine[3]:controlsData.buttonStates.buttonCurveStatus[3]);setButtonCurveStatus("button_curve_out1",m_nLinkOut_EQLine[0]?m_nLinkOut_EQLine[0]:controlsData.buttonStates.buttonCurveStatus[4]);setButtonCurveStatus("button_curve_out2",m_nLinkOut_EQLine[1]?m_nLinkOut_EQLine[1]:controlsData.buttonStates.buttonCurveStatus[5]);setButtonCurveStatus("button_curve_out3",m_nLinkOut_EQLine[2]?m_nLinkOut_EQLine[2]:controlsData.buttonStates.buttonCurveStatus[6]);setButtonCurveStatus("button_curve_out4",m_nLinkOut_EQLine[3]?m_nLinkOut_EQLine[3]:controlsData.buttonStates.buttonCurveStatus[7]);setButtonCurveStatus("button_curve_out5",m_nLinkOut_EQLine[4]?m_nLinkOut_EQLine[4]:controlsData.buttonStates.buttonCurveStatus[8]);setButtonCurveStatus("button_curve_out6",m_nLinkOut_EQLine[5]?m_nLinkOut_EQLine[5]:controlsData.buttonStates.buttonCurveStatus[9]);setButtonCurveStatus("button_curve_out7",m_nLinkOut_EQLine[6]?m_nLinkOut_EQLine[6]:controlsData.buttonStates.buttonCurveStatus[10]);setButtonCurveStatus("button_curve_out8",m_nLinkOut_EQLine[7]?m_nLinkOut_EQLine[7]:controlsData.buttonStates.buttonCurveStatus[11])}function assignPhaseCurveStatus(){var buttonControl=document.getElementById("button_phase_curve");if(controlsData.buttonStates.buttonPhaseCurveStatus[curButtonNo-1]){buttonControl.setAttribute("class","button_phase_curve_true")}else{buttonControl.setAttribute("class","button_phase_curve_false")}}function initializeChannelName(){currentGroupData.dataInputA.name="A";currentGroupData.dataInputB.name="B";currentGroupData.dataInputC.name="C";currentGroupData.dataInputD.name="D";currentGroupData.dataOut1.name="OUT1";currentGroupData.dataOut2.name="OUT2";currentGroupData.dataOut3.name="OUT3";currentGroupData.dataOut4.name="OUT4";currentGroupData.dataOut5.name="OUT5";currentGroupData.dataOut6.name="OUT6";currentGroupData.dataOut7.name="OUT7";currentGroupData.dataOut8.name="OUT8";oldGroupData.dataInputA.name="A";oldGroupData.dataInputB.name="B";oldGroupData.dataInputC.name="C";oldGroupData.dataInputD.name="D";oldGroupData.dataOut1.name="OUT1";oldGroupData.dataOut2.name="OUT2";oldGroupData.dataOut3.name="OUT3";oldGroupData.dataOut4.name="OUT4";oldGroupData.dataOut5.name="OUT5";oldGroupData.dataOut6.name="OUT6";oldGroupData.dataOut7.name="OUT7";oldGroupData.dataOut8.name="OUT8"}function assignAllInputTextData(){inputOrOutputModule(true);assignShowData();assignChannelData(constConfig.CURRENT_CHANNGEL_INPUT_A)}function assignShowData(){setChannelNameValue("text_input_a",currentGroupData.dataInputA.name);setChannelNameValue("text_input_b",currentGroupData.dataInputB.name);setChannelNameValue("text_input_c",currentGroupData.dataInputC.name);setChannelNameValue("text_input_d",currentGroupData.dataInputD.name);setChannelNameValue("text_out_1",currentGroupData.dataOut1.name);setChannelNameValue("text_out_2",currentGroupData.dataOut2.name);setChannelNameValue("text_out_3",currentGroupData.dataOut3.name);setChannelNameValue("text_out_4",currentGroupData.dataOut4.name);setChannelNameValue("text_out_5",currentGroupData.dataOut5.name);setChannelNameValue("text_out_6",currentGroupData.dataOut6.name);setChannelNameValue("text_out_7",currentGroupData.dataOut7.name);setChannelNameValue("text_out_8",currentGroupData.dataOut8.name)}function setChannelNameValue(id,value){var textElement=document.getElementById(id);textElement.value=value}function inEqDataKeepStep(id){var chanelId=id+1;var temp;for(var t=1;t<7;t++){ignoreFollowLine=true;eqDataKeepStep(chanelId,t)}temp=curButtonNo;curButtonNo=chanelId;DrawLine();curButtonNo=temp;svgDrawCurve.setCurrentEqLine(chanelId,curButtonNo)}function outEqDataKeepStep(id){var chanelId=id+5;var temp;for(var t=1;t<9;t++){eqDataKeepStep(chanelId,t);ignoreFollowLine=true}temp=curButtonNo;curButtonNo=chanelId;DrawLine();curButtonNo=temp;svgDrawCurve.setCurrentEqLine(chanelId,curButtonNo)}function copyInputLinkData(targetIndex,originalIndex){var i,name,mute;var inputLinkData=[];inputLinkData[0]=currentGroupData.dataInputA;inputLinkData[1]=currentGroupData.dataInputB;inputLinkData[2]=currentGroupData.dataInputC;inputLinkData[3]=currentGroupData.dataInputD;name=inputLinkData[targetIndex].name;mute=inputLinkData[targetIndex].mute;deepCopyValue(inputLinkData[targetIndex],inputLinkData[originalIndex]);inputLinkData[targetIndex].name=name;inputLinkData[targetIndex].mute=mute;if(targetIndex+1===curButtonNo){for(i=1;i<7;i++){eqDataKeepStep(curButtonNo,i)}DrawLine()}}function copyOutLinkData(targetIndex,originalIndex){var i,name,mute;var source=new Array(8);var outLinkData=[];outLinkData[0]=currentGroupData.dataOut1;outLinkData[1]=currentGroupData.dataOut2;outLinkData[2]=currentGroupData.dataOut3;outLinkData[3]=currentGroupData.dataOut4;outLinkData[4]=currentGroupData.dataOut5;outLinkData[5]=currentGroupData.dataOut6;outLinkData[6]=currentGroupData.dataOut7;outLinkData[7]=currentGroupData.dataOut8;name=outLinkData[targetIndex].name;mute=outLinkData[targetIndex].mute;source[0]=outLinkData[targetIndex].sourceA;source[1]=outLinkData[targetIndex].sourceB;source[2]=outLinkData[targetIndex].sourceC;source[3]=outLinkData[targetIndex].sourceD;source[4]=outLinkData[targetIndex].sourceE;source[5]=outLinkData[targetIndex].sourceF;source[6]=outLinkData[targetIndex].sourceG;source[7]=outLinkData[targetIndex].sourceH;deepCopyValue(outLinkData[targetIndex],outLinkData[originalIndex]);outLinkData[targetIndex].name=name;outLinkData[targetIndex].mute=mute;outLinkData[targetIndex].sourceA=source[0];outLinkData[targetIndex].sourceB=source[1];outLinkData[targetIndex].sourceC=source[2];outLinkData[targetIndex].sourceD=source[3];outLinkData[targetIndex].sourceE=source[4];outLinkData[targetIndex].sourceF=source[5];outLinkData[targetIndex].sourceG=source[6];outLinkData[targetIndex].sourceH=source[7];if(targetIndex+5===curButtonNo){for(i=1;i<9;i++){eqDataKeepStep(curButtonNo,i)}}}var linkInputSelect=[0,1,2,3];var linkOutSelect=[0,1,2,3,4,5,6,7];function keepLinkChannelData(no){var i,channel;if(no<9){channel=no-1;for(i=0;i<8;i++){if(i!==channel){if(linkOutSelect[i]===linkOutSelect[channel]){copyOutLinkData(channel,i);outEqDataKeepStep(channel);return}}}}else{channel=no-9;for(i=0;i<4;i++){if(i!==channel){if(linkInputSelect[i]===linkInputSelect[channel]){copyInputLinkData(channel,i);inEqDataKeepStep(channel);return}}}}}function keepLinkOldEqData(no){var channel,i;if(no<9){channel=no-1;for(i=0;i<8;i++){if(i!==channel){if(linkOutSelect[i]===linkOutSelect[channel]){deepCopyValue(oldEQ[channel+4],oldEQ[i+4]);deepCopyValue(allOldEQ[channel+4],allOldEQ[i+4]);deepCopyValue(allOldEqFlag[channel+4],allOldEqFlag[i+4]);return}}}}else{channel=no-9;for(i=0;i<4;i++){if(i!==channel){if(linkInputSelect[i]===linkInputSelect[channel]){deepCopyValue(oldEQ[channel],oldEQ[i]);deepCopyValue(allOldEQ[channel],allOldEQ[i]);deepCopyValue(allOldEqFlag[channel],allOldEqFlag[i]);return}}}}}function updateLinkInputDisplay(channel){if(currentLockData.nIn_LockData.nIn_EQ){curEqChannel=-1;showOrHideEqData()}else{if(curEqChannel>6){curEqChannel=1}showOrHideEqData();DrawLine();updateVolumeDisplay(channel)}}function updateLinkOutDisplay(channel){if(currentLockData.nOut_LockData.nOut_EQ){curEqChannel=-1;showOrHideEqData()}else{showOrHideEqData();DrawLine();updateVolumeDisplay(channel)}}function updateVolumeDisplay(channel){var element,id,value,step;switch(channel){case constConfig.CURRENT_CHANNGEL_OUT_1:element=document.getElementById("text_volume_out1");id=controlsId.SLIDER_GAIN_OUT1;step=currentGroupData.dataOut1.gain;break;case constConfig.CURRENT_CHANNGEL_OUT_2:element=document.getElementById("text_volume_out2");id=controlsId.SLIDER_GAIN_OUT2;step=currentGroupData.dataOut2.gain;break;case constConfig.CURRENT_CHANNGEL_OUT_3:element=document.getElementById("text_volume_out3");id=controlsId.SLIDER_GAIN_OUT3;step=currentGroupData.dataOut3.gain;break;case constConfig.CURRENT_CHANNGEL_OUT_4:element=document.getElementById("text_volume_out4");id=controlsId.SLIDER_GAIN_OUT4;step=currentGroupData.dataOut4.gain;break;case constConfig.CURRENT_CHANNGEL_OUT_5:element=document.getElementById("text_volume_out5");id=controlsId.SLIDER_GAIN_OUT5;step=currentGroupData.dataOut5.gain;break;case constConfig.CURRENT_CHANNGEL_OUT_6:element=document.getElementById("text_volume_out6");id=controlsId.SLIDER_GAIN_OUT6;step=currentGroupData.dataOut6.gain;break;case constConfig.CURRENT_CHANNGEL_OUT_7:element=document.getElementById("text_volume_out7");id=controlsId.SLIDER_GAIN_OUT7;step=currentGroupData.dataOut7.gain;break;case constConfig.CURRENT_CHANNGEL_OUT_8:element=document.getElementById("text_volume_out8");id=controlsId.SLIDER_GAIN_OUT8;step=currentGroupData.dataOut8.gain;break;case constConfig.CURRENT_CHANNGEL_INPUT_A:element=document.getElementById("text_volume_a");id=controlsId.SLIDER_GAIN_INPUT_A;step=currentGroupData.dataInputA.gain;break;case constConfig.CURRENT_CHANNGEL_INPUT_B:element=document.getElementById("text_volume_b");id=controlsId.SLIDER_GAIN_INPUT_B;step=currentGroupData.dataInputB.gain;break;case constConfig.CURRENT_CHANNGEL_INPUT_C:element=document.getElementById("text_volume_c");id=controlsId.SLIDER_GAIN_INPUT_C;step=currentGroupData.dataInputC.gain;break;case constConfig.CURRENT_CHANNGEL_INPUT_D:element=document.getElementById("text_volume_d");id=controlsId.SLIDER_GAIN_INPUT_D;step=currentGroupData.dataInputD.gain;break;default:break}value=getChanelGainDisplay(step);element.value=value;setSliderPosition(id,step)}function assignChannelData(channel){var inputData=new PublicInPut;var outputData=new PublicOutPut;var isInput;switch(channel){case constConfig.CURRENT_CHANNGEL_INPUT_A:inputData=currentGroupData.dataInputA;isInput=true;break;case constConfig.CURRENT_CHANNGEL_INPUT_B:inputData=currentGroupData.dataInputB;isInput=true;break;case constConfig.CURRENT_CHANNGEL_INPUT_C:inputData=currentGroupData.dataInputC;isInput=true;break;case constConfig.CURRENT_CHANNGEL_INPUT_D:inputData=currentGroupData.dataInputD;isInput=true;break;case constConfig.CURRENT_CHANNGEL_OUT_1:outputData=currentGroupData.dataOut1;isInput=false;break;case constConfig.CURRENT_CHANNGEL_OUT_2:outputData=currentGroupData.dataOut2;isInput=false;break;case constConfig.CURRENT_CHANNGEL_OUT_3:outputData=currentGroupData.dataOut3;isInput=false;break;case constConfig.CURRENT_CHANNGEL_OUT_4:outputData=currentGroupData.dataOut4;isInput=false;break;case constConfig.CURRENT_CHANNGEL_OUT_5:outputData=currentGroupData.dataOut5;isInput=false;break;case constConfig.CURRENT_CHANNGEL_OUT_6:outputData=currentGroupData.dataOut6;isInput=false;break;case constConfig.CURRENT_CHANNGEL_OUT_7:outputData=currentGroupData.dataOut7;isInput=false;break;case constConfig.CURRENT_CHANNGEL_OUT_8:outputData=currentGroupData.dataOut8;isInput=false;break;default:isInput=true}setInputTextControlValue("text_volume_a",currentGroupData.dataInputA.gain,inputTextValueType.CHANNEL_GAIN);setInputTextControlValue("text_volume_b",currentGroupData.dataInputB.gain,inputTextValueType.CHANNEL_GAIN);setInputTextControlValue("text_volume_c",currentGroupData.dataInputC.gain,inputTextValueType.CHANNEL_GAIN);setInputTextControlValue("text_volume_d",currentGroupData.dataInputD.gain,inputTextValueType.CHANNEL_GAIN);setInputTextControlValue("text_volume_out1",currentGroupData.dataOut1.gain,inputTextValueType.CHANNEL_GAIN);setInputTextControlValue("text_volume_out2",currentGroupData.dataOut2.gain,inputTextValueType.CHANNEL_GAIN);setInputTextControlValue("text_volume_out3",currentGroupData.dataOut3.gain,inputTextValueType.CHANNEL_GAIN);setInputTextControlValue("text_volume_out4",currentGroupData.dataOut4.gain,inputTextValueType.CHANNEL_GAIN);setInputTextControlValue("text_volume_out5",currentGroupData.dataOut5.gain,inputTextValueType.CHANNEL_GAIN);setInputTextControlValue("text_volume_out6",currentGroupData.dataOut6.gain,inputTextValueType.CHANNEL_GAIN);setInputTextControlValue("text_volume_out7",currentGroupData.dataOut7.gain,inputTextValueType.CHANNEL_GAIN);setInputTextControlValue("text_volume_out8",currentGroupData.dataOut8.gain,inputTextValueType.CHANNEL_GAIN);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_A,currentGroupData.dataInputA.gain);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_B,currentGroupData.dataInputB.gain);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_C,currentGroupData.dataInputC.gain);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_D,currentGroupData.dataInputD.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT1,currentGroupData.dataOut1.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT2,currentGroupData.dataOut2.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT3,currentGroupData.dataOut3.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT4,currentGroupData.dataOut4.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT5,currentGroupData.dataOut5.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT6,currentGroupData.dataOut6.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT7,currentGroupData.dataOut7.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT8,currentGroupData.dataOut8.gain);controlsData.buttonStates.buttonSpeakerStatus[0]=currentGroupData.dataInputA.mute===1;controlsData.buttonStates.buttonSpeakerStatus[1]=currentGroupData.dataInputB.mute===1;controlsData.buttonStates.buttonSpeakerStatus[2]=currentGroupData.dataInputC.mute===1;controlsData.buttonStates.buttonSpeakerStatus[3]=currentGroupData.dataInputD.mute===1;controlsData.buttonStates.buttonSpeakerStatus[4]=currentGroupData.dataOut1.mute===1;controlsData.buttonStates.buttonSpeakerStatus[5]=currentGroupData.dataOut2.mute===1;controlsData.buttonStates.buttonSpeakerStatus[6]=currentGroupData.dataOut3.mute===1;controlsData.buttonStates.buttonSpeakerStatus[7]=currentGroupData.dataOut4.mute===1;controlsData.buttonStates.buttonSpeakerStatus[8]=currentGroupData.dataOut5.mute===1;controlsData.buttonStates.buttonSpeakerStatus[9]=currentGroupData.dataOut6.mute===1;controlsData.buttonStates.buttonSpeakerStatus[10]=currentGroupData.dataOut7.mute===1;controlsData.buttonStates.buttonSpeakerStatus[11]=currentGroupData.dataOut8.mute===1;if(isInput){controlsData.inputData=inputData;eqData=inputData.InEQ;refreshChannelData(constConfig.INPUT_CHANNEL);assignSelectData()}else{controlsData.outputData=outputData;eqData=outputData.OutEQ;refreshChannelData(constConfig.OUTPUT_CHANNEL);assignSelectData()}}function setChannelGain(no,gain){switch(no){case 1:currentGroupData.dataInputA.gain=gain;break;case 2:currentGroupData.dataInputB.gain=gain;break;case 3:currentGroupData.dataInputC.gain=gain;break;case 4:currentGroupData.dataInputD.gain=gain;break;case 5:currentGroupData.dataOut1.gain=gain;break;case 6:currentGroupData.dataOut2.gain=gain;break;case 7:currentGroupData.dataOut3.gain=gain;break;case 8:currentGroupData.dataOut4.gain=gain;break;case 9:currentGroupData.dataOut5.gain=gain;break;case 10:currentGroupData.dataOut6.gain=gain;break;case 11:currentGroupData.dataOut7.gain=gain;break;case 12:currentGroupData.dataOut8.gain=gain;break;default:break}}function getChannelGain(no){var gain;switch(no){case 1:gain=currentGroupData.dataInputA.gain;break;case 2:gain=currentGroupData.dataInputB.gain;break;case 3:gain=currentGroupData.dataInputC.gain;break;case 4:gain=currentGroupData.dataInputD.gain;break;case 5:gain=currentGroupData.dataOut1.gain;break;case 6:gain=currentGroupData.dataOut2.gain;break;case 7:gain=currentGroupData.dataOut3.gain;break;case 8:gain=currentGroupData.dataOut4.gain;break;case 9:gain=currentGroupData.dataOut5.gain;break;case 10:gain=currentGroupData.dataOut6.gain;break;case 11:gain=currentGroupData.dataOut7.gain;break;case 12:gain=currentGroupData.dataOut8.gain;break;default:gain=1;break}return gain}function refreshChannelData(type){if(type===constConfig.INPUT_CHANNEL){setInputTextControlValue("text_gate",controlsData.inputData.noisegate,inputTextValueType.NOISE_GATE);setInputTextDelayControlValue("text_delay_millisecond",controlsData.inputData.delay,controlsData.inputData.secondDelay,inputTextValueType.DELAY_TIME);setInputTextDelayControlValue("text_delay_meter",controlsData.inputData.delay,controlsData.inputData.secondDelay,inputTextValueType.DELAY_METER);setInputTextDelayControlValue("text_delay_inch",controlsData.inputData.delay,controlsData.inputData.secondDelay,inputTextValueType.DELAY_INCH);setInputTextControlValue("text_deq1_frequency",controlsData.inputData.InDeq1.req,inputTextValueType.FREQUENCY);setInputTextControlValue("text_deq1_bandwidth",controlsData.inputData.InDeq1.bw,inputTextValueType.BANDWIDTH);setInputTextControlValue("text_deq1_level",controlsData.inputData.InDeq1.level,inputTextValueType.DEQ_LEVEL);setInputTextControlValue("text_deq2_frequency",controlsData.inputData.InDeq2.req,inputTextValueType.FREQUENCY);setInputTextControlValue("text_deq2_bandwidth",controlsData.inputData.InDeq2.bw,inputTextValueType.BANDWIDTH);setInputTextControlValue("text_deq2_level",controlsData.inputData.InDeq2.level,inputTextValueType.DEQ_LEVEL);setInputTextControlValue("deq1_threshold",controlsData.inputData.DeqParam1.DEQ_Threshold,inputTextValueType.DEQ_THRESHOLD);setInputTextControlValue("deq1_ratio",controlsData.inputData.DeqParam1.DEQ_ratio,inputTextValueType.EXTENSION_RATION);setInputTextControlValue("deq1_attack_time",controlsData.inputData.DeqParam1.DEQ_a,inputTextValueType.ATTACK_TIME);setInputTextControlValue("deq1_release_time",controlsData.inputData.DeqParam1.DEQ_r,inputTextValueType.RELEASE_TIME);setInputTextControlValue("deq2_threshold",controlsData.inputData.DeqParam2.DEQ_Threshold,inputTextValueType.DEQ_THRESHOLD);setInputTextControlValue("deq2_ratio",controlsData.inputData.DeqParam2.DEQ_ratio,inputTextValueType.EXTENSION_RATION);setInputTextControlValue("deq2_attack_time",controlsData.inputData.DeqParam2.DEQ_a,inputTextValueType.ATTACK_TIME);setInputTextControlValue("deq2_release_time",controlsData.inputData.DeqParam2.DEQ_r,inputTextValueType.RELEASE_TIME);setInputTextControlValue("text_threshold",controlsData.inputData.agThreshold,inputTextValueType.INPUT_EXTEND_THRESHOLD);setInputTextControlValue("text_target_level",controlsData.inputData.agLevel,inputTextValueType.INPUT_EXTEND_THRESHOLD);setInputTextControlValue("text_extension_ratio",controlsData.inputData.agRatio,inputTextValueType.EXTENSION_RATION);setInputTextControlValue("text_extension_attack",controlsData.inputData.agAttack,inputTextValueType.ATTACK_TIME);setInputTextControlValue("text_extension_release",controlsData.inputData.agRelease,inputTextValueType.RELEASE_TIME);setInputTextControlValue("text_compressor",controlsData.inputData.compLevel,inputTextValueType.INPUT_COMPRESS_THRESHOLD);setInputTextControlValue("text_comp_ratio",controlsData.inputData.compRatio,inputTextValueType.COMPRESS_RATION);setInputTextControlValue("text_comp_attack",controlsData.inputData.compAttack,inputTextValueType.ATTACK_TIME);setInputTextControlValue("text_comp_release",controlsData.inputData.compRelease,inputTextValueType.RELEASE_TIME)}else{setInputTextDelayControlValue("text_delay_millisecond_out",controlsData.outputData.delay,controlsData.outputData.secondDelay,inputTextValueType.DELAY_TIME);setInputTextDelayControlValue("text_delay_meter_out",controlsData.outputData.delay,controlsData.outputData.secondDelay,inputTextValueType.DELAY_METER);setInputTextDelayControlValue("text_delay_inch_out",controlsData.outputData.delay,controlsData.outputData.secondDelay,inputTextValueType.DELAY_INCH);setInputTextControlValue("text_hpf_frequency",controlsData.outputData.HPFData.HL_freq,inputTextValueType.FREQUENCY);setInputTextControlValue("text_lpf_frequency",controlsData.outputData.LPFData.HL_freq,inputTextValueType.FREQUENCY);setInputTextControlValue("text_threshold_compress_out",controlsData.outputData.compLevel,inputTextValueType.OUTPUT_COMPRESS_THRESHOLD);setInputTextControlValue("text_ratio_compress_out",controlsData.outputData.compRatio,inputTextValueType.COMPRESS_RATION);setInputTextControlValue("text_attack_compress_out",controlsData.outputData.compAttack,inputTextValueType.ATTACK_TIME);setInputTextControlValue("text_release_compress_out",controlsData.outputData.compR,inputTextValueType.RELEASE_TIME);setInputTextControlValue("text_threshold_limit_out",controlsData.outputData.limT,inputTextValueType.OUTPUT_COMPRESS_THRESHOLD);setInputTextControlValue("text_attack_limit_out",controlsData.outputData.limAttack,inputTextValueType.ATTACK_TIME);setInputTextControlValue("text_release_limit_out",controlsData.outputData.limRelease,inputTextValueType.RELEASE_TIME);document.getElementById("text_hpf_mode").value=controlsData.outputData.HPFData.HL_Type;document.getElementById("text_hpf_slope").innerHTML="";if(controlsData.outputData.HPFData.HL_Type<1){initXoverFew("text_hpf_slope");document.getElementById("text_hpf_slope").value=controlsData.outputData.HPFData.LR_Level}else{initXoverMany("text_hpf_slope");document.getElementById("text_hpf_slope").value=controlsData.outputData.HPFData.HL_Oct}document.getElementById("text_lpf_mode").value=controlsData.outputData.LPFData.HL_Type;document.getElementById("text_lpf_slope").innerHTML="";if(controlsData.outputData.LPFData.HL_Type<1){initXoverFew("text_lpf_slope");document.getElementById("text_lpf_slope").value=controlsData.outputData.LPFData.LR_Level}else{initXoverMany("text_lpf_slope");document.getElementById("text_lpf_slope").value=controlsData.outputData.LPFData.HL_Oct}}refreshCommonData()}function refreshCommonData(){setInputTextControlValue("text_gain",getChannelGain(curButtonNo),inputTextValueType.CHANNEL_GAIN);setInputTextControlValue("text_eq1_frequency",eqData.EQ1.freq,inputTextValueType.FREQUENCY);setInputTextControlValue("text_eq1_bandwidth",eqData.EQ1.bw,inputTextValueType.BANDWIDTH);setInputTextControlValue("text_eq1_slope",eqData.EQ1.bw,inputTextValueType.SLOPE);setInputTextControlValue("text_eq1_gain",eqData.EQ1.level,inputTextValueType.EQ_GAIN);setInputTextControlValue("text_eq2_frequency",eqData.EQ2.freq,inputTextValueType.FREQUENCY);setInputTextControlValue("text_eq2_bandwidth",eqData.EQ2.bw,inputTextValueType.BANDWIDTH);setInputTextControlValue("text_eq2_slope",eqData.EQ2.bw,inputTextValueType.SLOPE);setInputTextControlValue("text_eq2_gain",eqData.EQ2.level,inputTextValueType.EQ_GAIN);setInputTextControlValue("text_eq3_frequency",eqData.EQ3.freq,inputTextValueType.FREQUENCY);setInputTextControlValue("text_eq3_bandwidth",eqData.EQ3.bw,inputTextValueType.BANDWIDTH);setInputTextControlValue("text_eq3_slope",eqData.EQ3.bw,inputTextValueType.SLOPE);setInputTextControlValue("text_eq3_gain",eqData.EQ3.level,inputTextValueType.EQ_GAIN);setInputTextControlValue("text_eq4_frequency",eqData.EQ4.freq,inputTextValueType.FREQUENCY);setInputTextControlValue("text_eq4_bandwidth",eqData.EQ4.bw,inputTextValueType.BANDWIDTH);setInputTextControlValue("text_eq4_slope",eqData.EQ4.bw,inputTextValueType.SLOPE);setInputTextControlValue("text_eq4_gain",eqData.EQ4.level,inputTextValueType.EQ_GAIN);setInputTextControlValue("text_eq5_frequency",eqData.EQ5.freq,inputTextValueType.FREQUENCY);setInputTextControlValue("text_eq5_bandwidth",eqData.EQ5.bw,inputTextValueType.BANDWIDTH);setInputTextControlValue("text_eq5_slope",eqData.EQ5.bw,inputTextValueType.SLOPE);setInputTextControlValue("text_eq5_gain",eqData.EQ5.level,inputTextValueType.EQ_GAIN);setInputTextControlValue("text_eq6_frequency",eqData.EQ6.freq,inputTextValueType.FREQUENCY);setInputTextControlValue("text_eq6_bandwidth",eqData.EQ6.bw,inputTextValueType.BANDWIDTH);setInputTextControlValue("text_eq6_slope",eqData.EQ6.bw,inputTextValueType.SLOPE);setInputTextControlValue("text_eq6_gain",eqData.EQ6.level,inputTextValueType.EQ_GAIN);setSliderPosition(controlsId.SLIDER_EQ1_THUMP,eqData.EQ1.level);setSliderPosition(controlsId.SLIDER_EQ2_THUMP,eqData.EQ2.level);setSliderPosition(controlsId.SLIDER_EQ3_THUMP,eqData.EQ3.level);setSliderPosition(controlsId.SLIDER_EQ4_THUMP,eqData.EQ4.level);setSliderPosition(controlsId.SLIDER_EQ5_THUMP,eqData.EQ5.level);setSliderPosition(controlsId.SLIDER_EQ6_THUMP,eqData.EQ6.level);updateAllEqGainButton(1);updateAllEqGainButton(2);updateAllEqGainButton(3);updateAllEqGainButton(4);updateAllEqGainButton(5);updateAllEqGainButton(6)}function setInputTextControlValue(id,value,type){var textElement=document.getElementById(id);currentStep=value;textElement.value=getDisplayValue(type);return textElement.value}function setInputTextDelayControlValue(id,value1,value2,type){var textElement=document.getElementById(id);currentStep=value1;secondStep=value2;textElement.value=getDisplayValue(type);return textElement.value}function assignSelectData(){setModeSelect("select_mode1",eqData.EQ1.type);setModeSelect("select_mode2",eqData.EQ2.type);setModeSelect("select_mode3",eqData.EQ3.type);setModeSelect("select_mode4",eqData.EQ4.type);setModeSelect("select_mode5",eqData.EQ5.type);setModeSelect("select_mode6",eqData.EQ6.type);updateEqModeDisplay(eqData.EQ1.type,1);updateEqModeDisplay(eqData.EQ2.type,2);updateEqModeDisplay(eqData.EQ3.type,3);updateEqModeDisplay(eqData.EQ4.type,4);updateEqModeDisplay(eqData.EQ5.type,5);updateEqModeDisplay(eqData.EQ6.type,6);document.getElementById("select_slope1").value=GET_4H_BYTE(eqData.EQ1.HL_db_AP_Flag);document.getElementById("select_slope2").value=GET_4H_BYTE(eqData.EQ2.HL_db_AP_Flag);document.getElementById("select_slope3").value=GET_4H_BYTE(eqData.EQ3.HL_db_AP_Flag);document.getElementById("select_slope4").value=GET_4H_BYTE(eqData.EQ4.HL_db_AP_Flag);document.getElementById("select_slope5").value=GET_4H_BYTE(eqData.EQ5.HL_db_AP_Flag);document.getElementById("select_slope6").value=GET_4H_BYTE(eqData.EQ6.HL_db_AP_Flag);document.getElementById("select_link_a").value=currentGroupData.dataInputA.inLinkSel;document.getElementById("select_link_b").value=currentGroupData.dataInputB.inLinkSel;document.getElementById("select_link_c").value=currentGroupData.dataInputC.inLinkSel;document.getElementById("select_link_d").value=currentGroupData.dataInputD.inLinkSel;document.getElementById("select_link_out1").value=currentGroupData.dataOut1.outLinkSel;document.getElementById("select_link_out2").value=currentGroupData.dataOut2.outLinkSel;document.getElementById("select_link_out3").value=currentGroupData.dataOut3.outLinkSel;document.getElementById("select_link_out4").value=currentGroupData.dataOut4.outLinkSel;document.getElementById("select_link_out5").value=currentGroupData.dataOut5.outLinkSel;document.getElementById("select_link_out6").value=currentGroupData.dataOut6.outLinkSel;document.getElementById("select_link_out7").value=currentGroupData.dataOut7.outLinkSel;document.getElementById("select_link_out8").value=currentGroupData.dataOut8.outLinkSel}function setModeSelect(id,value){var selectElement=document.getElementById(id).options;selectElement[value].selected=true}function assignSliderPosition(){setSliderPosition(controlsId.SLIDER_EQ1_THUMP,eqData.EQ1.level);setSliderPosition(controlsId.SLIDER_EQ2_THUMP,eqData.EQ2.level);setSliderPosition(controlsId.SLIDER_EQ3_THUMP,eqData.EQ3.level);setSliderPosition(controlsId.SLIDER_EQ4_THUMP,eqData.EQ4.level);setSliderPosition(controlsId.SLIDER_EQ5_THUMP,eqData.EQ5.level);setSliderPosition(controlsId.SLIDER_EQ6_THUMP,eqData.EQ6.level);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_A,currentGroupData.dataInputA.gain);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_B,currentGroupData.dataInputB.gain);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_C,currentGroupData.dataInputC.gain);setSliderPosition(controlsId.SLIDER_GAIN_INPUT_D,currentGroupData.dataInputD.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT1,currentGroupData.dataOut1.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT2,currentGroupData.dataOut2.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT3,currentGroupData.dataOut3.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT4,currentGroupData.dataOut4.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT5,currentGroupData.dataOut5.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT6,currentGroupData.dataOut6.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT7,currentGroupData.dataOut7.gain);setSliderPosition(controlsId.SLIDER_GAIN_OUT8,currentGroupData.dataOut8.gain)}function setGainSliderPosition(value){var topMax,range;var thumpElement,thumpHeight,parentElement,parentHeight;thumpElement=document.getElementById("slider_gain_thump");thumpHeight=parseInt(getCss(thumpElement,"height"));parentElement=document.getElementById("slider_track_gain");parentHeight=parseInt(getCss(parentElement,"height"));topMax=parentHeight-thumpHeight;range=1-value/constConfig.CHANNEL_GAIN_STEPS_MAX;thumpElement.style.top=topMax*range+"px"}function setSliderPosition(idType,value){var topMax,range;var sliderElement,thumpElement,thumpHeight,parentElement,parentHeight;switch(idType){case controlsId.SLIDER_EQ1_THUMP:sliderElement=document.getElementById("slider_eq1_thump");break;case controlsId.SLIDER_EQ2_THUMP:sliderElement=document.getElementById("slider_eq2_thump");break;case controlsId.SLIDER_EQ3_THUMP:sliderElement=document.getElementById("slider_eq3_thump");break;case controlsId.SLIDER_EQ4_THUMP:sliderElement=document.getElementById("slider_eq4_thump");break;case controlsId.SLIDER_EQ5_THUMP:sliderElement=document.getElementById("slider_eq5_thump");break;case controlsId.SLIDER_EQ6_THUMP:sliderElement=document.getElementById("slider_eq6_thump");break;case controlsId.SLIDER_GAIN_INPUT_A:sliderElement=document.getElementById("slider_input_a_thump");keepLongGainInStep(1,value);break;case controlsId.SLIDER_GAIN_INPUT_B:sliderElement=document.getElementById("slider_input_b_thump");keepLongGainInStep(2,value);break;case controlsId.SLIDER_GAIN_INPUT_C:sliderElement=document.getElementById("slider_input_c_thump");keepLongGainInStep(3,value);break;case controlsId.SLIDER_GAIN_INPUT_D:sliderElement=document.getElementById("slider_input_d_thump");keepLongGainInStep(4,value);break;case controlsId.SLIDER_GAIN_OUT1:sliderElement=document.getElementById("slider_out1_thump");keepLongGainInStep(5,value);break;case controlsId.SLIDER_GAIN_OUT2:sliderElement=document.getElementById("slider_out2_thump");keepLongGainInStep(6,value);break;case controlsId.SLIDER_GAIN_OUT3:sliderElement=document.getElementById("slider_out3_thump");keepLongGainInStep(7,value);break;case controlsId.SLIDER_GAIN_OUT4:sliderElement=document.getElementById("slider_out4_thump");keepLongGainInStep(8,value);break;case controlsId.SLIDER_GAIN_OUT5:sliderElement=document.getElementById("slider_out5_thump");keepLongGainInStep(9,value);break;case controlsId.SLIDER_GAIN_OUT6:sliderElement=document.getElementById("slider_out6_thump");keepLongGainInStep(10,value);break;case controlsId.SLIDER_GAIN_OUT7:sliderElement=document.getElementById("slider_out7_thump");keepLongGainInStep(11,value);break;case controlsId.SLIDER_GAIN_OUT8:sliderElement=document.getElementById("slider_out8_thump");keepLongGainInStep(12,value);break;default:break}if(idType4){return}if(controlsData.buttonStates.buttonDeqStatus[0]){controlsData.buttonStates.buttonDeqStatus[0]=false;oldDeq1[curButtonNo-1]=controlsData.inputData.InDeq1.level;controlsData.inputData.InDeq1.level=0;document.getElementById("button_deq1").setAttribute("class","button_deq_false");document.getElementById("text_deq1_level").value=getDeqLevelDisplay(0);keepLinkInputDeq1Button(curButtonNo,0);keepLinkInputDeq1ButtonOld(curButtonNo,oldDeq1[curButtonNo-1])}else{if(oldDeq1[curButtonNo-1]===0){return}controlsData.buttonStates.buttonDeqStatus[0]=true;controlsData.inputData.InDeq1.level=oldDeq1[curButtonNo-1];document.getElementById("button_deq1").setAttribute("class","button_deq_true");document.getElementById("text_deq1_level").value=getDeqLevelDisplay(controlsData.inputData.InDeq1.level);keepLinkInputDeq1Button(curButtonNo,oldDeq1[curButtonNo-1]);oldDeq1[curButtonNo-1]=0;keepLinkInputDeq1ButtonOld(curButtonNo,oldDeq1[curButtonNo-1])}}var oldDeq2=[0,0,0,0];function deq2ClickResponse(){if(curButtonNo>4){return}if(controlsData.buttonStates.buttonDeqStatus[1]){controlsData.buttonStates.buttonDeqStatus[1]=false;oldDeq2[curButtonNo-1]=controlsData.inputData.InDeq2.level;controlsData.inputData.InDeq2.level=0;document.getElementById("button_deq2").setAttribute("class","button_deq_false");document.getElementById("text_deq2_level").value=getDeqLevelDisplay(0);keepLinkInputDeq2Button(curButtonNo,0);keepLinkInputDeq2ButtonOld(curButtonNo,oldDeq2[curButtonNo-1])}else{if(oldDeq2[curButtonNo-1]===0){return}controlsData.buttonStates.buttonDeqStatus[1]=true;controlsData.inputData.InDeq2.level=oldDeq2[curButtonNo-1];document.getElementById("button_deq2").setAttribute("class","button_deq_true");document.getElementById("text_deq2_level").value=getDeqLevelDisplay(controlsData.inputData.InDeq2.level);keepLinkInputDeq2Button(curButtonNo,oldDeq2[curButtonNo-1]);oldDeq2[curButtonNo-1]=0;keepLinkInputDeq2ButtonOld(curButtonNo,oldDeq2[curButtonNo-1])}}function updateDeqButton(isClearOld){var textElement,buttonElement;isClearOld=!isClearOld;textElement=document.getElementById("text_deq1_level");buttonElement=document.getElementById("button_deq1");if(textElement.value==="OFF"){controlsData.buttonStates.buttonDeqStatus[0]=false;buttonElement.setAttribute("class","button_deq_false");if(isClearOld){oldDeq1[curButtonNo-1]=0;keepLinkInputDeq1ButtonOld(curButtonNo,0)}}else{controlsData.buttonStates.buttonDeqStatus[0]=true;buttonElement.setAttribute("class","button_deq_true")}textElement=document.getElementById("text_deq2_level");buttonElement=document.getElementById("button_deq2");if(textElement.value==="OFF"){controlsData.buttonStates.buttonDeqStatus[1]=false;buttonElement.setAttribute("class","button_deq_false");if(isClearOld){oldDeq2[curButtonNo-1]=0;keepLinkInputDeq2ButtonOld(curButtonNo,0)}}else{controlsData.buttonStates.buttonDeqStatus[1]=true;buttonElement.setAttribute("class","button_deq_true")}}var oldButtonNo=0,curButtonNo=0;function addButtonClickListener(){setButtonValue();var buttonElement;buttonElement=document.getElementById("button_connect");buttonElement.addEventListener("click",buttonConnectOnClick);buttonElement=document.getElementById("button_input_a");buttonElement.addEventListener("click",buttonInputAOnclick);buttonElement=document.getElementById("button_input_b");buttonElement.addEventListener("click",buttonInputBOnclick);buttonElement=document.getElementById("button_input_c");buttonElement.addEventListener("click",buttonInputCOnclick);buttonElement=document.getElementById("button_input_d");buttonElement.addEventListener("click",buttonInputDOnclick);buttonElement=document.getElementById("button_out1");buttonElement.addEventListener("click",buttonOut1Onclick);buttonElement=document.getElementById("button_out2");buttonElement.addEventListener("click",buttonOut2Onclick);buttonElement=document.getElementById("button_out3");buttonElement.addEventListener("click",buttonOut3Onclick);buttonElement=document.getElementById("button_out4");buttonElement.addEventListener("click",buttonOut4Onclick);buttonElement=document.getElementById("button_out5");buttonElement.addEventListener("click",buttonOut5Onclick);buttonElement=document.getElementById("button_out6");buttonElement.addEventListener("click",buttonOut6Onclick);buttonElement=document.getElementById("button_out7");buttonElement.addEventListener("click",buttonOut7Onclick);buttonElement=document.getElementById("button_out8");buttonElement.addEventListener("click",buttonOut8Onclick);buttonElement=document.getElementById("button_out1_a");buttonElement.addEventListener("click",buttonSourceOut1AOnclick);buttonElement=document.getElementById("button_out1_b");buttonElement.addEventListener("click",buttonSourceOut1BOnclick);buttonElement=document.getElementById("button_out1_c");buttonElement.addEventListener("click",buttonSourceOut1COnclick);buttonElement=document.getElementById("button_out1_d");buttonElement.addEventListener("click",buttonSourceOut1DOnclick);buttonElement=document.getElementById("button_out2_a");buttonElement.addEventListener("click",buttonSourceOut2AOnclick);buttonElement=document.getElementById("button_out2_b");buttonElement.addEventListener("click",buttonSourceOut2BOnclick);buttonElement=document.getElementById("button_out2_c");buttonElement.addEventListener("click",buttonSourceOut2COnclick);buttonElement=document.getElementById("button_out2_d");buttonElement.addEventListener("click",buttonSourceOut2DOnclick);buttonElement=document.getElementById("button_out3_a");buttonElement.addEventListener("click",buttonSourceOut3AOnclick);buttonElement=document.getElementById("button_out3_b");buttonElement.addEventListener("click",buttonSourceOut3BOnclick);buttonElement=document.getElementById("button_out3_c");buttonElement.addEventListener("click",buttonSourceOut3COnclick);buttonElement=document.getElementById("button_out3_d");buttonElement.addEventListener("click",buttonSourceOut3DOnclick);buttonElement=document.getElementById("button_out4_a");buttonElement.addEventListener("click",buttonSourceOut4AOnclick);buttonElement=document.getElementById("button_out4_b");buttonElement.addEventListener("click",buttonSourceOut4BOnclick);buttonElement=document.getElementById("button_out4_c");buttonElement.addEventListener("click",buttonSourceOut4COnclick);buttonElement=document.getElementById("button_out4_d");buttonElement.addEventListener("click",buttonSourceOut4DOnclick);buttonElement=document.getElementById("button_out5_a");buttonElement.addEventListener("click",buttonSourceOut5AOnclick);buttonElement=document.getElementById("button_out5_b");buttonElement.addEventListener("click",buttonSourceOut5BOnclick);buttonElement=document.getElementById("button_out5_c");buttonElement.addEventListener("click",buttonSourceOut5COnclick);buttonElement=document.getElementById("button_out5_d");buttonElement.addEventListener("click",buttonSourceOut5DOnclick);buttonElement=document.getElementById("button_out6_a");buttonElement.addEventListener("click",buttonSourceOut6AOnclick);buttonElement=document.getElementById("button_out6_b");buttonElement.addEventListener("click",buttonSourceOut6BOnclick);buttonElement=document.getElementById("button_out6_c");buttonElement.addEventListener("click",buttonSourceOut6COnclick);buttonElement=document.getElementById("button_out6_d");buttonElement.addEventListener("click",buttonSourceOut6DOnclick);buttonElement=document.getElementById("button_out7_a");buttonElement.addEventListener("click",buttonSourceOut7AOnclick);buttonElement=document.getElementById("button_out7_b");buttonElement.addEventListener("click",buttonSourceOut7BOnclick);buttonElement=document.getElementById("button_out7_c");buttonElement.addEventListener("click",buttonSourceOut7COnclick);buttonElement=document.getElementById("button_out7_d");buttonElement.addEventListener("click",buttonSourceOut7DOnclick);buttonElement=document.getElementById("button_out8_a");buttonElement.addEventListener("click",buttonSourceOut8AOnclick);buttonElement=document.getElementById("button_out8_b");buttonElement.addEventListener("click",buttonSourceOut8BOnclick);buttonElement=document.getElementById("button_out8_c");buttonElement.addEventListener("click",buttonSourceOut8COnclick);buttonElement=document.getElementById("button_out8_d");buttonElement.addEventListener("click",buttonSourceOut8DOnclick);buttonElement=document.getElementById("button_speaker_a");buttonElement.addEventListener("click",buttonSpeakerAOnclick);buttonElement=document.getElementById("button_speaker_b");buttonElement.addEventListener("click",buttonSpeakerBOnclick);buttonElement=document.getElementById("button_speaker_c");buttonElement.addEventListener("click",buttonSpeakerCOnclick);buttonElement=document.getElementById("button_speaker_d");buttonElement.addEventListener("click",buttonSpeakerDOnclick);buttonElement=document.getElementById("button_speaker_out1");buttonElement.addEventListener("click",buttonSpeakerOut1Onclick);buttonElement=document.getElementById("button_speaker_out2");buttonElement.addEventListener("click",buttonSpeakerOut2Onclick);buttonElement=document.getElementById("button_speaker_out3");buttonElement.addEventListener("click",buttonSpeakerOut3Onclick);buttonElement=document.getElementById("button_speaker_out4");buttonElement.addEventListener("click",buttonSpeakerOut4Onclick);buttonElement=document.getElementById("button_speaker_out5");buttonElement.addEventListener("click",buttonSpeakerOut5Onclick);buttonElement=document.getElementById("button_speaker_out6");buttonElement.addEventListener("click",buttonSpeakerOut6Onclick);buttonElement=document.getElementById("button_speaker_out7");buttonElement.addEventListener("click",buttonSpeakerOut7Onclick);buttonElement=document.getElementById("button_speaker_out8");buttonElement.addEventListener("click",buttonSpeakerOut8Onclick);buttonElement=document.getElementById("button_curve_a");buttonElement.addEventListener("click",buttonCurveAOnclick);buttonElement=document.getElementById("button_curve_b");buttonElement.addEventListener("click",buttonCurveBOnclick);buttonElement=document.getElementById("button_curve_c");buttonElement.addEventListener("click",buttonCurveCOnclick);buttonElement=document.getElementById("button_curve_d");buttonElement.addEventListener("click",buttonCurveDOnclick);buttonElement=document.getElementById("button_curve_out1");buttonElement.addEventListener("click",buttonCurveOut1Onclick);buttonElement=document.getElementById("button_curve_out2");buttonElement.addEventListener("click",buttonCurveOut2Onclick);buttonElement=document.getElementById("button_curve_out3");buttonElement.addEventListener("click",buttonCurveOut3Onclick);buttonElement=document.getElementById("button_curve_out4");buttonElement.addEventListener("click",buttonCurveOut4Onclick);buttonElement=document.getElementById("button_curve_out5");buttonElement.addEventListener("click",buttonCurveOut5Onclick);buttonElement=document.getElementById("button_curve_out6");buttonElement.addEventListener("click",buttonCurveOut6Onclick);buttonElement=document.getElementById("button_curve_out7");buttonElement.addEventListener("click",buttonCurveOut7Onclick);buttonElement=document.getElementById("button_curve_out8");buttonElement.addEventListener("click",buttonCurveOut8Onclick);buttonElement=document.getElementById("button_eq1");buttonElement.addEventListener("click",buttonEq1Onclick);buttonElement=document.getElementById("button_eq2");buttonElement.addEventListener("click",buttonEq2Onclick);buttonElement=document.getElementById("button_eq3");buttonElement.addEventListener("click",buttonEq3Onclick);buttonElement=document.getElementById("button_eq4");buttonElement.addEventListener("click",buttonEq4Onclick);buttonElement=document.getElementById("button_eq5");buttonElement.addEventListener("click",buttonEq5Onclick);buttonElement=document.getElementById("button_eq6");buttonElement.addEventListener("click",buttonEq6Onclick);buttonElement=document.getElementById("button_eq");buttonElement.addEventListener("click",buttonEqTotalOnclick);buttonElement=document.getElementById("button_phase");buttonElement.addEventListener("click",buttonPhaseOnclick);buttonElement=document.getElementById("button_phase_out");buttonElement.addEventListener("click",buttonPhaseOutOnclick);buttonElement=document.getElementById("button_phase_curve");buttonElement.addEventListener("click",buttonPhaseCurveOnclick);buttonElement=document.getElementById("button_connect");buttonElement.addEventListener("mouseover",buttonConnectOnHover);buttonElement.addEventListener("mouseout",buttonConnectOnMouseOut);buttonElement=document.getElementById("button_help");buttonElement.addEventListener("click",buttonHelpOnclick);buttonElement=document.getElementById("button_program");buttonElement.addEventListener("click",buttonProgramOnclick);buttonElement=document.getElementById("button_display");buttonElement.addEventListener("click",buttonDisplayOnclick);buttonElement=document.getElementById("button_lock");buttonElement.addEventListener("click",buttonLockOnclick);buttonElement=document.getElementById("button_report");buttonElement.addEventListener("click",buttonReportOnclick);buttonElement=document.getElementById("button_language");buttonElement.addEventListener("click",buttonLanguageOnclick)}function setButtonValue(){setElementLanguageValue("button_connect","未连接","NOT CONNECTED","21","12")}function buttonConnectOnClick(){var buttonElement=document.getElementById("button_connect");if(isConnect){buttonElement.setAttribute("class","button_connect_true");setElementLanguageValue("button_connect","未连接","NOT CONNECTED","21","12");isConnect=false;stopAjaxTimer();var connectContent=document.getElementById("connect_progress_content");connectContent.setAttribute("width","0");connectContent.style.width="0";clearLedDisplay()}else{if(!getDeviceIp()){alert(isChinese?"ip地址不正确":"wrong ip address");return}buttonElement.setAttribute("class","button_connect_false");setElementLanguageValue("button_connect","连接中","CONNECTING","21","16");isConnect=true;connectDevice()}}function disconnectCommunicate(){stopAjaxTimer();var buttonElement=document.getElementById("button_connect");buttonElement.setAttribute("class","button_connect_true");setElementLanguageValue("button_connect","未连接","NOT CONNECTED","21","12");isConnect=false;dataForSendArray.length=0;var connectContent=document.getElementById("connect_progress_content");connectContent.setAttribute("width","0");connectContent.style.width="0";alert(isChinese?"连接设备失败":"fail to connect device");enableMainCurtain();clearLedDisplay()}function buttonConnectOnHover(){if(isConnect){setElementLanguageValue("button_connect","断开","DISCONNECT","21","16")}else{setElementLanguageValue("button_connect","连接","CONNECT","21","16")}}function buttonConnectOnMouseOut(){if(isConnect){setElementLanguageValue("button_connect","连接中","CONNECTING","21","16")}else{setElementLanguageValue("button_connect","未连接","NOT CONNECTED","21","12")}}function inputEqBeLocked(){var i;for(i=0;i<8;i++){svgDrawCurve.eqChannelTextElement[i].setAttribute("visibility","hidden");svgDrawCurve.eqLRectElement[i].setAttribute("visibility","hidden");svgDrawCurve.eqRRectElement[i].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement[i].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement1[i].setAttribute("visibility","hidden")}for(i=0;i<4;i++){if(document.getElementById(svgDrawCurve.inputCurveLineID[i])){svgDrawCurve.lineInputElement[i].setAttribute("visibility","hidden")}}for(i=0;i<8;i++){if(m_nLinkOut_EQLine[i]||m_nCurOut_EQLine[i]){if(document.getElementById(svgDrawCurve.outCurveLineID[i])){}}else{if(document.getElementById(svgDrawCurve.outCurveLineID[i])){svgDrawCurve.lineOutElement[i].setAttribute("visibility","hidden")}else{}}}document.getElementById("slider_eq1_thump").style.display="none";document.getElementById("slider_eq2_thump").style.display="none";document.getElementById("slider_eq3_thump").style.display="none";document.getElementById("slider_eq4_thump").style.display="none";document.getElementById("slider_eq5_thump").style.display="none";document.getElementById("slider_eq6_thump").style.display="none";document.getElementById("slider_eq1_thump_lock").style.display="inline";document.getElementById("slider_eq2_thump_lock").style.display="inline";document.getElementById("slider_eq3_thump_lock").style.display="inline";document.getElementById("slider_eq4_thump_lock").style.display="inline";document.getElementById("slider_eq5_thump_lock").style.display="inline";document.getElementById("slider_eq6_thump_lock").style.display="inline";svgDrawCurve.linePhaseElement.setAttribute("visibility","hidden")}function inputEqUnlock(){for(var i=0;i<6;i++){svgDrawCurve.eqChannelTextElement[i].setAttribute("visibility","visible")}svgDrawCurve.eqChannelTextElement[6].setAttribute("visibility","hidden");svgDrawCurve.eqChannelTextElement[7].setAttribute("visibility","hidden");document.getElementById("slider_eq1_thump").style.display="inline";document.getElementById("slider_eq2_thump").style.display="inline";document.getElementById("slider_eq3_thump").style.display="inline";document.getElementById("slider_eq4_thump").style.display="inline";document.getElementById("slider_eq5_thump").style.display="inline";document.getElementById("slider_eq6_thump").style.display="inline";document.getElementById("slider_eq1_thump_lock").style.display="none";document.getElementById("slider_eq2_thump_lock").style.display="none";document.getElementById("slider_eq3_thump_lock").style.display="none";document.getElementById("slider_eq4_thump_lock").style.display="none";document.getElementById("slider_eq5_thump_lock").style.display="none";document.getElementById("slider_eq6_thump_lock").style.display="none"}function inputCompAgBeLocked(){svgDrawInput.circle_agc.setAttribute("visibility","hidden");svgDrawInput.circle_target.setAttribute("visibility","hidden");svgDrawInput.circle_comp.setAttribute("visibility","hidden");svgDrawInput.circle_agc_ratio.setAttribute("visibility","hidden");svgDrawInput.circle_comp_ratio.setAttribute("visibility","hidden");svgDrawInput.line_agc_origin.setAttribute("visibility","hidden");svgDrawInput.line_agc_ratio.setAttribute("visibility","hidden");svgDrawInput.line_target_ratio.setAttribute("visibility","hidden");svgDrawInput.line_target_comp.setAttribute("visibility","hidden")}function inputCompAgUnlock(){svgDrawInput.circle_agc.setAttribute("visibility","visible");svgDrawInput.circle_target.setAttribute("visibility","visible");svgDrawInput.circle_comp.setAttribute("visibility","visible");svgDrawInput.circle_agc_ratio.setAttribute("visibility","visible");svgDrawInput.circle_comp_ratio.setAttribute("visibility","visible");svgDrawInput.line_agc_origin.setAttribute("visibility","visible");svgDrawInput.line_agc_ratio.setAttribute("visibility","visible");svgDrawInput.line_target_ratio.setAttribute("visibility","visible");svgDrawInput.line_target_comp.setAttribute("visibility","visible");svgDrawInput.line_comp_ratio.setAttribute("visibility","visible")}function outputEqBeLock(){var i;for(i=0;i<6;i++){svgDrawCurve.eqChannelTextElement[i].setAttribute("visibility","hidden");svgDrawCurve.eqLRectElement[i].setAttribute("visibility","hidden");svgDrawCurve.eqRRectElement[i].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement[i].setAttribute("visibility","hidden");svgDrawCurve.eqDataTextElement1[i].setAttribute("visibility","hidden")}document.getElementById("slider_eq1_thump").style.display="none";document.getElementById("slider_eq2_thump").style.display="none";document.getElementById("slider_eq3_thump").style.display="none";document.getElementById("slider_eq4_thump").style.display="none";document.getElementById("slider_eq5_thump").style.display="none";document.getElementById("slider_eq6_thump").style.display="none";document.getElementById("slider_eq1_thump_lock").style.display="inline";document.getElementById("slider_eq2_thump_lock").style.display="inline";document.getElementById("slider_eq3_thump_lock").style.display="inline";document.getElementById("slider_eq4_thump_lock").style.display="inline";document.getElementById("slider_eq5_thump_lock").style.display="inline";document.getElementById("slider_eq6_thump_lock").style.display="inline"}function outPutEqUnlock(){for(var i=0;i<6;i++){svgDrawCurve.eqChannelTextElement[i].setAttribute("visibility","visible")}document.getElementById("slider_eq1_thump").style.display="inline";document.getElementById("slider_eq2_thump").style.display="inline";document.getElementById("slider_eq3_thump").style.display="inline";document.getElementById("slider_eq4_thump").style.display="inline";document.getElementById("slider_eq5_thump").style.display="inline";document.getElementById("slider_eq6_thump").style.display="inline";document.getElementById("slider_eq1_thump_lock").style.display="none";document.getElementById("slider_eq2_thump_lock").style.display="none";document.getElementById("slider_eq3_thump_lock").style.display="none";document.getElementById("slider_eq4_thump_lock").style.display="none";document.getElementById("slider_eq5_thump_lock").style.display="none";document.getElementById("slider_eq6_thump_lock").style.display="none"}function outputCurveLineBelock(){var i;for(i=0;i<4;i++){if(m_nLinkIn_EQLine[i]||m_nCurIn_EQLine[i]){if(document.getElementById(svgDrawCurve.inputCurveLineID[i])){}}else{if(document.getElementById(svgDrawCurve.inputCurveLineID[i])){svgDrawCurve.lineInputElement[i].setAttribute("visibility","hidden")}else{}}}for(i=0;i<8;i++){if(document.getElementById(svgDrawCurve.outCurveLineID[i])){svgDrawCurve.lineOutElement[i].setAttribute("visibility","hidden")}}svgDrawCurve.linePhaseElement.setAttribute("visibility","hidden")}function outputCompLimtLocked(){svgDrawOut.circle_level.setAttribute("visibility","hidden");svgDrawOut.circle_limit.setAttribute("visibility","hidden");svgDrawOut.circle_ratio.setAttribute("visibility","hidden");svgDrawOut.line_level_start.setAttribute("visibility","visible");svgDrawOut.line_level_end.setAttribute("visibility","hidden");svgDrawOut.line_ratio.setAttribute("visibility","hidden");svgDrawOut.line_limit.setAttribute("visibility","hidden");svgDrawOut.polyline_ratio.setAttribute("visibility","hidden")}function outputCompLimtUnlock(){svgDrawOut.circle_level.setAttribute("visibility","visible");svgDrawOut.circle_limit.setAttribute("visibility","visible");svgDrawOut.circle_ratio.setAttribute("visibility","visible");svgDrawOut.line_level_start.setAttribute("visibility","visible");svgDrawOut.line_level_end.setAttribute("visibility","visible");svgDrawOut.line_ratio.setAttribute("visibility","visible");svgDrawOut.line_limit.setAttribute("visibility","visible");svgDrawOut.polyline_ratio.setAttribute("visibility","visible")}function outputXoverLocked(){svgDrawCurve.eqChannelTextElement[6].setAttribute("visibility","hidden");svgDrawCurve.eqChannelTextElement[7].setAttribute("visibility","hidden")}function outputXoverUnlock(){svgDrawCurve.eqChannelTextElement[6].setAttribute("visibility","visible");svgDrawCurve.eqChannelTextElement[7].setAttribute("visibility","visible")}function resetButtonCurveStatus(){for(var i=0;i6){curEqChannel=1}showOrHideEqData();inputEqUnlock();DrawLine()}resetButtonCurveStatus();controlsData.buttonStates.buttonCurveStatus[0]=true;assignButtonCurveStatus();setCurPhaseCurveStatus();setPhaseDirectionStatus();updateDeqButton(true);renewCursorHoverStyle();oldEQ[0]=tempOld.slice();allOldEQ[0]=tempAllOld.slice();allOldEqFlag[0]=tempAllOldFlag.slice()}function buttonInputBOnclick(){tempOld=oldEQ[1].slice();tempAllOld=allOldEQ[1].slice();tempAllOldFlag=allOldEqFlag[1].slice();oldButtonNo=curButtonNo;curButtonNo=2;upDateButtonStatus();selectButtonOnclick(controlsId.BUTTON_INPUT_B);assignChannelData(constConfig.CURRENT_CHANNGEL_INPUT_B);inputOrOutputModule(true);hideHLPFChannelName();agcExtMap.SetInData(1);lockDisplay.refreshInputLockDisplay();if(currentLockData.nIn_LockData.nIn_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();inputEqBeLocked();DrawLine()}else{showOrHideEqData();inputEqUnlock();DrawLine()}resetButtonCurveStatus();controlsData.buttonStates.buttonCurveStatus[1]=true;assignButtonCurveStatus();setCurPhaseCurveStatus();setPhaseDirectionStatus();updateDeqButton(true);renewCursorHoverStyle();oldEQ[1]=tempOld.slice();allOldEQ[1]=tempAllOld.slice();allOldEqFlag[1]=tempAllOldFlag.slice()}function buttonInputCOnclick(){tempOld=oldEQ[2].slice();tempAllOld=allOldEQ[2].slice();tempAllOldFlag=allOldEqFlag[2].slice();oldButtonNo=curButtonNo;curButtonNo=3;upDateButtonStatus();selectButtonOnclick(controlsId.BUTTON_INPUT_C);assignChannelData(constConfig.CURRENT_CHANNGEL_INPUT_C);inputOrOutputModule(true);hideHLPFChannelName();agcExtMap.SetInData(2);lockDisplay.refreshInputLockDisplay();if(currentLockData.nIn_LockData.nIn_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();inputEqBeLocked();DrawLine()}else{showOrHideEqData();inputEqUnlock();DrawLine()}resetButtonCurveStatus();controlsData.buttonStates.buttonCurveStatus[2]=true;assignButtonCurveStatus();setCurPhaseCurveStatus();setPhaseDirectionStatus();updateDeqButton(true);renewCursorHoverStyle();oldEQ[2]=tempOld.slice();allOldEQ[2]=tempAllOld.slice();allOldEqFlag[2]=tempAllOldFlag.slice()}function buttonInputDOnclick(){tempOld=oldEQ[3].slice();tempAllOld=allOldEQ[3].slice();tempAllOldFlag=allOldEqFlag[3].slice();oldButtonNo=curButtonNo;curButtonNo=4;upDateButtonStatus();selectButtonOnclick(controlsId.BUTTON_INPUT_D);assignChannelData(constConfig.CURRENT_CHANNGEL_INPUT_D);inputOrOutputModule(true);hideHLPFChannelName();agcExtMap.SetInData(3);lockDisplay.refreshInputLockDisplay();if(currentLockData.nIn_LockData.nIn_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();inputEqBeLocked();DrawLine()}else{showOrHideEqData();inputEqUnlock();DrawLine()}resetButtonCurveStatus();controlsData.buttonStates.buttonCurveStatus[3]=true;assignButtonCurveStatus();setCurPhaseCurveStatus();setPhaseDirectionStatus();updateDeqButton(true);renewCursorHoverStyle();oldEQ[3]=tempOld.slice();allOldEQ[3]=tempAllOld.slice();allOldEqFlag[3]=tempAllOldFlag.slice()}function buttonOut1Onclick(){tempOld=oldEQ[4].slice();tempAllOld=allOldEQ[4].slice();tempAllOldFlag=allOldEqFlag[4].slice();oldButtonNo=curButtonNo;curButtonNo=5;upDateButtonStatus();selectButtonOnclick(controlsId.BUTTON_OUT1);assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_1);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(0);lockDisplay.refreshOutLockDisplay();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}resetButtonCurveStatus();controlsData.buttonStates.buttonCurveStatus[4]=true;assignButtonCurveStatus();setCurPhaseCurveStatus();setPhaseOutDirectionStatus();renewCursorHoverStyle();oldEQ[4]=tempOld.slice();allOldEQ[4]=tempAllOld.slice();allOldEqFlag[4]=tempAllOldFlag.slice()}function buttonOut2Onclick(){tempOld=oldEQ[5].slice();tempAllOld=allOldEQ[5].slice();tempAllOldFlag=allOldEqFlag[5].slice();oldButtonNo=curButtonNo;curButtonNo=6;upDateButtonStatus();selectButtonOnclick(controlsId.BUTTON_OUT2);assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_2);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(1);lockDisplay.refreshOutLockDisplay();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}resetButtonCurveStatus();controlsData.buttonStates.buttonCurveStatus[5]=true;assignButtonCurveStatus();setCurPhaseCurveStatus();setPhaseOutDirectionStatus();renewCursorHoverStyle();oldEQ[5]=tempOld.slice();allOldEQ[5]=tempAllOld.slice();allOldEqFlag[5]=tempAllOldFlag.slice()}function buttonOut3Onclick(){tempOld=oldEQ[6].slice();tempAllOld=allOldEQ[6].slice();tempAllOldFlag=allOldEqFlag[6].slice();oldButtonNo=curButtonNo;curButtonNo=7;upDateButtonStatus();selectButtonOnclick(controlsId.BUTTON_OUT3);assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_3);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(2);lockDisplay.refreshOutLockDisplay();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}resetButtonCurveStatus();controlsData.buttonStates.buttonCurveStatus[6]=true;assignButtonCurveStatus();setCurPhaseCurveStatus();setPhaseOutDirectionStatus();renewCursorHoverStyle();oldEQ[6]=tempOld.slice();allOldEQ[6]=tempAllOld.slice();allOldEqFlag[6]=tempAllOldFlag.slice()}function buttonOut4Onclick(){tempOld=oldEQ[7].slice();tempAllOld=allOldEQ[7].slice();tempAllOldFlag=allOldEqFlag[7].slice();oldButtonNo=curButtonNo;curButtonNo=8;upDateButtonStatus();selectButtonOnclick(controlsId.BUTTON_OUT4);assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_4);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(3);lockDisplay.refreshOutLockDisplay();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}resetButtonCurveStatus();controlsData.buttonStates.buttonCurveStatus[7]=true;assignButtonCurveStatus();setCurPhaseCurveStatus();setPhaseOutDirectionStatus();renewCursorHoverStyle();oldEQ[7]=tempOld.slice();allOldEQ[7]=tempAllOld.slice();allOldEqFlag[7]=tempAllOldFlag.slice()}function buttonOut5Onclick(){tempOld=oldEQ[8].slice();tempAllOld=allOldEQ[8].slice();tempAllOldFlag=allOldEqFlag[8].slice();oldButtonNo=curButtonNo;curButtonNo=9;upDateButtonStatus();selectButtonOnclick(controlsId.BUTTON_OUT5);assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_5);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(4);lockDisplay.refreshOutLockDisplay();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}resetButtonCurveStatus();controlsData.buttonStates.buttonCurveStatus[8]=true;assignButtonCurveStatus();setCurPhaseCurveStatus();setPhaseOutDirectionStatus();renewCursorHoverStyle();oldEQ[8]=tempOld.slice();allOldEQ[8]=tempAllOld.slice();allOldEqFlag[8]=tempAllOldFlag.slice()}function buttonOut6Onclick(){tempOld=oldEQ[9].slice();tempAllOld=allOldEQ[9].slice();tempAllOldFlag=allOldEqFlag[9].slice();oldButtonNo=curButtonNo;curButtonNo=10;upDateButtonStatus();selectButtonOnclick(controlsId.BUTTON_OUT6);assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_6);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(5);lockDisplay.refreshOutLockDisplay();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}resetButtonCurveStatus();controlsData.buttonStates.buttonCurveStatus[9]=true;assignButtonCurveStatus();setCurPhaseCurveStatus();setPhaseOutDirectionStatus();renewCursorHoverStyle();oldEQ[9]=tempOld.slice();allOldEQ[9]=tempAllOld.slice();allOldEqFlag[9]=tempAllOldFlag.slice()}function buttonOut7Onclick(){tempOld=oldEQ[10].slice();tempAllOld=allOldEQ[10].slice();tempAllOldFlag=allOldEqFlag[10].slice();oldButtonNo=curButtonNo;curButtonNo=11;upDateButtonStatus();selectButtonOnclick(controlsId.BUTTON_OUT7);assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_7);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(6);lockDisplay.refreshOutLockDisplay();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}resetButtonCurveStatus();controlsData.buttonStates.buttonCurveStatus[10]=true;assignButtonCurveStatus();setCurPhaseCurveStatus();setPhaseOutDirectionStatus();renewCursorHoverStyle();oldEQ[10]=tempOld.slice();allOldEQ[10]=tempAllOld.slice();allOldEqFlag[10]=tempAllOldFlag.slice()}function buttonOut8Onclick(){tempOld=oldEQ[11].slice();tempAllOld=allOldEQ[11].slice();tempAllOldFlag=allOldEqFlag[11].slice();oldButtonNo=curButtonNo;curButtonNo=12;upDateButtonStatus();selectButtonOnclick(controlsId.BUTTON_OUT8);assignChannelData(constConfig.CURRENT_CHANNGEL_OUT_8);inputOrOutputModule(false);showHLPFChannelName();comExtMap.SetOutComp_LimT(7);lockDisplay.refreshOutLockDisplay();if(currentLockData.nOut_LockData.nOut_EQ){svgDrawCurve.setCurrentEqLine(oldButtonNo,curButtonNo);curEqChannel=-1;showOrHideEqData();outputEqBeLock();DrawLine()}else{showOrHideEqData();outPutEqUnlock();DrawLine()}resetButtonCurveStatus();controlsData.buttonStates.buttonCurveStatus[11]=true;assignButtonCurveStatus();setCurPhaseCurveStatus();setPhaseOutDirectionStatus();renewCursorHoverStyle();oldEQ[11]=tempOld.slice();allOldEQ[11]=tempAllOld.slice();allOldEqFlag[11]=tempAllOldFlag.slice()}function upDateButtonStatus(){var buttonId;if(oldButtonNo===1){controlsData.buttonStates.buttonSelectStatus[0]=true;buttonId=document.getElementById("button_input_a");buttonId.setAttribute("class","button_four_states_true");document.getElementById("input_a").style.background="#B2B2B2"}else if(oldButtonNo===2){controlsData.buttonStates.buttonSelectStatus[1]=true;buttonId=document.getElementById("button_input_b");buttonId.setAttribute("class","button_four_states_true");document.getElementById("input_b").style.background="#B2B2B2"}else if(oldButtonNo===3){controlsData.buttonStates.buttonSelectStatus[2]=true;buttonId=document.getElementById("button_input_c");buttonId.setAttribute("class","button_four_states_true");document.getElementById("input_c").style.background="#B2B2B2"}else if(oldButtonNo===4){controlsData.buttonStates.buttonSelectStatus[3]=true;buttonId=document.getElementById("button_input_d");buttonId.setAttribute("class","button_four_states_true");document.getElementById("input_d").style.background="#B2B2B2"}else if(oldButtonNo===5){controlsData.buttonStates.buttonSelectStatus[4]=true;buttonId=document.getElementById("button_out1");buttonId.setAttribute("class","button_four_states_true");document.getElementById("out_1").style.background="#B2B2B2"}else if(oldButtonNo===6){controlsData.buttonStates.buttonSelectStatus[5]=true;buttonId=document.getElementById("button_out2");buttonId.setAttribute("class","button_four_states_true");document.getElementById("out_2").style.background="#B2B2B2"}else if(oldButtonNo===7){controlsData.buttonStates.buttonSelectStatus[6]=true;buttonId=document.getElementById("button_out3");buttonId.setAttribute("class","button_four_states_true");document.getElementById("out_3").style.background="#B2B2B2"}else if(oldButtonNo===8){controlsData.buttonStates.buttonSelectStatus[7]=true;buttonId=document.getElementById("button_out4");buttonId.setAttribute("class","button_four_states_true");document.getElementById("out_4").style.background="#B2B2B2"}else if(oldButtonNo===9){controlsData.buttonStates.buttonSelectStatus[8]=true;buttonId=document.getElementById("button_out5");buttonId.setAttribute("class","button_four_states_true");document.getElementById("out_5").style.background="#B2B2B2"}else if(oldButtonNo===10){controlsData.buttonStates.buttonSelectStatus[9]=true;buttonId=document.getElementById("button_out6");buttonId.setAttribute("class","button_four_states_true");document.getElementById("out_6").style.background="#B2B2B2"}else if(oldButtonNo===11){controlsData.buttonStates.buttonSelectStatus[10]=true;buttonId=document.getElementById("button_out7");buttonId.setAttribute("class","button_four_states_true");document.getElementById("out_7").style.background="#B2B2B2"}else if(oldButtonNo===12){controlsData.buttonStates.buttonSelectStatus[11]=true;buttonId=document.getElementById("button_out8");buttonId.setAttribute("class","button_four_states_true");document.getElementById("out_8").style.background="#B2B2B2"}}function selectButtonOnclick(id){var buttonElement;switch(id){case controlsId.BUTTON_INPUT_A:buttonElement=document.getElementById("button_input_a");if(controlsData.buttonStates.buttonSelectStatus[0]){controlsData.buttonStates.buttonSelectStatus[0]=false;buttonElement.setAttribute("class","button_four_states_false");document.getElementById("input_a").style.background="#ffffff"}else{controlsData.buttonStates.buttonSelectStatus[0]=true;buttonElement.setAttribute("class","button_four_states_true")}break;case controlsId.BUTTON_INPUT_B:buttonElement=document.getElementById("button_input_b");if(controlsData.buttonStates.buttonSelectStatus[1]){controlsData.buttonStates.buttonSelectStatus[1]=false;buttonElement.setAttribute("class","button_four_states_false");document.getElementById("input_b").style.background="#ffffff"}else{controlsData.buttonStates.buttonSelectStatus[1]=true;buttonElement.setAttribute("class","button_four_states_true")}break;case controlsId.BUTTON_INPUT_C:buttonElement=document.getElementById("button_input_c");if(controlsData.buttonStates.buttonSelectStatus[2]){controlsData.buttonStates.buttonSelectStatus[2]=false;buttonElement.setAttribute("class","button_four_states_false");document.getElementById("input_c").style.background="#ffffff"}else{controlsData.buttonStates.buttonSelectStatus[2]=true;buttonElement.setAttribute("class","button_four_states_true")}break;case controlsId.BUTTON_INPUT_D:buttonElement=document.getElementById("button_input_d");if(controlsData.buttonStates.buttonSelectStatus[3]){controlsData.buttonStates.buttonSelectStatus[3]=false;buttonElement.setAttribute("class","button_four_states_false");document.getElementById("input_d").style.background="#ffffff"}else{controlsData.buttonStates.buttonSelectStatus[3]=true;buttonElement.setAttribute("class","button_four_states_true")}break;case controlsId.BUTTON_OUT1:buttonElement=document.getElementById("button_out1");if(controlsData.buttonStates.buttonSelectStatus[4]){controlsData.buttonStates.buttonSelectStatus[4]=false;buttonElement.setAttribute("class","button_four_states_false");document.getElementById("out_1").style.background="#ffffff"}else{controlsData.buttonStates.buttonSelectStatus[4]=true;buttonElement.setAttribute("class","button_four_states_true")}break;case controlsId.BUTTON_OUT2:buttonElement=document.getElementById("button_out2");if(controlsData.buttonStates.buttonSelectStatus[5]){controlsData.buttonStates.buttonSelectStatus[5]=false;buttonElement.setAttribute("class","button_four_states_false");document.getElementById("out_2").style.background="#ffffff"}else{controlsData.buttonStates.buttonSelectStatus[5]=true;buttonElement.setAttribute("class","button_four_states_true")}break;case controlsId.BUTTON_OUT3:buttonElement=document.getElementById("button_out3");if(controlsData.buttonStates.buttonSelectStatus[6]){controlsData.buttonStates.buttonSelectStatus[6]=false;buttonElement.setAttribute("class","button_four_states_false");document.getElementById("out_3").style.background="#ffffff"}else{controlsData.buttonStates.buttonSelectStatus[6]=true;buttonElement.setAttribute("class","button_four_states_true")}break;case controlsId.BUTTON_OUT4:buttonElement=document.getElementById("button_out4");if(controlsData.buttonStates.buttonSelectStatus[7]){controlsData.buttonStates.buttonSelectStatus[7]=false;buttonElement.setAttribute("class","button_four_states_false");document.getElementById("out_4").style.background="#ffffff"}else{controlsData.buttonStates.buttonSelectStatus[7]=true;buttonElement.setAttribute("class","button_four_states_true")}break;case controlsId.BUTTON_OUT5:buttonElement=document.getElementById("button_out5");if(controlsData.buttonStates.buttonSelectStatus[8]){controlsData.buttonStates.buttonSelectStatus[8]=false;buttonElement.setAttribute("class","button_four_states_false");document.getElementById("out_5").style.background="#ffffff"}else{controlsData.buttonStates.buttonSelectStatus[8]=true;buttonElement.setAttribute("class","button_four_states_true")}break;case controlsId.BUTTON_OUT6:buttonElement=document.getElementById("button_out6");if(controlsData.buttonStates.buttonSelectStatus[9]){controlsData.buttonStates.buttonSelectStatus[9]=false;buttonElement.setAttribute("class","button_four_states_false");document.getElementById("out_6").style.background="#ffffff"}else{controlsData.buttonStates.buttonSelectStatus[9]=true;buttonElement.setAttribute("class","button_four_states_true")}break;case controlsId.BUTTON_OUT7:buttonElement=document.getElementById("button_out7");if(controlsData.buttonStates.buttonSelectStatus[10]){controlsData.buttonStates.buttonSelectStatus[10]=false;buttonElement.setAttribute("class","button_four_states_false");document.getElementById("out_7").style.background="#ffffff"}else{controlsData.buttonStates.buttonSelectStatus[10]=true;buttonElement.setAttribute("class","button_four_states_true")}break;case controlsId.BUTTON_OUT8:buttonElement=document.getElementById("button_out8");if(controlsData.buttonStates.buttonSelectStatus[11]){controlsData.buttonStates.buttonSelectStatus[11]=false;buttonElement.setAttribute("class","button_four_states_false");document.getElementById("out_8").style.background="#ffffff"}else{controlsData.buttonStates.buttonSelectStatus[11]=true;buttonElement.setAttribute("class","button_four_states_true")}break}}function buttonSourceOut1AOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT1_A)}function buttonSourceOut1BOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT1_B)}function buttonSourceOut1COnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT1_C)}function buttonSourceOut1DOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT1_D)}function buttonSourceOut2AOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT2_A)}function buttonSourceOut2BOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT2_B)}function buttonSourceOut2COnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT2_C)}function buttonSourceOut2DOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT2_D)}function buttonSourceOut3AOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT3_A)}function buttonSourceOut3BOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT3_B)}function buttonSourceOut3COnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT3_C)}function buttonSourceOut3DOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT3_D)}function buttonSourceOut4AOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT4_A)}function buttonSourceOut4BOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT4_B)}function buttonSourceOut4COnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT4_C)}function buttonSourceOut4DOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT4_D)}function buttonSourceOut5AOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT5_A)}function buttonSourceOut5BOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT5_B)}function buttonSourceOut5COnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT5_C)}function buttonSourceOut5DOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT5_D)}function buttonSourceOut6AOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT6_A)}function buttonSourceOut6BOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT6_B)}function buttonSourceOut6COnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT6_C)}function buttonSourceOut6DOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT6_D)}function buttonSourceOut7AOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT7_A)}function buttonSourceOut7BOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT7_B)}function buttonSourceOut7COnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT7_C)}function buttonSourceOut7DOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT7_D)}function buttonSourceOut8AOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT8_A)}function buttonSourceOut8BOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT8_B)}function buttonSourceOut8COnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT8_C)}function buttonSourceOut8DOnclick(){buttonSourceOnclick(controlsId.BUTTON_OUT8_D)}function buttonSourceOnclick(id){var buttonElement;switch(id){case controlsId.BUTTON_OUT1_A:buttonElement=document.getElementById("button_out1_a");if(controlsData.buttonStates.buttonSourceStatus[0][0]){controlsData.buttonStates.buttonSourceStatus[0][0]=false;currentGroupData.dataOut1.sourceA=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[0][0]=true;currentGroupData.dataOut1.sourceA=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT1_B:buttonElement=document.getElementById("button_out1_b");if(controlsData.buttonStates.buttonSourceStatus[0][1]){controlsData.buttonStates.buttonSourceStatus[0][1]=false;currentGroupData.dataOut1.sourceB=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[0][1]=true;currentGroupData.dataOut1.sourceB=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT1_C:buttonElement=document.getElementById("button_out1_c");if(controlsData.buttonStates.buttonSourceStatus[0][2]){controlsData.buttonStates.buttonSourceStatus[0][2]=false;currentGroupData.dataOut1.sourceC=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[0][2]=true;currentGroupData.dataOut1.sourceC=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT1_D:buttonElement=document.getElementById("button_out1_d");if(controlsData.buttonStates.buttonSourceStatus[0][3]){controlsData.buttonStates.buttonSourceStatus[0][3]=false;currentGroupData.dataOut1.sourceD=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[0][3]=true;currentGroupData.dataOut1.sourceD=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT2_A:buttonElement=document.getElementById("button_out2_a");if(controlsData.buttonStates.buttonSourceStatus[1][0]){controlsData.buttonStates.buttonSourceStatus[1][0]=false;currentGroupData.dataOut2.sourceA=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[1][0]=true;currentGroupData.dataOut2.sourceA=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT2_B:buttonElement=document.getElementById("button_out2_b");if(controlsData.buttonStates.buttonSourceStatus[1][1]){controlsData.buttonStates.buttonSourceStatus[1][1]=false;currentGroupData.dataOut2.sourceB=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[1][1]=true;currentGroupData.dataOut2.sourceB=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT2_C:buttonElement=document.getElementById("button_out2_c");if(controlsData.buttonStates.buttonSourceStatus[1][2]){controlsData.buttonStates.buttonSourceStatus[1][2]=false;currentGroupData.dataOut2.sourceC=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[1][2]=true;currentGroupData.dataOut2.sourceC=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT2_D:buttonElement=document.getElementById("button_out2_d");if(controlsData.buttonStates.buttonSourceStatus[1][3]){controlsData.buttonStates.buttonSourceStatus[1][3]=false;currentGroupData.dataOut2.sourceD=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[1][3]=true;currentGroupData.dataOut2.sourceD=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT3_A:buttonElement=document.getElementById("button_out3_a");if(controlsData.buttonStates.buttonSourceStatus[2][0]){controlsData.buttonStates.buttonSourceStatus[2][0]=false;currentGroupData.dataOut3.sourceA=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[2][0]=true;currentGroupData.dataOut3.sourceA=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT3_B:buttonElement=document.getElementById("button_out3_b");if(controlsData.buttonStates.buttonSourceStatus[2][1]){controlsData.buttonStates.buttonSourceStatus[2][1]=false;currentGroupData.dataOut3.sourceB=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[2][1]=true;currentGroupData.dataOut3.sourceB=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT3_C:buttonElement=document.getElementById("button_out3_c");if(controlsData.buttonStates.buttonSourceStatus[2][2]){controlsData.buttonStates.buttonSourceStatus[2][2]=false;currentGroupData.dataOut3.sourceC=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[2][2]=true;currentGroupData.dataOut3.sourceC=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT3_D:buttonElement=document.getElementById("button_out3_d");if(controlsData.buttonStates.buttonSourceStatus[2][3]){controlsData.buttonStates.buttonSourceStatus[2][3]=false;currentGroupData.dataOut3.sourceD=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[2][3]=true;currentGroupData.dataOut3.sourceD=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT4_A:buttonElement=document.getElementById("button_out4_a");if(controlsData.buttonStates.buttonSourceStatus[3][0]){controlsData.buttonStates.buttonSourceStatus[3][0]=false;currentGroupData.dataOut4.sourceA=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[3][0]=true;currentGroupData.dataOut4.sourceA=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT4_B:buttonElement=document.getElementById("button_out4_b");if(controlsData.buttonStates.buttonSourceStatus[3][1]){controlsData.buttonStates.buttonSourceStatus[3][1]=false;currentGroupData.dataOut4.sourceB=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[3][1]=true;currentGroupData.dataOut4.sourceB=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT4_C:buttonElement=document.getElementById("button_out4_c");if(controlsData.buttonStates.buttonSourceStatus[3][2]){controlsData.buttonStates.buttonSourceStatus[3][2]=false;currentGroupData.dataOut4.sourceC=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[3][2]=true;currentGroupData.dataOut4.sourceC=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT4_D:buttonElement=document.getElementById("button_out4_d");if(controlsData.buttonStates.buttonSourceStatus[3][3]){controlsData.buttonStates.buttonSourceStatus[3][3]=false;currentGroupData.dataOut4.sourceD=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[3][3]=true;currentGroupData.dataOut4.sourceD=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT5_A:buttonElement=document.getElementById("button_out5_a");if(controlsData.buttonStates.buttonSourceStatus[4][0]){controlsData.buttonStates.buttonSourceStatus[4][0]=false;currentGroupData.dataOut5.sourceA=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[4][0]=true;currentGroupData.dataOut5.sourceA=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT5_B:buttonElement=document.getElementById("button_out5_b");if(controlsData.buttonStates.buttonSourceStatus[4][1]){controlsData.buttonStates.buttonSourceStatus[4][1]=false;currentGroupData.dataOut5.sourceB=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[4][1]=true;currentGroupData.dataOut5.sourceB=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT5_C:buttonElement=document.getElementById("button_out5_c");if(controlsData.buttonStates.buttonSourceStatus[4][2]){controlsData.buttonStates.buttonSourceStatus[4][2]=false;currentGroupData.dataOut5.sourceC=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[4][2]=true;currentGroupData.dataOut5.sourceC=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT5_D:buttonElement=document.getElementById("button_out5_d");if(controlsData.buttonStates.buttonSourceStatus[4][3]){controlsData.buttonStates.buttonSourceStatus[4][3]=false;currentGroupData.dataOut5.sourceD=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[4][3]=true;currentGroupData.dataOut5.sourceD=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT6_A:buttonElement=document.getElementById("button_out6_a");if(controlsData.buttonStates.buttonSourceStatus[5][0]){controlsData.buttonStates.buttonSourceStatus[5][0]=false;currentGroupData.dataOut6.sourceA=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[5][0]=true;currentGroupData.dataOut6.sourceA=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT6_B:buttonElement=document.getElementById("button_out6_b");if(controlsData.buttonStates.buttonSourceStatus[5][1]){controlsData.buttonStates.buttonSourceStatus[5][1]=false;currentGroupData.dataOut6.sourceB=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[5][1]=true;currentGroupData.dataOut6.sourceB=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT6_C:buttonElement=document.getElementById("button_out6_c");if(controlsData.buttonStates.buttonSourceStatus[5][2]){controlsData.buttonStates.buttonSourceStatus[5][2]=false;currentGroupData.dataOut6.sourceC=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[5][2]=true;currentGroupData.dataOut6.sourceC=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT6_D:buttonElement=document.getElementById("button_out6_d");if(controlsData.buttonStates.buttonSourceStatus[5][3]){controlsData.buttonStates.buttonSourceStatus[5][3]=false;currentGroupData.dataOut6.sourceD=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[5][3]=true;currentGroupData.dataOut6.sourceD=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT7_A:buttonElement=document.getElementById("button_out7_a");if(controlsData.buttonStates.buttonSourceStatus[6][0]){controlsData.buttonStates.buttonSourceStatus[6][0]=false;currentGroupData.dataOut7.sourceA=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[6][0]=true;currentGroupData.dataOut7.sourceA=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT7_B:buttonElement=document.getElementById("button_out7_b");if(controlsData.buttonStates.buttonSourceStatus[6][1]){controlsData.buttonStates.buttonSourceStatus[6][1]=false;currentGroupData.dataOut7.sourceB=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[6][1]=true;currentGroupData.dataOut7.sourceB=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT7_C:buttonElement=document.getElementById("button_out7_c");if(controlsData.buttonStates.buttonSourceStatus[6][2]){controlsData.buttonStates.buttonSourceStatus[6][2]=false;currentGroupData.dataOut7.sourceC=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[6][2]=true;currentGroupData.dataOut7.sourceC=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT7_D:buttonElement=document.getElementById("button_out7_d");if(controlsData.buttonStates.buttonSourceStatus[6][3]){controlsData.buttonStates.buttonSourceStatus[6][3]=false;currentGroupData.dataOut7.sourceD=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[6][3]=true;currentGroupData.dataOut7.sourceD=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT8_A:buttonElement=document.getElementById("button_out8_a");if(controlsData.buttonStates.buttonSourceStatus[7][0]){controlsData.buttonStates.buttonSourceStatus[7][0]=false;currentGroupData.dataOut8.sourceA=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[7][0]=true;currentGroupData.dataOut8.sourceA=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT8_B:buttonElement=document.getElementById("button_out8_b");if(controlsData.buttonStates.buttonSourceStatus[7][1]){controlsData.buttonStates.buttonSourceStatus[7][1]=false;currentGroupData.dataOut8.sourceB=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[7][1]=true;currentGroupData.dataOut8.sourceB=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT8_C:buttonElement=document.getElementById("button_out8_c");if(controlsData.buttonStates.buttonSourceStatus[7][2]){controlsData.buttonStates.buttonSourceStatus[7][2]=false;currentGroupData.dataOut8.sourceC=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[7][2]=true;currentGroupData.dataOut8.sourceC=true;buttonElement.setAttribute("class","button_six_states_true")}break;case controlsId.BUTTON_OUT8_D:buttonElement=document.getElementById("button_out8_d");if(controlsData.buttonStates.buttonSourceStatus[7][3]){controlsData.buttonStates.buttonSourceStatus[7][3]=false;currentGroupData.dataOut8.sourceD=false;buttonElement.setAttribute("class","button_six_states_false")}else{controlsData.buttonStates.buttonSourceStatus[7][3]=true;currentGroupData.dataOut8.sourceD=true;buttonElement.setAttribute("class","button_six_states_true")}break;default:break}}function buttonSpeakerAOnclick(){buttonSpeakerOnclick(controlsId.BUTTON_SPEAKER_A)}function buttonSpeakerBOnclick(){buttonSpeakerOnclick(controlsId.BUTTON_SPEAKER_B)}function buttonSpeakerCOnclick(){buttonSpeakerOnclick(controlsId.BUTTON_SPEAKER_C)}function buttonSpeakerDOnclick(){buttonSpeakerOnclick(controlsId.BUTTON_SPEAKER_D)}function buttonSpeakerOut1Onclick(){buttonSpeakerOnclick(controlsId.BUTTON_SPEAKER_OUT1)}function buttonSpeakerOut2Onclick(){buttonSpeakerOnclick(controlsId.BUTTON_SPEAKER_OUT2)}function buttonSpeakerOut3Onclick(){buttonSpeakerOnclick(controlsId.BUTTON_SPEAKER_OUT3)}function buttonSpeakerOut4Onclick(){buttonSpeakerOnclick(controlsId.BUTTON_SPEAKER_OUT4)}function buttonSpeakerOut5Onclick(){buttonSpeakerOnclick(controlsId.BUTTON_SPEAKER_OUT5)}function buttonSpeakerOut6Onclick(){buttonSpeakerOnclick(controlsId.BUTTON_SPEAKER_OUT6)}function buttonSpeakerOut7Onclick(){buttonSpeakerOnclick(controlsId.BUTTON_SPEAKER_OUT7)}function buttonSpeakerOut8Onclick(){buttonSpeakerOnclick(controlsId.BUTTON_SPEAKER_OUT8)}function buttonSpeakerOnclick(id){var buttonElement,speakerSpan1,speakerSpan2;var isTrue=false;switch(id){case controlsId.BUTTON_SPEAKER_A:buttonElement=document.getElementById("button_speaker_a");speakerSpan1=document.getElementById("speakerIn1Span1");speakerSpan2=document.getElementById("speakerIn1Span2");if(controlsData.buttonStates.buttonSpeakerStatus[0]){controlsData.buttonStates.buttonSpeakerStatus[0]=false;isTrue=false}else{controlsData.buttonStates.buttonSpeakerStatus[0]=true;isTrue=true}currentGroupData.dataInputA.mute=isTrue?1:0;break;case controlsId.BUTTON_SPEAKER_B:buttonElement=document.getElementById("button_speaker_b");speakerSpan1=document.getElementById("speakerIn2Span1");speakerSpan2=document.getElementById("speakerIn2Span2");if(controlsData.buttonStates.buttonSpeakerStatus[1]){controlsData.buttonStates.buttonSpeakerStatus[1]=false;isTrue=false}else{controlsData.buttonStates.buttonSpeakerStatus[1]=true;isTrue=true}currentGroupData.dataInputB.mute=isTrue?1:0;break;case controlsId.BUTTON_SPEAKER_C:buttonElement=document.getElementById("button_speaker_c");speakerSpan1=document.getElementById("speakerIn3Span1");speakerSpan2=document.getElementById("speakerIn3Span2");if(controlsData.buttonStates.buttonSpeakerStatus[2]){controlsData.buttonStates.buttonSpeakerStatus[2]=false;isTrue=false}else{controlsData.buttonStates.buttonSpeakerStatus[2]=true;isTrue=true}currentGroupData.dataInputC.mute=isTrue?1:0;break;case controlsId.BUTTON_SPEAKER_D:buttonElement=document.getElementById("button_speaker_d");speakerSpan1=document.getElementById("speakerIn4Span1");speakerSpan2=document.getElementById("speakerIn4Span2");if(controlsData.buttonStates.buttonSpeakerStatus[3]){controlsData.buttonStates.buttonSpeakerStatus[3]=false;isTrue=false}else{controlsData.buttonStates.buttonSpeakerStatus[3]=true;isTrue=true}currentGroupData.dataInputD.mute=isTrue?1:0;break;case controlsId.BUTTON_SPEAKER_OUT1:buttonElement=document.getElementById("button_speaker_out1");speakerSpan1=document.getElementById("speakerOut1Span1");speakerSpan2=document.getElementById("speakerOut1Span2");if(controlsData.buttonStates.buttonSpeakerStatus[4]){controlsData.buttonStates.buttonSpeakerStatus[4]=false;isTrue=false}else{controlsData.buttonStates.buttonSpeakerStatus[4]=true;isTrue=true}currentGroupData.dataOut1.mute=isTrue?1:0;break;case controlsId.BUTTON_SPEAKER_OUT2:buttonElement=document.getElementById("button_speaker_out2");speakerSpan1=document.getElementById("speakerOut2Span1");speakerSpan2=document.getElementById("speakerOut2Span2");if(controlsData.buttonStates.buttonSpeakerStatus[5]){controlsData.buttonStates.buttonSpeakerStatus[5]=false;isTrue=false}else{controlsData.buttonStates.buttonSpeakerStatus[5]=true;isTrue=true}currentGroupData.dataOut2.mute=isTrue?1:0;break;case controlsId.BUTTON_SPEAKER_OUT3:buttonElement=document.getElementById("button_speaker_out3");speakerSpan1=document.getElementById("speakerOut3Span1");speakerSpan2=document.getElementById("speakerOut3Span2");if(controlsData.buttonStates.buttonSpeakerStatus[6]){controlsData.buttonStates.buttonSpeakerStatus[6]=false;isTrue=false}else{controlsData.buttonStates.buttonSpeakerStatus[6]=true;isTrue=true}currentGroupData.dataOut3.mute=isTrue?1:0;break;case controlsId.BUTTON_SPEAKER_OUT4:buttonElement=document.getElementById("button_speaker_out4");speakerSpan1=document.getElementById("speakerOut4Span1");speakerSpan2=document.getElementById("speakerOut4Span2");if(controlsData.buttonStates.buttonSpeakerStatus[7]){controlsData.buttonStates.buttonSpeakerStatus[7]=false;isTrue=false}else{controlsData.buttonStates.buttonSpeakerStatus[7]=true;isTrue=true}currentGroupData.dataOut4.mute=isTrue?1:0;break;case controlsId.BUTTON_SPEAKER_OUT5:buttonElement=document.getElementById("button_speaker_out5");speakerSpan1=document.getElementById("speakerOut5Span1");speakerSpan2=document.getElementById("speakerOut5Span2");if(controlsData.buttonStates.buttonSpeakerStatus[8]){controlsData.buttonStates.buttonSpeakerStatus[8]=false;isTrue=false}else{controlsData.buttonStates.buttonSpeakerStatus[8]=true;isTrue=true}currentGroupData.dataOut5.mute=isTrue?1:0;break;case controlsId.BUTTON_SPEAKER_OUT6:buttonElement=document.getElementById("button_speaker_out6");speakerSpan1=document.getElementById("speakerOut6Span1");speakerSpan2=document.getElementById("speakerOut6Span2");if(controlsData.buttonStates.buttonSpeakerStatus[9]){controlsData.buttonStates.buttonSpeakerStatus[9]=false;isTrue=false}else{controlsData.buttonStates.buttonSpeakerStatus[9]=true;isTrue=true}currentGroupData.dataOut6.mute=isTrue?1:0;break;case controlsId.BUTTON_SPEAKER_OUT7:buttonElement=document.getElementById("button_speaker_out7");speakerSpan1=document.getElementById("speakerOut7Span1");speakerSpan2=document.getElementById("speakerOut7Span2");if(controlsData.buttonStates.buttonSpeakerStatus[10]){controlsData.buttonStates.buttonSpeakerStatus[10]=false;isTrue=false}else{controlsData.buttonStates.buttonSpeakerStatus[10]=true;isTrue=true}currentGroupData.dataOut7.mute=isTrue?1:0;break;case controlsId.BUTTON_SPEAKER_OUT8:buttonElement=document.getElementById("button_speaker_out8");speakerSpan1=document.getElementById("speakerOut8Span1");speakerSpan2=document.getElementById("speakerOut8Span2");if(controlsData.buttonStates.buttonSpeakerStatus[11]){controlsData.buttonStates.buttonSpeakerStatus[11]=false;isTrue=false}else{controlsData.buttonStates.buttonSpeakerStatus[11]=true;isTrue=true}currentGroupData.dataOut8.mute=isTrue?1:0;break;default:break}if(isTrue){buttonElement.setAttribute("class","button_speaker_true");speakerSpan1.setAttribute("class","speakingSpan1");speakerSpan2.setAttribute("class","speakingSpan2")}else{buttonElement.setAttribute("class","button_speaker_false");speakerSpan1.setAttribute("class","muteSpan1");speakerSpan2.setAttribute("class","muteSpan2")}}function buttonCurveAOnclick(){buttonCurveOnclick(controlsId.BUTTON_CURVE_A)}function buttonCurveBOnclick(){buttonCurveOnclick(controlsId.BUTTON_CURVE_B)}function buttonCurveCOnclick(){buttonCurveOnclick(controlsId.BUTTON_CURVE_C)}function buttonCurveDOnclick(){buttonCurveOnclick(controlsId.BUTTON_CURVE_D)}function buttonCurveOut1Onclick(){buttonCurveOnclick(controlsId.BUTTON_CURVE_OUT1)}function buttonCurveOut2Onclick(){buttonCurveOnclick(controlsId.BUTTON_CURVE_OUT2)}function buttonCurveOut3Onclick(){buttonCurveOnclick(controlsId.BUTTON_CURVE_OUT3)}function buttonCurveOut4Onclick(){buttonCurveOnclick(controlsId.BUTTON_CURVE_OUT4)}function buttonCurveOut5Onclick(){buttonCurveOnclick(controlsId.BUTTON_CURVE_OUT5)}function buttonCurveOut6Onclick(){buttonCurveOnclick(controlsId.BUTTON_CURVE_OUT6)}function buttonCurveOut7Onclick(){buttonCurveOnclick(controlsId.BUTTON_CURVE_OUT7)}function buttonCurveOut8Onclick(){buttonCurveOnclick(controlsId.BUTTON_CURVE_OUT8)}function resetCurveButtonStatus(){var i;for(i=0;i2){buttonEqOnclickAllPass(controlsId.BUTTON_EQ1)}else{buttonEqOnclick(controlsId.BUTTON_EQ1)}curEqChannel=1;showOrHideEqData()}function buttonEq2Onclick(){if(eqData.EQ2.type>2){buttonEqOnclickAllPass(controlsId.BUTTON_EQ2)}else{buttonEqOnclick(controlsId.BUTTON_EQ2)}curEqChannel=2;showOrHideEqData()}function buttonEq3Onclick(){if(eqData.EQ3.type>2){buttonEqOnclickAllPass(controlsId.BUTTON_EQ3)}else{buttonEqOnclick(controlsId.BUTTON_EQ3)}curEqChannel=3;showOrHideEqData()}function buttonEq4Onclick(){if(eqData.EQ4.type>2){buttonEqOnclickAllPass(controlsId.BUTTON_EQ4)}else{buttonEqOnclick(controlsId.BUTTON_EQ4)}curEqChannel=4;showOrHideEqData()}function buttonEq5Onclick(){if(eqData.EQ5.type>2){buttonEqOnclickAllPass(controlsId.BUTTON_EQ5)}else{buttonEqOnclick(controlsId.BUTTON_EQ5)}curEqChannel=5;showOrHideEqData()}function buttonEq6Onclick(){if(eqData.EQ6.type>2){buttonEqOnclickAllPass(controlsId.BUTTON_EQ6)}else{buttonEqOnclick(controlsId.BUTTON_EQ6)}curEqChannel=6;showOrHideEqData()}function updateAllEqGainButton(channel){var counts=0,buttonElement;if(02){if(GET_4L_BYTE(eq.HL_db_AP_Flag)){controlsData.buttonStates.buttonEqStatus[channel]=false;buttonElement.setAttribute("class","button_eq_false");return false}else{controlsData.buttonStates.buttonEqStatus[channel]=true;buttonElement.setAttribute("class","button_eq_true");return true}}else{if(textElement.value==="0.0"){controlsData.buttonStates.buttonEqStatus[channel]=false;buttonElement.setAttribute("class","button_eq_false");return false}else{controlsData.buttonStates.buttonEqStatus[channel]=true;buttonElement.setAttribute("class","button_eq_true");return true}}}var allOldEQ=[[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200]];var allOldEqFlag=[[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1]];var oldEQ=[[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200]];var oldEqFlag=[[0,0,0,0,0,0],[0,0,0,0,0,0],[0,0,0,0,0,0],[0,0,0,0,0,0],[0,0,0,0,0,0],[0,0,0,0,0,0],[0,0,0,0,0,0],[0,0,0,0,0,0],[0,0,0,0,0,0],[0,0,0,0,0,0],[0,0,0,0,0,0],[0,0,0,0,0,0]];function clearOldEQ(){allOldEQ=[[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200]];oldEQ=[[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200],[200,200,200,200,200,200]]}function buttonEqOnclick(id){var buttonElement;var tempEqValue;var channel;switch(id){case controlsId.BUTTON_EQ:channel=100;buttonElement=document.getElementById("button_eq");if(controlsData.buttonStates.buttonEqStatus[0]){controlsData.buttonStates.buttonEqStatus[0]=false;buttonElement.setAttribute("class","button_eq_false");if(eqData.EQ1.level!==200){oldEQ[curButtonNo-1][0]=eqData.EQ1.level;keepLinkEqButtonGain(curButtonNo,0,eqData.EQ1.level)}if(eqData.EQ2.level!==200){oldEQ[curButtonNo-1][1]=eqData.EQ2.level;keepLinkEqButtonGain(curButtonNo,1,eqData.EQ2.level)}if(eqData.EQ3.level!==200){oldEQ[curButtonNo-1][2]=eqData.EQ3.level;keepLinkEqButtonGain(curButtonNo,2,eqData.EQ3.level)}if(eqData.EQ4.level!==200){oldEQ[curButtonNo-1][3]=eqData.EQ4.level;keepLinkEqButtonGain(curButtonNo,3,eqData.EQ4.level)}if(eqData.EQ5.level!==200){oldEQ[curButtonNo-1][4]=eqData.EQ5.level;keepLinkEqButtonGain(curButtonNo,4,eqData.EQ5.level)}if(eqData.EQ6.level!==200){oldEQ[curButtonNo-1][5]=eqData.EQ6.level;keepLinkEqButtonGain(curButtonNo,5,eqData.EQ6.level)}if(eqData.EQ1.type>2){allOldEqFlag[curButtonNo-1][0]=GET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag)?1:0;keepLinkAllEqButtonFlag(curButtonNo,0,allOldEqFlag[curButtonNo-1][0]);eqData.EQ1.HL_db_AP_Flag=SET_4L_BYTE(eqData.EQ1.HL_db_AP_Flag,1);keepLinkEq1Button(curButtonNo,1)}else{allOldEQ[curButtonNo-1][0]=eqData.EQ1.level;keepLinkAllEqButtonGain(curButtonNo,0,eqData.EQ1.level);eqData.EQ1.level=200;document.getElementById("text_eq1_gain").value=getEqGainDisplay(200);setSliderPosition(controlsId.SLIDER_EQ1_THUMP,200);keepLinkEq1Button(curButtonNo,200)}if(eqData.EQ2.type>2){allOldEqFlag[curButtonNo-1][1]=GET_4L_BYTE(eqData.EQ2.HL_db_AP_Flag)?1:0;keepLinkAllEqButtonFlag(curButtonNo,1,allOldEqFlag[curButtonNo-1][1]);eqData.EQ2.HL_db_AP_Flag=SET_4L_BYTE(eqData.EQ2.HL_db_AP_Flag,1);keepLinkEq2Button(curButtonNo,1)}else{allOldEQ[curButtonNo-1][1]=eqData.EQ2.level;keepLinkAllEqButtonGain(curButtonNo,1,eqData.EQ2.level);eqData.EQ2.level=200;document.getElementById("text_eq2_gain").value=getEqGainDisplay(200);setSliderPosition(controlsId.SLIDER_EQ2_THUMP,200);keepLinkEq2Button(curButtonNo,200)}if(eqData.EQ3.type>2){allOldEqFlag[curButtonNo-1][2]=GET_4L_BYTE(eqData.EQ3.HL_db_AP_Flag)?1:0;keepLinkAllEqButtonFlag(curButtonNo,2,allOldEqFlag[curButtonNo-1][2]);eqData.EQ3.HL_db_AP_Flag=SET_4L_BYTE(eqData.EQ3.HL_db_AP_Flag,1);keepLinkEq3Button(curButtonNo,1)}else{allOldEQ[curButtonNo-1][2]=eqData.EQ3.level;keepLinkAllEqButtonGain(curButtonNo,2,eqData.EQ3.level);eqData.EQ3.level=200;document.getElementById("text_eq3_gain").value=getEqGainDisplay(200);setSliderPosition(controlsId.SLIDER_EQ3_THUMP,200);keepLinkEq3Button(curButtonNo,200)}if(eqData.EQ4.type>2){allOldEqFlag[curButtonNo-1][3]=GET_4L_BYTE(eqData.EQ4.HL_db_AP_Flag)?1:0;keepLinkAllEqButtonFlag(curButtonNo,3,allOldEqFlag[curButtonNo-1][3]);eqData.EQ4.HL_db_AP_Flag=SET_4L_BYTE(eqData.EQ4.HL_db_AP_Flag,1);keepLinkEq4Button(curButtonNo,1)}else{allOldEQ[curButtonNo-1][3]=eqData.EQ4.level;keepLinkAllEqButtonGain(curButtonNo,3,eqData.EQ4.level);eqData.EQ4.level=200;document.getElementById("text_eq4_gain").value=getEqGainDisplay(200);setSliderPosition(controlsId.SLIDER_EQ4_THUMP,200);keepLinkEq4Button(curButtonNo,200)}if(eqData.EQ5.type>2){allOldEqFlag[curButtonNo-1][4]=GET_4L_BYTE(eqData.EQ5.HL_db_AP_Flag)?1:0;keepLinkAllEqButtonFlag(curButtonNo,4,allOldEqFlag[curButtonNo-1][4]);eqData.EQ5.HL_db_AP_Flag=SET_4L_BYTE(eqData.EQ5.HL_db_AP_Flag,1);keepLinkEq5Button(curButtonNo,1)}else{allOldEQ[curButtonNo-1][4]=eqData.EQ5.level;keepLinkAllEqButtonGain(curButtonNo,4,eqData.EQ5.level);eqData.EQ5.level=200;document.getElementById("text_eq5_gain").value=getEqGainDisplay(200);setSliderPosition(controlsId.SLIDER_EQ5_THUMP,200);keepLinkEq5Button(curButtonNo,200)}if(eqData.EQ6.type>2){allOldEqFlag[curButtonNo-1][5]=GET_4L_BYTE(eqData.EQ6.HL_db_AP_Flag)?1:0;keepLinkAllEqButtonFlag(curButtonNo,5,allOldEqFlag[curButtonNo-1][5]);eqData.EQ6.HL_db_AP_Flag=SET_4L_BYTE(eqData.EQ6.HL_db_AP_Flag,1);keepLinkEq6Button(curButtonNo,1)}else{allOldEQ[curButtonNo-1][5]=eqData.EQ6.level;keepLinkAllEqButtonGain(curButtonNo,5,eqData.EQ6.level);eqData.EQ6.level=200;document.getElementById("text_eq6_gain").value=getEqGainDisplay(200);setSliderPosition(controlsId.SLIDER_EQ6_THUMP,200);keepLinkEq6Button(curButtonNo,200)}}else{controlsData.buttonStates.buttonEqStatus[0]=true;buttonElement.setAttribute("class","button_eq_true");if(eqData.EQ1.type>2){eqData.EQ1.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ1.HL_db_AP_Flag),allOldEqFlag[curButtonNo-1][0]);keepLinkEq1Button(curButtonNo,allOldEqFlag[curButtonNo-1][0]);allOldEqFlag[curButtonNo-1][0]=1;keepLinkAllEqButtonFlag(curButtonNo,0,1)}else{if(allOldEQ[curButtonNo-1][0]===200){}else{eqData.EQ1.level=allOldEQ[curButtonNo-1][0];document.getElementById("text_eq1_gain").value=getEqGainDisplay(allOldEQ[curButtonNo-1][0]);setSliderPosition(controlsId.SLIDER_EQ1_THUMP,allOldEQ[curButtonNo-1][0]);keepLinkEq1Button(curButtonNo,allOldEQ[curButtonNo-1][0]);allOldEQ[curButtonNo-1][0]=200;keepLinkAllEqButtonGain(curButtonNo,0,200)}}if(eqData.EQ2.type>2){eqData.EQ2.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ2.HL_db_AP_Flag),allOldEqFlag[curButtonNo-1][1]);keepLinkEq2Button(curButtonNo,allOldEqFlag[curButtonNo-1][1]);allOldEqFlag[curButtonNo-1][1]=1;keepLinkAllEqButtonFlag(curButtonNo,1,1)}else{if(allOldEQ[curButtonNo-1][1]===200){}else{eqData.EQ2.level=allOldEQ[curButtonNo-1][1];document.getElementById("text_eq2_gain").value=getEqGainDisplay(allOldEQ[curButtonNo-1][1]);setSliderPosition(controlsId.SLIDER_EQ2_THUMP,allOldEQ[curButtonNo-1][1]);keepLinkEq2Button(curButtonNo,allOldEQ[curButtonNo-1][1]);allOldEQ[curButtonNo-1][1]=200;keepLinkAllEqButtonGain(curButtonNo,1,200)}}if(eqData.EQ3.type>2){eqData.EQ3.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ3.HL_db_AP_Flag),allOldEqFlag[curButtonNo-1][2]);keepLinkEq3Button(curButtonNo,allOldEqFlag[curButtonNo-1][2]);allOldEqFlag[curButtonNo-1][2]=1;keepLinkAllEqButtonFlag(curButtonNo,2,1)}else{if(allOldEQ[curButtonNo-1][2]===200){}else{eqData.EQ3.level=allOldEQ[curButtonNo-1][2];document.getElementById("text_eq3_gain").value=getEqGainDisplay(allOldEQ[curButtonNo-1][2]);setSliderPosition(controlsId.SLIDER_EQ3_THUMP,allOldEQ[curButtonNo-1][2]);keepLinkEq3Button(curButtonNo,allOldEQ[curButtonNo-1][2]);allOldEQ[curButtonNo-1][2]=200;keepLinkAllEqButtonGain(curButtonNo,2,200)}}if(eqData.EQ4.type>2){eqData.EQ4.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ4.HL_db_AP_Flag),allOldEqFlag[curButtonNo-1][3]);keepLinkEq4Button(curButtonNo,allOldEqFlag[curButtonNo-1][3]);allOldEqFlag[curButtonNo-1][3]=1;keepLinkAllEqButtonFlag(curButtonNo,3,1)}else{if(allOldEQ[curButtonNo-1][3]===200){}else{eqData.EQ4.level=allOldEQ[curButtonNo-1][3];document.getElementById("text_eq4_gain").value=getEqGainDisplay(allOldEQ[curButtonNo-1][3]);setSliderPosition(controlsId.SLIDER_EQ4_THUMP,allOldEQ[curButtonNo-1][3]);keepLinkEq4Button(curButtonNo,allOldEQ[curButtonNo-1][3]);allOldEQ[curButtonNo-1][3]=200;keepLinkAllEqButtonGain(curButtonNo,3,200)}}if(eqData.EQ5.type>2){eqData.EQ5.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ5.HL_db_AP_Flag),allOldEqFlag[curButtonNo-1][4]);keepLinkEq5Button(curButtonNo,allOldEqFlag[curButtonNo-1][4]);allOldEqFlag[curButtonNo-1][4]=1;keepLinkAllEqButtonFlag(curButtonNo,4,1)}else{if(allOldEQ[curButtonNo-1][4]===200){}else{eqData.EQ5.level=allOldEQ[curButtonNo-1][4];document.getElementById("text_eq5_gain").value=getEqGainDisplay(allOldEQ[curButtonNo-1][4]);setSliderPosition(controlsId.SLIDER_EQ5_THUMP,allOldEQ[curButtonNo-1][4]);keepLinkEq5Button(curButtonNo,allOldEQ[curButtonNo-1][4]);allOldEQ[curButtonNo-1][4]=200;keepLinkAllEqButtonGain(curButtonNo,4,200)}}if(eqData.EQ6.type>2){eqData.EQ6.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ6.HL_db_AP_Flag),allOldEqFlag[curButtonNo-1][5]);keepLinkEq6Button(curButtonNo,allOldEqFlag[curButtonNo-1][5]);allOldEqFlag[curButtonNo-1][5]=1;keepLinkAllEqButtonFlag(curButtonNo,5,1)}else{if(allOldEQ[curButtonNo-1][5]===200){}else{eqData.EQ6.level=allOldEQ[curButtonNo-1][5];document.getElementById("text_eq6_gain").value=getEqGainDisplay(allOldEQ[curButtonNo-1][5]);setSliderPosition(controlsId.SLIDER_EQ6_THUMP,allOldEQ[curButtonNo-1][5]);keepLinkEq6Button(curButtonNo,allOldEQ[curButtonNo-1][5]);allOldEQ[curButtonNo-1][5]=200;keepLinkAllEqButtonGain(curButtonNo,5,200)}}}break;case controlsId.BUTTON_EQ1:channel=1;buttonElement=document.getElementById("button_eq1");if(controlsData.buttonStates.buttonEqStatus[1]){controlsData.buttonStates.buttonEqStatus[1]=false;buttonElement.setAttribute("class","button_eq_false");if(curButtonNo<5){tempEqValue=controlsData.inputData.InEQ.EQ1.level;controlsData.inputData.InEQ.EQ1.level=200}else{tempEqValue=controlsData.outputData.OutEQ.EQ1.level;controlsData.outputData.OutEQ.EQ1.level=200}document.getElementById("text_eq1_gain").value=getEqGainDisplay(200);setSliderPosition(controlsId.SLIDER_EQ1_THUMP,200);keepLinkEq1Button(curButtonNo,200);oldEQ[curButtonNo-1][0]=tempEqValue;keepLinkEqButtonGain(curButtonNo,0,tempEqValue)}else{if(oldEQ[curButtonNo-1][0]===200){return}controlsData.buttonStates.buttonEqStatus[1]=true;buttonElement.setAttribute("class","button_eq_true");if(curButtonNo<5){controlsData.inputData.InEQ.EQ1.level=oldEQ[curButtonNo-1][0]}else{controlsData.outputData.OutEQ.EQ1.level=oldEQ[curButtonNo-1][0]}document.getElementById("text_eq1_gain").value=getEqGainDisplay(oldEQ[curButtonNo-1][0]);setSliderPosition(controlsId.SLIDER_EQ1_THUMP,oldEQ[curButtonNo-1][0]);keepLinkEq1Button(curButtonNo,oldEQ[curButtonNo-1][0]);oldEQ[curButtonNo-1][0]=200;keepLinkEqButtonGain(curButtonNo,0,200);allOldEQ[curButtonNo-1][0]=200;keepLinkAllEqButtonGain(curButtonNo,0,200)}break;case controlsId.BUTTON_EQ2:channel=2;buttonElement=document.getElementById("button_eq2");if(controlsData.buttonStates.buttonEqStatus[2]){controlsData.buttonStates.buttonEqStatus[2]=false;buttonElement.setAttribute("class","button_eq_false");if(curButtonNo<5){tempEqValue=controlsData.inputData.InEQ.EQ2.level;controlsData.inputData.InEQ.EQ2.level=200}else{tempEqValue=controlsData.outputData.OutEQ.EQ2.level;controlsData.outputData.OutEQ.EQ2.level=200}document.getElementById("text_eq2_gain").value=getEqGainDisplay(200);setSliderPosition(controlsId.SLIDER_EQ2_THUMP,200);keepLinkEq2Button(curButtonNo,200);oldEQ[curButtonNo-1][1]=tempEqValue;keepLinkEqButtonGain(curButtonNo,1,tempEqValue)}else{if(oldEQ[curButtonNo-1][1]===200){return}controlsData.buttonStates.buttonEqStatus[2]=true;buttonElement.setAttribute("class","button_eq_true");if(curButtonNo<5){controlsData.inputData.InEQ.EQ2.level=oldEQ[curButtonNo-1][1]}else{controlsData.outputData.OutEQ.EQ2.level=oldEQ[curButtonNo-1][1]}document.getElementById("text_eq2_gain").value=getEqGainDisplay(oldEQ[curButtonNo-1][1]);setSliderPosition(controlsId.SLIDER_EQ2_THUMP,oldEQ[curButtonNo-1][1]);keepLinkEq2Button(curButtonNo,oldEQ[curButtonNo-1][1]);oldEQ[curButtonNo-1][1]=200;keepLinkEqButtonGain(curButtonNo,1,200);allOldEQ[curButtonNo-1][1]=200;keepLinkAllEqButtonGain(curButtonNo,1,200)}break;case controlsId.BUTTON_EQ3:channel=3;buttonElement=document.getElementById("button_eq3");if(controlsData.buttonStates.buttonEqStatus[3]){controlsData.buttonStates.buttonEqStatus[3]=false;buttonElement.setAttribute("class","button_eq_false");if(curButtonNo<5){tempEqValue=controlsData.inputData.InEQ.EQ3.level;controlsData.inputData.InEQ.EQ3.level=200}else{tempEqValue=controlsData.outputData.OutEQ.EQ3.level;controlsData.outputData.OutEQ.EQ3.level=200}document.getElementById("text_eq3_gain").value=getEqGainDisplay(200);setSliderPosition(controlsId.SLIDER_EQ3_THUMP,200);keepLinkEq3Button(curButtonNo,200);oldEQ[curButtonNo-1][2]=tempEqValue;keepLinkEqButtonGain(curButtonNo,2,tempEqValue)}else{if(oldEQ[curButtonNo-1][2]===200){return}controlsData.buttonStates.buttonEqStatus[3]=true;buttonElement.setAttribute("class","button_eq_true");if(curButtonNo<5){controlsData.inputData.InEQ.EQ3.level=oldEQ[curButtonNo-1][2]}else{controlsData.outputData.OutEQ.EQ3.level=oldEQ[curButtonNo-1][2]}document.getElementById("text_eq3_gain").value=getEqGainDisplay(oldEQ[curButtonNo-1][2]);setSliderPosition(controlsId.SLIDER_EQ3_THUMP,oldEQ[curButtonNo-1][2]);keepLinkEq3Button(curButtonNo,oldEQ[curButtonNo-1][2]);oldEQ[curButtonNo-1][2]=200;keepLinkEqButtonGain(curButtonNo,2,200);allOldEQ[curButtonNo-1][2]=200;keepLinkAllEqButtonGain(curButtonNo,2,200)}break;case controlsId.BUTTON_EQ4:channel=4;buttonElement=document.getElementById("button_eq4");if(controlsData.buttonStates.buttonEqStatus[4]){controlsData.buttonStates.buttonEqStatus[4]=false;buttonElement.setAttribute("class","button_eq_false");if(curButtonNo<5){tempEqValue=controlsData.inputData.InEQ.EQ4.level;controlsData.inputData.InEQ.EQ4.level=200}else{tempEqValue=controlsData.outputData.OutEQ.EQ4.level;controlsData.outputData.OutEQ.EQ4.level=200}document.getElementById("text_eq4_gain").value=getEqGainDisplay(200);setSliderPosition(controlsId.SLIDER_EQ4_THUMP,200);keepLinkEq4Button(curButtonNo,200);oldEQ[curButtonNo-1][3]=tempEqValue;keepLinkEqButtonGain(curButtonNo,3,tempEqValue)}else{if(oldEQ[curButtonNo-1][3]===200){return}controlsData.buttonStates.buttonEqStatus[4]=true;buttonElement.setAttribute("class","button_eq_true");if(curButtonNo<5){controlsData.inputData.InEQ.EQ4.level=oldEQ[curButtonNo-1][3]}else{controlsData.outputData.OutEQ.EQ4.level=oldEQ[curButtonNo-1][3]}document.getElementById("text_eq4_gain").value=getEqGainDisplay(oldEQ[curButtonNo-1][3]);setSliderPosition(controlsId.SLIDER_EQ4_THUMP,oldEQ[curButtonNo-1][3]);keepLinkEq4Button(curButtonNo,oldEQ[curButtonNo-1][3]);oldEQ[curButtonNo-1][3]=200;keepLinkEqButtonGain(curButtonNo,3,200);allOldEQ[curButtonNo-1][3]=200;keepLinkAllEqButtonGain(curButtonNo,3,200)}break;case controlsId.BUTTON_EQ5:channel=5;buttonElement=document.getElementById("button_eq5");if(controlsData.buttonStates.buttonEqStatus[5]){controlsData.buttonStates.buttonEqStatus[5]=false;buttonElement.setAttribute("class","button_eq_false");if(curButtonNo<5){tempEqValue=controlsData.inputData.InEQ.EQ5.level;controlsData.inputData.InEQ.EQ5.level=200}else{tempEqValue=controlsData.outputData.OutEQ.EQ5.level;controlsData.outputData.OutEQ.EQ5.level=200}document.getElementById("text_eq5_gain").value=getEqGainDisplay(200);setSliderPosition(controlsId.SLIDER_EQ5_THUMP,200);keepLinkEq5Button(curButtonNo,200);oldEQ[curButtonNo-1][4]=tempEqValue;keepLinkEqButtonGain(curButtonNo,4,tempEqValue)}else{if(oldEQ[curButtonNo-1][4]===200){return}controlsData.buttonStates.buttonEqStatus[5]=true;buttonElement.setAttribute("class","button_eq_true");if(curButtonNo<5){controlsData.inputData.InEQ.EQ5.level=oldEQ[curButtonNo-1][4]}else{controlsData.outputData.OutEQ.EQ5.level=oldEQ[curButtonNo-1][4]}document.getElementById("text_eq5_gain").value=getEqGainDisplay(oldEQ[curButtonNo-1][4]);setSliderPosition(controlsId.SLIDER_EQ5_THUMP,oldEQ[curButtonNo-1][4]);keepLinkEq5Button(curButtonNo,oldEQ[curButtonNo-1][4]);oldEQ[curButtonNo-1][4]=200;keepLinkEqButtonGain(curButtonNo,4,200);allOldEQ[curButtonNo-1][4]=200;keepLinkAllEqButtonGain(curButtonNo,4,200)}break;case controlsId.BUTTON_EQ6:channel=6;buttonElement=document.getElementById("button_eq6");if(controlsData.buttonStates.buttonEqStatus[6]){controlsData.buttonStates.buttonEqStatus[6]=false;buttonElement.setAttribute("class","button_eq_false");if(curButtonNo<5){tempEqValue=controlsData.inputData.InEQ.EQ6.level;controlsData.inputData.InEQ.EQ6.level=200}else{tempEqValue=controlsData.outputData.OutEQ.EQ6.level;controlsData.outputData.OutEQ.EQ6.level=200}document.getElementById("text_eq6_gain").value=getEqGainDisplay(200);setSliderPosition(controlsId.SLIDER_EQ6_THUMP,200);keepLinkEq6Button(curButtonNo,200);oldEQ[curButtonNo-1][5]=tempEqValue;keepLinkEqButtonGain(curButtonNo,5,tempEqValue)}else{if(oldEQ[curButtonNo-1][5]===200){return}controlsData.buttonStates.buttonEqStatus[6]=true;buttonElement.setAttribute("class","button_eq_true");if(curButtonNo<5){controlsData.inputData.InEQ.EQ6.level=oldEQ[curButtonNo-1][5]}else{controlsData.outputData.OutEQ.EQ6.level=oldEQ[curButtonNo-1][5]}document.getElementById("text_eq6_gain").value=getEqGainDisplay(oldEQ[curButtonNo-1][5]);setSliderPosition(controlsId.SLIDER_EQ6_THUMP,oldEQ[curButtonNo-1][5]);keepLinkEq6Button(curButtonNo,oldEQ[curButtonNo-1][5]);oldEQ[curButtonNo-1][5]=200;keepLinkEqButtonGain(curButtonNo,5,200);allOldEQ[curButtonNo-1][5]=200;keepLinkAllEqButtonGain(curButtonNo,5,200)}break;default:break}updateAllEqGainButton(100);DrawLine()}function buttonEqOnclickAllPass(id){var buttonElement;var channel;switch(id){case controlsId.BUTTON_EQ1:channel=1;buttonElement=document.getElementById("button_eq1");if(controlsData.buttonStates.buttonEqStatus[1]){controlsData.buttonStates.buttonEqStatus[1]=false;buttonElement.setAttribute("class","button_eq_false");eqData.EQ1.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ1.HL_db_AP_Flag),1);allOldEqFlag[curButtonNo-1][0]=1;keepLinkEq1Button(curButtonNo,1)}else{controlsData.buttonStates.buttonEqStatus[1]=true;buttonElement.setAttribute("class","button_eq_true");eqData.EQ1.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ1.HL_db_AP_Flag),0);allOldEqFlag[curButtonNo-1][0]=0;keepLinkEq1Button(curButtonNo,0)}break;case controlsId.BUTTON_EQ2:channel=2;buttonElement=document.getElementById("button_eq2");if(controlsData.buttonStates.buttonEqStatus[2]){controlsData.buttonStates.buttonEqStatus[2]=false;buttonElement.setAttribute("class","button_eq_false");eqData.EQ2.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ2.HL_db_AP_Flag),1);allOldEqFlag[curButtonNo-1][1]=1;keepLinkEq2Button(curButtonNo,1)}else{controlsData.buttonStates.buttonEqStatus[2]=true;buttonElement.setAttribute("class","button_eq_true");eqData.EQ2.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ2.HL_db_AP_Flag),0);allOldEqFlag[curButtonNo-1][1]=0;keepLinkEq2Button(curButtonNo,0)}break;case controlsId.BUTTON_EQ3:channel=3;buttonElement=document.getElementById("button_eq3");if(controlsData.buttonStates.buttonEqStatus[3]){controlsData.buttonStates.buttonEqStatus[3]=false;buttonElement.setAttribute("class","button_eq_false");eqData.EQ3.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ3.HL_db_AP_Flag),1);allOldEqFlag[curButtonNo-1][2]=1;keepLinkEq3Button(curButtonNo,1)}else{controlsData.buttonStates.buttonEqStatus[3]=true;buttonElement.setAttribute("class","button_eq_true");eqData.EQ3.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ3.HL_db_AP_Flag),0);allOldEqFlag[curButtonNo-1][2]=0;keepLinkEq3Button(curButtonNo,0)}break;case controlsId.BUTTON_EQ4:channel=4;buttonElement=document.getElementById("button_eq4");if(controlsData.buttonStates.buttonEqStatus[4]){controlsData.buttonStates.buttonEqStatus[4]=false;buttonElement.setAttribute("class","button_eq_false");eqData.EQ4.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ4.HL_db_AP_Flag),1);allOldEqFlag[curButtonNo-1][3]=1;keepLinkEq4Button(curButtonNo,1)}else{controlsData.buttonStates.buttonEqStatus[4]=true;buttonElement.setAttribute("class","button_eq_true");eqData.EQ4.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ4.HL_db_AP_Flag),0);allOldEqFlag[curButtonNo-1][3]=0;keepLinkEq4Button(curButtonNo,0)}break;case controlsId.BUTTON_EQ5:channel=5;buttonElement=document.getElementById("button_eq5");if(controlsData.buttonStates.buttonEqStatus[5]){controlsData.buttonStates.buttonEqStatus[5]=false;buttonElement.setAttribute("class","button_eq_false");eqData.EQ5.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ5.HL_db_AP_Flag),1);allOldEqFlag[curButtonNo-1][4]=1;keepLinkEq5Button(curButtonNo,1)}else{controlsData.buttonStates.buttonEqStatus[5]=true;buttonElement.setAttribute("class","button_eq_true");eqData.EQ5.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ5.HL_db_AP_Flag),0);allOldEqFlag[curButtonNo-1][4]=0;keepLinkEq5Button(curButtonNo,0)}break;case controlsId.BUTTON_EQ6:channel=6;buttonElement=document.getElementById("button_eq6");if(controlsData.buttonStates.buttonEqStatus[6]){controlsData.buttonStates.buttonEqStatus[6]=false;buttonElement.setAttribute("class","button_eq_false");eqData.EQ6.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ6.HL_db_AP_Flag),1);allOldEqFlag[curButtonNo-1][5]=1;keepLinkEq6Button(curButtonNo,1)}else{controlsData.buttonStates.buttonEqStatus[6]=true;buttonElement.setAttribute("class","button_eq_true");eqData.EQ6.HL_db_AP_Flag=SET_4L_BYTE(GET_4H_BYTE(eqData.EQ6.HL_db_AP_Flag),0);allOldEqFlag[curButtonNo-1][5]=0;keepLinkEq6Button(curButtonNo,0)}break;default:break}updateAllEqGainButton(100);DrawLine()}function buttonPhaseCurveOnclick(){var buttonControl=document.getElementById("button_phase_curve");var phaseStrip=document.getElementById("phase_curve_progress");var status=false;if(controlsData.buttonStates.buttonPhaseCurveStatus[curButtonNo-1]){controlsData.buttonStates.buttonPhaseCurveStatus[curButtonNo-1]=false;status=false;buttonControl.setAttribute("class","button_phase_curve_true");phaseStrip.style.background="white"}else{controlsData.buttonStates.buttonPhaseCurveStatus[curButtonNo-1]=true;status=true;buttonControl.setAttribute("class","button_phase_curve_false");if(curButtonNo>=5){phaseStrip.style.background=COLOR_OUT[curButtonNo-5]}else{phaseStrip.style.background=COLOR_INPUT[curButtonNo-1]}}keepLinkPhaseLineStatus(curButtonNo,status);DrawLine()}function setCurPhaseCurveStatus(){var buttonControl=document.getElementById("button_phase_curve");var phaseStrip=document.getElementById("phase_curve_progress");if(controlsData.buttonStates.buttonPhaseCurveStatus[curButtonNo-1]){buttonControl.setAttribute("class","button_phase_curve_true");if(curButtonNo>=5){phaseStrip.style.background=COLOR_OUT[curButtonNo-5]}else{phaseStrip.style.background=COLOR_INPUT[curButtonNo-1]}}else{buttonControl.setAttribute("class","button_phase_curve_false");phaseStrip.style.background="white"}}function buttonPhaseOnclick(){if(curButtonNo>4){return}var buttonControl=document.getElementById("button_phase");var status;if(controlsData.buttonStates.buttonPhaseDirectionStatus[curButtonNo-1]){controlsData.buttonStates.buttonPhaseDirectionStatus[curButtonNo-1]=false;buttonControl.setAttribute("class","button_phase_false");document.getElementById("black_one").style.display="inline";document.getElementById("black_two").style.display="inline";document.getElementById("red_one").style.display="none";document.getElementById("red_two").style.display="none";status=0}else{controlsData.buttonStates.buttonPhaseDirectionStatus[curButtonNo-1]=true;buttonControl.setAttribute("class","button_phase_true");document.getElementById("black_one").style.display="none";document.getElementById("black_two").style.display="none";document.getElementById("red_one").style.display="inline";document.getElementById("red_two").style.display="inline";status=1}switch(curButtonNo){case 1:currentGroupData.dataInputA.polar=status;m_nInMapEQ[0].polar=status;break;case 2:currentGroupData.dataInputB.polar=status;m_nInMapEQ[1].polar=status;break;case 3:currentGroupData.dataInputC.polar=status;m_nInMapEQ[2].polar=status;break;case 4:currentGroupData.dataInputD.polar=status;m_nInMapEQ[3].polar=status;break;default:break}keepLinkInputPhase(curButtonNo,status);DrawLine()}function setPhaseDirectionStatus(){if(curButtonNo>4){return}var buttonControl=document.getElementById("button_phase");if(controlsData.buttonStates.buttonPhaseDirectionStatus[curButtonNo-1]){buttonControl.setAttribute("class","button_phase_true");if(currentLockData.nIn_LockData.nIn_Pol){document.getElementById("black_one").style.display="none";document.getElementById("black_two").style.display="none";document.getElementById("red_one").style.display="none";document.getElementById("red_two").style.display="none"}else{document.getElementById("black_one").style.display="none";document.getElementById("black_two").style.display="none";document.getElementById("red_one").style.display="inline";document.getElementById("red_two").style.display="inline"}}else{buttonControl.setAttribute("class","button_phase_false");if(currentLockData.nIn_LockData.nIn_Pol){document.getElementById("black_one").style.display="none";document.getElementById("black_two").style.display="none";document.getElementById("red_one").style.display="none";document.getElementById("red_two").style.display="none"}else{document.getElementById("black_one").style.display="inline";document.getElementById("black_two").style.display="inline";document.getElementById("red_one").style.display="none";document.getElementById("red_two").style.display="none"}}}function buttonPhaseOutOnclick(){if(curButtonNo<5){return}var buttonControl=document.getElementById("button_phase_out");var status;if(controlsData.buttonStates.buttonPhaseDirectionStatus[curButtonNo-1]){controlsData.buttonStates.buttonPhaseDirectionStatus[curButtonNo-1]=false;buttonControl.setAttribute("class","button_phase_false_out");document.getElementById("black_one_out").style.display="inline";document.getElementById("black_two_out").style.display="inline";document.getElementById("red_one_out").style.display="none";document.getElementById("red_two_out").style.display="none";status=0}else{controlsData.buttonStates.buttonPhaseDirectionStatus[curButtonNo-1]=true;buttonControl.setAttribute("class","button_phase_true_out");document.getElementById("black_one_out").style.display="none";document.getElementById("black_two_out").style.display="none";document.getElementById("red_one_out").style.display="inline";document.getElementById("red_two_out").style.display="inline";status=1}switch(curButtonNo){case 5:currentGroupData.dataOut1.polar=status;m_nOutMapEQ[0].polar=status;break;case 6:currentGroupData.dataOut2.polar=status;m_nOutMapEQ[1].polar=status;break;case 7:currentGroupData.dataOut3.polar=status;m_nOutMapEQ[2].polar=status;break;case 8:currentGroupData.dataOut4.polar=status;m_nOutMapEQ[3].polar=status;break;case 9:currentGroupData.dataOut5.polar=status;m_nOutMapEQ[4].polar=status;break;case 10:currentGroupData.dataOut6.polar=status;m_nOutMapEQ[5].polar=status;break;case 11:currentGroupData.dataOut7.polar=status;m_nOutMapEQ[6].polar=status;break;case 12:currentGroupData.dataOut8.polar=status;m_nOutMapEQ[7].polar=status;break;default:break}keepLinkOutPhase(curButtonNo,status);DrawLine()}function setPhaseOutDirectionStatus(){if(curButtonNo>4){var buttonControl=document.getElementById("button_phase_out");if(controlsData.buttonStates.buttonPhaseDirectionStatus[curButtonNo-1]){buttonControl.setAttribute("class","button_phase_true_out");if(currentLockData.nOut_LockData.nOut_Pol){document.getElementById("black_one_out").style.display="none";document.getElementById("black_two_out").style.display="none";document.getElementById("red_one_out").style.display="none";document.getElementById("red_two_out").style.display="none"}else{document.getElementById("black_one_out").style.display="none";document.getElementById("black_two_out").style.display="none";document.getElementById("red_one_out").style.display="inline";document.getElementById("red_two_out").style.display="inline"}}else{buttonControl.setAttribute("class","button_phase_false_out");if(currentLockData.nOut_LockData.nOut_Pol){document.getElementById("black_one_out").style.display="none";document.getElementById("black_two_out").style.display="none";document.getElementById("red_one_out").style.display="none";document.getElementById("red_two_out").style.display="none"}else{document.getElementById("black_one_out").style.display="inline";document.getElementById("black_two_out").style.display="inline";document.getElementById("red_one_out").style.display="none";document.getElementById("red_two_out").style.display="none"}}}}function inputOrOutputModule(isInput){var gate=document.getElementById("gate");var dynamic=document.getElementById("dynamic");var compress=document.getElementById("compress");var delay_phase_out=document.getElementById("delay_phase_out");var xover=document.getElementById("xover");var limit=document.getElementById("limit");if(isInput){gate.style.display="inline";dynamic.style.display="inline";compress.style.display="inline";delay_phase_out.style.display="none";xover.style.display="none";limit.style.display="none"}else{gate.style.display="none";dynamic.style.display="none";compress.style.display="none";delay_phase_out.style.display="inline";xover.style.display="inline";limit.style.display="inline"}}function buttonHelpOnclick(){alert(isChinese?"末找到帮助文件!":"Document not found!")}var buttonTest=0;function buttonProgramOnclick(){curtainOption(1)}function buttonSetOnclick(){}function buttonDisplayOnclick(){curtainOption(3)}function buttonLockOnclick(){var mainCurtain=document.getElementById("curtain");mainCurtain.style.display="none";var lockCurtain=document.getElementById("lock_curtain");lockCurtain.style.display="inline";lockCurtain.style.top="15px";lockFrame.lockFrameWelcome()}function buttonReportOnclick(){initReportDisplay();curtainOption(5)}function buttonLanguageOnclick(){isChinese=!isChinese;if(isChinese){document.getElementById("button_language").innerText="English"}else{document.getElementById("button_language").innerText="中文"}languageFrame.languageOperate()}function initCentralControl(){var selector,i,option;selector=document.getElementById("select_device_id");for(i=1;i<251;i++){option=new Option(i+"",i-1+"");selector.options.add(option)}selector=document.getElementById("gain_step");for(i=1;i<6;i++){option=new Option(i+"dB",i+"");selector.options.add(option)}selector=document.getElementById("read_output_channel");for(i=1;i<9;i++){option=new Option("OUT"+i,i-1+"");selector.options.add(option)}selector=document.getElementById("input_gain_step");for(i=1;i<6;i++){option=new Option(i+"dB",i+"");selector.options.add(option)}selector=document.getElementById("read_input_channel");option=new Option("IN A","0");selector.options.add(option);option=new Option("IN B","1");selector.options.add(option);option=new Option("IN C","2");selector.options.add(option);option=new Option("IN D","3");selector.options.add(option);selector=document.getElementById("device_program_selector");for(i=1;i<31;i++){option=new Option(isChinese?"设备程序"+i:"Device Program "+i,i+"");selector.options.add(option)}document.getElementById("output_write_copy").onclick=outputWriteCopyResponse;document.getElementById("output_read_copy").onclick=outputReadCopyResponse;document.getElementById("input_write_copy").onclick=inputWriteCopyResponse;document.getElementById("input_read_copy").onclick=inputReadCopyResponse;document.getElementById("system_copy").onclick=systemCopyResponse;document.getElementById("central_exit").onclick=centralExitClickResponse;setCentralElementEvent();initCentralDisplay()}function initCentralDisplay(){}function setCentralElementEvent(){document.getElementById("check_out1").onclick=getOutputWriteCode;document.getElementById("check_out2").onclick=getOutputWriteCode;document.getElementById("check_out3").onclick=getOutputWriteCode;document.getElementById("check_out4").onclick=getOutputWriteCode;document.getElementById("check_out5").onclick=getOutputWriteCode;document.getElementById("check_out6").onclick=getOutputWriteCode;document.getElementById("check_out7").onclick=getOutputWriteCode;document.getElementById("check_out8").onclick=getOutputWriteCode;document.getElementById("matrix_cha").onclick=getOutputWriteCode;document.getElementById("matrix_chb").onclick=getOutputWriteCode;document.getElementById("matrix_chc").onclick=getOutputWriteCode;document.getElementById("matrix_chd").onclick=getOutputWriteCode;document.getElementById("check_input_a").onclick=getInputWriteCode;document.getElementById("check_input_b").onclick=getInputWriteCode;document.getElementById("check_input_c").onclick=getInputWriteCode;document.getElementById("check_input_d").onclick=getInputWriteCode;document.getElementById("select_device_id").onchange=idSelectorChangeResponse;document.getElementById("gain_step").onchange=getOutputWriteCode;document.getElementById("input_gain_step").onchange=getInputWriteCode;document.getElementById("read_output_channel").onchange=getOutputReadCode;document.getElementById("read_input_channel").onchange=getInputReadCode;document.getElementById("device_program_selector").onchange=getProgramCode;document.getElementById("output_mute_radio").onclick=function(){centralOutputRadioChangeResponse(1)};document.getElementById("output_no_mute_radio").onclick=function(){centralOutputRadioChangeResponse(2)};document.getElementById("output_gain_up_radio").onclick=function(){centralOutputRadioChangeResponse(3)};document.getElementById("output_gain_down_radio").onclick=function(){centralOutputRadioChangeResponse(4)};document.getElementById("output_gain_set_radio").onclick=function(){centralOutputRadioChangeResponse(5)};document.getElementById("output_matrix").onclick=function(){centralOutputRadioChangeResponse(6)};document.getElementById("read_output_mute_state").onclick=function(){centralOutputRadioChangeResponse(7)};document.getElementById("read_output_matrix").onclick=function(){centralOutputRadioChangeResponse(8)};document.getElementById("read_output_gain_value").onclick=function(){centralOutputRadioChangeResponse(9)};document.getElementById("input_mute_radio").onclick=function(){centralInputRadioChangeResponse(1)};document.getElementById("input_no_mute_radio").onclick=function(){centralInputRadioChangeResponse(2)};document.getElementById("input_gain_up_radio").onclick=function(){centralInputRadioChangeResponse(3)};document.getElementById("input_gain_down_radio").onclick=function(){centralInputRadioChangeResponse(4)};document.getElementById("input_gain_set_radio").onclick=function(){centralInputRadioChangeResponse(5)};document.getElementById("read_input_mute_state").onclick=function(){centralInputRadioChangeResponse(6)};document.getElementById("read_input_gain_value").onclick=function(){centralInputRadioChangeResponse(7)};document.getElementById("option_load").onclick=getProgramCode;document.getElementById("option_save").onclick=getProgramCode;setInputTypeOption(1);setOutputTypeOption(1);idSelectorChangeResponse()}var inputWriteCode,inputReadCode,outputWriteCode,outputReadCode,deviceProgramCode;var header="B6 B6 ",tail="A9";var outputWriteCodeType=1,inputWriteCodeType=1;function centralInputRadioChangeResponse(index){switch(index){case 1:setInputTypeOption(1);getInputWriteCode();break;case 2:setInputTypeOption(1);getInputWriteCode();break;case 3:setInputTypeOption(2);getInputWriteCode();break;case 4:setInputTypeOption(2);getInputWriteCode();break;case 5:setInputTypeOption(3);getInputWriteCode();break;case 6:getInputReadCode();break;case 7:getInputReadCode();break;default:break}}function centralOutputRadioChangeResponse(index){switch(index){case 1:setOutputTypeOption(1);getOutputWriteCode();break;case 2:setOutputTypeOption(1);getOutputWriteCode();break;case 3:setOutputTypeOption(2);getOutputWriteCode();break;case 4:setOutputTypeOption(2);getOutputWriteCode();break;case 5:setOutputTypeOption(3);getOutputWriteCode();break;case 6:setOutputTypeOption(4);getOutputWriteCode();break;case 7:getOutputReadCode();break;case 8:getOutputReadCode();break;case 9:getOutputReadCode();break;default:break}}function setOutputTypeOption(index){outputWriteCodeType=index;document.getElementById("mute_case").style.border="1px solid black";document.getElementById("gain_case").style.border="1px solid black";document.getElementById("gain_set_case").style.border="1px solid black";document.getElementById("matrix_case").style.border="1px solid black";document.getElementById("gain_step").disabled="true";document.getElementById("gain_setting").disabled="true";document.getElementById("matrix_cha").disabled="true";document.getElementById("matrix_chb").disabled="true";document.getElementById("matrix_chc").disabled="true";document.getElementById("matrix_chd").disabled="true";switch(index){case 1:document.getElementById("output_gain_up_radio").checked="";document.getElementById("output_gain_down_radio").checked="";document.getElementById("output_gain_set_radio").checked="";document.getElementById("output_matrix").checked="";document.getElementById("matrix_cha").checked="";document.getElementById("matrix_chb").checked="";document.getElementById("matrix_chc").checked="";document.getElementById("matrix_chd").checked="";document.getElementById("mute_case").style.border="1px solid red";break;case 2:document.getElementById("output_mute_radio").checked="";document.getElementById("output_no_mute_radio").checked="";document.getElementById("output_gain_set_radio").checked="";document.getElementById("output_matrix").checked="";document.getElementById("matrix_cha").checked="";document.getElementById("matrix_chb").checked="";document.getElementById("matrix_chc").checked="";document.getElementById("matrix_chd").checked="";document.getElementById("gain_step").disabled="";document.getElementById("gain_case").style.border="1px solid red";break;case 3:document.getElementById("output_mute_radio").checked="";document.getElementById("output_no_mute_radio").checked="";document.getElementById("output_gain_up_radio").checked="";document.getElementById("output_gain_down_radio").checked="";document.getElementById("output_matrix").checked="";document.getElementById("gain_setting").disabled="";document.getElementById("matrix_cha").checked="";document.getElementById("matrix_chb").checked="";document.getElementById("matrix_chc").checked="";document.getElementById("matrix_chd").checked="";document.getElementById("gain_set_case").style.border="1px solid red";break;case 4:document.getElementById("output_mute_radio").checked="";document.getElementById("output_no_mute_radio").checked="";document.getElementById("output_gain_up_radio").checked="";document.getElementById("output_gain_down_radio").checked="";document.getElementById("output_gain_set_radio").checked="";document.getElementById("matrix_cha").disabled="";document.getElementById("matrix_chb").disabled="";document.getElementById("matrix_chc").disabled="";document.getElementById("matrix_chd").disabled="";document.getElementById("matrix_case").style.border="1px solid red";break;default:document.getElementById("output_gain_up_radio").checked="";document.getElementById("output_gain_down_radio").checked="";document.getElementById("output_gain_set_radio").checked="";document.getElementById("output_matrix").checked="";document.getElementById("matrix_cha").checked="";document.getElementById("matrix_chb").checked="";document.getElementById("matrix_chc").checked="";document.getElementById("matrix_chd").checked="";document.getElementById("mute_case").style.border="1px solid red";break}}function setInputTypeOption(index){document.getElementById("input_mute_case").style.border="1px solid black";document.getElementById("input_gain_case").style.border="1px solid black";document.getElementById("input_gain_set_case").style.border="1px solid black";document.getElementById("input_gain_step").disabled="true";document.getElementById("input_gain_setting").disabled="true";inputWriteCodeType=index;switch(index){case 1:document.getElementById("input_gain_up_radio").checked="";document.getElementById("input_gain_down_radio").checked="";document.getElementById("input_gain_set_radio").checked="";document.getElementById("input_mute_case").style.border="1px solid red";break;case 2:document.getElementById("input_gain_step").disabled="";document.getElementById("input_mute_radio").checked="";document.getElementById("input_no_mute_radio").checked="";document.getElementById("input_gain_set_radio").checked="";document.getElementById("input_gain_case").style.border="1px solid red";break;case 3:document.getElementById("input_gain_setting").disabled="";document.getElementById("input_mute_radio").checked="";document.getElementById("input_no_mute_radio").checked="";document.getElementById("input_gain_up_radio").checked="";document.getElementById("input_gain_down_radio").checked="";document.getElementById("input_gain_set_case").style.border="1px solid red";break;default:document.getElementById("input_gain_up_radio").checked="";document.getElementById("input_gain_down_radio").checked="";document.getElementById("input_gain_set_radio").checked="";document.getElementById("input_mute_case").style.border="1px solid red";break}}function idSelectorChangeResponse(){getInputWriteCode();getInputReadCode();getOutputReadCode();getOutputWriteCode();getProgramCode()}function getOutputChannel(){var out1,out2,out3,out4,out5,out6,out7,out8,value;out1=document.getElementById("check_out1").checked?1:0;out2=document.getElementById("check_out2").checked?1:0;out3=document.getElementById("check_out3").checked?1:0;out4=document.getElementById("check_out4").checked?1:0;out5=document.getElementById("check_out5").checked?1:0;out6=document.getElementById("check_out6").checked?1:0;out7=document.getElementById("check_out7").checked?1:0;out8=document.getElementById("check_out8").checked?1:0;value=out1+out2*2+out3*4+out4*8+out5*16+out6*32+out7*64+out8*128;value=parseInt(value).toString(16).toUpperCase()+" ";value=value.length>2?value:"0"+value;return value}function getOutputMatrix(){var a,b,c,d,value;a=document.getElementById("matrix_cha").checked?1:0;b=document.getElementById("matrix_chb").checked?1:0;c=document.getElementById("matrix_chc").checked?1:0;d=document.getElementById("matrix_chd").checked?1:0;value=a+b*2+c*4+d*8;value=parseInt(value).toString(16).toUpperCase()+" ";value=value.length>2?value:"0"+value;return value}function getInputChannel(){var a,b,c,d,value;a=document.getElementById("check_input_a").checked?1:0;b=document.getElementById("check_input_b").checked?1:0;c=document.getElementById("check_input_c").checked?1:0;d=document.getElementById("check_input_d").checked?1:0;value=a+b*2+c*4+d*8;value=parseInt(value).toString(16).toUpperCase()+" ";value=value.length>2?value:"0"+value;return value}function outputWriteCopyResponse(){document.getElementById("output_write_code").focus();document.getElementById("output_write_code").select();document.execCommand("copy")}function outputReadCopyResponse(){document.getElementById("output_read_code").focus();document.getElementById("output_read_code").select();document.execCommand("copy")}function inputWriteCopyResponse(){document.getElementById("input_write_code").focus();document.getElementById("input_write_code").select();document.execCommand("copy")}function inputReadCopyResponse(){document.getElementById("input_read_code").focus();document.getElementById("input_read_code").select();document.execCommand("copy")}function systemCopyResponse(){document.getElementById("system_code").focus();document.getElementById("system_code").select();document.execCommand("copy")}function centralExitClickResponse(){curtainOption(0)}function getInputParam(functionType){var value;switch(parseInt(functionType)){case 1:value=value=document.getElementById("input_mute_radio").checked?"00 ":"01 ";break;case 4:value=(parseInt(document.getElementById("input_gain_setting").value)+80).toString(16).toUpperCase().toUpperCase()+" ";break;case 5:case 6:value=parseInt(document.getElementById("input_gain_step").value).toString(16).toUpperCase()+" ";break;default:break}value=value.length>2?value:"0"+value;return value}function getOutputParam(functionType){var value;switch(parseInt(functionType)){case 1:value=document.getElementById("output_mute_radio").checked?"00 ":"01 ";break;case 2:value=getOutputMatrix();break;case 4:value=(parseInt(document.getElementById("gain_setting").value)+80).toString(16).toUpperCase()+" ";break;case 5:case 6:value=parseInt(document.getElementById("gain_step").value).toString(16).toUpperCase()+" ";break;default:break}value=value.length>2?value:"0"+value;return value}function getInputWriteCodeFunctionType(){var functionType;switch(inputWriteCodeType){case 1:functionType="01 ";break;case 2:functionType=document.getElementById("input_gain_up_radio").checked?"05 ":"06 ";break;case 3:functionType="04 ";break;default:functionType="01 ";break}return functionType}function getOutputWriteCodeFunctionType(){var functionType;switch(outputWriteCodeType){case 1:functionType="01 ";break;case 2:functionType=document.getElementById("output_gain_up_radio").checked?"05 ":"06 ";break;case 3:functionType="04 ";break;case 4:functionType="02 ";break;default:functionType="01 ";break}return functionType}function getCentralDeviceId(){var value;value=parseInt(document.getElementById("select_device_id").value)+1;value=value.toString(16).toUpperCase()+" ";value=value.length>2?value:"0"+value;return value}function getInputWriteCode(){var frameType,deviceId,functionType,inputChannel,outputChannel,param;frameType="01 ";deviceId=getCentralDeviceId();functionType=getInputWriteCodeFunctionType();inputChannel=getInputChannel();if(inputChannel<=0){inputWriteCode=isChinese?"请选择输入端口":"Please select the input";document.getElementById("input_write_code").value=inputWriteCode}else{outputChannel="00 ";param=getInputParam(functionType);inputWriteCode=header+deviceId+frameType+functionType+outputChannel+inputChannel+param+tail;document.getElementById("input_write_code").value=inputWriteCode}}function getInputReadCode(){var frameType,deviceId,functionType,inputChannel,outputChannel,param;frameType="02 ";deviceId=getCentralDeviceId();functionType=document.getElementById("read_input_mute_state").checked?"01 ":"04 ";inputChannel=getInputReadChannel();outputChannel="00 ";param="00 ";inputReadCode=header+deviceId+frameType+functionType+outputChannel+inputChannel+param+tail;document.getElementById("input_read_code").value=inputReadCode}function getOutputWriteCode(){var frameType,deviceId,functionType,inputChannel,outputChannel,param;frameType="01 ";deviceId=getCentralDeviceId();functionType=getOutputWriteCodeFunctionType();outputChannel=getOutputChannel();if(outputChannel<=0){outputWriteCode=isChinese?"请选择输出端口":"please select the output";document.getElementById("output_write_code").value=outputWriteCode}else{inputChannel="00 ";param=getOutputParam(functionType);outputWriteCode=header+deviceId+frameType+functionType+outputChannel+inputChannel+param+tail;document.getElementById("output_write_code").value=outputWriteCode}}function getOutputReadCode(){var frameType,deviceId,functionType,inputChannel,outputChannel,param;frameType="02 ";deviceId=getCentralDeviceId();functionType=getOutputReadCodeType();outputChannel=getOutputReadChannel();inputChannel="00 ";param="00 ";outputReadCode=header+deviceId+frameType+functionType+outputChannel+inputChannel+param+tail;document.getElementById("output_read_code").value=outputReadCode}function getProgramCode(){var frameType,deviceId,functionType,inputChannel,outputChannel,param;frameType="01 ";deviceId=getCentralDeviceId();inputChannel="00 ";outputChannel="00 ";functionType=document.getElementById("option_load").checked?"03 ":"07 ";param=parseInt(document.getElementById("device_program_selector").value).toString(16).toUpperCase()+" ";param=param.length>2?param:"0"+param;deviceProgramCode=header+deviceId+frameType+functionType+outputChannel+inputChannel+param+tail;document.getElementById("system_code").value=deviceProgramCode}function getOutputReadCodeType(){var elements,index,functionType;elements=document.getElementsByName("read_output_option");for(var i=0;i2?value:"0"+value;return value}function getOutputReadChannel(){var value;value=document.getElementById("read_output_channel").value;value=Math.pow(2,value).toString(16)+" ";value=value.length>2?value:"0"+value;return value}function ComExtDraw(){ComExtDraw.prototype.initPointAndLine=function(){this.circle_level=document.createElementNS("http://www.w3.org/2000/svg","circle");this.circle_level.setAttribute("id","circle_level");this.circle_level.setAttribute("fill",RectMap_Line1);this.circle_limit=document.createElementNS("http://www.w3.org/2000/svg","circle");this.circle_limit.setAttribute("id","circle_limit");this.circle_limit.setAttribute("fill",AGC_Ratio_Rect_Col);this.circle_ratio=document.createElementNS("http://www.w3.org/2000/svg","circle");this.circle_ratio.setAttribute("id","circle_ratio");this.circle_ratio.setAttribute("fill",AGC_Comp_Line_Col_F);this.line_level_start=document.createElementNS("http://www.w3.org/2000/svg","line");this.line_level_start.setAttribute("id","line_level_start");this.line_level_start.setAttribute("stroke",AGC_Line_Col_F);this.line_level_start.setAttribute("stroke-width","2");this.line_level_end=document.createElementNS("http://www.w3.org/2000/svg","line");this.line_level_end.setAttribute("id","line_level_end");this.line_level_end.setAttribute("stroke","white");this.line_level_end.setAttribute("stroke-dasharray","4");this.line_level_end.setAttribute("stroke-width","1.5");this.line_ratio=document.createElementNS("http://www.w3.org/2000/svg","line");this.line_ratio.setAttribute("id","line_ratio");this.line_ratio.setAttribute("stroke",AGC_Line_Col_F);this.line_ratio.setAttribute("stroke-width","2");this.line_limit=document.createElementNS("http://www.w3.org/2000/svg","line");this.line_limit.setAttribute("id","line_limit");this.line_limit.setAttribute("stroke","white");this.line_limit.setAttribute("stroke-width","1.5");this.line_limit.setAttribute("stroke-dasharray","4");this.polyline_ratio=document.createElementNS("http://www.w3.org/2000/svg","polyline");this.polyline_ratio.setAttribute("id","polyline_ratio");this.polyline_ratio.setAttribute("stroke",AGC_Line_Col_F);this.polyline_ratio.setAttribute("stroke-width","2");this.polyline_ratio.setAttribute("fill","none");this.setEvent()};ComExtDraw.prototype.drawPoint=function(index,point,diameter){switch(index){case 1:this.circle_level.setAttribute("cx",point.x);this.circle_level.setAttribute("cy",point.y);this.circle_level.setAttribute("r",diameter);out_svg.appendChild(this.circle_level);break;case 2:this.circle_limit.setAttribute("cx",point.x);this.circle_limit.setAttribute("cy",point.y);this.circle_limit.setAttribute("r",diameter);out_svg.appendChild(this.circle_limit);break;case 3:this.circle_ratio.setAttribute("cx",point.x);this.circle_ratio.setAttribute("cy",point.y);this.circle_ratio.setAttribute("r",diameter);out_svg.appendChild(this.circle_ratio);break;default:break}};ComExtDraw.prototype.drawLine=function(index,startPoint,endPoint,color){switch(index){case 1:this.line_level_start.setAttribute("x1",startPoint.x);this.line_level_start.setAttribute("y1",startPoint.y);this.line_level_start.setAttribute("x2",endPoint.x);this.line_level_start.setAttribute("y2",endPoint.y);this.line_level_start.setAttribute("stroke",color);out_svg.appendChild(this.line_level_start);break;case 2:this.line_limit.setAttribute("x1",startPoint.x);this.line_limit.setAttribute("y1",startPoint.y);this.line_limit.setAttribute("x2",endPoint.x);this.line_limit.setAttribute("y2",endPoint.y);out_svg.appendChild(this.line_limit);break;case 3:this.line_ratio.setAttribute("x1",startPoint.x);this.line_ratio.setAttribute("y1",startPoint.y);this.line_ratio.setAttribute("x2",endPoint.x);this.line_ratio.setAttribute("y2",endPoint.y);this.line_ratio.setAttribute("stroke",color);out_svg.appendChild(this.line_ratio);if(document.getElementById("polyline_ratio")){out_svg.removeChild(this.polyline_ratio)}break;case 4:this.line_level_end.setAttribute("x1",startPoint.x);this.line_level_end.setAttribute("y1",startPoint.y);this.line_level_end.setAttribute("x2",endPoint.x);this.line_level_end.setAttribute("y2",endPoint.y);out_svg.appendChild(this.line_level_end);break;default:break}};ComExtDraw.prototype.drawPolyline=function(startPoint,middlePoint,endPoint,color){var pointsString=startPoint.x+","+startPoint.y+" "+middlePoint.x+","+middlePoint.y+" "+endPoint.x+","+endPoint.y;this.polyline_ratio.setAttribute("stroke",color);this.polyline_ratio.setAttribute("points",pointsString);out_svg.appendChild(this.polyline_ratio);if(document.getElementById("line_ratio")){out_svg.removeChild(this.line_ratio)}};ComExtDraw.prototype.setEvent=function(){setOutPointHover(this.circle_level,1);setOutPointHover(this.circle_limit,2);setOutPointHover(this.circle_ratio,3);setOutPointDown(this.circle_level,1);setOutPointDown(this.circle_limit,2);setOutPointDown(this.circle_ratio,3)};ComExtDraw.prototype.drawGrid=function(){var lineHorizontal=new Array(7);var lineVertical=new Array(7);var value;for(var i=0;i<7;i++){value=i*27+8.5;lineHorizontal[i]=document.createElementNS("http://www.w3.org/2000/svg","line");lineHorizontal[i].setAttribute("stroke-width","1");lineHorizontal[i].setAttribute("x1","20");lineHorizontal[i].setAttribute("y1",value);lineHorizontal[i].setAttribute("x2","181.5");lineHorizontal[i].setAttribute("y2",value);lineHorizontal[i].setAttribute("stroke","green");out_svg.appendChild(lineHorizontal[i])}for(i=0;i<7;i++){value=i*27+20.5;lineVertical[i]=document.createElementNS("http://www.w3.org/2000/svg","line");lineVertical[i].setAttribute("stroke-width","1");lineVertical[i].setAttribute("x1",value);lineVertical[i].setAttribute("y1","8.5");lineVertical[i].setAttribute("x2",value);lineVertical[i].setAttribute("y2","170.5");lineVertical[i].setAttribute("stroke","green");out_svg.appendChild(lineVertical[i])}}}function setOutPointHover(element,index){element.onmouseover=function(event){switch(index){case 1:case 2:document.documentElement.style.cursor="sw-resize";break;case 3:document.documentElement.style.cursor="s-resize";break;default:document.documentElement.style.cursor="default";break}paramsOfOutPoint.isHover=true;if(event.preventDefault){event.preventDefault()}else{event.returnValue=false}};element.onmouseout=function(event){if(paramsOfOutPoint.isDown===false){document.documentElement.style.cursor="default"}paramsOfOutPoint.isHover=false;if(event.preventDefault){event.preventDefault()}else{event.returnValue=false}};element.onmouseup=function(event){paramsOfOutPoint.isHover=false;paramsOfOutPoint.isDown=false;paramsOfOutPoint.flag=false;if(event.preventDefault){event.preventDefault()}else{event.returnValue=false}}}function setOutPointDown(element,index){element.onmousedown=function(event){paramsOfOutPoint.index=index;paramsOfOutPoint.currentX=event.pageX-curtainLeft;paramsOfOutPoint.currentY=event.pageY-curtainTop;paramsOfOutPoint.isDown=true;paramsOfOutPoint.flag=true;if(event.preventDefault){event.preventDefault()}else{event.returnValue=false}clearTextFocusEvent()}}
IN A
IN B
IN C
IN D
+40 +30 +20 +10 0dB -10 -20 -30 -40 +180° +135° +90° +45° -45° -90° -135° -180° 20 50 100 200 500 1K 2K 5K 10K 20K
噪声门 门限dBu
ms m ft
相位
延时 ms m ft
相位
EQ
EQ1
EQ2
EQ3
EQ4
EQ5
EQ6
DEQ1
DEQ2
分频
高通 低通 模式 频率Hz 斜率dB/oct 模式 频率Hz 斜率dB/oct
dB
压缩 限幅 压缩电平 限幅电平 压缩比 响应时间 释放时间 响应时间 释放时间
A
B
C
D
OUT
1
A
B
C
D
OUT
2
A
B
C
D
OUT
3
A
B
C
D
OUT
4
A
B
C
D
OUT
5
A
B
C
D
OUT
6
A
B
C
D
OUT
7
A
B
C
D
OUT
8
X退出对话框
X退出对话框
编号 类型 名称
程序1 用户程序
程序2 用户程序
程序3 用户程序
程序4 用户程序
程序5 用户程序
程序6 用户程序
程序7 用户程序
程序8 用户程序
程序9 用户程序
程序10 用户程序
程序11 用户程序
程序12 用户程序
程序13 用户程序
程序14 用户程序
程序15 用户程序
程序16 用户程序
程序17 用户程序
程序18 用户程序
程序19 用户程序
程序20 用户程序
程序21 用户程序
程序22 用户程序
程序23 用户程序
程序24 用户程序
程序25 用户程序
程序26 用户程序
程序27 用户程序
程序28 用户程序
程序29 用户程序
程序30 用户程序
X退出对话框 锁定
锁定
设备启动设置
设备界面
X退出对话框


X退出对话框
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8
Type CH_A CH_B CH_C CH_D CH_1 CH_2 CH_3 CH_4 CH_5 CH_6 CH_7 CH_8