0 Members and 2 Guests are viewing this topic.
It could be because your song was not maxed out, volume-wise. In Audacity you need to increase its volume (amplification) so it's loud enough, else the static produced by the calc will drown the song.
Any progress? Any new features? MPoupe, you need to add a pause function so if you want to get out during the song, you can.
unsigned samp=gpBuffer[giBufIndex++]>>3; if(giBufIndex>=giLength) return; unsigned x; for(x=0;x<4;++x){ if(samp>7){ SCIF2.SCFTDR=255; samp-=8; }else{ SCIF2.SCFTDR=ptab[samp]; samp=0; } while((SCIF2.SCFDR.WORD >> 8)>=15); }
static const unsigned char ptab[]={0,1,3,7,15,31,63,127};