Skip to content

Instantly share code, notes, and snippets.

Avatar

Johannes Hentschel johentsch

View GitHub Profile
@johentsch
johentsch / sort_labels.py
Last active Jul 24, 2020
Function for sorting DCML harmony labels with respect to their features given a custom ordering logic.
View sort_labels.py
import re
import pandas as pd
import numpy as np
from urllib.request import urlopen
REGEX = {}
def features2type(numeral, form=None, figbass=None):
""" Turns a combination of the three chord features into a chord type.
You can’t perform that action at this time.