diff options
Diffstat (limited to 'apps/plugins/midi/midiutil.h')
-rw-r--r-- | apps/plugins/midi/midiutil.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/apps/plugins/midi/midiutil.h b/apps/plugins/midi/midiutil.h index 911774440e..30f0009dc7 100644 --- a/apps/plugins/midi/midiutil.h +++ b/apps/plugins/midi/midiutil.h | |||
@@ -34,8 +34,7 @@ | |||
34 | mainly because they have to use 44100Hz sample rate */ | 34 | mainly because they have to use 44100Hz sample rate */ |
35 | #define MAX_VOICES 16 | 35 | #define MAX_VOICES 16 |
36 | #else | 36 | #else |
37 | #define MAX_VOICES 24 /* Note: 24 midi channels is the minimum general midi | 37 | #define MAX_VOICES 24 /* Note: 24 midi channels is the minimum general midi spec implementation */ |
38 | spec implementation */ | ||
39 | #endif /* CPU_PP */ | 38 | #endif /* CPU_PP */ |
40 | 39 | ||
41 | #else /* Simulator requires 44100Hz, and we can afford to use more voices */ | 40 | #else /* Simulator requires 44100Hz, and we can afford to use more voices */ |
@@ -98,19 +97,6 @@ struct MIDIfile | |||
98 | int numPatches; | 97 | int numPatches; |
99 | }; | 98 | }; |
100 | 99 | ||
101 | /* | ||
102 | struct SynthObject | ||
103 | { | ||
104 | struct GWaveform * wf; | ||
105 | unsigned int delta; | ||
106 | unsigned int decay; | ||
107 | unsigned int cp; | ||
108 | unsigned char state, loopState, loopDir; | ||
109 | unsigned char note, vol, ch, isUsed; | ||
110 | int curRate, curOffset, targetOffset; | ||
111 | unsigned int curPoint; | ||
112 | }; | ||
113 | */ | ||
114 | 100 | ||
115 | struct SynthObject | 101 | struct SynthObject |
116 | { | 102 | { |
@@ -161,6 +147,10 @@ extern int chPan[16]; /* Channel panning */ | |||
161 | extern int chPat[16]; /* Channel patch */ | 147 | extern int chPat[16]; /* Channel patch */ |
162 | extern int chPW[16]; /* Channel pitch wheel, MSB only */ | 148 | extern int chPW[16]; /* Channel pitch wheel, MSB only */ |
163 | extern int chPBDepth[16]; /* Channel pitch bend depth (Controller 6 */ | 149 | extern int chPBDepth[16]; /* Channel pitch bend depth (Controller 6 */ |
150 | extern int chPBNoteOffset[16] IBSS_ATTR; /* Pre-computed whole semitone offset */ | ||
151 | extern int chPBFractBend[16] IBSS_ATTR; /* Fractional bend applied to delta */ | ||
152 | |||
153 | |||
164 | 154 | ||
165 | extern struct GPatch * gusload(char *); | 155 | extern struct GPatch * gusload(char *); |
166 | extern struct GPatch * patchSet[128]; | 156 | extern struct GPatch * patchSet[128]; |