Skip to content

Commit

Permalink
Change average duration to ~2s
Browse files Browse the repository at this point in the history
Reading the book, they recommend consistently playing the chords for 2
seconds. I had originally varied them a lot to try and get the kids
recognizing the chords in a number of different situations, but
apparently that is not required and may be counter-productive.
  • Loading branch information
pganssle committed Dec 12, 2023
1 parent cf759ae commit a4a8881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/cim.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ function random_elem(arr, weights) {
}
}

function random_duration(mean=0.85, stdev=0.85, min=0.5, max=1.5) {
return clip(normal_random(mean, stdev), 0.5, 1.5);
function random_duration(mean=2, stdev=0.3, min=1.0, max=2.5) {
return clip(normal_random(mean, stdev), min, max);
}


Expand Down

0 comments on commit a4a8881

Please sign in to comment.