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