opt_realtime_playing = 2;
opt_realtime_playing = 1;
void rtsyn_init(void){	int i,j;		/* set constants */	opt_realtime_playing = 2; /* Enable loading patch while playing */	allocate_cache_size = 0; /* Don't use pre-calclated samples */	auto_reduce_polyphony = 0;	current_keysig = current_temper_keysig = opt_init_keysig;	note_key_offset = 0;	time_advance=play_mode->rate/TICKTIME_HZ*2;	if (!(play_mode->encoding & PE_MONO))		time_advance >>= 1;	if (play_mode->encoding & PE_16BIT)		time_advance >>= 1;	if (opt_force_keysig != 8) {		i = current_keysig + ((current_keysig < 8) ? 7 : -6);		j = opt_force_keysig + ((current_keysig < 8) ? 7 : 10);		while (i != j && i != j + 12) {			if (++note_key_offset > 6)				note_key_offset -= 12;			i += (i > 10) ? -5 : 7;		}	}	i = current_keysig + ((current_keysig < 8) ? 7 : -9), j = 0;	while (i != 7 && i != 19)		i += (i < 7) ? 5 : -7, j++;	j += note_key_offset, j -= floor(j / 12.0) * 12;	current_freq_table = j;}