VictorCMiraldo / hs-fragem

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

Give back pattern candidates [Feature Request] #8

Closed irisyupingren closed 6 years ago

irisyupingren commented 6 years ago

Would it make sense to also output the actual pattern candidates (midi excerpts), the patterns with the same fractal dimension/ within a threshold?

VictorCMiraldo commented 6 years ago

Will happen in two parts:

Pipeline is:

Change fragem dim to return bar numbers and dimensions instead of dimensions only. output eg:

$ fragem dim --group=4 ....
0    0.2342341
4    0.124541
8    1.23451
12   0.2341
...

Create fragem select --threshold=1. input example

0    10
4   15
8   11
12   12
16   10
20   12

Outputs:

4
1 0 8 16
2 12 20
3 4

Where the first line is the grouping factor used by fragem dims, then pattern group follows. Each consecutive line consists in a pattern number and a list of the initial measures with similar dimensions (modulo threshold) start.

Finally, make a fragem extract that receives the output of fragem select and gives us groups of midi files isolating the interesting patterns.

irisyupingren commented 6 years ago

Implemented now by the --export flag