allthemusicllc / atm-cli

Command line tool for generating and working with MIDI files.
http://allthemusic.info
Other
1.39k stars 107 forks source link

midi grep #25

Open norayr opened 4 years ago

norayr commented 4 years ago

Can you add the utility to grep throughout generated archive to found desired or similar melody?

allthemusicllc commented 4 years ago

@norayr we could look into adding some grep functionality, though plain old grep or ripgrep might actually do the trick. For pinpointing a specific melody, does the partition directive fit your use case?

norayr commented 4 years ago

in order to grep i have to understand what kind of patterns midi file contains except of the notes themselves, to ignore anything else, right?

the generated melodies are in midi format only, not written like A#, E, E, that's why i was thinking of grep which would be able of grepping a melody throughout midi files.

I'll try to understand what does the partition directive do, and how to use it.

Howevery I see the problem is deeper. May be we need an infrastructure for a future composers to check if the melody is under the copyright or not. But for that we need to know which subset of generated set is already copyrighted.

Imagine, you came up with a melody. Now you can check if it's in public domain or not. But I have no idea how to mark already existing melodies, other than a website, or an app which would allow people to contribute existing melodies, and some moderation. Which is hell of a work.