summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2013-06-16 18:33:57 +0200
committerFrank Gevaerts <frank@gevaerts.be>2013-06-16 18:33:57 +0200
commitabb7d1dcfe204da217a67235811ebb278dc8fbe1 (patch)
tree1101d9cdc9c69052e44c4dbf6b5510a4a78cd502
parentd4061a46d83a6f0060f36bb6455c8e4d67f3f98c (diff)
downloadrockbox-abb7d1d.tar.gz
rockbox-abb7d1d.zip
plugin_midi: expand gustable[] to 128 entries
The code assumes that gustable[] has 128 entries, while it only had 120. Since the entries follow a simple pattern (they seem to be note frequencies, so each entry is the previous one multiplied by the 2^(1/12)), expanding the table is the simple fix. Change-Id: If5b5a50378afd3206c9d550227dd9aac8e355c96
-rw-r--r--apps/plugins/midi/guspat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/midi/guspat.c b/apps/plugins/midi/guspat.c
index d8854b84b7..c5b5832ddb 100644
--- a/apps/plugins/midi/guspat.c
+++ b/apps/plugins/midi/guspat.c
@@ -34,7 +34,8 @@ const uint32_t gustable[]=
523251, 554365, 587329, 622254, 659255, 698456, 739989, 783991, 830609, 880000, 932328, 987767,
1046503, 1108731, 1174660, 1244509, 1318511, 1396914, 1479979, 1567983, 1661220, 1760002, 1864657, 1975536,
2093007, 2217464, 2349321, 2489019, 2637024, 2793830, 2959960, 3135968, 3322443, 3520006, 3729316, 3951073,
- 4186073, 4434930, 4698645, 4978041, 5274051, 5587663, 5919922, 6271939, 6644889, 7040015, 7458636, 7902150
+ 4186073, 4434930, 4698645, 4978041, 5274051, 5587663, 5919922, 6271939, 6644889, 7040015, 7458636, 7902150,
+ 8372036, 8869863, 9397293, 9956085, 10548105, 11175328, 11839847, 12543881
};
static unsigned int readWord(int file)