Page 170 - MDP2020-1
P. 170

|    인천전자마이스터고등학교  ·············································································································
            164

                  if(  !bs13  &&  !br13  ){
                      noteOn(0,  bn13,100);
                      bs13  =  true;
                  }else  if(bs13  &&  br13){
                      noteOff(0,  bn13,0);
                      bs13=  false;
                  }
                  if(  !bs14  &&  !br14  ){
                      noteOn(0,  bn14,100);
                      bs14  =  true;
                  }else  if(bs14  &&  br14){
                      noteOff(0,  bn14,0);
                      bs14  =  false;
                  }

                  if(  !bs15  &&  !br15  ){
                      noteOn(0,  bn15,100);
                      bs15  =  true;
                  }else  if(bs15  &&  br15){
                      noteOff(0,  bn15,0);
                      bs15  =  false;
                  }
                  if(  !bs16  &&  !br16  ){
                      noteOn(0,  bn16,100);
                      bs16  =  true;
                  }else  if(bs16  &&  br16){
                      noteOff(0,  bn16,0);
                      bs16=  false;
                  }
                  if(  !bs17  &&  !br17  ){
                      noteOn(0,  bn17,100);
                      bs17  =  true;
                  }else  if(bs17  &&  br17){
                      noteOff(0,  bn17,0);
                      bs17=  false;
                  }
                  if(  !bs18  &&  !br18  ){
                      noteOn(0,  bn18,100);
                      bs18  =  true;
                  }else  if(bs18  &&  br18){
                      noteOff(0,  bn18,0);
                      bs18=  false;
                  }
                  if(  !bs19  &&  !br19  ){
                      noteOn(0,  bn19,100);
   165   166   167   168   169   170   171   172   173   174   175