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.
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
from collections import namedtuple | |
import pygame | |
from pygame import midi | |
from pygame import time | |
class attractor(object): | |
def __init__(self,dt,scales,variables=['x','y','z']): | |
self.dt = dt |
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
<html> | |
<head> | |
<script language="JavaScript"> | |
var grid_dim = 16; | |
var pens = new Array("#000000","#202020","#404040","#606060","#808080","#A0A0A0","#C0C0C0","#FFFFFF"); | |
var dx = new Array(0,1,0,-1,-1,1,1,-1,0); |
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
# Licensed under the Apache License Version 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt | |
# Collatzeral Damage. Giles R. Greenway, May 2015. | |
# Collatz conjecture MIDI sounds. | |
import pygame | |
from pygame import midi | |
from pygame import time | |
# Mersenne numbers give the Collatz conjecture a good run for its money. | |
def mersenne(): |
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
# Licensed under the Apache License Version 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt | |
# Here's Looking at Euclid. Giles R. Greenway, March 2015. | |
# Elementary 1-D cellular automata beats. | |
# Just putting it out there: http://tinyurl.com/wolframsacrank | |
import pygame | |
from pygame import midi | |
from pygame import time |
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
# Licensed under the Apache License Version 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt | |
# Here's Looking at Euclid. Giles R. Greenway, March 2015. | |
# Euclidian poly-rhythms... | |
import itertools | |
# http://www.pygame.org/docs/ref/midi.html | |
import pygame | |
from pygame import midi | |
from pygame import time |