Closed napulen closed 4 years ago
These are the top 5 answers (according to sorted
) for the default B-
progression:
Top 1
Top 2
Top 3
Top 4
Top 5
All are great, imo.
After careful consideration, I realize that maybe this feature is outside the use case of this project.
I think it's useful, for example, you could have a Generate more
button that offers different versions of the same progression every time the users click on it. But maybe you prefer the simplicity of one solution.
I'll close it for now. If you think it's useful, let me know and I'll re-open it.
I think that the other PRs I made are more relevant to the project as it is now.
Cheers
This is just a proposal for
voiceProgression
.As a result of DP, there may be several
good
answers with a low cost. In fact, several solutions with the same cost than the "best" solution chosen withmin()
.Instead of providing always one answer, that could be an argument
numberOfAnswers
that defaults to1
(get the best progression you can find), but can be specified by the user. The solutions aresorted
and then you choose the topN
progressions to send back to the user.This would be useful for generating alternative voicings of the same progression.
As I didn't want to break any backward-compatibility, I proposed the line
to provide the same answer that was given before. But I made a proof of concept in
generateScore
, where you ask for the best 5 answers, and only keep the best one.You know the code better to see if/how this could be actually implemented, but I hope you get the idea.