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

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

Unused variables and parameters.

  • Property mode set to 100644
File size: 853 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
20 ins = ins2grp[group] & 0x00FF;
21 grp = group + 1;
22
23 for (vce = 0; vce < 12; vce++) {
24
25 if (vce2grp[vce] EQ grp) { /* for each voice in the group */
26
27 if (curvce EQ vce) {
28
29 curinst = ins;
30 s_inst[curvce] = ins;
31 }
32
33 execins(vce, ins, 1);
34 }
35 }
36}
37
38
Note: See TracBrowser for help on using the repository browser.