A lot of strong emotions today, but the path forward is clear.
And that path is to just keep building.
If things look grim, just keep building.
If things are going great, just keep building.
There are shockingly few things that disrupt the fundamentals.
As such, this morning I kept building, almost finishing the CreateMotif
function for my music game:
I’m pretty sure this logic works.
I have a range of musical notes that can be selected, and a weighting for each note defining the likelihood to resolve to the tonic note.
For each note, I add that weighting to a total sum of weights, with each note having a range in that total sum.
Then a random number between 1 and the sum is chosen, and the note within that range is selected.
This means that a note with a resolution weight of 0.9 is more likely to be chosen than 0.5.
Now that I’m writing this out, I’m realizing that’s not actually the behavior I want.
What I need is to use that resolution weight in conjunction with a tension weight to dynamically create the likelihood to be chosen.
The mechanics of how this function will work is all there now, I’m glad about that.
Now I just have to refine those mechanics to work correctly.
And after that?
I’ll just keep building.