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 bash | |
SOUNDFONT=/Users/kroger/Dropbox/Sfonts/BOPLMEVF16.sf2 | |
TMPDIR=/tmp | |
if [[ ! -f $SOUNDFONT ]] | |
then | |
echo "Couldn't find the soundfont: $SOUNDFONT" | |
exit 1 |
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
# -*- coding: utf-8 -*- | |
import sys, os | |
sys.path.insert(0, os.path.abspath('extensions')) | |
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', | |
'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig', | |
'epub2', 'mobi', 'autoimage', 'code_example'] |
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
from __future__ import division | |
import os | |
import sys | |
import codecs | |
import textwrap | |
from StringIO import StringIO | |
from docutils import nodes | |
from docutils.parsers.rst import Directive, directives | |
from sphinx.directives.code import LiteralInclude | |
from sphinx.util.nodes import set_source_info |
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
# -*- coding: utf-8 -*- | |
""" | |
sphinx.builders.mobi | |
~~~~~~~~~~~~~~~~~~~~ | |
Build mobi files. | |
Originally derived from epub.py. | |
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. | |
:license: BSD, see LICENSE for details. |
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
# Makefile for Sphinx documentation | |
# | |
# You can set these variables from the command line. | |
SPHINXOPTS = | |
SPHINXBUILD = sphinx-build -E | |
PAPER = | |
BUILDDIR = build | |
LATEX-BW = $(BUILDDIR)/latex-bw |
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 python | |
import subprocess, os, glob | |
## Rename wav files using frequency and pitch detection: | |
## GTR_08.wav ---> automated pitch detection & file renaming ---> C - 130.81 Hz - GTR_08.wav | |
WAV_DIR = r"C:/Conversion" | |
AUBIO_DIR = r"C:/Conversion" |
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
\usepackage{wasysym} | |
\usepackage{moresize} | |
\usepackage{multicol} | |
\usepackage[Sonny]{fncychap} | |
\usepackage[margin=1in, paperwidth=6.69in, paperheight=9.61in]{geometry} | |
\usepackage[protrusion=true,expansion=true]{microtype} | |
\usepackage{xltxtra} | |
\setmainfont[Mapping=tex-text]{Minion Pro} | |
\setmonofont[Mapping=tex-text,Scale=0.85]{Inconsolata} | |
%\setmonofont[Mapping=tex-text,Scale=0.75]{DejaVu Sans Mono} |
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
\documentclass[10pt]{article} | |
\usepackage[T1]{fontenc} | |
\usepackage[scaled]{beramono} | |
\renewcommand*\familydefault{\ttdefault} | |
\usepackage{listings} | |
\lstset{ | |
language=Python, | |
showstringspaces=false, | |
formfeed=\newpage, |
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
fluidsynth -F output.wav ~/Soundfonts/my-soundfont.sf2 myfile.midi | |
lame output.wav |
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
#!/bin/sh | |
#set -e | |
PYTHON_VERSION=$(brew info python | grep -o "stable 2\.7\.\d" | awk '{print $2}') | |
function install_python { | |
brew install readline sqlite gdbm | |
brew install python --universal --framework | |
} |
NewerOlder