Last active
April 19, 2019 14:51
-
-
Save douglasgoodwin/25b6dc49df57c2e85d7d2ab5704cb846 to your computer and use it in GitHub Desktop.
a clumsy little test to generate random MIDI files. There are dso many ways to represent MIDI data as ASCII. This one lends itself to creating melodic lines that follow the ways that Python can navigate lists. Try throwing a sorting algorithm at it -- how would that sound?
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 6 columns, instead of 3. in line 1.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0, 0, Header, 1, 2, 960 | |
1, 0, Start_track | |
1, 0, Time_signature, 4, 2, 24, 8 | |
1, 0, Tempo, 869565 | |
1, 0, End_track | |
2, 0, Start_track | |
2, 0, Note_on_c, 0, 67, 127 | |
2, 250, Note_on_c, 0, 67, 0 | |
2, 250, Note_on_c, 0, 12, 127 | |
2, 500, Note_on_c, 0, 12, 0 | |
2, 500, Note_on_c, 0, 70, 127 | |
2, 750, Note_on_c, 0, 70, 0 | |
2, 750, Note_on_c, 0, 68, 127 | |
2, 1000, Note_on_c, 0, 68, 0 | |
2, 1000, Note_on_c, 0, 57, 127 | |
2, 1250, Note_on_c, 0, 57, 0 | |
2, 1250, Note_on_c, 0, 13, 127 | |
2, 1500, Note_on_c, 0, 13, 0 | |
2, 1500, Note_on_c, 0, 60, 127 | |
2, 1750, Note_on_c, 0, 60, 0 | |
2, 1750, Note_on_c, 0, 76, 127 | |
2, 2000, Note_on_c, 0, 76, 0 | |
2, 2000, Note_on_c, 0, 73, 127 | |
2, 2250, Note_on_c, 0, 73, 0 | |
2, 2250, Note_on_c, 0, 19, 127 | |
2, 2500, Note_on_c, 0, 19, 0 | |
2, 2500, Note_on_c, 0, 19, 127 | |
2, 2750, Note_on_c, 0, 19, 0 | |
2, 2750, Note_on_c, 0, 18, 127 | |
2, 3000, Note_on_c, 0, 18, 0 | |
2, 3000, Note_on_c, 0, 65, 127 | |
2, 3250, Note_on_c, 0, 65, 0 | |
2, 3250, Note_on_c, 0, 60, 127 | |
2, 3500, Note_on_c, 0, 60, 0 | |
2, 3500, Note_on_c, 0, 31, 127 | |
2, 3750, Note_on_c, 0, 31, 0 | |
2, 3750, Note_on_c, 0, 23, 127 | |
2, 4000, Note_on_c, 0, 23, 0 | |
2, 4000, Note_on_c, 0, 2, 127 | |
2, 4250, Note_on_c, 0, 2, 0 | |
2, 4250, Note_on_c, 0, 64, 127 | |
2, 4500, Note_on_c, 0, 64, 0 | |
2, 4500, Note_on_c, 0, 8, 127 | |
2, 4750, Note_on_c, 0, 8, 0 | |
2, 4750, Note_on_c, 0, 12, 127 | |
2, 5000, Note_on_c, 0, 12, 0 | |
2, 5000, End_track | |
0, 0, End_of_file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment