summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/guspat.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/midi/guspat.c')
-rw-r--r--apps/plugins/midi/guspat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/midi/guspat.c b/apps/plugins/midi/guspat.c
index ea0ca92518..d8854b84b7 100644
--- a/apps/plugins/midi/guspat.c
+++ b/apps/plugins/midi/guspat.c
@@ -37,12 +37,12 @@ const uint32_t gustable[]=
37 4186073, 4434930, 4698645, 4978041, 5274051, 5587663, 5919922, 6271939, 6644889, 7040015, 7458636, 7902150 37 4186073, 4434930, 4698645, 4978041, 5274051, 5587663, 5919922, 6271939, 6644889, 7040015, 7458636, 7902150
38}; 38};
39 39
40unsigned int readWord(int file) 40static unsigned int readWord(int file)
41{ 41{
42 return (readChar(file)<<0) | (readChar(file)<<8); // | (readChar(file)<<8) | (readChar(file)<<0); 42 return (readChar(file)<<0) | (readChar(file)<<8); // | (readChar(file)<<8) | (readChar(file)<<0);
43} 43}
44 44
45unsigned int readDWord(int file) 45static unsigned int readDWord(int file)
46{ 46{
47 return (readChar(file)<<0) | (readChar(file)<<8) | (readChar(file)<<16) | (readChar(file)<<24); 47 return (readChar(file)<<0) | (readChar(file)<<8) | (readChar(file)<<16) | (readChar(file)<<24);
48} 48}
@@ -50,7 +50,7 @@ unsigned int readDWord(int file)
50int curr_waveform; 50int curr_waveform;
51struct GWaveform waveforms[256] IBSS_ATTR; 51struct GWaveform waveforms[256] IBSS_ATTR;
52 52
53struct GWaveform * loadWaveform(int file) 53static struct GWaveform * loadWaveform(int file)
54{ 54{
55 struct GWaveform * wav = &waveforms[curr_waveform++]; 55 struct GWaveform * wav = &waveforms[curr_waveform++];
56 rb->memset(wav, 0, sizeof(struct GWaveform)); 56 rb->memset(wav, 0, sizeof(struct GWaveform));
@@ -137,7 +137,7 @@ struct GWaveform * loadWaveform(int file)
137 return wav; 137 return wav;
138} 138}
139 139
140int selectWaveform(struct GPatch * pat, int midiNote) 140static int selectWaveform(struct GPatch * pat, int midiNote)
141{ 141{
142 /* We divide by 100 here because everyone's freq formula is slightly different */ 142 /* We divide by 100 here because everyone's freq formula is slightly different */
143 unsigned int tabFreq = gustable[midiNote]/100; /* Comparison */ 143 unsigned int tabFreq = gustable[midiNote]/100; /* Comparison */