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): |
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 | |
from random import randint | |
MIN_REPETITIONS = 4 | |
MAX_REPETITIONS = 10 | |
NUMBER_OF_PARTS = 10 | |
motives = ['e4 e e', 'e8 f8 e4', 'r8 e f e', 'r8 e f g', 'e8 f g r', |
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
acrd = 250 | |
bcrd = 250 | |
4676 CLS | |
PRINT "LadBroken - Betting Xtreme - Planet Namik Special!" | |
INPUT "Better 1 : ", nba$ | |
INPUT "Better 2 : ", nbb$ | |
PRINT nba$; " : Credit E"; acrd | |
INPUT "How much do you want do bet? ", amnt |
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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); | |
} |
OlderNewer