// cond.h for dos newbat #define NOCONTROL 16/* max number of patchchords for control changes */ #define CHORDSIZE 15 /* max no of notes in a chord */ #define VOICES 25 /* maximum no of voices */ #define SCORERECSIZE 30 /* max no bytes in a score record */ #define NOTE 1 #define TRIG 2 /* / */ #define REST 4 /* r */ #define PROGRAMCHANGE 5 /* t */ #define NOOP 6 #define SETCHANNEL 7 /* h */ #define TEMPO 8 /* v or V */ #define UPPEDAL 9 //P #define PEDAL 10 // p #define CONTTEMPO 11 /* w */ #define MARK 12 /* m */ #define KEYVELOCITY 13 /* k */ #define BATON2 14 /* T */ #define DOTEQUALS 15 /* j */ #define INIT 19 /* I */ #define FTEMP 20 /* W */ #define CONTCONTROL 21 /* q */ #define MNOTEON 22 #define MNOTEOFF 23 #define NOACTION 24 #define STICKLEVELS 25 #define SYSEX 26 #define PITCHBEND 27 #define MEASURE 36 // nc.c and ns constants #define SMOOTHING 0.5// 0.0==infinite smoothing, 1.0==no smoothing #define X 1 #define Y 2 #define Z 3 #define P 4 #define V 5 #define S 6 short a[28],abeatset,arg1,arg2; long beatsum; long beat_time; short b[28],baton2,bufchan; unsigned char bufp; short b1,b2; unsigned char calf[2048]; short chan; short channel[VOICES]; short chord[VOICES*CHORDSIZE]; short chordpi[VOICES],chordp[VOICES]; short controler; short cont4,contp,ctempo,contpatch; short contch[NOCONTROL],contno[NOCONTROL];/* arrays defining patchcords */ short controlerfn[NOCONTROL],controlerfnv[NOCONTROL]; short contbalance[NOCONTROL]; short sustped[16]; long contime; short dataa,dist; short dotchange,dotro,dotrn; short diff[11]; short dx,dr0,drumset1,drumset2; short dynamic[VOICES],dyntype[VOICES]; long dur; short endscoreflag; extern short hit1,hit2;short hungnote,hungnoteno; long ibeat,itim; short interval; short kk; short keych,keyno,keyvel; long keytime; short mark,midich,midichar,minus14,minus15,mm; unsigned char midibuf[256],midirbuf[256]; unsigned char midipi,midipo,midirpi,midirpo; short num,nextkeyno,noteon,nextbeat,nobat,needscore; short notenumb1,notenumb2,noteon1,noteon2; long nexttime,nextnotetime; short pause,plus14,plus15; short potvalue,pot[5]; long pt_time,pt_beat; short prog; short recordmark,retoff,retseg,restpoint,recordcnt,recordlength; long samptime; short samp,scanmark,scancount,sustain; short scorestate,scoreadp,scorkd[SCORERECSIZE],scorkdend; extern short set1,set2;short stick,st0,st1,st2,set12p,sticklevelflag; short sum,suminc,range; short t[28],temposet,thru; long threshtime; short tranftype; extern long t_time;long t_times,t_tdata,t_tkey; short volume[16],vtemp,volumeconst,volx; short ivalue,ipvalue,invalue; float value,pvalue,nvalue; float contval[NOCONTROL]; short whack; short x1,x2,x[3]; short x1s,x1cont[16],x1type[16],x2s,x2cont[16],x2type[16]; short y11,y2,y[3]; short y1s,y1cont[16],y1type[16],y2s,y2cont[16],y2type[16]; short zp,z1,z2,z[3]; short zero1x,zero1y,zero2x,zero2y,zcalib; char midif[100],scoref[100],scorepf[100]; short newdotp,scoresok;