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
#!/usr/bin/env python3 | |
"""Turn an Audacity "Label Track.txt" into an FFmpeg metadata file.""" | |
import os | |
import re | |
import sys | |
LABEL_LINE_RE = re.compile(r"^(?P<start>[0-9]+(?:.[0-9]+)?)\s+(?P<end>[0-9]+(?:.[0-9]+)?)\s+(?P<title>.*)$") | |
def to_ffmetadata(labels_s): |
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
# jekyll-postfiles is lovely, *but* it has a bug that prevents images named | |
# like posts from being copied. (Or rather, perhaps this is a problem with Jekyll.) | |
# https://github.com/nhoizey/jekyll-postfiles/issues/1 | |
# This plugin excludes such files from Jekyll's processing, and manually copies | |
# them over to the _site/ directory. (You are also no longer required to | |
# manually exclude images from _posts/ or _drafts/ in the config.) | |
require 'cgi' | |
EXTENSIONS_NOT_TO_PROCESS = Set[ |
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
#!/usr/bin/env python3 | |
"""Loop an audio file to a length that's pleasant to listen to and, fade it out | |
smoothly, and add trailing silence. Particularly useful to turn looping video | |
game music into versions that might be more friendly to music-listening apps. | |
""" | |
import math | |
import os | |
import re |
OlderNewer