A simple tone generator.