void playHi() { system("rplay samples/live/hitom.rra"); if(RecFlag == 1) drum(duration,hitom,TOM_HIGH); }
void playBass() { system("rplay samples/live/bass.rra"); if(RecFlag == 1) drum(duration,bass,BASS_MIDDLE); }
void playSnare() { system("rplay samples/live/snare.rra"); if(RecFlag == 1) drum(duration,snare,SNARE); }
void playRide() { system("rplay samples/live/ride1.rra"); if(RecFlag == 1) drum(duration,ride,RIDE); }
void playCrash() { system("rplay samples/live/crash.rra"); if(RecFlag == 1) drum(duration,crash, CRASH); }
void playFloor() { system("rplay samples/live/floortom.rra"); if(RecFlag == 1) drum(duration,floortom,TIM_MIDDLE); }
void playLow() { system("rplay samples/live/lotom.rra"); if(RecFlag == 1) drum(duration,lotom,TOM_LOW); }
void note_on(int ch, int num, int vol) { if( ch != 10 ) { if( vol == 0 || instruments[ ch ].level == 0 ) return; if( !note_on_at_blank_channel( ch, num, vol ) ) note_on_at_oldest_channel( ch, num, vol ); } else { int drum_val = 1 << parcussion[ num ]; if( drum_val != ( 1 << 5 ) ) drum( drum_val ); } }
void playHihat() { system("rplay samples/live/hihat.rra"); if(RecFlag == 1) drum(duration,hihat,HAT_CLOSED); }