type = 5;			/* Flanger */ 
/* We have flanger implemented, but that's for GS. * GS's flanger sounds horrible when set for drum in * XG mode, so we cannot use it. */ type = 0;			/* Flanger -> Chorus 1 */ 
void set_xg_chorus_type(int msb, int lsb){	int type = 2;	if ((msb >= 0x00 && msb <= 0x40) ||	    (msb >= 0x45 && msb <= 0x47) ||	    (msb >= 0x49))			/* NO EFFECT */	{		ctl->cmsg(CMSG_INFO,VERB_NOISY,"XG Set Chorus Type (NO EFFECT %d %d)", msb, lsb);		return;	}	switch(msb)	{	    case 0x41:		type = 0;			/* Chorus 1 */		break;	    case 0x42:		type = 0;			/* Celeste 1 -> Chorus 1 */		break;	    case 0x43:		type = 5;			/* Flanger */		break;	    default:		type = 2;			/* unsupported -> Chorus 3 */	    break;	}	if (lsb == 0x01)	{	    switch(msb)	    {		case 0x41:		    type = 1;			/* Chorus 2 */		    break;		case 0x42:		    type = 1;			/* Celeste 2 -> Chorus 2 */		    break;		default:		    break;	    }	}	else if (lsb == 0x02)	{	    switch(msb)	    {		case 0x41:		    type = 2;			/* Chorus 3 */		    break;		case 0x42:		    type = 2;			/* Celeste 3 -> Chorus 3 */		    break;		default:		    break;	    }	}	else if (lsb == 0x08)	{	    switch(msb)	    {		case 0x41:		    type = 3;			/* Chorus 4 */		    break;		case 0x42:		    type = 3;			/* Celeste 4 -> Chorus 4 */		    break;		default:		    break;	    }	}	set_chorus_macro_gs(type);	recompute_chorus_status_gs();	ctl->cmsg(CMSG_INFO,VERB_NOISY,"XG Set Chorus Type (%d)", type);}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/f074c5f3666e8c12c0767c9088ca7d28c9e64297/readmidi.c/buggy/timidity/readmidi.c