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

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

Removed form-feed comments.

  • Property mode set to 100644
File size: 3.7 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
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#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
87struct scndx { /* score index */
88
89 int32_t sclen; /* score length */
90 int8_t scfnm[16]; /* score name */
91};
92
93struct fcat { /* file catalog entry */
94
95 int8_t fcsize[3]; /* allocated size in clusters */
96 int8_t fcp0; /* parameter 0 - Autoload flag */
97 int8_t fcname[8]; /* directory name */
98 int8_t fcp1; /* parameter 1 - -reserved- */
99 int8_t fcextn[3]; /* directory extension (file type) */
100 int8_t fcp2; /* parameter 2 - -reserved- */
101 int8_t fccmnt[37]; /* comment field */
102 int8_t fceol[2]; /* end of line (CR, LF) */
103};
104
105struct mlibhdr { /* MIDAS library file header */
106
107 int8_t l_csum[8]; /* checksum in HEX ASCII, of all but l_csum[] */
108 int8_t l_name[8]; /* file name */
109 int8_t l_type[3]; /* file type */
110 int8_t l_cmnt[37]; /* comment */
111};
112
113#define LH_LEN (sizeof (struct mlibhdr))
114
115#define OR_LEN1 ((int32_t)&idefs[0].idhwvaf[0] - (int32_t)&idefs[0].idhflag)
116#define OR_LEN2 (2 * (NUMWPNT + NUMHARM))
Note: See TracBrowser for help on using the repository browser.