summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorStepan Moskovchenko <stevenm@rockbox.org>2007-09-30 09:01:38 +0000
committerStepan Moskovchenko <stevenm@rockbox.org>2007-09-30 09:01:38 +0000
commit414724e2f433f024512e0ad9bf8471b1d24fdd4f (patch)
treebe53c089ff08332aca89b618373863f32aa61db6 /apps
parent80f1688423eaad7a2ad9e4809331e192bcd0047d (diff)
MIDI: Kick up number of voices and decrease the decay rate, taking
advantage of the recent speedups. Some instruments sound a lot more natural now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14910 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/midi/midiutil.h2
-rw-r--r--apps/plugins/midi/synth.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/midi/midiutil.h b/apps/plugins/midi/midiutil.h
index f5a369700c..ba34fe206f 100644
--- a/apps/plugins/midi/midiutil.h
+++ b/apps/plugins/midi/midiutil.h
@@ -31,7 +31,7 @@
#define SAMPLE_RATE SAMPR_44 // 44100 22050 11025
#endif
-#define MAX_VOICES 20 // Note: 24 midi channels is the minimum general midi
+#define MAX_VOICES 25 // Note: 24 midi channels is the minimum general midi
// spec implementation
#else // Simulator requires 44100, and we can afford to use more voices
diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c
index acf300fb44..44d42c0c78 100644
--- a/apps/plugins/midi/synth.c
+++ b/apps/plugins/midi/synth.c
@@ -229,7 +229,7 @@ void setPoint(struct SynthObject * so, int pt)
* default this to 10, and maybe later have an option to set it to 9
* for longer decays.
*/
- so->curRate = r<<11;
+ so->curRate = r<<10;
/*
* Do this here because the patches assume a 44100 sampling rate