Skip to content

Instantly share code, notes, and snippets.

View UnforeseenOcean's full-sized avatar
😠
Contact me directly for copyright issues.

Sean Canned Bean UnforeseenOcean

😠
Contact me directly for copyright issues.
  • Don't Bother LTD.
  • Somewhere Foundry, CA
View GitHub Profile
@UnforeseenOcean
UnforeseenOcean / generator.py
Created July 17, 2016 13:43 — forked from agar3s/generator.py
This script creates a midi file using an image as the source of inspiration
#!/usr/bin/python
import sys
import Image
from midiutil.MidiGenerator import MidiGenerator
from midiutil.TrackGen import LoopingArray
filename = sys.argv[1]
midifilename = filename[0:filename.find('.')]+'.midi'
@UnforeseenOcean
UnforeseenOcean / Erode.java
Created July 1, 2016 04:20 — forked from taboularasa/Erode.java
Open the last saved jpeg image Save it as a new jpeg image with slightly more compression Repeat 600 times
import com.sun.image.codec.jpeg.*;
PImage img;
int numberOfFrames = 600;
void setup()
{
size(1024,768);
}
@UnforeseenOcean
UnforeseenOcean / midicsv2frequency
Created May 4, 2016 16:13 — forked from clarkli86/midicsv2frequency
Convert the midi csv to frequency/duration pair for embedded systems
# Convert the note on/off events to frequency/duration pair
# 1. Create the midi notes2frequency table. Tuning is based upon A=440
my $a = 440; # a is 440 hz...
my @midi;
for($x = 0; $x < 127; ++$x)
{
$midi[$x] = ($a / 32) * (2 ** (($x - 9) / 12));
}
# 2. Parse the channel events
@UnforeseenOcean
UnforeseenOcean / zalgo.py
Created April 3, 2016 15:33
Zalgo text generator
import random
import sys
import argparse
#Characters
superscript = [
"\u030d", "\u030e", "\u0304", "\u0305", "\u033f",
"\u0311", "\u0306", "\u0310", "\u0352", "\u0357",
"\u0351", "\u0307", "\u0308", "\u030a", "\u0342",
"\u0343", "\u0344", "\u034a", "\u034b", "\u034c",