Skip to content

Instantly share code, notes, and snippets.

View glenl's full-sized avatar

Glen Larsen glenl

  • Vulture Graphics
  • Nipomo, CA
View GitHub Profile
@glenl
glenl / lilyhdr.py
Created January 8, 2013 01:20
A quick python wrapper of scheme code (David Kastrup, Felix Janda) for parsing lilypond input file headers. A function is provided (getHeaders) to call the lilypond command, read the output of that command into a variable, then break that up into a python dict object.
#!/usr/bin/env python3
# -*- utf-8 -*-
import subprocess
import argparse
import sys
lilyhdr_scm = [
"(set! print-book-with-defaults",
"(lambda (parser book)",
@glenl
glenl / gl-tag-simplicity-v1.ly
Created February 20, 2013 18:09
Mutopia tag: Simplicity V1 A bare minimum tag.
\version "2.16.1"
% Simplicity v1
% An attempt to reduce bulk of the Mutopia copyright tag
% Glen Larsen
% Wed Feb 20 09:50:55 2013
%
% Yes, I know it doesn't have the the Mutopia ID # from the footer but
% felt it would cause an additional line. The wording for the license
% is taken directly from the Creative Commons website.
@glenl
glenl / gl-tag-simplicity-v2.ly
Created February 20, 2013 18:34
Mutopia tag, Simplicity v2 Updated to include 'typeset using ...' wording from Robert Ames.
\version "2.16.1"
% Simplicity v2
% An attempt to reduce bulk of the Mutopia copyright tag
% Glen Larsen
% Wed Feb 20 09:50:55 2013
%
% Yes, I know it doesn't have the the Mutopia ID # from the footer but
% felt it would cause an additional line. The wording for the license
% is taken directly from the Creative Commons website.
@glenl
glenl / get_lily_scripts.py
Created January 24, 2017 21:59
Get a python dictionary of LilyPond install scripts
# An example of retrieving available LilyPond compiler scripts for a
# given version.
#
# This script determines the target compiler name for your processor
# (see lycompiler_name) then access the LilyPond download site to find
# the available installation scripts. These are retrieved in a
# dictionary with the version string as keys and the associated script
# url as values.
#
# Requires BeautifulSoup and requests. The recommended setup for
@glenl
glenl / projects.py
Created February 21, 2017 23:46
Extract project information from projects.html-in
# This gist just takes projects.html-in apart and serves as an example
# of BeautifulSoup
from bs4 import BeautifulSoup
# This will have to be modified to point to your input file
projects = '/home/glenl/work/mpweb/html-in/projects.html-in'
# The separator of the list items
projsep = ' - '
@glenl
glenl / do-582.sh
Created November 24, 2017 22:30
shell script to build all pieces in branch prep-582
#!/bin/sh
CHANGED_PIECES=" \
ftp/AbtF/swallows/ \
ftp/AdamsS/bluemtns/ \
ftp/AscherJ/alice/ \
ftp/BachJS/BWV1056/arioso/ \
ftp/BachJS/BWV248/Bach_BrichAn/ \
ftp/BachJS/BWV277/Bach_ChristLag/ \
ftp/BishopHR/homeshome/ \