samplesort.sh
samplesort.sh | |
---|---|
Website: | https://gist.github.com/coderof... |
Description: | automatic audio sample-tagging for lazy artists: converts audiosample-directories into symbolically linked trees sorted on tags (kick/hihat/etc) |
Author: | coderofsalvation |
Automatic audio sample-tagging for lazy artists. This bash-script converts audiosample-directories into symbolically linked trees sorted on tags (kick/hihat/etc)
The tags are based on wildcards. For example, in the script a tag like:
tags["clap"]="clap|klapp|clp"
will create a directory 'clap' which creates symlinks to all files which filename match 'clap' 'klapp' or 'clp'. Basically this is what most people do manually when they use sample-organizers..but with this script it goes automatically.
Why is this handy and why is this made? The author was maintaining huge amount of samples, and wasnt satisfied with the sample-organizer applications. They all had one thing in common: it is labourous to keep your directories up to date with the application's tag-based database.
So, as with many things in life…a simple bashscript + a cronjob can do magic.
WARNING: not for the fainthearted, bit knowledge about bash is required.