static void reset_midi(void) { int i; for (i=0; i<16; i++) { reset_controllers(i); /* The rest of these are unaffected by the Reset All Controllers event */ channel[i].program=default_program; channel[i].panning=NO_PANNING; channel[i].pitchsens=2; channel[i].bank=0; /* tone bank or drum set */ } reset_voices(); }
static void reset_midi(void) { int i; for (i=0; i<MAXCHAN; i++) { reset_controllers(i); /* The rest of these are unaffected by the Reset All Controllers event */ channel[i].program=default_program; channel[i].panning=NO_PANNING; channel[i].pitchsens=2; channel[i].bank=0; /* tone bank or drum set */ channel[i].harmoniccontent=64, channel[i].releasetime=64, channel[i].attacktime=64, channel[i].brightness=64, channel[i].sfx=0; } reset_voices(); }