 
 void setSymb(char mve){
 
+    // if its a 1 set change to dmark other wise set change to dspace
     if((charbuf&(0x01<<mve))>>mve) {
       change = dmark;
     } else {

    sign *= -1;
  }

  return (char)(128+(sign*sine[pstn]));
}

void setCbuff(){
    int i = 0;
    for(i = 0; i < (sizeof(baudot_letters)/sizeof(char)); i++){
      
      if(msg[bytePstn] == baudot_letters[i]) {
        if(shiftToNum == 1){
          shiftToNum = 0;
          charbuf = ((baudot[31])<<2)+3;

    }

    unsigned char mve = 0;
    // endianness thing
    if (lsbf != 1) {
      // MSB first
      mve = (bits-1)-bitPstn;
    } else {
      // LSB first
      mve = bitPstn;
    }

    // get if 0 or 1 that were transmitting
    setSymb(mve);
  }

  // set PWM duty cycle
  OCR2B = calcAmp();
}
