1 | /*
|
---|
2 | =============================================================================
|
---|
3 | wsdsp.h -- waveshape editor common parameter header file
|
---|
4 | Version 12 -- 1987-12-14 -- D.N. Lynx Crowe
|
---|
5 |
|
---|
6 | Uses definitions from: "graphdef.h", "midas.h", "vsdd.h"
|
---|
7 | Note that the definition of wstbl MUST match the corresponding
|
---|
8 | area in instdef, or chaos will result.
|
---|
9 | =============================================================================
|
---|
10 | */
|
---|
11 |
|
---|
12 | #pragma once
|
---|
13 |
|
---|
14 | #include "midas.h"
|
---|
15 | #include "stdint.h"
|
---|
16 |
|
---|
17 | struct wstbl { /* waveshape table library entry */
|
---|
18 |
|
---|
19 | int16_t final[NUMWPNT]; /* final values */
|
---|
20 | int16_t offset[NUMWPNT]; /* offset values */
|
---|
21 | int16_t harmon[NUMHARM]; /* harmonic values */
|
---|
22 | };
|
---|
23 |
|
---|
24 | #define WAVEOBJ 8 /* waveshape display object number */
|
---|
25 | #define WAVEPRI 8 /* waveshape display object priority */
|
---|
26 |
|
---|
27 | #define WAVEFL V_RES3 /* waveshape display object flags */
|
---|
28 |
|
---|
29 | #define WCURX 256 /* initial cursor x location */
|
---|
30 | #define WCURY 128 /* initial cursor y location */
|
---|
31 |
|
---|
32 | #define WBSF1 128 /* waveshape bar scaling multiplier */
|
---|
33 | #define WBSF2 100 /* waveshape bar scaling divisor */
|
---|
34 | #define WBOFF 306 /* waveshape bar offset */
|
---|
35 |
|
---|
36 | #define WPSF1 1 /* waveshape point scaling multiplier */
|
---|
37 | #define WPSF2 8 /* waveshape point scaling divisor */
|
---|
38 | #define WPOFF 133 /* waveshape point offset */
|
---|
39 |
|
---|
40 | #define WBORD 2 /* waveshape display border color */
|
---|
41 | #define WZBC 10 /* waveshape zero line color */
|
---|
42 |
|
---|
43 | #define WS_CHGC 13 /* waveshape changed color */
|
---|
44 | #define WS_ENTRY 12 /* waveshape data entry color */
|
---|
45 |
|
---|
46 | #define WDCURS 1 /* waveshape normal cursor color */
|
---|
47 | #define WS_GRAB 13 /* waveshape pnt grabbed cursor color */
|
---|
48 |
|
---|
49 | #define WBCN 8 /* waveshape bar color - negative */
|
---|
50 | #define WBCP 9 /* waveshape bar color - positive */
|
---|
51 |
|
---|
52 | #define WOVC 6 /* waveshape offset point color */
|
---|
53 | #define WFVC 7 /* waveshape final point color */
|
---|
54 |
|
---|
55 | #define WCFBX00 11 /* foreground color */
|
---|
56 | #define WCFBX01 11 /* foreground color */
|
---|
57 | #define WCFBX02 11 /* foreground color */
|
---|
58 | #define WCFBX03 11 /* foreground color */
|
---|
59 | #define WCFBX04 11 /* foreground color */
|
---|
60 | #define WCFBX05 11 /* foreground color */
|
---|
61 |
|
---|
62 | #define WCBBX00 3 /* background color */
|
---|
63 | #define WCBBX01 4 /* background color */
|
---|
64 | #define WCBBX02 5 /* background color */
|
---|
65 | #define WCBBX03 14 /* background color */
|
---|
66 | #define WCBBX04 5 /* background color */
|
---|
67 | #define WCBBX05 14 /* background color */
|
---|
68 |
|
---|
69 | #define WAVE_OFF 9
|
---|
70 | #define WDTH_OFF 6
|
---|
71 | #define WINS_OFF 11
|
---|
72 | #define WHRM_OFF 10
|
---|
73 | #define WHRV_OFF 6
|
---|
74 | #define WOFF_OFF 14
|
---|
75 | #define WPNT_OFF 4
|
---|
76 | #define WSLT_OFF 19
|
---|
77 | #define WVCE_OFF 18
|
---|
78 | #define WFNL_OFF 14
|
---|