[f40a309] | 1 | /*
|
---|
| 2 | =============================================================================
|
---|
| 3 | libdsp.h -- librarian common parameter header file
|
---|
| 4 | Version 18 -- 1988-11-28 -- D.N. Lynx Crowe
|
---|
| 5 |
|
---|
| 6 | Uses definitions from: "graphdef.h", "midas.h", "vsdd.h"
|
---|
| 7 | =============================================================================
|
---|
| 8 | */
|
---|
| 9 |
|
---|
| 10 | #define LIBROBJ 8 /* librarian display object number */
|
---|
| 11 | #define LIBRPRI 8 /* librarian display object priority */
|
---|
| 12 |
|
---|
| 13 | #define LCURX 32 /* initial cursor x location */
|
---|
| 14 | #define LCURY 316 /* initial cursor y location */
|
---|
| 15 |
|
---|
| 16 | #define TTCURC 1 /* typewriter cursor color */
|
---|
| 17 | #define TTBACK 10 /* typewriter background color */
|
---|
| 18 |
|
---|
| 19 | #define LBORD 11 /* librarian display border color */
|
---|
| 20 | #define LUNDRLN 12 /* librarian title underline color */
|
---|
| 21 | #define LD_DELC 14 /* librarian file delete color */
|
---|
| 22 | #define HILORC 6 /* librarian autoload hilite color */
|
---|
| 23 |
|
---|
| 24 | #define LD_EMCF 14 /* error message foreground color */
|
---|
| 25 | #define LD_EMCB 9 /* error message background color */
|
---|
| 26 | #define LD_SELC 13 /* file selected foreground color */
|
---|
| 27 |
|
---|
| 28 | #define LCFBX00 12 /* foreground color */
|
---|
| 29 | #define LCFBX01 12 /* foreground color */
|
---|
| 30 | #define LCFBX02 12 /* foreground color */
|
---|
| 31 | #define LCFBX03 12 /* foreground color */
|
---|
| 32 | #define LCFBX04 12 /* foreground color */
|
---|
| 33 | #define LCFBX05 12 /* foreground color */
|
---|
| 34 | #define LCFBX06 12 /* foreground color */
|
---|
| 35 | #define LCFBX07 12 /* foreground color */
|
---|
| 36 | #define LCFBX08 12 /* foreground color */
|
---|
| 37 | #define LCFBX09 12 /* foreground color */
|
---|
| 38 | #define LCFBX10 12 /* foreground color */
|
---|
| 39 |
|
---|
| 40 | #define LCBBX00 2 /* background color */
|
---|
| 41 | #define LCBBX01 2 /* background color */
|
---|
| 42 | #define LCBBX02 3 /* background color */
|
---|
| 43 | #define LCBBX03 4 /* background color */
|
---|
| 44 | #define LCBBX04 5 /* background color */
|
---|
| 45 | #define LCBBX05 6 /* background color */
|
---|
| 46 | #define LCBBX06 7 /* background color */
|
---|
| 47 | #define LCBBX07 7 /* background color */
|
---|
| 48 | #define LCBBX08 7 /* background color */
|
---|
| 49 | #define LCBBX09 8 /* background color */
|
---|
| 50 | #define LCBBX10 9 /* background color */
|
---|
| 51 |
|
---|
| 52 | /* |
---|
| 53 |
|
---|
| 54 | */
|
---|
| 55 |
|
---|
| 56 | #define FCMAX 20 /* number of file catalog entries */
|
---|
| 57 |
|
---|
| 58 | #define CATNAME "M7FILES.CAT" /* catalog file name */
|
---|
| 59 |
|
---|
| 60 | /* file types */
|
---|
| 61 |
|
---|
| 62 | #define FT_ASG 1 /* Assignments */
|
---|
| 63 | #define FT_ORL 2 /* Orchestra (old Lo Orch) */
|
---|
| 64 | #define FT_ORH 3 /* Orchestra (old Hi Orch) */
|
---|
| 65 | #define FT_SCR 4 /* Score */
|
---|
| 66 | #define FT_TUN 5 /* Tunings */
|
---|
| 67 | #define FT_WAV 6 /* Waveshapes */
|
---|
| 68 | #define FT_ORC 7 /* Orchestra */
|
---|
| 69 | #define FT_PAT 8 /* Patches */
|
---|
| 70 | #define FT_SEQ 9 /* Sequences */
|
---|
| 71 |
|
---|
| 72 | #define NFTYPES 9 /* number of file types */
|
---|
| 73 |
|
---|
| 74 | /* load types */
|
---|
| 75 |
|
---|
| 76 | #define LT_ASG 0 /* Assignment */
|
---|
| 77 | #define LT_ORL 1 /* Orchestra - Lo */
|
---|
| 78 | #define LT_ORH 2 /* Orchestra - Hi */
|
---|
| 79 | #define LT_SCR 3 /* Score */
|
---|
| 80 | #define LT_TUN 4 /* Tuning */
|
---|
| 81 | #define LT_WAV 5 /* Waveshape */
|
---|
| 82 | #define LT_PAT 6 /* Patches */
|
---|
| 83 | #define LT_SEQ 7 /* Sequences */
|
---|
| 84 |
|
---|
| 85 | #define NLTYPES 8 /* number of load types */
|
---|
| 86 |
|
---|
| 87 | /* |
---|
| 88 |
|
---|
| 89 | */
|
---|
| 90 |
|
---|
| 91 | struct scndx { /* score index */
|
---|
| 92 |
|
---|
| 93 | long sclen; /* score length */
|
---|
| 94 | char scfnm[16]; /* score name */
|
---|
| 95 | };
|
---|
| 96 |
|
---|
| 97 | struct fcat { /* file catalog entry */
|
---|
| 98 |
|
---|
| 99 | char fcsize[3]; /* allocated size in clusters */
|
---|
| 100 | char fcp0; /* parameter 0 - Autoload flag */
|
---|
| 101 | char fcname[8]; /* directory name */
|
---|
| 102 | char fcp1; /* parameter 1 - -reserved- */
|
---|
| 103 | char fcextn[3]; /* directory extension (file type) */
|
---|
| 104 | char fcp2; /* parameter 2 - -reserved- */
|
---|
| 105 | char fccmnt[37]; /* comment field */
|
---|
| 106 | char fceol[2]; /* end of line (CR, LF) */
|
---|
| 107 | };
|
---|
| 108 |
|
---|
| 109 | struct mlibhdr { /* MIDAS library file header */
|
---|
| 110 |
|
---|
| 111 | char l_csum[8]; /* checksum in HEX ASCII, of all but l_csum[] */
|
---|
| 112 | char l_name[8]; /* file name */
|
---|
| 113 | char l_type[3]; /* file type */
|
---|
| 114 | char l_cmnt[37]; /* comment */
|
---|
| 115 | };
|
---|
| 116 |
|
---|
| 117 | #define LH_LEN (sizeof (struct mlibhdr))
|
---|
| 118 |
|
---|
| 119 | #define OR_LEN1 ((long)&idefs[0].idhwvaf[0]-(long)&idefs[0].idhflag)
|
---|
| 120 | #define OR_LEN2 (2 * (NUMWPNT + NUMHARM))
|
---|
| 121 |
|
---|
| 122 | #ifndef M7CAT
|
---|
| 123 | extern struct fcat filecat[];
|
---|
| 124 | #endif
|
---|