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

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

Zero redundant declarations.

  • Property mode set to 100644
File size: 913 bytes
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 "ram.h"
9
10/*
11 =============================================================================
12 setv2gi() -- set voices to the instrument for a group
13 =============================================================================
14*/
15
16void setv2gi(int16_t group)
17{
18 register int16_t grp, vce, ins;
19 register struct instdef *ip;
20 register struct idfnhdr *fp;
21
22 ins = ins2grp[group] & 0x00FF;
23 grp = group + 1;
24
25 for (vce = 0; vce < 12; vce++) {
26
27 if (vce2grp[vce] EQ grp) { /* for each voice in the group */
28
29 if (curvce EQ vce) {
30
31 curinst = ins;
32 s_inst[curvce] = ins;
33 }
34
35 execins(vce, ins, 1);
36 }
37 }
38}
39
40
Note: See TracBrowser for help on using the repository browser.