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.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/midi/guspat.c b/apps/plugins/midi/guspat.c
index 2168766eab..f44e542e2d 100644
--- a/apps/plugins/midi/guspat.c
+++ b/apps/plugins/midi/guspat.c
@@ -5,6 +5,7 @@
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * $Id$
8 * 9 *
9 * Copyright (C) 2005 Stepan Moskovchenko 10 * Copyright (C) 2005 Stepan Moskovchenko
10 * 11 *
@@ -15,7 +16,9 @@
15 * KIND, either express or implied. 16 * KIND, either express or implied.
16 * 17 *
17 ****************************************************************************/ 18 ****************************************************************************/
18 19#include "plugin.h"
20#include "guspat.h"
21#include "midiutil.h"
19 22
20extern struct plugin_api * rb; 23extern struct plugin_api * rb;
21 24
@@ -119,8 +122,6 @@ struct GWaveform * loadWaveform(int file)
119 return wav; 122 return wav;
120} 123}
121 124
122
123
124int selectWaveform(struct GPatch * pat, int midiNote) 125int selectWaveform(struct GPatch * pat, int midiNote)
125{ 126{
126 /* We divide by 100 here because everyone's freq formula is slightly different */ 127 /* We divide by 100 here because everyone's freq formula is slightly different */
@@ -137,7 +138,6 @@ int selectWaveform(struct GPatch * pat, int midiNote)
137 return 0; 138 return 0;
138} 139}
139 140
140
141struct GPatch * gusload(char * filename) 141struct GPatch * gusload(char * filename)
142{ 142{
143 struct GPatch * gp = (struct GPatch *)malloc(sizeof(struct GPatch)); 143 struct GPatch * gp = (struct GPatch *)malloc(sizeof(struct GPatch));
@@ -196,3 +196,4 @@ struct GPatch * gusload(char * filename)
196 196
197 return gp; 197 return gp;
198} 198}
199