Created
November 2, 2020 10:08
-
-
Save creaktive/cae8e75d7597e0f27cf6f11599f8b2c6 to your computer and use it in GitHub Desktop.
PianoTeq stats
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
find ~/.local/share/Modartt/Pianoteq/Archive/ -type f -name \*.mid | sort | perl -MYAML::XS -nE 'if ( m{(\d{4}-\d{2}-\d{2}).+?(\d+)\s+notes,\s+(\d+)\s+seconds} ) { $s{$1}{notes} += $2; $s{$1}{minutes} += $3 / 60 } else { die } }{ say Dump \%s' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.githubusercontent.com/creaktive/cae8e75d7597e0f27cf6f11599f8b2c6/raw/9ebb7c05908820e9141e243e60f0afa928157360/gistfile1.txt