summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/midiutil.h
diff options
context:
space:
mode:
authorStepan Moskovchenko <stevenm@rockbox.org>2007-10-15 05:11:37 +0000
committerStepan Moskovchenko <stevenm@rockbox.org>2007-10-15 05:11:37 +0000
commit1515ff852224c822a6d3db8c458eab2c9037704f (patch)
treee427fbec1b397d18abffc12b7fe74e67c2cad807 /apps/plugins/midi/midiutil.h
parent99f955088149d5938ce4c9ca5624377f464b1380 (diff)
downloadrockbox-1515ff852224c822a6d3db8c458eab2c9037704f.tar.gz
rockbox-1515ff852224c822a6d3db8c458eab2c9037704f.zip
MIDI: At long last, though quick and dirty, pitch bend depth! Or, I think it works. Tested on two
files. Let me know if anyone discovers any problems with this. This commit also includes Nils's synth loop optimization patch. I hope committing it does not cause problems. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15112 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/midi/midiutil.h')
-rw-r--r--apps/plugins/midi/midiutil.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/midi/midiutil.h b/apps/plugins/midi/midiutil.h
index a94c257df0..911774440e 100644
--- a/apps/plugins/midi/midiutil.h
+++ b/apps/plugins/midi/midiutil.h
@@ -63,7 +63,8 @@
63#define MIDI_PITCHW 224 63#define MIDI_PITCHW 224
64 64
65/* MIDI Controllers */ 65/* MIDI Controllers */
66#define CTRL_VOLUME 7 66#define CTRL_PWDEPTH 6
67#define CTRL_VOLUME 7
67#define CTRL_BALANCE 8 68#define CTRL_BALANCE 8
68#define CTRL_PANNING 10 69#define CTRL_PANNING 10
69#define CHANNEL 1 70#define CHANNEL 1
@@ -159,6 +160,7 @@ extern int chVol[16]; /* Channel volume */
159extern int chPan[16]; /* Channel panning */ 160extern int chPan[16]; /* Channel panning */
160extern int chPat[16]; /* Channel patch */ 161extern int chPat[16]; /* Channel patch */
161extern int chPW[16]; /* Channel pitch wheel, MSB only */ 162extern int chPW[16]; /* Channel pitch wheel, MSB only */
163extern int chPBDepth[16]; /* Channel pitch bend depth (Controller 6 */
162 164
163extern struct GPatch * gusload(char *); 165extern struct GPatch * gusload(char *);
164extern struct GPatch * patchSet[128]; 166extern struct GPatch * patchSet[128];