if (step<bpmscalesteps){constpc=Math.round((bpmscalesteps-step)/bpmscalesteps*90);bpmscaleHor.$fill.style.width=pc+"%";setTimeout(bpmelapseHor,20,step+1,up);return;}
constbuf=scaleHor._max;
scaleHor.max(buf*10);
scaleHor.min(buf/10);
scaleHor.step(buf/100);
}
else{
if (step<bpmscalesteps){constpc=Math.round(step/bpmscalesteps*10);bpmscaleHor.$fill.style.width=pc+"%";setTimeout(bpmelapseHor,20,step+1,up);return;}
constbuf=scaleHor._max/10;
scaleHor.max(buf);
scaleHor.min(buf/100);
scaleHor.step(buf/1000);
}
scaleHor.$fill.style.width="10%";
scaleHor.$fill.style.borderColor='#2cc9ff';
}
functionbpmelapseVer(step,up){
if (up){
if (step<bpmscalesteps){constpc=Math.round((bpmscalesteps-step)/bpmscalesteps*90);bpmscaleVer.$fill.style.width=pc+"%";setTimeout(bpmelapseVer,20,step+1,up);return;}
constbuf=scaleVer._max;
scaleVer.max(buf*10);
scaleVer.min(buf/10);
scaleVer.step(buf/100);
}
else{
if (step<bpmscalesteps){constpc=Math.round(step/bpmscalesteps*10);bpmscaleVer.$fill.style.width=pc+"%";setTimeout(bpmelapseVer,20,step+1,up);return;}