Changeset 7258c6a in buchla-68k for include/instdsp.h
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/instdsp.h
r0292fbb r7258c6a 117 117 118 118 struct pflent *nextpf; /* next entry pointer */ 119 u nsignedpftrig; /* trigger number */120 u nsignedpfvpval; /* voice / parameter number */121 longd1reg; /* D1 register contents */122 longd2reg; /* D2 register contents */123 longd4reg; /* D4 register contents */124 char*a1reg; /* A1 register contents */125 char*a2reg; /* A2 register contents */126 char*a3reg; /* A3 register contents */119 uint16_t pftrig; /* trigger number */ 120 uint16_t pfvpval; /* voice / parameter number */ 121 int32_t d1reg; /* D1 register contents */ 122 int32_t d2reg; /* D2 register contents */ 123 int32_t d4reg; /* D4 register contents */ 124 int8_t *a1reg; /* A1 register contents */ 125 int8_t *a2reg; /* A2 register contents */ 126 int8_t *a3reg; /* A3 register contents */ 127 127 }; 128 128 … … 135 135 struct instpnt { /* function point definition */ 136 136 137 short iptim; /* time (packed) */138 short ipval; /* value */139 short ipvmlt; /* value multiplier */140 141 charipvsrc; /* value source */142 charipact; /* action code */137 int16_t iptim; /* time (packed) */ 138 int16_t ipval; /* value */ 139 int16_t ipvmlt; /* value multiplier */ 140 141 int8_t ipvsrc; /* value source */ 142 int8_t ipact; /* action code */ 143 143 144 144 #define AC_NULL 0 /* null action */ … … 151 151 #define AC_UNDF 7 /* -- undefined - treated as AC_NULL -- */ 152 152 153 charippar1; /* action parameter 1 (point) */154 charippar2; /* action parameter 2 (count) */155 156 charippar3; /* action parameter 3 (counter) */157 charippad; /* padding for even boundary */153 int8_t ippar1; /* action parameter 1 (point) */ 154 int8_t ippar2; /* action parameter 2 (count) */ 155 156 int8_t ippar3; /* action parameter 3 (counter) */ 157 int8_t ippad; /* padding for even boundary */ 158 158 }; 159 159 … … 166 166 struct idfnhdr { /* function header */ 167 167 168 short idfpch; /* pitch (used for freq1 only) */169 short idfmlt; /* overall value multiplier (-1 .. +1) */170 171 charidfsrc; /* overall value source */172 charidfpif; /* points in the function */173 174 charidfpt1; /* index of first point (0..NIPTS) */175 charidftmd; /* trigger mode and control bits */168 int16_t idfpch; /* pitch (used for freq1 only) */ 169 int16_t idfmlt; /* overall value multiplier (-1 .. +1) */ 170 171 int8_t idfsrc; /* overall value source */ 172 int8_t idfpif; /* points in the function */ 173 174 int8_t idfpt1; /* index of first point (0..NIPTS) */ 175 int8_t idftmd; /* trigger mode and control bits */ 176 176 177 177 #define I_TM_KEY 0x01 /* trigger on key closure */ … … 181 181 #define I_VNSUBN 0x08 /* new value sub-n bit (matches hardware) */ 182 182 183 charidfcpt; /* index of current point (0..NIPTS) */184 charidfprm; /* parameter associated with this function */185 186 short idftrg; /* trigger that started the function */183 int8_t idfcpt; /* index of current point (0..NIPTS) */ 184 int8_t idfprm; /* parameter associated with this function */ 185 186 int16_t idftrg; /* trigger that started the function */ 187 187 }; 188 188 … … 195 195 struct instdef { /* instrument definition */ 196 196 197 short idhflag; /* flags */198 199 charidhname[MAXIDLN+1]; /* instrument name */200 charidhcom1[MAXIDLN+1]; /* first line of comments */201 charidhcom2[MAXIDLN+1]; /* second line of comments */202 charidhcom3[MAXIDLN+1]; /* third line of comments */203 204 charidhcfg; /* configuration byte */205 charidhplft; /* points unused */206 207 charidhwsa; /* waveshape A library number */208 charidhwsb; /* waveshape B library number */209 210 charidhos1c; /* oscillator 1 controls */211 charidhos2c; /* oscillator 2 controls */212 charidhos3c; /* oscillator 3 controls */213 charidhos4c; /* oscillator 4 controls */197 int16_t idhflag; /* flags */ 198 199 int8_t idhname[MAXIDLN+1]; /* instrument name */ 200 int8_t idhcom1[MAXIDLN+1]; /* first line of comments */ 201 int8_t idhcom2[MAXIDLN+1]; /* second line of comments */ 202 int8_t idhcom3[MAXIDLN+1]; /* third line of comments */ 203 204 int8_t idhcfg; /* configuration byte */ 205 int8_t idhplft; /* points unused */ 206 207 int8_t idhwsa; /* waveshape A library number */ 208 int8_t idhwsb; /* waveshape B library number */ 209 210 int8_t idhos1c; /* oscillator 1 controls */ 211 int8_t idhos2c; /* oscillator 2 controls */ 212 int8_t idhos3c; /* oscillator 3 controls */ 213 int8_t idhos4c; /* oscillator 4 controls */ 214 214 215 215 #define OC_MOD 0x0003 /* oscillator mode mask */ … … 222 222 #define OC_SYN 0x0004 /* oscillator in sync mode */ 223 223 224 short idhos1v; /* oscillator 1 value */225 short idhos2v; /* oscillator 2 value */226 short idhos3v; /* oscillator 3 value */227 short idhos4v; /* oscillator 4 value */224 int16_t idhos1v; /* oscillator 1 value */ 225 int16_t idhos2v; /* oscillator 2 value */ 226 int16_t idhos3v; /* oscillator 3 value */ 227 int16_t idhos4v; /* oscillator 4 value */ 228 228 229 229 struct idfnhdr idhfnc[NFINST]; /* function headers */ … … 231 231 struct instpnt idhpnt[NIPNTS]; /* point table */ 232 232 233 short idhwvaf[NUMWPNT]; /* waveshape A final values */234 short idhwvao[NUMWPNT]; /* waveshape A offset values */235 short idhwvah[NUMHARM]; /* waveshape A harmonic values */236 237 short idhwvbf[NUMWPNT]; /* waveshape B final values */238 short idhwvbo[NUMWPNT]; /* waveshape B offset values */239 short idhwvbh[NUMHARM]; /* waveshape B harmonic values */240 241 }; 233 int16_t idhwvaf[NUMWPNT]; /* waveshape A final values */ 234 int16_t idhwvao[NUMWPNT]; /* waveshape A offset values */ 235 int16_t idhwvah[NUMHARM]; /* waveshape A harmonic values */ 236 237 int16_t idhwvbf[NUMWPNT]; /* waveshape B final values */ 238 int16_t idhwvbo[NUMWPNT]; /* waveshape B offset values */ 239 int16_t idhwvbh[NUMHARM]; /* waveshape B harmonic values */ 240 241 };
Note:
See TracChangeset
for help on using the changeset viewer.