Toy synthesizer stolen from PuzzleScript, refactored, and lightly commented