Пример #1
0
void playHi()
{
	system("rplay samples/live/hitom.rra");
	if(RecFlag == 1)
		drum(duration,hitom,TOM_HIGH);
	
}
Пример #2
0
void playBass()
{
	system("rplay samples/live/bass.rra");
	if(RecFlag == 1)
		drum(duration,bass,BASS_MIDDLE);
	
}
Пример #3
0
void playSnare()
{
	system("rplay samples/live/snare.rra");
	if(RecFlag == 1)
		drum(duration,snare,SNARE);
	
}
Пример #4
0
void playRide()
{
	system("rplay samples/live/ride1.rra");
	if(RecFlag == 1)
		drum(duration,ride,RIDE);
	
	
}
Пример #5
0
void playCrash()
{
	system("rplay samples/live/crash.rra");
	if(RecFlag == 1)
		drum(duration,crash, CRASH);
	
	
}
Пример #6
0
void playFloor()
{
	system("rplay samples/live/floortom.rra");
	if(RecFlag == 1)
		drum(duration,floortom,TIM_MIDDLE);
	

}
Пример #7
0
void playLow()
{
	system("rplay samples/live/lotom.rra");
	if(RecFlag == 1)
		drum(duration,lotom,TOM_LOW);
	

}
Пример #8
0
 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 );
   }
 }
Пример #9
0
void playHihat()
{
	system("rplay samples/live/hihat.rra");
	if(RecFlag == 1)
		drum(duration,hihat,HAT_CLOSED);
}