source: buchla-68k/ram/setv2gi.c@ f4fbee9

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

Unix line breaks.

  • Property mode set to 100644
File size: 1.1 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
16extern short curinst;
17extern short curvce;
18
19extern short ins2grp[];
20extern short s_inst[];
21extern short vce2grp[];
22
23extern struct instdef vbufs[];
24
25/*
26
27*/
28
29/*
30 =============================================================================
31 setv2gi() -- set voices to the instrument for a group
32 =============================================================================
33*/
34
35setv2gi(group)
36short group;
37{
38 register short grp, vce, ins;
39 register struct instdef *ip;
40 register struct idfnhdr *fp;
41
42 ins = ins2grp[group] & 0x00FF;
43 grp = group + 1;
44
45 for (vce = 0; vce < 12; vce++) {
46
47 if (vce2grp[vce] EQ grp) { /* for each voice in the group */
48
49 if (curvce EQ vce) {
50
51 curinst = ins;
52 s_inst[curvce] = ins;
53 }
54
55 execins(vce, ins, 1);
56 }
57 }
58}
59
Note: See TracBrowser for help on using the repository browser.