We used this function to plant randomness melodies:
frequency :: [(Int, Gen a)] -> Gen a Source#
Chooses one of the given generators, with a weighted random distribution. The input list must be non-empty.
How can we log where it planted the random melodies and understand how it generated the positions?
For example, it would be nice to have a file output the .mid file with another file that gives something like:
[random1: bar 2-3, random2: bar 12-13, ...]
We used this function to plant randomness melodies:
How can we log where it planted the random melodies and understand how it generated the positions?
For example, it would be nice to have a file output the .mid file with another file that gives something like: [random1: bar 2-3, random2: bar 12-13, ...]