Last change
on this file since e225e77 was e225e77, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Added missing includes and declarations.
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /*
|
---|
2 | =============================================================================
|
---|
3 | setv2gi.c -- MIDAS-VII -- set the voices to the instrument for a group
|
---|
4 | Version 2 -- 1988-07-11 -- D.N. Lynx Crowe
|
---|
5 | =============================================================================
|
---|
6 | */
|
---|
7 |
|
---|
8 | #include "stddefs.h"
|
---|
9 | #include "vsdd.h"
|
---|
10 | #include "vsddsw.h"
|
---|
11 | #include "graphdef.h"
|
---|
12 |
|
---|
13 | #include "midas.h"
|
---|
14 | #include "instdsp.h"
|
---|
15 |
|
---|
16 | extern void execins(int16_t vce, int16_t ins, int16_t tag);
|
---|
17 |
|
---|
18 | extern int16_t curinst;
|
---|
19 | extern int16_t curvce;
|
---|
20 |
|
---|
21 | extern int16_t ins2grp[];
|
---|
22 | extern int16_t s_inst[];
|
---|
23 | extern int16_t vce2grp[];
|
---|
24 |
|
---|
25 | extern struct instdef vbufs[];
|
---|
26 |
|
---|
27 | /* |
---|
28 |
|
---|
29 | */
|
---|
30 |
|
---|
31 | /*
|
---|
32 | =============================================================================
|
---|
33 | setv2gi() -- set voices to the instrument for a group
|
---|
34 | =============================================================================
|
---|
35 | */
|
---|
36 |
|
---|
37 | void setv2gi(int16_t group)
|
---|
38 | {
|
---|
39 | register int16_t grp, vce, ins;
|
---|
40 | register struct instdef *ip;
|
---|
41 | register struct idfnhdr *fp;
|
---|
42 |
|
---|
43 | ins = ins2grp[group] & 0x00FF;
|
---|
44 | grp = group + 1;
|
---|
45 |
|
---|
46 | for (vce = 0; vce < 12; vce++) {
|
---|
47 |
|
---|
48 | if (vce2grp[vce] EQ grp) { /* for each voice in the group */
|
---|
49 |
|
---|
50 | if (curvce EQ vce) {
|
---|
51 |
|
---|
52 | curinst = ins;
|
---|
53 | s_inst[curvce] = ins;
|
---|
54 | }
|
---|
55 |
|
---|
56 | execins(vce, ins, 1);
|
---|
57 | }
|
---|
58 | }
|
---|
59 | }
|
---|
60 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.