From 0aa8debeb0b9fff83295a44c9cd4f888a56e4a7d Mon Sep 17 00:00:00 2001 From: Felipe Tovar-Henao Date: Wed, 20 Sep 2023 23:22:55 -0400 Subject: [PATCH] Increase denom range in centApprox --- src/utils/QuestionGen.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/QuestionGen.ts b/src/utils/QuestionGen.ts index d26f000..00261ae 100644 --- a/src/utils/QuestionGen.ts +++ b/src/utils/QuestionGen.ts @@ -23,7 +23,7 @@ export default class QuestionGen { const isPitch = Math.random(); const noun = isPitch ? "pitch" : "interval"; const cents = Math.round(Math.random() * 11 + 1) * 100; - const denomArray = arithmSeries(1, 11); + const denomArray = arithmSeries(1, 13); const bestRatio = FractionOp.decimalToFraction(centsToRatio(cents), denomArray); const answer = FractionOp.toString(bestRatio); const prompt = `Which of the following ${noun} ratios best approximates ${cents}ยข?`;