[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 |
|
---|
[7258c6a] | 91 | struct scndx { /* score index */
|
---|
| 92 |
|
---|
[f40a309] | 93 | int32_t sclen; /* score length */
|
---|
| 94 | int8_t scfnm[16]; /* score name */
|
---|
| 95 | };
|
---|
| 96 |
|
---|
[7258c6a] | 97 | struct fcat { /* file catalog entry */
|
---|
| 98 |
|
---|
| 99 | int8_t fcsize[3]; /* allocated size in clusters */
|
---|
| 100 | int8_t fcp0; /* parameter 0 - Autoload flag */
|
---|
| 101 | int8_t fcname[8]; /* directory name */
|
---|
| 102 | int8_t fcp1; /* parameter 1 - -reserved- */
|
---|
| 103 | int8_t fcextn[3]; /* directory extension (file type) */
|
---|
| 104 | int8_t fcp2; /* parameter 2 - -reserved- */
|
---|
[f40a309] | 105 | int8_t fccmnt[37]; /* comment field */
|
---|
| 106 | int8_t fceol[2]; /* end of line (CR, LF) */
|
---|
| 107 | };
|
---|
| 108 |
|
---|
[7258c6a] | 109 | struct mlibhdr { /* MIDAS library file header */
|
---|
| 110 |
|
---|
| 111 | int8_t l_csum[8]; /* checksum in HEX ASCII, of all but l_csum[] */
|
---|
| 112 | int8_t l_name[8]; /* file name */
|
---|
[f40a309] | 113 | int8_t l_type[3]; /* file type */
|
---|
| 114 | int8_t l_cmnt[37]; /* comment */
|
---|
| 115 | };
|
---|
| 116 |
|
---|
[7258c6a] | 117 | #define LH_LEN (sizeof (struct mlibhdr))
|
---|
[f40a309] | 118 |
|
---|
| 119 | #define OR_LEN1 ((int32_t)&idefs[0].idhwvaf[0]-(int32_t)&idefs[0].idhflag)
|
---|
| 120 | #define OR_LEN2 (2 * (NUMWPNT + NUMHARM))
|
---|
| 121 |
|
---|
| 122 | #ifndef M7CAT
|
---|
| 123 | extern struct fcat filecat[];
|
---|
| 124 | #endif
|
---|