from wikipedia, imslp, and the Andreas Mayor translation of the Gerard Catalog (pages 106-159)
from glob import glob | |
import numpy as np | |
import os | |
import sys | |
# You'll need scikit-image and PIL installed to use this | |
try: | |
import skimage.io | |
except ImportError: | |
sys.exit("please 'pip install scikit-image' to use this script") |
import requests | |
from datetime import datetime | |
import json | |
""" | |
Instructions: | |
1. go to https://swarmapp.com/history | |
2. open developer tools in browser, and navigate to the "network" tab. | |
3. filter for fetch/XHR | |
4. select a month in the dropdown |
- Allegro di molto
- Un poco Adagio affettuoso (Theme with variations)
- Menuetto: Allegretto all zingarese
- Finale. Presto scherzando
Of humble origins, Franz Joseph Haydn was born in the village of Rohrau, near Vienna, on March 31, 1732. When eight years old he was accepted into the choir school of Saint Stephen's Cathedral in Vienna, where he received his only formal education. Dismissed from the choir at the age of seventeen, when his voice broke, he spent the next several years as a struggling freelance musician. He studied on his own the standard textbooks on counterpoint and took occasional lessons from the noted Italian singing master and composer Nicola Porpora. In 1755 Haydn was engaged briefly by Baron Karl Josef von Fürnberg, for whom he apparently composed his first string quartets. Haydn's marriage in 1760 to Maria Anna Keller proved to be unhappy.
- Allegro
- Andante o più tosto Allegretto
- Menuetto
- Finale. Vivace assai
Of humble origins, Franz Joseph Haydn was born in Rohrau, near Vienna, on 31 March 1732. When eight years old he was accepted into the choir school of Saint Stephen's Cathedral in Vienna, where he received his only formal education. Dismissed from the choir at the age of seventeen, when his voice broke, he spent the next several years as a struggling freelance musician. In 1755 Haydn was engaged briefly by Baron Karl Josef von Fürnberg, for whom he apparently composed his first string quartets. Haydn's marriage in 1760 to Maria Anna Keller proved to be unhappy. The turning point in Haydn's fortunes came in 1761, when he was appointed assistant music director to Prince Pál Antal Esterházy; a year later he became full director. As Kapellmeister, Haydn served under the patronage of thre
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | |
/* ========================================================================== | |
HTML5 display definitions | |
========================================================================== */ | |
/** | |
* Correct `block` display not defined in IE 8/9. | |
*/ |
from collections import defaultdict | |
from scipy import spatial | |
from sklearn.manifold import TSNE | |
from sklearn.cluster import SpectralClustering, KMeans | |
import functools | |
import heapq | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import os |
from time import time | |
import re | |
import sys | |
def get_words(filename='words.txt'): | |
# https://raw.githubusercontent.com/dwyl/english-words/master/words.txt | |
with open(filename) as f: | |
return [line.strip() for line in f] |
MDB is a Microsoft Access Database file. We'd like to look inside of it, but we have a Mac and no MS Office license.
export.py
is a program that can do each of the following:
- Put each table into its own .csv file to look at.
- Put each table in the data into an excel / google sheets doc for easy viewing/browsing
- Create a sqlite db which is similarly portable but accessible via a variety of common tools
#!/usr/bin/env python3 | |
import sys | |
def main(bwv): | |
bwv0 = '%03d' % int(bwv) | |
links = { | |
# label: (url template, raw?) | |
bwv: ('http://www.bach-cantatas.com/BWV{slug}.htm', True), | |
'allofbach permalink': ('https://www.bachvereniging.nl/en/bwv/bwv-{slug}', True), |