Skip to content

Instantly share code, notes, and snippets.

View CDWimmer's full-sized avatar
😴

CDWimmer

😴
View GitHub Profile
#You want aids? you got it:
#(c) gogglebot motherfucker
#last edit at 4 fucking am
import pyglet
import numpy as np
from random import randint
window = pyglet.window.Window()
class State(object):
def __init__(self):
#example from the pyglet download
import pyglet
class Keyboard:
def __init__(self):
"""A VERY basic semi-realtime synthesizer."""
self.window = pyglet.window.Window(720, 480)
instructions = "Press keys on your keyboard to play notes."
self.instructions = pyglet.text.Label(text=instructions, font_size=20, x=10, y=10)