Table instrument_patches=AccessTableFile("../../u7/static/xmidi.mt"); cout << "Found " << instrument_patches.object_list.size() << " patches" << endl;  for(size_t i=0;i<instrument_patches.object_list.size();i++) { uint32 length; string s; char *t=instrument_patches.read_object(i,length); cout << i <<" " << length << endl; s="/tmp/patches/patch"; char	buf[32]; sprintf(buf,"%d",i); cout << "open " << s << endl; s+=buf; FILE *fp=fopen(s.c_str(),"wb"); fwrite(t,length,1,fp); fclose(fp); if(t) delete [] t; }
int	main(void){		seq_init();	return 0;	audio.Init(9615*2,2);	return 0;}