Scripts to set up and interact with my cmus library:
- add all my music
- remove duplicate files
- annotate longer recordings with more detailed 'segments'
TODO
- this doesn't remove all duplicate songs: different files but with same length and metadata aren't caught by
fdupes
. It'd be great to fingerprint all songs but that's a lot more work?
If the currently playing track has a marks file, check to see if it's currently playing within a marked segment, and if so, print the name of that mark
Show the named segments
get playing track and set marks file
Loop one segment repeatedly given an argument, find the matching segment to loop otherwise loop the first segment
Play through each segment, skipping everything in between
Set a mark with whatever arguments at the current time
Set a mark, then wait for a keyboard event to end the segment with an 'end' mark.
When given the argument --interactive
it will ask for a track name and
wait. When the track ends, it will start over again to make setting marks
through a long recording easier.
Show the file where marks for the currently playing track belong
get playing track and set marks file
start playback from a matching named segment
When cmus
is paused, this will sit and wait until playback resumes so other
scripts can adjust
Cut long track with a marks file into 'snips' and put them into
_snips/<artist>/<trackname>/<segment names>.mp3
Also joins all the segments into a .../joined.mp3
Operates on the currently playing track