9 points · by stevehiehn · 3y ago · 19 comments
ps - I'm fully aware of generative music AIs (in fact I maintain one: https://signalsandsorcery.org/ , but in this case I'm interested in brute-force searching datasets.
1) ensure the tune time sig is a match 2) for each bar collect the pitches and ensure that they contain the chord(or any inversion) of the chord at the index in question. 3) any non-chord/passing tones must exist in the overarching key or its not a match. If all 4 bars are a match I will reconstruct a midi clip and return it as a result.
Lakh MIDI Dataset https://colinraffel.com/projects/lmd is smaller but directly downloadable
Midi 2 Nyquest[2] dumped to python AI used to visual identify requested cord progression (aka automate what a human reading a musical score would do) would be pretty cool (get location & stats of where progression occures)
------
[1] nyquest : https://en.wikipedia.org/wiki/Nyquist
[2] midi2tones : https://github.com/MLXXXp/midi2tones/blob/master/midi2tones....
example unix shell command line:
cat midi.data.file | grep 'C - 4/4 - Am7-Am7-G7-Dm7'
Pearl / python / ruby / go / lisp shell etc. make for easier paring with gui & on-line use of public domain datasets (vs. downloading dataset file/db)My experience/backround: pipy / python is more complex setup than using midi2tex,awk to format for grep search.
Awk typically used to convert files between formats. There are readily available midi to text conversion tool(s) finable via a search engine.
In this case, using awk to convert midi file to text format (or make use of a format from a midi to text tool) that can be use with grep would be the implied step.