From abb7d1dcfe204da217a67235811ebb278dc8fbe1 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sun, 16 Jun 2013 18:33:57 +0200 Subject: 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 --- apps/plugins/midi/guspat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3