buf[0]=tmp_buf;
/* decide how much to read */
if(((buf[0]&MSB_MASK)==PROGRAM_CHANGE) || ((buf[0]&MSB_MASK)==CHANNEL_PRESSURE)) {
printf("debug: program change or channel pressure event detected\n");
buf[0]=tmp_buf;
/* decide how much to read */
if(((buf[0]&MSB_MASK)==PROGRAM_CHANGE) || ((buf[0]&MSB_MASK)==CHANNEL_PRESSURE)) {
printf("debug: program change or channel pressure event detected\n");
printf("debug: i = %d\n",i);
for(k=0;k<i;k++) {
for(j=7;j>=0;j--) printf("%s%d%s",(j==7?"|":""),
printf("debug: i = %d\n",i);
for(k=0;k<i;k++) {
for(j=7;j>=0;j--) printf("%s%d%s",(j==7?"|":""),