VictorCMiraldo / hs-fragem

Haskell Fractal Geometry of Music
MIT License
4 stars 0 forks source link

Open the blackbox of "frequency" in quickcheck #12

Open irisyupingren opened 6 years ago

irisyupingren commented 6 years ago

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, ...]