From 414724e2f433f024512e0ad9bf8471b1d24fdd4f Mon Sep 17 00:00:00 2001 From: Stepan Moskovchenko Date: Sun, 30 Sep 2007 09:01:38 +0000 Subject: 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 --- apps/plugins/midi/midiutil.h | 2 +- apps/plugins/midi/synth.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/midi/midiutil.h b/apps/plugins/midi/midiutil.h index f5a3697..ba34fe2 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 acf300f..44d42c0 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 -- cgit v1.1