source: buchla-68k/include/libdsp.h@ f7428b1

Last change on this file since f7428b1 was f7428b1, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Started to rework include files.

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