Skip to content

Commit

Permalink
Increase denom range in centApprox
Browse files Browse the repository at this point in the history
  • Loading branch information
felipetovarhenao committed Sep 21, 2023
1 parent 9c15987 commit 0aa8deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/QuestionGen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}¢?`;
Expand Down

0 comments on commit 0aa8deb

Please sign in to comment.