rolo / midigrep

Find midifiles with consecutive notes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Midi grep

Find midi files with consecutive notes. Use # to signify a sharp note (e.g c#2)

Don't use coloured output if you print the results to a file

Example:

# Find all midi files that has c1, c2 and c5 after eachother
midigrep /some/path c1 c2 c5

Usage:

midigrep

Usage:
    midigrep <path> <notes>...
    midigrep <path> -s <notes>...
    midigrep <path> -s -c <notes>...
    midigrep (-h | --help)
    midigrep (-v | --version)

Example:
    midigrep ~/midi c1 c#2 b4

Options:
    -h --help           Show this screen
    -n --notes          List of consequtive notes to search for
    -s --show-notes     Show all notes of each file
    -c --color          Use colored output (used with -s)
    -v --version        Print version

Performance

Processing 192,981 midi files:

# benchmark done before colored output was introduced
time ./bin/midigrep ~/Downloads/ c3 c4|wc -l
18177

real	0m3.540s
user	0m21.289s
sys	0m5.529s

About

Find midifiles with consecutive notes


Languages

Language:Rust 99.0%Language:Shell 1.0%