shithub: flite

Download patch

ref: 4148cdd9f2b07cdc5cf653a7c3637e82cc40c839
parent: 8061b6e9a0021f9cbc7733b7d704edeebff0f749
author: Sergio Oller <sergioller@gmail.com>
date: Sun Aug 30 16:46:53 EDT 2020

Fix writing missing coefficient

There are 48 coefficients. This while loop should write the first 47 (indices [0...46]) and the final coefficient is written after the while statement.

--- a/tools/make_cg.scm
+++ b/tools/make_cg.scm
@@ -315,7 +315,7 @@
          (while (< n 5)
             (format ofd "const double %s_me_filter_%d[] = {\n" name n)
             (set! o 0)
-            (while (< o 46)
+            (while (< o 47)
                (format ofd "%f, " (track.get me_filter_track n o))
                (set! o (+ o 1)))
             (format ofd "%f\n};\n" (track.get me_filter_track n o))