| Last change
 on this file since 4a17aeb was             b28a12e, checked in by Thomas Lopatic <thomas@…>, 8 years ago | 
        
          | 
Zero redundant declarations.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            913 bytes | 
      
      
| Rev | Line |  | 
|---|
| [f40a309] | 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 |  | 
|---|
| [b28a12e] | 8 | #include "ram.h" | 
|---|
| [f40a309] | 9 |  | 
|---|
|  | 10 | /* | 
|---|
|  | 11 | ============================================================================= | 
|---|
|  | 12 | setv2gi() -- set voices to the instrument for a group | 
|---|
|  | 13 | ============================================================================= | 
|---|
|  | 14 | */ | 
|---|
|  | 15 |  | 
|---|
| [7258c6a] | 16 | void setv2gi(int16_t group) | 
|---|
| [f40a309] | 17 | { | 
|---|
| [7258c6a] | 18 | register int16_t grp, vce, ins; | 
|---|
| [f40a309] | 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 |  | 
|---|
| [6262b5c] | 40 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.