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
# Chroma - color mapping suggested by Sapp (2001) | |
# Sapp, Craig. "Harmonic Visualizations of Tonal Music" | |
# in the Proceedings of the International Computer Music Conference (ICMC) 2001, Havana, Cuba. | |
# Uses music21 pitch.Names (?) | |
color_map = { | |
'A': (127, 31, 255), | |
'B': (255, 127, 0), | |
'C': (0, 255, 0), | |
'D': (63, 95, 255), |
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
import itertools | |
import operator | |
# Student availability represented as a vector of truth values | |
# aka a binary number. First entry is 9am etc. | |
time_vector_list = [0b11101001110111101100, | |
0b11100011110111101000, | |
0b11110011110111100001, | |
0b11110011110111100101, |
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
identify *.pbm | \ | |
gawk '{split($3,sizes,"x"); print $1,sizes[1]/sizes[2]}' | \ | |
sed 's/\[.\]//' | \ | |
sort -gk 2 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
int n = 12; | |
void setup() | |
{ | |
noStroke(); | |
size(600, 600, P3D); | |
frameRate(24); | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import org.jsfml.audio.*; | |
import org.jsfml.window.event.*; | |
import org.jsfml.window.*; | |
import org.jsfml.system.*; | |
import org.jsfml.internal.*; | |
import org.jsfml.graphics.*; | |
import java.util.*; | |
import java.text.*; | |
import java.nio.file.*; |
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
import music21 | |
import itertools | |
MAX_OPS = 6 | |
c = music21.chord.Chord('D4 F4 A4') | |
display = music21.stream.Stream() | |
LRPcombs = music21.analysis.neoRiemannian.LRP_combinations |
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
import music21 | |
# From Hook/Andrew Chung | |
LRPgroup = ['', 'P', 'LPRP', 'LPR', 'LRL', 'PRPL', 'LRLR', 'RLR', 'LPRPR', 'LRPR', 'PR', 'PRP', | |
'R', 'RP', 'LP', 'L', 'LPL', 'PL', 'RL', 'PLR', 'LPR', 'LR', 'PRPR', 'RPR'] | |
LRPCombinations = music21.analysis.neoRiemannian.LRP_combinations | |
def getCanonicalTransform(source, target): |
OlderNewer