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
#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): |
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
#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) |