Changeset f537c48 in buchla-68k
- Timestamp:
- 11/12/2017 03:48:02 PM (7 years ago)
- Branches:
- master
- Children:
- 6f49665
- Parents:
- 5c977dd
- git-author:
- Thomas Lopatic <thomas@…> (11/12/2017 03:47:58 PM)
- git-committer:
- Thomas Lopatic <thomas@…> (11/12/2017 03:48:02 PM)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
include/patch.h
r5c977dd rf537c48 38 38 struct patch { /* patch table entry (16 bytes per entry) */ 39 39 40 uint16_tnextstm; /* index of next entry in stm chain */41 uint16_tprevstm; /* index of previous entry in stm chain */40 int16_t nextstm; /* index of next entry in stm chain */ 41 int16_t prevstm; /* index of previous entry in stm chain */ 42 42 uint16_t defnum; /* definer */ 43 43 uint16_t stmnum; /* stimulus */ … … 50 50 struct defent { /* definition table entry -- 10 bytes per entry */ 51 51 52 uint16_tnextdef; /* index of next in def chain */52 int16_t nextdef; /* index of next in def chain */ 53 53 uint16_t stm; /* stimulus */ 54 54 uint16_t adspec; /* destination type */ -
ram/etadyn.c
r5c977dd rf537c48 47 47 g = grp + 1; 48 48 49 fpmant = (uint16_t)((( (int32_t)curintp & 0x0000FFF0L) *50 ( (int32_t)timemlt & 0x0000FFFFL)) >> 15);49 fpmant = (uint16_t)(((uint32_t)(curintp & 0xFFF0) * 50 (uint32_t)timemlt) >> 15); 51 51 52 52 fpexp = expbit[curintp & 0x000F]; -
ram/etiosc.c
r5c977dd rf537c48 75 75 cv -= 160; 76 76 buf[0] = (int8_t)(cv / 1200); 77 rem = (int8_t)(cv - (buf[0] * 1200));77 rem = cv - (buf[0] * 1200); 78 78 tmp = rem / 100; 79 79 rem -= (tmp * 100); -
ram/ptselbx.c
r5c977dd rf537c48 58 58 struct patch ptebuf; /* pte buffer -- patch table format */ 59 59 60 int8_t ptdebuf[50];/* patch edit buffer */61 62 int8_t *rawdfst[] = { /* def/stm field initial contents */60 int8_t ptdebuf[50]; /* patch edit buffer */ 61 62 int8_t *rawdfst[] = { /* def/stm field initial contents */ 63 63 64 64 "Key 001 1 01", … … 68 68 }; 69 69 70 int8_t *rawdest[] = { /* destination field initial contents */70 int8_t *rawdest[] = { /* destination field initial contents */ 71 71 72 72 "??????? 00 ??", /* ?????? 00 */ … … 99 99 }; 100 100 101 int8_t *rawmode[] = { "Frq ", "Pch ", "Int ", "Rat " }; /* oscillator modes */102 int8_t *rawmdat[] = { "00.1 ", "0C 00", "+0000", "1/1 " }; /* oscillator data */103 104 int16_t omtabl[] = { PSO_FRQ, PSO_PCH, PSO_INT, PSO_RAT }; /* oscillator modes */105 int16_t omdtab[] = { 2, 320, 0, 0 }; /* oscillator data */106 int16_t omftab[] = { 6, 7, 4, 5 }; /* mode data format */107 108 int8_t *rawfpud[] = { "PchWh", "+0.00", "00001", "\2400.00", "Start" };109 110 int16_t fpudtab[] = { SM_HTPW, 0, 1, 0, 1 };111 int16_t fpuetab[] = { 11, 1, 2, 3, 9 };101 int8_t *rawmode[] = { "Frq ", "Pch ", "Int ", "Rat " }; /* oscillator modes */ 102 int8_t *rawmdat[] = { "00.1 ", "0C 00", "+0000", "1/1 " }; /* oscillator data */ 103 104 uint16_t omtabl[] = { PSO_FRQ, PSO_PCH, PSO_INT, PSO_RAT }; /* oscillator modes */ 105 uint16_t omdtab[] = { 2, 320, 0, 0 }; /* oscillator data */ 106 int16_t omftab[] = { 6, 7, 4, 5 }; /* mode data format */ 107 108 int8_t *rawfpud[] = { "PchWh", "+0.00", "00001", "\2400.00", "Start" }; 109 110 uint16_t fpudtab[] = { SM_HTPW, 0, 1, 0, 1 }; 111 int16_t fpuetab[] = { 11, 1, 2, 3, 9 }; 112 112 113 113 uint16_t dfsttab[] = { 0x0000, 0x8000, 0x1100, 0x1180 }; 114 114 115 int16_t defcols[] = { 2, 6, 7, 8}; /* def data entry columns */116 int16_t stmcols[] = { 15, 19, 20, 21}; /* stm data entry columns */117 118 int16_t dstcols[] = { /* destination data entry columns */115 int16_t defcols[] = { 2, 6, 7, 8}; /* def data entry columns */ 116 int16_t stmcols[] = { 15, 19, 20, 21}; /* stm data entry columns */ 117 118 int16_t dstcols[] = { /* destination data entry columns */ 119 119 120 120 /* -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 */ … … 122 122 }; 123 123 124 int16_t dfsttp[] = { 1, 1, 2, 3 }; /* def/stm formats */125 126 int16_t datasrc[] = {124 int16_t dfsttp[] = { 1, 1, 2, 3 }; /* def/stm formats */ 125 126 uint16_t datasrc[] = { 127 127 128 128 SM_HTPW, SM_VTMW, SM_LPBR, SM_PED1, SM_CTL1, … … 130 130 }; 131 131 132 int16_t destype[] = { /* destination type table */132 int16_t destype[] = { /* destination type table */ 133 133 134 134 PA_KEY, -1, PA_TRG, PA_PLS, PA_LED, … … 143 143 }; 144 144 145 int8_t destfmt[] = { /* destination data entry format table */145 int8_t destfmt[] = { /* destination data entry format table */ 146 146 147 147 0, -1, 1, 2, 3, /* 1 .. 5 */ … … 153 153 }; 154 154 155 int8_t datafmt[] = { /* datum data entry format table */155 int8_t datafmt[] = { /* datum data entry format table */ 156 156 157 157 8, -1, 9, 8, 14, … … 163 163 }; 164 164 165 int8_t desdatf[] = { /* data entry default flags */165 int8_t desdatf[] = { /* data entry default flags */ 166 166 167 167 2, 0, 2, 2, 1, … … 173 173 }; 174 174 175 int16_t desdat1[] = { /* data word 1 defaults */175 uint16_t desdat1[] = { /* data word 1 defaults */ 176 176 177 177 0, 0, 0, 0, 0, … … 183 183 }; 184 184 185 int16_t desdat2[] = { /* data word 2 defaults */185 uint16_t desdat2[] = { /* data word 2 defaults */ 186 186 187 187 0, 0, 1, 0, 0, … … 193 193 }; 194 194 195 int8_t *rawdata[] = {195 int8_t *rawdata[] = { 196 196 197 197 "Trans", " ", "Start", "Trans", "000 ", … … 203 203 }; 204 204 205 int8_t hilitab[][8] = { /* submenu highlight table */205 int8_t hilitab[][8] = { /* submenu highlight table */ 206 206 207 207 /* start, width, row1, row2, row3, row4, row5, pad */ … … 1212 1212 ptbflag = TRUE; 1213 1213 1214 ptedat2 = (uint16_t)datasrc[box - 36];1214 ptedat2 = datasrc[box - 36]; 1215 1215 1216 1216 strcpy(&ptdebuf[42], smdata[ptedat2]); … … 1245 1245 1246 1246 if (ptd & 1) 1247 ptedat1 = (uint16_t)desdat1[i];1247 ptedat1 = desdat1[i]; 1248 1248 1249 1249 if (ptd & 2) 1250 ptedat2 = (uint16_t)desdat2[i];1250 ptedat2 = desdat2[i]; 1251 1251 } 1252 1252 … … 1273 1273 ptbflag = TRUE; 1274 1274 1275 ptedat1 = (uint16_t)omtabl[i];1276 ptedat2 = (uint16_t)omdtab[i];1275 ptedat1 = omtabl[i]; 1276 ptedat2 = omdtab[i]; 1277 1277 1278 1278 ptedata = omftab[i]; -
ram/ptselbx.x
r5c977dd rf537c48 18 18 19 19 extern int8_t datafmt[]; 20 extern int16_tdatasrc[];20 extern uint16_t datasrc[]; 21 21 extern int16_t defcols[]; 22 extern int16_tdesdat1[];23 extern int16_tdesdat2[];22 extern uint16_t desdat1[]; 23 extern uint16_t desdat2[]; 24 24 extern int8_t desdatf[]; 25 25 extern int8_t destfmt[]; … … 28 28 extern int16_t dfsttp[]; 29 29 extern int16_t dstcols[]; 30 extern int16_tfpudtab[];30 extern uint16_t fpudtab[]; 31 31 extern int16_t fpuetab[]; 32 32 extern int8_t hilitab[][8]; 33 extern int16_tomdtab[];33 extern uint16_t omdtab[]; 34 34 extern int16_t omftab[]; 35 extern int16_tomtabl[];35 extern uint16_t omtabl[]; 36 36 extern int16_t ptbflag; 37 37 extern struct selbox ptboxes[];
Note:
See TracChangeset
for help on using the changeset viewer.